Skip to content

D267 — T4 says why an automated row is not kept by its inputs (#491) - #493

Merged
napkinstack-agent[bot] merged 2 commits into
mainfrom
d267-t4-says-why
Nov 21, 2026
Merged

napkinstack-agent[bot] merged 2 commits into
mainfrom
d267-t4-says-why

Conversation

@napkinstack-agent

@napkinstack-agent napkinstack-agent Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Workstream

D267, from #491. Its row is in docs/governance/workstreams.md.

What it changes

D223 keeps an automated row run at an earlier commit, without running it again, when two conditions hold:

  • the record of the row's commit and the head's record hold the same Module checks inputs digest;
  • the run is fresh (7 days, 20 commits).

Downstream, after a merge of main that changed nothing their modules read, four pull requests had their automated rows run again. No attest had been made at the rows' commit, so there was nothing to compare. T4 named the rows and gave no reason, and the cheap path (attest that commit) stayed unseen.

T4 now says, row by row, why a row is not kept by its inputs:

Not kept by its inputs — S1: 5fdb796 has no passing record of its module checks: nstack attest with 5fdb796 checked out, and the row stands while what its modules read is unchanged since

The other reasons are:

  • the head has no record yet (attest it);
  • what its modules read changed;
  • the run is past its bound.

Where checks run in the forge's CI, there is nothing to say: CI replays the row. The rule itself does not change.

same_inputs now returns None when the row stands, and otherwise the reason ("" when there is nothing to say).

What a project receives

One file, .nstack/handbook/05-workflow.md §7, gains one sentence: a commit with no passing record is the case to know, and T4 says it. In the engine, the T4 message gains the reasons. Nothing that was green turns red.

Definition of Done

  • The behaviour is covered by a test that failed before: 5 tests red on the old engine (no record at the row's commit, none at the head, digest differs, a reason per row in the T4 message, a fresh clone reading the remote's records), green now
  • 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

Summary

DONE           T4 names why each automated row at another commit is not kept by its inputs, cheap path first
VERIFIED       5 tests red then green; oracle green; an independent verifier saw attest at a detached older commit record it and T4 then keep the row
FOUND          by the verifier: reading the row's record before the head's digest skipped fetching the remote's records (CI's fresh clone said "no record"); fixed in d354c4f, with a remote + fresh-clone test
ASSUMED        none
NOT VERIFIED   on the downstream project's pull request: it confirms after taking the version
RISKS          none: the rule is unchanged, only its message

🤖 Generated with Claude Code

@napkinstack-agent
napkinstack-agent Bot requested a review from a team as a code owner November 21, 2026 21:00
napkinstack-agent Bot and others added 2 commits November 21, 2026 22:35
After a merge of main that changed nothing a module reads, T4 asked for the
automated rows again and named no reason: the rows' commit had no passing
record, so the relief of D223 could not apply, and the cheap path (attest
that commit) stayed unseen. T4 now says, row by row: no record at the rows'
commit (attest it checked out), none yet at the head, inputs changed, or the
run past its bound. The rule is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: maintainer-nstack-0122
The verifier's finding: reading the row's commit's record before the head's
digest skipped attest.read_remote, so in CI's fresh clone the relief never
applied and T4 said the commit had no record. The head's digest is read
first again; a test with a remote and a fresh clone covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: maintainer-nstack-0122
@napkinstack-agent
napkinstack-agent Bot merged commit d96c2bb into main Nov 21, 2026
3 checks passed
@napkinstack-agent
napkinstack-agent Bot deleted the d267-t4-says-why branch November 21, 2026 22:14
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