Skip to content

D269 — the forge's T4 leaves a row waiting for the head's record to attest's required status (#495) - #499

Merged
napkinstack-agent[bot] merged 2 commits into
mainfrom
d269-forge-t4-waits-for-the-head-record
Nov 23, 2026
Merged

napkinstack-agent[bot] merged 2 commits into
mainfrom
d269-forge-t4-waits-for-the-head-record

Conversation

@napkinstack-agent

Copy link
Copy Markdown
Contributor

Workstream

D269, from #495. Its row is in docs/governance/workstreams.md.

What it changes

D223 keeps an automated row run at an earlier commit when what its modules read has the same inputs digest at that commit and at the head. The digest is read from each commit's attest record. On the forge, the Test sheet and cycle job starts at the push, before nstack attest writes the head's record. Downstream, after a merge of main that changed nothing a module reads, that run failed T4 on every automated row. Attest's own run then judged the same sheet compliant, but nothing re-ran the forge's job, so it stayed red.

flowchart LR
  R[automated row run at an earlier commit] --> C{that commit's record has a digest?}
  C -->|no| F[T4 fails, as before]
  C -->|yes| H{head's record?}
  H -->|same digest| K[kept, as D223]
  H -->|other digest| F
  H -->|none, and attest's status required, not attest's own run| W[stands on this run, said with its Action]
  H -->|none, otherwise| F
  W -.-> A[attest's own run: kept or T4 fails, red status blocks the merge]
Loading

Now, where the ruleset requires nstack / local checks (the same status_required() test as A1/A2, D221), a row that waits only for the head's record stands on the forge's run, and pr-check says so:

[T4] automated rows run at <commit> wait for the record of the head <head>: the required status 'nstack / local checks' judges them — ...
      Action: nstack attest on the head <head>, with a token that may write commit statuses.

Attest's own run never waits: it keeps the row, or fails T4 with the digest, and its red status blocks the merge. A head record that has no digest still fails, because a failed module check makes a voided run that keeps it. A row whose commit has no record still fails too, since attesting the head would not keep it.

Not taken:

  • Re-running the forge's job from attest: an App needs actions: write, which agents lack by design, and that job belongs to the forge alone.
  • Triggering on the notes push: it is not a pull request event (D218).

Fresh verifier

Findings fixed in the second commit:

  • a head record holding no digest also waived T4;
  • attest's own run was not excluded;
  • the warning had no Action;
  • the handbook's "such a row" named the case that still fails;
  • nothing showed the warning reaching pr-check's output (a test now does).

What a project receives

The engine (pull_request.py) and two pages of its handbook: 05-workflow.md §7 and 07-governance.md. Nothing that was green turns red. A forge run that was red only because the head's record did not exist yet now passes, and attest's required status still judges the row.

Definition of Done

  • The behaviour is covered by a test that failed before: with the status required, the forge's run said the head had no record and failed T4. It now leaves the row to the status. Two more tests: a head record without a digest, and attest's own run, both still fail.
  • Every failure names the rule, the place and the action (P6)
  • uv run bash platform/tests/run.sh green, on a committed tree
  • uv run nstack fitness green
  • Affected documentation updated
  • The workstream's row updated in the register
  • No private project named, no path of a workstation, no link into an assistant's session

🤖 Generated with Claude Code

napkinstack-agent Bot and others added 2 commits November 23, 2026 08:16
…ttest's required status (#495)

The forge's run starts at the push, before nstack attest writes the head's
record. Where the ruleset requires nstack / local checks, an automated row
that waits only for that record now stands on that run and is said, as A1
leaves the record to the status (D221). Attest's own run keeps the row or
fails T4 with the digest. A row whose commit has no record still fails.

Agent-Session: napkinstack-os-77
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est never

A head record holding no digest (failed module checks, kept from a voided
run) also waived T4; now only a head with no record at all waits, and
attest's own run never does. The warning gains its Action; the handbook
names the row that waits; a test shows the warning in pr-check's output.

Agent-Session: napkinstack-os-77
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@napkinstack-agent
napkinstack-agent Bot requested a review from a team as a code owner November 23, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant