Skip to content

D295 — T4 lets an automated row stand at a commit whose inputs, read from git, are the head's (#548) - #549

Merged
napkinstack-agent[bot] merged 1 commit into
mainfrom
d295
Nov 26, 2026
Merged

napkinstack-agent[bot] merged 1 commit into
mainfrom
d295

Conversation

@napkinstack-agent

Copy link
Copy Markdown
Contributor

Workstream

D295 (#548): T4 lets an automated row stand at a commit whose inputs, read from git, are the head's. Its row is in docs/governance/workstreams.md.

What it changes

With checks: attested, a pull request verified at X that merges the default branch, whose new commits touch only another module, had its automated rows refused by T4: the relief of D223 needed a passing attest record of X, and X usually has none. The verifier then ran the end-to-end suite again for the same result.

flowchart TD
  R[automated row at X, head ≠ X] --> A{record of X?}
  A -- passing --> OLD[D223, unchanged: digests equal and fresh]
  A -- exists, voided or failed --> NO1[refused, as before]
  A -- none at all --> H{X in the head's history?}
  H -- no --> NO1
  H -- yes --> D{git digest at X = at the head?}
  D -- cannot tell --> NO1
  D -- differ --> NO2[refused: names what its modules read that changed]
  D -- equal --> F{fresh, as a record must be?}
  F -- no --> NO3[refused: too old]
  F -- yes --> OK[the row stands]
Loading

Legend: the new path starts at "none at all". "Git digest" is attest.inputs read at a commit: the folders of the modules run and those they consume or assemble, and every tracked path outside the module folders (contracts/, platform/, the lockfile, root config), records excepted.

  • attest.inputs takes the commit it reads, HEAD by default.
  • The git-only digest leaves out the engine and who runs it. Nothing records them for a commit with no record, as for a row at the head.
  • The handbook (05-workflow §7) says when such a commit stands.

Measured first, on a consumer project: X and the merged head changed 63 files, all under another module, and attest.inputs gave the same digest at both.

What a project receives

.nstack/handbook/05-workflow.md, and fewer replays: a row at X stands across a merge that touches nothing its modules read. Nothing green turns red.

Verification

  • Tests: the row stands when the merge touches only another module; it is refused, naming the file, when the merge touches contracts/ or uv.lock; refused for a voided X, for an X whose module checks failed, for a stale X, for an X off the head's history, and when a module folder is absent at X. The head's digest is computed once per run. Each test was seen to fail with its change reverted.
  • A fresh verifier found that a voided or failed record of X fell into the new path, that it asked no freshness, and a weakened assertion. All three are fixed and tested, with X's ancestry and a clearer refusal.
  • Left as is: on the forge, the checkout is the test merge, so the scope comes from it. It can only widen the scope, which is conservative.

Definition of Done

  • uv run bash platform/tests/run.sh green, on a committed tree
  • The workstream's row in the register
  • No private project named, no path of a workstation, no link into an assistant's session

Fixes #548

🤖 Generated with Claude Code

…from git, are the head's (#548)

Agent-Session: napkinstack-os-56
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 26, 2026 00:14
@napkinstack-agent
napkinstack-agent Bot merged commit f46d088 into main Nov 26, 2026
3 checks passed
@napkinstack-agent
napkinstack-agent Bot deleted the d295 branch November 26, 2026 08:36
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.

T4 refuses automated rows at a commit whose inputs equal the head's, because that commit has no attest record

1 participant