Skip to content

Serving: selection worker, host profiles and install; state moves to Chromeria #24

Closed

Description

@lukemaj

What: ContextMD's serving code becomes the knowledge side of serving (store format, check, thin hooks, OpenCode plugin, install), and matching and serving state move into the Chromeria module.
Why: The accepted design puts state, identity and settlement in Chromeria and keeps knowledge in contextmd as data, so a seam fix reloads with the store instead of needing a Chromeria release.
So what: An agent builds this beside the Chromeria module; the user approves the merge, then the planner runs the install.

Parent

#3 (design: section "Design: serving state in Chromeria"). Chromeria side: toolboxmd/chromeria#217. Part of #12.

Contribution to the Objective

It is the knowledge half of serving on all four hosts, which daily use needs before karpathy-wiki-style hand-loaded rules can go.

Outcome

  • Selection worker superseded (user, 2026-10-12): the matcher runs in the Chromeria module in TypeScript; entries stay data files here.
  • Host profiles as data here superseded: harness profiles live with the matcher in the module.
  • Pointer rules (target:) and inline rules; read detection for Read-like tools and reader shell commands.
  • contextmd-serve install <harness> --base <dir>: a Chromeria session from t3 auth session issue, a thin hook (curl to the server in server-runtime.json, then settle) or the OpenCode plugin, in the harness's user-level configuration.
  • server.py state and the Claude adapter are removed; keys.py, store.py, config.py and their tests stay.

Acceptance criteria

Non-goals

Blockers

None.

Required proof

Unit tests for install and the hook script; the shared contract suite against a dev Chromeria server; independent review by a different model family. PR: #27.

Elon record

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions