Skip to content

design: the chant and hud boundary as a decision record, an owner roster as data, and guards that keep it true #2657

Closed

Description

@lex00
Level Design Driver
1 #2524 D8, D15, D18; #2650 #2525

The owner wants the boundary between what chant provides with the repository specification and what belongs in hud to be easy to identify and to stay correct. This records it and makes it mechanical.

The boundary

chant provides the repository specification and nothing that faces a person; hud renders and interacts; domain record kinds and joins are a plugin.

chant hud plugin
declaration, kinds, members, links, lineage, migrations, init --from, upgrade rendering domain record kinds (contracts, units, evidence, drivers, sessions)
records: schemas, states, seals, pins, supersession, attestation, provenance review actions as UI (agree, dissent, propose, quorum meter, live sessions) commitJoins and other joins from commits to records
the read contract: versioned JSON of ls, graph, check, records, status, graph --intent, closed reason codes identity, sessions, who is looking agent prompts and context bundles
the writing and verifying commands: approve, records pin, verify, check, gates, ledgers the agent chat, the dev proxy, comment mode
findings as data the question put to the person at each finding

Rules: chant never listens on a port, never authenticates a person, never renders. hud never parses a record file, never runs git for provenance, never computes drift; it reads only through the read contract and writes only through chant commands. chud is the transitional owner of the plugin column (jhgaylor/chud#78, #79, #80).

Acceptance criteria

  • A decision record docs/design/decisions/ws-05x-chant-hud-boundary.md with the table above, the rules, and the rejected options (hud reading files directly; chant serving a UI; one repo for both).
  • docs/data/boundary.yaml: one row per concept (every workspace command, record kind, link kind, finding code and reason code in the read contract) with owner: chant | hud | plugin and the schema or command that carries it; rendered into a reference/boundary.mdx page the way docs/data/consumers.yaml renders the platform picker.
  • A test fails the build when a command, reason code, finding code or link kind in the read contract has no roster row, or when a roster row names something that does not exist.
  • A lint in chant.yml (the same shape as test/no-egress.test.ts) that packages/core opens no HTTP listener and imports no UI or agent-runtime package.
  • describeWorkspaceReaderConformance in packages/test-utils: a reader passes by consuming only the read contract's schemas; hud runs it in its CI (alecraso/hud issue to follow).
  • Level 0 is unaffected, or the change is on level-0 exceptions log: workspaces in levels of use, all opt-in #2525's exception list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:workspacedesignlevel:1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions