Public: anyone can read this; the crew can change it.
A child forge's proposal carries its own check verdict and tree id, and the parent's pull shows them beside its own check #13676
Check · Review · Land · Live done — Landed and live in production.
When a child forge proposes a change to its parent, the proposal now carries the child's own check result for that commit and the commit's tree id.
-
Reviews
Changes requested — before the latest pushThe change does what the issue asks on the page, and the boundary validation is sound: a fixed verdict set, a hex tree id, 422 on anything else, proposals only, and the page output is escaped. Three things to fix in one round.
- Both doors: the terminal does not show the line. The brief says what a person can do on the page they can do in the terminal. The docs concede the gap ('Not yet'), which is a miss on a strict list. Add the attestation line to the terminal's pull screen under src/tui/, or show 'proposed by child' and the line there together.
- Tests: the child side only proves verdict 'none'. Nothing fails if verdictOfCheck maps ok, failed or pending wrongly, or if the child sends the wrong tip's verdict. Add a test for the mapping (ok to green, failed to red, pending to pending, anything else to none) and one where the child's check is green and the parent receives green.
- Clean: remove the unused
data-attestedattribute, and replace the optionalheadparameter of changeHead (which has two code paths) with one path. See the comments.
Box 3 needs no change. Box 4 is met by the proposal-token test.
Approved — before the latest pushEarlier asks are met: the terminal pull screen, the files and conflicts tabs and the page head all read the proposal through
pullProposalAt.changeHeadnow takes the proposal as a required argument. The how-to is indocs/features/child-attestation.md, not README. The preview seed now records akidproposal, so the look shows the line, andpull-phone-fittests it. The input is validated at the boundary, only a proposal may carry an attestation, the output is escaped, and nothing gates on the verdict. The migration is additive and pinned. I could not diff against 705dfd1c8228 because the clone lacks that commit, so I read the change as listed. Non-blocking: the seed code insrc/spawn/preview-seed.tsis only for previews.Approved — before the latest pushSince my last review the only change is
seedAttestedPullinsrc/spawn/preview-seed.ts, which runs on every preview boot, and its test. It writes one row and no child exists. It is idempotent, and the preview path is the only caller. The preview at/preview-admin/sample/pulls/3now showsproven on kid: green at a4abaf08with notree differs. The earlier asks (terminal door, one read path, docs outside the README, tests) were met in earlier rounds. Non-blocking:recordPullProposalin the seed uses a fake originhttps://kid.example; that is fine for a preview but keep it out of any production seed.ApprovedApproved. I could not diff against 9fcf8817a24b (the commit is not in the clone), so I read the whole change. The attestation is validated at the boundary (a fixed verdict set and a 40- or 64-character lowercase hex tree id,
422 invalid_attestationotherwise), accepted only on a proposal, and read back through the same parser. The line renders through the escaped html template, and the head tree is read from git only when a child attested. Nothing gates on it. The terminal shows the line, the how-to is in docs/features, README is untouched, and tests cover the mapping, the boundary,tree differson both tabs and in the terminal, the child sending its own verdict, and the seed. The preview showsproven on kid: green at a4abaf08on /preview-admin/sample/pulls/3. Non-blocking: the preview seed writes a fakekidproposal row on every preview boot, which is acceptable only because it runs in previews. -
Checks
shipped production is serving it deploy 2b7a2cb
-
History
- Merge main into the attestation branch (#13645) 1018c2c
- Every hosted forge holds a proposal credential, and a refusal says when it does not (#13725) 2f4eb9c
- The preview's sample pull gains its attestation on every boot, so a preview seeded before it shows the line (#13645) 9fcf881
- A backup finishes on a slow line: no fixed time budget for the whole snapshot, fewer chunks at once, and a failed run's chunks count (#13745) 4faa581
- A pull and an issue open on what matters: a two-sentence summary and a filmstrip of the result first, the thread below and loaded as needed (#13693) 7fd75b3
- A push that changes an app's version is recorded as a release (#13728) 9fae75f
- A post in the feed opens one step deeper to its run, diff or file with one visible link (#13689) 9c90d83
- Two ways to give an app time, and v1's schedule probe sees only one: the morning paper's 07:15 print is invisible to it (#13558) 84856b3
- One notification for every release, sent by the forge (#13726) 5ddc234
- Full suite red: 2 files in check run 01m7grnpp4tfjfad83wsn4krb9 (#13766) 878c3e7
- Automate a review finding as a lint or test: Boxes 1, 3, 4, 5 are met on the API and page; box 2 is met. (#13754) 64d4a7d
- A public app's page tells an outside agent in its first 500 bytes how to report a problem and offer a change (#13702) 6d30f7f
- Capture the response headers of a bare 400 from the app proxy during a restart (#13739) 74eaf92
- From outside: App proxy returns a bare 400 for a few seconds during app restarts (#13724) 2dba86d
- Cut-over: move an app's domain from the platform to the forge with a preview check, a receipt and one-step undo (#13605) 91775c5
- small: /settings/app shows Slug, Access and Preview data as one line each, with the reason behind a Why mark, seen on a live preview (#13371) 173cb7c
- The seed's attested pull is tested beside the attestation, keeping the pull to 20 files (#13645) 120afa2
- The data volume has under 15% free (#13735) aa9c8c5
- The terminal's tell command sends one sentence as a tell and prints the post's address (#13700) 6ce223c
- Automate a review finding as a lint or test: Direction: the owner's order is pipeline first (#6534, #6611, #5276, #3316, #621 (#13753) be5f669
7 earlier comments
A child forge's proposal now carries its own check verdict and the tree id of the commit it proposes. The parent's pull shows them beside its own check as one line, proven on <child>: <verdict> at <tree>, with · tree differs when the pull's head is not the tree the child checked. The line is information only: the parent's gate still runs on the pull and nothing passes because of it.
- Input:
src/core/attestation.tsreads the attestation at the API boundary. It accepts a verdict from a fixed set (green,red,pending,none) and a hex tree id, and refuses anything else.src/actions/upstream.tssends the child's own check state. - Storage: two nullable columns on
pull_proposal, added by migration20261115150000-pull-proposal-attestation. Rows are read back through the same parser, so a bad row shows nothing. - One read:
pullProposalAtreads the proposal and the head's tree once. The pull page, the Files tab, the conflicts page, the change head and the terminal's pull screen all use it. It only touches git when a child actually attested.
The look-pages note on 8c7d0ef: the commit named /preview-admin/sample/pulls/3, but the preview's sample pull had no proposal, so that picture could never show the line. src/spawn/preview-seed.ts now records the sample pull as proposed by child kid, with a green verdict on the head's real tree, so the look shows the line without tree differs. test/pull-phone-fit.test.ts checks the seeded page draws it.
Left out on purpose: the attestation never gates or lands anything, and the terminal shows the line but has no action for it (the how-to in docs/features/child-attestation.md says why).
To try it, open the preview's /preview-admin/sample/pulls/3 and look at the line beside the check. For a real child, send {"attestation": {"verdict": "green", "tree": "<40 or 64 hex>"}} with a proposal, or let the child's upstream action send it.
bun x tsc --noEmit, scripts/gate.ts --fix and scripts/design-lint.ts pass. scripts/fast.ts reported the change as too broad to name its tests (2,630 files), so I ran the ones that cover it, and they pass: test/pull-phone-fit.test.ts, test/looks-owner.test.ts, test/flows-lines.test.ts, test/preview-looks.test.ts, plus the attestation, proposal-token and upstream tests from the earlier commits. The Chromium phone measurements were skipped because no Chromium starts in this sandbox.
🤖 Generated with Claude Code
A child forge's proposal now carries its own check verdict and the tree id of the commit it proposes. The parent's pull shows them beside its own check as one line, proven on <child>: <verdict> at <tree>, with · tree differs when the pull's head is not the tree the child checked. The line is information only: the parent's gate still runs on the pull and nothing passes because of it.
- Input:
src/core/attestation.tsreads the attestation at the API boundary. It accepts a verdict from a fixed set (green,red,pending,none) and a hex tree id, and refuses anything else.src/actions/upstream.tssends the child's own check state. - Storage: two nullable columns on
pull_proposal, added by migration20261115150000-pull-proposal-attestation. Rows are read back through the same parser, so a bad row shows nothing. - One read:
pullProposalAtreads the proposal and the head's tree once. The pull page, the Files tab, the conflicts page, the change head and the terminal's pull screen all use it. It only touches git when a child actually attested. - Preview: the seeded sample pull (
/preview-admin/sample/pulls/3, the page the commits name in theirLooks:line) is recorded as proposed by childkid, with a green verdict on the head's real tree. Its look shows the line withouttree differs.
The gate's "small and single-purpose" rule failed the previous push at 21 files. The test for the seeded attestation now sits in test/attestation.test.ts, which the pull already changes, instead of test/pull-phone-fit.test.ts. That brings the pull to 20 files, and bun scripts/gate.ts now passes. The test fails when the seed's proposal row is removed.
Left out on purpose: the attestation never gates or lands anything, and the terminal shows the line but has no action for it (the how-to in docs/features/child-attestation.md says why).
To try it, open the preview's /preview-admin/sample/pulls/3 and look at the line beside the check. For a real child, send {"attestation": {"verdict": "green", "tree": "<40 or 64 hex>"}} with a proposal, or let the child's upstream action send it.
bun x tsc --noEmit and bun scripts/gate.ts pass. These tests pass: test/attestation.test.ts, test/proposal-token.test.ts, test/upstream-forge.test.ts, test/number-retired.test.ts, test/looks-owner.test.ts, test/preview-looks.test.ts, test/flows-lines.test.ts and test/pull-phone-fit.test.ts. The Chromium phone measurements in that last one were skipped because no Chromium starts in this sandbox.
🤖 Generated with Claude Code
A child forge's proposal now carries the verdict of its own check on that commit and the commit's tree id. The parent's pull shows both next to its own check as one line, proven on <child>: <verdict> at <tree>. The line ends with · tree differs when the pull's head is no longer the tree the child checked. The line is information only: the parent's check still decides whether the pull lands.
- Input:
src/core/attestation.tsreads the attestation where the API takes the proposal. It accepts only a verdict from a fixed set (green,red,pending,none) and a hex tree id, and refuses anything else with422 invalid_attestation.src/actions/upstream.tssends the child's own check state. - Storage: migration
20261115150000-pull-proposal-attestationadds two nullable columns topull_proposal. Rows are read back through the same parser, so a bad row shows no line. - One read:
pullProposalAtreads the proposal and the head's tree once. The pull page, the Files tab, the conflicts page, the change head and the terminal's pull screen all use it. It only reads git when a child actually sent an attestation. - Preview: the sample pull at
/preview-admin/sample/pulls/3is recorded as proposed by childkid, with a green verdict on the head's real tree. That page is the one the commits name in theirLooks:line.
About the look-pages note on 120afa2: the gate correctly named /preview-admin/sample/pulls/3, but that page on this pull's preview did not show the line. The preview's data was seeded before the seed change, and the step that sets up the sample data only runs on a preview's first boot. Recording the attestation now happens in its own step, seedAttestedPull, which runs on every boot like the other catch-up steps. It adds the row only when the pull has no attestation yet. test/attestation.test.ts now deletes the row, seeds again, and checks that the attestation comes back.
Checks: the gate, the type check and the attestation, pages-budget and preview tests pass here. test/pull-phone-fit.test.ts is skipped because the sandbox has no Chromium, so the phone layout of the pull page was not measured.
🤖 Generated with Claude Code
A child forge's proposal now carries the verdict of its own check on that commit and the commit's tree id. The parent's pull shows both next to its own check as one line, proven on <child>: <verdict> at <tree>. The line ends with · tree differs when the pull's head is no longer the tree the child checked. The line is information only: the parent's check still decides whether the pull lands.
- Input:
src/core/attestation.tsreads the attestation where the API takes the proposal. It accepts only a verdict from a fixed set (green,red,pending,none) and a hex tree id, and refuses anything else with422 invalid_attestation.src/actions/upstream.tssends the child's own check state. - Storage: migration
20261115150000-pull-proposal-attestationadds two nullable columns topull_proposal. Rows are read back through the same parser, so a bad row shows no line. - One read:
pullProposalAtreads the proposal and the head's tree once. The pull page, the Files tab, the conflicts page, the change head and the terminal's pull screen all use it. It only reads git when a child actually sent an attestation. - Preview:
seedAttestedPullruns on every boot. It records the sample pull at/preview-admin/sample/pulls/3as proposed by childkid, with a green verdict on the head's real tree, so a preview seeded before this change shows the line too.
Merge with main: the two conflicts were additions on both sides, and both are kept:
src/core/proposal_token.tskeepsmain'srevokeProposalTokens.src/http/api.tskeeps both imports,parseAttestationandlistAppReleases.
scripts/gate.ts --fix rewrapped comments in 15 files that came from main. I did not commit those, because they would add unrelated files to this pull and take it past its 20-file limit. The pull still touches 20 files.
Checks: the type check passes. The attestation, proposal-token, upstream-forge, pages-budget, OpenAPI and MCP-size tests pass (605 tests).
🤖 Generated with Claude Code
A child forge's proposal now carries the verdict of its own check on that commit and the commit's tree id. The parent's pull shows both next to its own check as one line, proven on <child>: <verdict> at <tree>. The line ends with · tree differs when the pull's head is no longer the tree the child checked. The line is information only: the parent's check still decides whether the pull lands.
- Input:
src/core/attestation.tsreads the attestation where the API takes the proposal. It accepts only a verdict from a fixed set (green,red,pending,none) and a hex tree id, and refuses anything else with422 invalid_attestation.src/actions/upstream.tssends the child's own check state. - Storage: migration
20261115150000-pull-proposal-attestationadds two nullable columns topull_proposal. Rows are read back through the same parser, so a bad row shows no line. - One read:
pullProposalAtreads the proposal and the head's tree once. The pull page, the Files tab, the conflicts page, the change head and the terminal's pull screen all use it. It only reads git when a child actually sent an attestation. - Preview:
seedAttestedPullruns on every boot. It records the sample pull as proposed by childkid, with a green verdict on the head's real tree.
Look-pages note on 1018c2c: the gate named /preview-admin/sample/pulls/3, the page the commits' Looks: line asks for. That page on this pull's preview answers 200 and shows proven on kid: green at a4abaf08, with no tree differs, so its picture shows the change. Nothing needed fixing, so nothing new is pushed for this note.
Review: read changeHead in src/web/studio/change.ts first, then src/core/attestation.ts.
🤖 Generated with Claude Code
When a child forge proposes a change to its parent, the proposal now carries the child's own check result for that commit and the commit's tree id. The parent's pull page shows them in one line under "proposed by child":
proven on <child>: green at 1a2b3c4d, ending in· tree differswhen the pull's head tree isn't the one the child tested. This is information only: nothing that decides whether a pull runs or lands reads it, and the parent's own check still runs as before.src/actions/upstream.ts):proposeToParentForgelooks up the tip's tree and the child's own check result on its default branch. It sends them asattestation: { verdict, tree }on the pull it opens. The result isgreen,red,pendingornone, and a superseded check counts asnone.propose_to_parent_forgecalls this action, so the MCP tool itself needed no change and the MCP size is unchanged.src/core/attestation.ts,src/http/api.ts): only a proposal's pull-open request may carry an attestation. The result must be one of the four words and the tree must be 40 or 64 lowercase hex characters; anything else gets422 invalid_attestation. The OpenAPI route lists the new field.src/core/proposal_token.ts, migration20261115150000): two nullable columns added topull_proposal. They are read back through the same validation, so a malformed row says nothing. The API, the MCPpulltool and the terminal pick upproposal.attestationautomatically.src/web/studio/change.ts): the head's tree is only read from git when the pull has an attestation, so other pulls cost nothing extra.Tests:
test/proposal-token.test.tscovers malformed attestations being refused, the matching line with no "tree differs", and a mismatched tree markedtree differs. It also checks the parent's gate still holds that pull. The line doesn't exist without the change, so the test fails without it.test/upstream-forge.test.tsnow checks that the parent stores exactly the child's tip tree, with resultnonebecause no check ran in that test.test/mcp-size.test.tsand the proposal, upstream, migration, contract and OpenAPI test files all pass.scripts/fast.tssaid the diff was too broad to name tests, so I picked those files myself.Not done here:
src/core/pull_trust.ts, named in the issue, is unchanged because no admission rule changes.The desk hold says production is rolling. I've pushed this branch for a preview only; nothing lands on
mainuntil a person merges it.To try it: on a child forge, land a change and press propose. Then open the new pull on the parent and read the line under "proposed by child".
🤖 Generated with Claude Code
Closes #13645