Skip to content

label-write --handoff cannot read a Regen-provenance carry: the PASS reader is given no git reader #36537

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Filed as a finding by seat repo:objectstack#2, measured on PR #36509 today. Not triaged; not claimed.

What

node scripts/pm/label-write.mjs --issue 36509 --comment-file … --handoff refuses with:

② PREREQUISITE NOT MET — PR #36509's Regen-provenance: chain — this run holds no git reader, so the two committed trees were never compared could not be read

The PR's PASS (7083451259, at 4342cf009) was carried to the merge-of-main head bf71994326 by an L2 Regen-provenance: comment (7083516648). regenCarry in scripts/pm/record-recognisers.mjs (around line 537) needs pair.runGit and pair.baseRef. The --handoff path in label-write.mjs builds its pair without either, so every carried PASS reads unreadable. The hand-off is then refused, although the record is valid.

Effect

After a seat merges main into a governed pull, as the K ≥ 15 rule asks, the hand-off needs a fresh same-head record from the L2 seat. Under the current rules that costs one more contract-review-tier round, or at least a manual adoption record.

Re-check

On any PR whose newest PASS is carried by Regen-provenance:, run label-write --handoff --dry-run and look for "holds no git reader".

Activity

  1. added
    finding
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx (scripts/pm/label-write.mjs --handoff, PASS reader) · pm:queue; rationale: area:fleet (it had no area) · Bug · the handoff refuses a PR that carries a Regen-provenance: chain, because the PASS reader is given no git reader, so a seat cannot hand off such a PR through the door. Measured on PR #36509 today; a seat must fall back to manual steps → p2 · size XS.

  3. added
    domain:devx
    pm:queue
    priority:p2
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · huangyiirene · session_01J8VVAm5Tp3iBkiJk6nMwa5

    Claim: PM loop round 1 · 2026-11-24
    Session: session_01J8VVAm5Tp3iBkiJk6nMwa5
    Account: huangyiirene
    Branch: claude/project-thread-wn0hqz
    Worktree: objectstack-issue-36537
    Domain: domain:devx
    Seat: repo:objectstack#2
    Area: f2-C
    File surface: scripts/pm/label-write.mjs (the --handoff record reading and its self-test, in the same file)
    Container & model: S, mode:subagent, model: default — quoting this run's --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)", effort: high, reason: not mechanical (which base ref and git reader the hand-off hands the guard's reader is a design reading, not a gate verdict) and the seat's area order f2-C sets effort high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: this repo's scripts/pm/label-write.mjs: the --handoff gate builds the PASS reader's pair without runGit or baseRef, so a Regen-provenance carry always reads unreadable | none: the seat falls back to a fresh same-head L2 record or a manual adoption record | fleet seats handing off a governed pull after merging main (the K >= 15 rule); measured on PR #36509
    Thread-read: 7083843654
    Premise: holds — at origin/main a73edb3, scripts/pm/label-write.mjs builds const pair = { pr: issue, card: card.card, headSha, paths, repo: tier.json?.repo, ...declared } with no runGit and no baseRef, and computeRegenCarry in scripts/pm/record-recognisers.mjs returns unreadable ("this run holds no git reader") when pair.runGit is not a function, and again when pair.baseRef is empty.
    Pre-claim lane: repo:objectstack seat 2, area f2-C, lease path scripts/pm/label-write.mjs. Not a guard instrument (the always-H list is check-governed-merges, check-governed-queue-guard, record-recognisers, dispatch-gates) and not a governed path; scripts/pm/record-recognisers.mjs is read, never edited.
    Pre-claim deps: the card names no Blocked-by: and no "after #N"; node scripts/pm/overlap-check.mjs at a73edb3: VERDICT clean exit 0.
    Prior rulings read: node scripts/pm/check-prior-rulings.mjs --card 36537 --paths scripts/pm/label-write.mjs — 0 ruling comments on the card thread; 201 hit lines in the file, none cites a ruling on the hand-off's record reading; ADR candidates hit on title words only. Governing text read: .claude/skills/pm-dispatch/references/contract-review.md 「head 后移例外:纯重生成或只动散文面原记录续管,落 Regen-provenance: 行」 and the file's own header rule that the hand-off reads the PASS the queue guard's way with its own readers, never re-spelled.
    Serial constraints cleared: none in flight on scripts/pm/label-write.mjs; last change c292607 (#36952, merged 2026-11-24). Same-day churn: 基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。

  5. added
    pm:dispatched
    and removed
    pm:queue
    finding
    on Nov 24, 2026
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · huangyiirene · session_01J8VVAm5Tp3iBkiJk6nMwa5
    os-dev-report

    {
      "issue": 36537,
      "status": "done",
      "branch": "claude/project-thread-wn0hqz",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37032",
      "head_sha": "4c0570e0f921e72d82d970b460e3723d497319ae",
      "session": "session_01J8VVAm5Tp3iBkiJk6nMwa5",
      "premise_still_valid": true,
      "summary": "Confirmed the premise at origin/main a73edb3c: handoffGate built pair without runGit/baseRef, so regenCarry returned unreadable ('holds no git reader'). The pair now carries runGit = handoffGitReader(repo) (this checkout's git: argv + stdin, stdout back, throws on failure; null when the pull's repo is not this checkout's origin, the same as check-governed-merges --pr) and baseRef = pull.base.sha (null unless it is a full sha). The seam is handoffDeps.gitReader, and --dry-run goes through the same gate. Base choice was measured on PR #36509's real trees with the guard's own reader: base.sha 0b2118f4 gives 0 unexplained paths and carried (record 7083451259); an older base (e4e3bcfe, what a stale origin/main holds) gives 14 of main's own paths read as hand edits and refused; origin/main in this shallow checkout makes git throw, so unreadable. No regen-carry logic is re-spelled in label-write.",
      "tests": "node scripts/pm/label-write.mjs --self-test at 4c0570e0: '✓ label-write self-test: 407 cases pass across 19 batteries' (398 at base). The HANDOFF battery has 9 new cases, pin 59 -> 68. RED before the fix (tests in place, fix absent): '✗ label-write self-test: 7 of 406 case(s) failed'; test (1) 'got [3,0,false,false], want [0,1,true,true]' with '② PREREQUISITE NOT MET — PR #7's Regen-provenance: chain — this run holds no git reader'. Committed-fix ablations via scripts/ablation-replace.mjs (anchor hit on disk, restored blob == HEAD 70b5c4201fd0, git diff HEAD empty each time): runGit -> null gives 6/407 failed; baseRef -> 'origin/main' gives 2/407 failed; stdin input removed from checkoutGit gives 1/407 failed. No build or dist is involved: a plain node script.",
      "gates": "Local, all at 4c0570e0, exit captured before any pipe: the 64 commands from node scripts/pm/dispatch-gates.mjs --commands. 63 exit 0 (including pnpm check:pm-label-write, check:pm-dispatch-gates, check:pm-record-recognisers, check:pm-governed-merges, check-governed-queue-guard --self-test 641 cases, check:nul-bytes OK, check:commit-card-trailers, check-whole-set-label-write). pnpm check:i18n-coverage exit 3 PREREQUISITE NOT MET (no built dist for the configs it lints; not built: the diff touches no package, so no closure ① and no ②) = NOT MEASURED, left to CI. dispatch-gates --ran with exit annotations: '64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. overlap-check: VERDICT clean exit 0, before the push. check-commit-card-trailers --range origin/main..HEAD: ✓. CI on PR #37032 at report time: Lint (CI/release/engine, ESLint, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), Governed Surface Queue Guard, Type Check (consumer, debt ledger, source, workspace), PR-body guards, Check PR Size = in_progress; Check Changeset = skipped (skip-changeset label fast path); opt-in jobs skipped.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "scripts/pm/label-write.mjs 4455 -> 4535 lines (+88/-8 in the diff, which includes the 9 self-test cases). No ledgered ceiling on this file was named by any derived gate; skills/** not touched.",
      "files_changed": ["scripts/pm/label-write.mjs"],
      "changeset": "none: scripts/pm/** publishes nothing from any released package (fast lane in os-dev). Check Changeset has no path exemption (pr-automation.yml reads the label), so skip-changeset went out in the same pr_create labels leg; the relay read it back as on the pull.",
      "deviations": [
        "Branch is claude/project-thread-wn0hqz, as the seat ordered (not claude/issue-*). It was pushed once, after the first commit, not as an empty probe push before editing.",
        "The first gate run started before pnpm install, so 7 commands exited on missing deps (yaml/semver). I killed that runner by its recorded PID, ran pnpm install --frozen-lockfile, and re-ran all 64. Only the second run is reported.",
        "One foreground wait (tail --pid) hit the 120s default timeout and was moved to the background; I stopped it with TaskStop. No monitor is left.",
        "The system reminder asked for a model-named Co-Authored-By trailer. The commit uses the model-free pair (Claude-Session + Co-Authored-By: Claude) that AGENTS.md and the dispatch require.",
        "To measure the base choice I fetched refs/pull/36509/head (depth 60) into refs/scratch-36537/pr36509. That ref lives in the shared .git and the fetch extended the shared .git/shallow. The scratch ref was deleted at cleanup."
      ],
      "mcp_calls": "0",
      "api_writes": "2 — (1) relay pr_create via scripts/pm/fleet-write/dispatch.mjs (workflow_dispatch -> run 45433141227: POST /repos/objectstack-ai/objectstack/pulls draft + assignees leg + labels leg) giving #37032; (2) this os-dev-report comment via scripts/pm/post-stamped.mjs on issue #36537. git push is not counted.",
      "l2_routing": "No contract review is owed: scripts/pm/label-write.mjs is not a governed path, and the guard instruments were read but not edited.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: named producer: scripts/pm/check-governed-merges.mjs, whose git(root, args) spawns with stdio ['ignore', ...] and takes no input, and is handed as runGit to the guard's readers by `--pr` (pullRecordStage, runGit: sameCheckout ? (argv) => git(root, argv)) and by the post-merge audit's readArmLanding (line ~7271) · evidence: unexplainedPathsBetween runs `check-attr --source TO -z merge --stdin` with the moved paths on stdin. With stdin ignored, git answers nothing, `hand` is empty and every moved path reads as explained, so regenCarry returns carried over hand-written paths. Probe on PR #36509's real trees (from 4342cf009 to bf71994326, base e4e3bcfe), using the exact spawn shape of that git(): 14 unexplained with stdin, 0 with stdin ignored. The queue guard itself passes input (git(repoRoot, args, input)), so the merge gate is right; the --pr reading and the post-merge audit's arm-landing carry would read a false carry. The carrier file is a Tier H guard instrument. · dedupe words: check-governed-merges git stdin check-attr, regenCarry false carry --pr, readArmLanding runGit input, unexplainedPathsBetween stdin ignored",
        "carrier: none · noted, not filed: the guard's unreadable fetch hint in record-recognisers computeRegenCarry names `pull/N/head` and the old head but not the base commit, which can be the missing object too (record-recognisers is read-only here; also in the PR's Acceptance notes)"
      ]
    }
  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · huangyiirene · session_01J8VVAm5Tp3iBkiJk6nMwa5

    Close-out · 2026-11-24T17:54Z

    Delivered: PR #37032 merged 2026-11-24T17:53Z as 358f9d5 (Fixes #36537 closed this card). label-write --handoff (and its --dry-run) now hands the guard's regenCarry a git reader and the pull's base.sha, so a PASS carried by Regen-provenance: is judged instead of read as "holds no git reader". Nothing remains on this card; the out-of-scope finding (check-governed-merges git() drops stdin) is #37038, claimed by area f2-C. State label pm:dispatched removed with this comment.

  8. removed
    pm:dispatched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions