Title: fleet gh: closure records + reason-required closes (audit trail by construction) · Issue #9221 · developing-today/code · GitHub
Open Graph Title: fleet gh: closure records + reason-required closes (audit trail by construction) · Issue #9221 · developing-today/code
X Title: fleet gh: closure records + reason-required closes (audit trail by construction) · Issue #9221 · developing-today/code
Description: 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...
Open Graph Description: 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 liv...
X Description: 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 clo...
Opengraph URL: https://github.com/developing-today/code/issues/9221
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fleet gh: closure records + reason-required closes (audit trail by construction)","articleBody":"## Problem\n\nIssue/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:\n\n- On 2026-11-12, epic #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.\n- 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 #181, #1307, #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.\n\n## Ask\n\n1. **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 #9178 §(e) (fleet-init run IDs stamped into GitHub operations) and the decision-record convention in #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 #9178 §(e)).\n\n2. **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).\n\n## Acceptance\n\n- [ ] Closing an issue or PR via `fleet gh` without `--reason` exits non-zero with the policy error above; no close is performed.\n- [ ] Closing with `--reason \u003ctaxonomy>` (+ 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.\n- [ ] The transaction record is included in the fleet backup set and is queryable by item number.\n- [ ] Tests cover: missing reason refusal, each taxonomy value, superseded-without-successor refusal, and record contents.\n\nCross-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).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-13T03:29:39Z","url":"https://github.com/developing-today/code/issues/9221"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:615a7169-7bce-b58a-0db0-affebcbbc06c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCE6:4E4E7:32C4ED:42B721:6B0617F9 |
| html-safe-nonce | 83de1596693e331080fac768327e48028576845df37be8d6a80d2c06acf7f374 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0U2OjRFNEU3OjMyQzRFRDo0MkI3MjE6NkIwNjE3RjkiLCJ2aXNpdG9yX2lkIjoiMTIwMjY1NjA1ODQzOTE2NzkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 683ff7f2722fd09f60a527a3eed6bb18b57a153eb50312def430089776264e46 |
| hovercard-subject-tag | issue:6364072963 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/9221/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a9a774bdeda9de351e22d1a3ef64fecf5dc8e176ae3d19dbfce277a0324b232/developing-today/code/issues/9221 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a9a774bdeda9de351e22d1a3ef64fecf5dc8e176ae3d19dbfce277a0324b232/developing-today/code/issues/9221 |
| og:image:alt | 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 liv... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width