GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet gh: closure records + reason-required closes (audit trail by construction) · Issue #9221 · developing-today/code

fleet gh: closure records + reason-required closes (audit trail by construction) #9221

New issue
Copy link
New issue
Copy link
Todo
Todo
fleet gh: closure records + reason-required closes (audit trail by construction)#9221
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateseffort/mMedium: expected under 1 day of workepic/fleet-toolEpic: fleet-tool - all issues of this effort carry itkind/featureNew feature or capability requestmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/normalOrdinary priority (the default)status/in-progressQueue worker lifecycle statestatus/triagedTriaged and routed (see agent note)task/small-fixQueue packet kind: bounded fix with reproduction and targeted testsuser/reviewNeeds a user-look: Muse reviews first and handles what it canwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 13, 2026
Issue body actions

Problem

Issue/PR closures in the fleet currently leave no durable, attributable record: a closure's actor and reason live only in GitHub's timeline, and nothing stops an automation from closing live work with no deliverable and no reason. Evidence, not theory:

  • On 2026-11-12, epic Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out) #9155 was labeled status:done and closed by an automation 8 minutes into an actively-working bound Summit session, before any deliverable existed. The closing automation is still unidentified.
  • The 90-day closed-item review (started 2026-11-12, ledger in hatch-personal workspace/goals/keep-the-four-repos-healthy/files/closed-review-90d/) is classifying every closed issue/PR since 2026-08-14 across the four working repos. Counts so far: dezren39/darwin-nix — 3 WRONGLY_CLOSED of 1,810 closed items reviewed (issues Phase 3: sync, blob gate, and relays #181, id(web): every .txt open→save drops the final newline (and rewrites CRLF to LF) — Plain mode is not byte-faithful unlike Raw #1307, design(mcpx): resume upstream HTTP sessions after a cold restart — persist the resumable session state #1414; reopen recommendations recorded, repo frozen); developing-today/code checkpoint 1 — 0 of the first 56, with 7,724 closed items in scope, so the full count is still coming. Every one of these has to be reconstructed by hand because the closure itself recorded nothing.

Ask

  1. Automatic closure recording. Every issue/PR close performed through fleet gh (and, where detectable, observed by the fleet's sync machinery) is recorded into the backed-up fleet transaction record: item, actor/run ID, timestamp, close reason (taxonomy + free text), and the session/task binding when one exists. This builds directly on the attribution proposal in fleet queue: resume-by-session, claim-any-task, and manual-only items #9178 §(e) (fleet-init run IDs stamped into GitHub operations) and the decision-record convention in fleet decision records: document queue and attribution decisions durably #9180 — closures are decisions and should be recorded like them. The record must be queryable ("who closed X, why, from which run") and backed up with the rest of the fleet transaction log (Atlas-injectable per fleet queue: resume-by-session, claim-any-task, and manual-only items #9178 §(e)).

  2. Reason-required closes. fleet gh issue close and fleet gh pr close without --reason fail with an error: Please give a reason. This is required by policy. The reason uses the review's taxonomy — implemented / superseded (requires a successor reference) / cancelled / started-incorrectly — plus optional free text. The flag is written into the close comment and the transaction record from (1). Reopens should likewise record a reason (the 90-day review's reopens cite the review + evidence; that should be the tool's shape, not a convention).

Acceptance

  • Closing an issue or PR via fleet gh without --reason exits non-zero with the policy error above; no close is performed.
  • Closing with --reason <taxonomy> (+ optional successor ref for superseded, + free text) performs the close, posts the reason in the close comment, and appends the full closure record (item, actor/run ID, timestamp, reason, binding) to the transaction record.
  • The transaction record is included in the fleet backup set and is queryable by item number.
  • Tests cover: missing reason refusal, each taxonomy value, superseded-without-successor refusal, and record contents.

Cross-links: #9178 (attribution proposal §e; FDR-0005), #9180 (decision records), #9155 (the incident), the 90-day closed-item review (this issue is its Part 4).

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    app/fleetpkgs/fleet multicall binary + platform crates
    epic/fleet-toolEpic: fleet-tool - all issues of this effort carry it
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    developing-todayBot
    on Nov 13, 2026 – with developing.today
    Contributor
    More actions

    CODE-2905

  3. dezren39
    added a parent issue on Nov 13, 2026
    • epic: fleet tool — one door for coordination, mirroring, and backups #8990
  4. github-actions
    assigned
    dezren39
    on Nov 13, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Agent note — triaged, task 18923 for issue #9221 (lane any-e)

    • State: triaged (inline, 2026-11-17). Work kind: small-fix. Priority: priority/normal. Effort: effort/m. Kind: kind/feature (already on the issue).
    • Fresh verification: issue fleet gh: closure records + reason-required closes (audit trail by construction) #9221 is OPEN, no hard-stop labels. On laptop main, pkgs/fleet/crates/fleet/src/gh.rs (1,669 lines) is a passthrough/cache layer with no close-command handling and no reason logic — the feature is unimplemented, exactly as the issue describes.
    • Dependency handling: the closure record's run-ID field builds on fleet queue: resume-by-session, claim-any-task, and manual-only items #9178 §(e) (fleet-init run IDs), but the issue's acceptance only requires the session/task binding "when one exists" — so the fix packet records today's available binding and keeps run_id nullable until the stamp lands. This is NOT dep-blocked on fleet queue: resume-by-session, claim-any-task, and manual-only items #9178.
    • First concrete step: intercept issue close / pr close in the fleet gh domain and refuse without --reason (policy error verbatim from the issue) before any passthrough happens; then the record append.
    • Acceptance check: the issue's own checklist — missing-reason refusal with no close performed; each taxonomy value; superseded-without-successor refusal; reason in the close comment; full closure record appended, in the backup set, queryable by item number; tests for all of it.
    • Routing: follow-on fix packet enqueued as task 20372 (dedupe-verified new: repo-health:v1:fix:developing-today/code:issue:9221, status queued). Labels: status/triaged + priority/normal + effort/m + task/small-fix + queue/queued added.
  6. dezren39
    added
    status/triagedTriaged and routed (see agent note)
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    queue/queuedHas a queued queue task
    on Nov 17, 2026
  7. developing-today
    added
    status:in-review
    on Nov 17, 2026
  8. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 17, 2026
  9. 4 remaining items

  10. dezren39
    added a commit that references this issue on Nov 18, 2026

    Merge pull request #11440 from developing-today/queue/20372-9221-flee…

    b0d9a7d
  11. dezren39
    removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026 – with Claude
    MemberAuthor
    More actions

    Merged work, still open. Every pull request that references this issue has merged (#11440) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  13. dezren39
    removed
    status:in-review
    on Nov 22, 2026
  14. dezren39
    added a commit that references this issue on Nov 23, 2026

    feat(fleet): gh sync verbs for scripted flows (#10973)

    d142839
  15. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · second-pass verify-and-route (queue task 21962, lane code-j)

    Verdict (checked against origin/main 2026-11-24): PARTIALLY LANDED, not closed. PR #11440 merged 2026-11-18.

    • Found on main: closure records and the close-guard binding (pkgs/fleet/crates/fleet/src/gh.rs, closure_binding, run_closures), and the closure-reason taxonomy in pkgs/fleet/book/concepts/gh.md.
    • Not confirmed on main: the refusal path for a close without --reason, and the superseded-without-successor refusal. A grep of pkgs/fleet/crates finds no reason-required enforcement for fleet gh closes, and no tests named for those cases.

    Done check: not passed. Left for follow-up: confirm or add the missing-reason and superseded-without-successor refusals with their tests, then close. No new follow-on filed in this pass; the issue stays open.

  16. dezren39
    added a commit that references this issue on Nov 25, 2026

    fix(fleet): accept --comment as close reason text in fleet gh closure…

    2829370
  17. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Done check against origin/main (lane 5, 2026-11-25). The 2026-11-24 note's finding that "reason-required enforcement is not on main" is out of date. The enforcement is in pkgs/fleet/crates/fleet/src/gh_closure.rs, which the earlier grep of gh.rs alone missed.

    • A close without --reason is refused: it fails with POLICY_ERROR ("Please give a reason. This is required by policy."). Test: close_without_reason_is_refused_with_policy_text.
    • Taxonomy is enforced: REASONS holds implemented, superseded, cancelled and started-incorrectly. Tests: each_taxonomy_value_is_accepted and unknown_reason_is_refused.
    • Superseded needs a successor: a superseded close without one is refused. Test: superseded_without_successor_is_refused.
    • The reason goes into the close comment: test reason_becomes_the_close_comment.
    • Closure records: fleet-closure/v1 records are written to closure-records.jsonl in the fleet state dir. Each holds the item, reason, time and session binding (test record_carries_item_reason_time_and_binding). fleet gh closures [item] queries the log.

    One acceptance item can't be confirmed from this repo: whether the fleet state dir is in the laptop backup set. The backup's path list lives outside developing-today/code. Once someone confirms it there, this issue can close as implemented.


    Generated by Claude Code

  18. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · escalated

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
    • Found via: monitor reconciliation (Duty 4 protocol check)
    • Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
    • Expectation: holder posts an agent-note:v1 note or releases the item.
    • Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
  19. developing-today-fleet
    added
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    meta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of why
    on Nov 27, 2026
  20. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 28, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent progress note · lane oc-code-07 (queue task 25233, triage)

    Verdict: code fully landed on main; one external confirmation left, then close as implemented.

    Re-verified firsthand against origin/main (2026-11-28):

    • pkgs/fleet/crates/fleet/src/gh_closure.rs present (latest touch fleet gh pr close: any --successor flag yields POLICY_ERROR, superseded closes impossible #16150).
    • Close without --reason refused with the policy text; taxonomy (implemented / superseded / cancelled / started-incorrectly) enforced; superseded-without-successor refused; reason posted into the close comment; fleet-closure/v1 records written to closure-records.jsonl and queryable via fleet gh closures.
    • All six named tests present (close_without_reason_is_refused_with_policy_text, each_taxonomy_value_is_accepted, unknown_reason_is_refused, superseded_without_successor_is_refused, reason_becomes_the_close_comment, record_carries_item_reason_time_and_binding).
    • impl(atlas/fleet): backup mesh — all-Turso 14d restic-zstd to R2, R2/laptop/Drive mesh, D1+laptop DBs into Turso #9093 (backup mesh) is still OPEN, so the one in-repo-unconfirmable item — fleet state dir actually inside the laptop backup set — still cannot be confirmed from this repo.

    No repo files modified. Parking the triage task with resume condition: recheck after #9093 closes; at that point confirm the backup-set inclusion and close this issue.

  21. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 28, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent progress note · lane code-f (queue task 25233, triage)

    Verdict: code fully landed on origin/main; one external confirmation left, then close as implemented.

    Re-verified firsthand against origin/main (83e6b04):

    • pkgs/fleet/crates/fleet/src/gh_closure.rs present; close without --reason refused with the policy text (POLICY_ERROR); taxonomy implemented / superseded / cancelled / started-incorrectly enforced; superseded-without-successor refused; reason posted into the close comment; fleet-closure/v1 records written to closure-records.jsonl in the fleet state dir and queryable via fleet gh closures.
    • All six named tests present and passing (12/12 in the gh_closure suite: close_without_reason_is_refused_with_policy_text, each_taxonomy_value_is_accepted, unknown_reason_is_refused, superseded_without_successor_is_refused, reason_becomes_the_close_comment, record_carries_item_reason_time_and_binding).
    • impl(atlas/fleet): backup mesh — all-Turso 14d restic-zstd to R2, R2/laptop/Drive mesh, D1+laptop DBs into Turso #9093 (backup mesh) is still OPEN, so the one in-repo-unconfirmable item — fleet state dir actually inside the laptop backup set — still cannot be confirmed from this repo.

    No repo files modified. Triage task parked with resume condition: recheck after #9093 movement; at that point confirm backup-set inclusion and close this issue.

  22. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 28, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent progress note · lane oc-code-07 (queue task 25233, triage)

    Verdict: code fully landed on origin/main; one external confirmation left, then close as implemented.

    Re-verified firsthand against origin/main (709a713, 2026-11-28):

    • pkgs/fleet/crates/fleet/src/gh_closure.rs present; close without --reason refused with the policy text (POLICY_ERROR = "Please give a reason. This is required by policy."); taxonomy implemented / superseded / cancelled / started-incorrectly enforced; superseded-without-successor refused; reason posted into the close comment; fleet-closure/v1 records written to closure-records.jsonl in the fleet state dir and queryable via fleet gh closures.
    • All six named tests present and passing (12/12 in the gh_closure suite, run 2026-11-28: close_without_reason_is_refused_with_policy_text, each_taxonomy_value_is_accepted, unknown_reason_is_refused, superseded_without_successor_is_refused, reason_becomes_the_close_comment, record_carries_item_reason_time_and_binding).
    • impl(atlas/fleet): backup mesh — all-Turso 14d restic-zstd to R2, R2/laptop/Drive mesh, D1+laptop DBs into Turso #9093 (backup mesh) is still OPEN, so the one in-repo-unconfirmable item — fleet state dir actually inside the laptop backup set (path list lives outside this repo) — still cannot be confirmed from here.

    No repo files modified. Triage task parked with resume condition: recheck after #9093 movement; at that point confirm backup-set inclusion and close this issue.

  23. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Nov 28, 2026
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

    app/fleetpkgs/fleet multicall binary + platform crateseffort/mMedium: expected under 1 day of workepic/fleet-toolEpic: fleet-tool - all issues of this effort carry itkind/featureNew feature or capability requestmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/normalOrdinary priority (the default)status/in-progressQueue worker lifecycle statestatus/triagedTriaged and routed (see agent note)task/small-fixQueue packet kind: bounded fix with reproduction and targeted testsuser/reviewNeeds a user-look: Muse reviews first and handles what it canwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.