martha#303: the full example declaration, held to the reader by a test #306

Manually merged
terra merged 0 commits from vesta/303-full-example into main 2026-11-27 15:04:37 +00:00
Member

Ships the full example declaration Raf asked for: one file showing every field a declaration may hold at least once, held to the reader by a test so it can never drift.

  • docs/martha.full-example.json, beside the declaration's page: every role with a member, every harness with a profile, the providers (subscription and api_key billing, key_from and key_file), the forgejo hosts, workspace, mesh with its four services, every switch and window, thresholds, transcripts, owner notices, clock zone.
  • src/declare_crew/the_full_example_declaration.node-test.ts declares it through declareCrew (no field is said to be unknown) and fails when the reader accepts a field the example does not show; the four it leaves out are each refused beside a field it names (clones/worktrees beside workspace.root, gate_enforce beside gate_enforces, engine_endpoint.key_from beside key_file).
  • One constant THE_FULL_EXAMPLE_DECLARATION names the path for that test and for martha init's new closing line; getting-started.md and the-declaration.md point at it.
  • The file's values are synthetic where the private scan needs them (/home/synthetic, one-repeated-digit station ids), and the guide says to replace them.

Proven: typecheck 0, whole verify 0 (check:private nothing private), whole npm test in its namespace 5749 tests / 5711 pass / 0 fail, and martha ls from the source tree reads it with no notes.

Refs martha-ai/martha#303

Ships the full example declaration Raf asked for: one file showing every field a declaration may hold at least once, held to the reader by a test so it can never drift. - `docs/martha.full-example.json`, beside the declaration's page: every role with a member, every harness with a profile, the providers (subscription and api_key billing, `key_from` and `key_file`), the forgejo hosts, workspace, mesh with its four services, every switch and window, thresholds, transcripts, owner notices, clock zone. - `src/declare_crew/the_full_example_declaration.node-test.ts` declares it through `declareCrew` (no field is said to be unknown) and fails when the reader accepts a field the example does not show; the four it leaves out are each refused beside a field it names (clones/worktrees beside `workspace.root`, `gate_enforce` beside `gate_enforces`, `engine_endpoint.key_from` beside `key_file`). - One constant `THE_FULL_EXAMPLE_DECLARATION` names the path for that test and for `martha init`'s new closing line; `getting-started.md` and `the-declaration.md` point at it. - The file's values are synthetic where the private scan needs them (`/home/synthetic`, one-repeated-digit station ids), and the guide says to replace them. Proven: typecheck 0, whole verify 0 (check:private nothing private), whole `npm test` in its namespace 5749 tests / 5711 pass / 0 fail, and `martha ls` from the source tree reads it with no notes. Refs martha-ai/martha#303
docs/martha.full-example.json shows every field a declaration may hold at least
once: every role, harness, provider, host, mesh service, window and switch, each
with a value. src/declare_crew/the_full_example_declaration.node-test.ts declares
it through the reader, so it can never name a field a declaration is refused for,
and every field the reader accepts is named in it, so it cannot fall behind the
reader either; the four fields it leaves out are the ones that exclude a field it
names, each said with the field it may not sit beside.

martha init names the example's path after it declares a crew, from one constant
that the test reads the file through as well. The getting-started guide and the
declaration's own page point at it.

Refs martha-ai/martha#303
Collaborator

CI coordinator: round r=1: dispatched ci.yml on e8d8344a32, run 5916 (base d2c930e16c).

CI coordinator: round r=1: dispatched ci.yml on e8d8344a32a6b4303b19f3bd97b8bcf5fa70a6b0, run 5916 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
Collaborator

CI coordinator: round r=1: dispatched suite.yml on e8d8344a32, run 5917 (base d2c930e16c).

CI coordinator: round r=1: dispatched suite.yml on e8d8344a32a6b4303b19f3bd97b8bcf5fa70a6b0, run 5917 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
Collaborator

CI coordinator: round r=1: dispatched c4-model.yml on e8d8344a32, run 5918 (base d2c930e16c).

CI coordinator: round r=1: dispatched c4-model.yml on e8d8344a32a6b4303b19f3bd97b8bcf5fa70a6b0, run 5918 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
Collaborator

CI coordinator: round r=1: dispatched standalone.yml on e8d8344a32, run 5919 (base d2c930e16c).

CI coordinator: round r=1: dispatched standalone.yml on e8d8344a32a6b4303b19f3bd97b8bcf5fa70a6b0, run 5919 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
martha#303: the test's refusal names the example through its constant
Some checks failed
dependency advisories / node in . (container) (push) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (push) Has been skipped
dependency advisories / node in installer (container) (push) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (push) Successful in 13s
dependency advisories / node in . (push) Successful in 13s
dependency advisories / node in installer (push) Successful in 13s
dependency advisories / advisories (push) Successful in 0s
c4 model / c4-model-1 (push) Successful in 6s
CI / links resolve, workflows are valid (push) Successful in 7s
c4 model / c4-model (push) Successful in 0s
CI / checks (push) Successful in 3m11s
heavy / installer (push) Successful in 2m11s
standalone / standalone Martha runs alone (ubuntu-latest) (push) Successful in 33s
suite / the ring reaches the owner on the live run's tmux (push) Successful in 14s
heavy / the relay loads in the recorded host (push) Successful in 15m5s
heavy / the clean-install proof removes its container (push) Successful in 19m29s
suite / gate coverage (push) Failing after 12m33s
ee374a1693
The assertion message spelled docs/martha.full-example.json as a literal
beside THE_FULL_EXAMPLE_DECLARATION, so a move of the file would leave the
message pointing at the old path. Say it through the constant.
Collaborator

CI coordinator: round r=2: dispatched ci.yml on ee374a1693, run 5920 (base d2c930e16c).

CI coordinator: round r=2: dispatched ci.yml on ee374a1693b467a3f415b75de08d8a60e88fdefb, run 5920 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
Collaborator

CI coordinator: round r=2: dispatched suite.yml on ee374a1693, run 5921 (base d2c930e16c).

CI coordinator: round r=2: dispatched suite.yml on ee374a1693b467a3f415b75de08d8a60e88fdefb, run 5921 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
Collaborator

CI coordinator: round r=2: dispatched c4-model.yml on ee374a1693, run 5922 (base d2c930e16c).

CI coordinator: round r=2: dispatched c4-model.yml on ee374a1693b467a3f415b75de08d8a60e88fdefb, run 5922 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
Collaborator

CI coordinator: round r=2: dispatched standalone.yml on ee374a1693, run 5923 (base d2c930e16c).

CI coordinator: round r=2: dispatched standalone.yml on ee374a1693b467a3f415b75de08d8a60e88fdefb, run 5923 (base d2c930e16ca0c90b43ccabc72d432c8547d2b2f9).
terra manually merged commit ee374a1693 into main 2026-11-27 15:04:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha!306
No description provided.