Skip to content

Session Handoff [default]: handoff.py Ships Without adopt, and #1501 Is on develop #1502

Closed

Description

@ptr727

Next steps, in priority order

  1. Implement AGENTS.md Session Scope has no shape for a drive-pr to-main session #1286's answer in AGENTS.md "Session Scope". Pieter settled it this round: a to-main drive ends at a fourth trigger, not a merge, when the promotion pull request is reported ready. The decision label is off and the answer is on the issue. Done when Session Scope carries that trigger and the "one branch" and "the branch changes" halves are reconciled against the branches drive-pr step 6 creates. This is first because every to-main drive runs under a rule that currently ends the session before the work does.
  2. Add the tracking values Three divergence-ledger entries say a decision is owed and nothing records who owes it or when #669 needs. Three divergence-ledger entries keep investigate and gain a tracking value pointing at Three divergence-ledger entries say a decision is owed and nothing records who owes it or when #669. Done when the deferral reads as a deferral rather than an omission.
  3. Add the pending-adoption class Promotion candidates and two interface gaps found resyncing NxWitness #1116 needs. A pre-adoption repository stops being reported as DRIFT. Done when a rename can no longer satisfy the finding.
  4. Record Decide whether merge-and-release's branch cleanup should use compare-and-delete #946's decline where a reviewer meets it. The finding has recurred three times and is now declined permanently. Done when the next reviewer raising it is answered by the record rather than by a fresh argument.
  5. handoff.py Verifies a Resolved Head When Writing and Not When Reading #1500, then Design adopt Before Rebuilding It: the Measurement That Removed It From handoff.py v1 #1499, in that order. handoff.py Verifies a Resolved Head When Writing and Not When Reading #1500 gives the read path the head check the write path already has. Design adopt Before Rebuilding It: the Measurement That Removed It From handoff.py v1 #1499 designs adopt before anything rebuilds it. The order matters because a rebuilt adopt inherits whatever the read path believes about a head.

External blockers

Internal dependencies

State

Re-derive all of this rather than trusting it.

The parked decision queue

20 open issues carry decision. Four were answered this round and lost the label with the answer recorded: #1286, #669, #946, #1116. #1286 was promoted ahead of wait order because it blocked the drive in flight, which is why it was asked first.

The remaining 20, longest-waited first: #1118, #1124, #1153, #1154, #1155, #1164, #1182, #1200, #1204, #1217, #1227, #1238, #1270, #1273, #1280, #1285, #1298, #1302, #1323, #1447.

What the last round did

What not to repeat

  • Do not rebuild adopt without answering Design adopt Before Rebuilding It: the Measurement That Removed It From handoff.py v1 #1499 first. It was built, reviewed six times, and removed. A randomised search over reachable stores found 60 distinct all-green fork sequences in 20000 trials and every one required adopt; two controls without it found none in 400 and none in 150. Cost: roughly six review rounds that each closed one member of a class the measurement then closed whole.
  • Do not run scratchpad/revert.py while editing scripts/handoff.py. It restores the file from its own backup when it finishes, and it silently reverted an edit made while it ran. Re-point it at a copy, or run it strictly between edits.
  • Do not put a literal gh issue create string in a command that also redirects output. The gh-write-guard hook reads the whole command line, sees a write plus >/dev/null, and denies it. Twice. Split the heredoc from the redirect.
  • Do not trust a healthy-state search to find a defect in a recovery command. link exists for lanes that are already irregular, so a search that expands only well-formed states prunes its inputs before the defect can appear. Two passes reported clean on that basis before a seeded search found the fork.
  • Do not read the closed side of a chain by issue number. It disagrees with round order wherever a lower-numbered issue joined a lane later, and two commands each exiting 0 then fork the lane. Fixed, and the three regression cases prove it by putting the old key back.

New learnings

  • A test suite can be green and hold nothing. Reverting each guard one at a time is what proved it, and six of one round's seven fixes turned out to be revertible with the suite still passing. The check is now 61 guards and lives in the branch's history rather than in the tree.
  • A test double that returns more than the tool it stands in for green-lights a crash. gh --json projects exactly the fields it is given; the stub did not, so a caller reading an unrequested field passed 65 cases and raised against the real tool.
  • Fixing one review finding surfaced a class rather than a member five separate times on this branch. Recorded here rather than in governance because it is an observation about this work, not a rule.

Activity

  1. added
    handoff
    on Sep 10, 2026
  2. ptr727 commented on Sep 11, 2026

    @ptr727
    OwnerAuthor

    Continued in #1535, round 3 on track default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    handoff

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions