Skip to content

Commit 65709ab

Browse files
committed
feat: add operator report closeout
1 parent 27bc49c commit 65709ab

10 files changed

Lines changed: 583 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8484
- `brigade learn plan/doctor/import-issues` for bounded local learning candidates that become reviewed tasks, handoffs, suppressions, accepted risk, archive, or dismissal.
8585
- `brigade tools pack build/list/show/archive` and `brigade tools sync plan/apply` for portable tool evidence bundles and reviewed projection sync over the existing managed projection path.
8686
- `brigade work backup closeout`, `brigade security closeout`, `brigade handoff closeout`, `brigade memory care closeout`, and `brigade work acceptance` for reviewable local closeout and acceptance rollup receipts.
87-
- `brigade center status/activity/reviews/templates` and `brigade center report plan/build/list/show/archive` for read-only local operator-center summaries and local report bundles over work, scanner, review, handoff, tool, learning, context, project, security, and release state.
87+
- `brigade center status/activity/reviews/templates` and `brigade center report plan/build/list/show/archive/review/compare/closeout` for read-only local operator-center summaries, local report bundles, daily action plans, freshness comparison, and reviewed report closeout over work, scanner, review, handoff, tool, learning, context, project, security, and release state.
8888
- `brigade roadmap audit` and `brigade roadmap patterns` for roadmap closure checks, stale phase warnings, documented command drift, neutral pattern-family coverage, and source-pattern decisions.
8989
- `brigade repos init/list/show/scan/doctor/import-issues` for gitignored local repo-fleet readiness checks, safe setup metadata, fallback guidance detection, and `repo-fleet` work inbox imports.
9090
- `brigade work sweep closeout <sweep-id|latest>` for reviewable sweep closeout records that block unresolved pending imports, support explicit deferrals, and surface unclosed sweeps through inbox hygiene.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ brigade center report build
327327
brigade center report list
328328
brigade center report show <report-id>
329329
brigade center report archive <report-id>
330+
brigade center report review <report-id>
331+
brigade center report compare <report-id>
332+
brigade center report closeout <report-id>
330333
brigade work run
331334
brigade work run --queue-next
332335
brigade work run "review today's changes"

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Goal: make Brigade a safe target for local automations that discover useful work
4848
- Audit roadmap closure and neutral pattern coverage. Status: started with `brigade roadmap audit`, `brigade roadmap patterns`, stale phase warnings, documented command drift checks, roadmap-audit imports, and source-pattern decision records without public reference names.
4949
- Inspect local repo fleet readiness without copying private repo contents. Status: started with gitignored `.brigade/repos.toml`, `brigade repos init/list/show/scan/doctor/import-issues`, safe metadata summaries, AGENTS and fallback guidance detection, repo-fleet imports, and daily-loop health surfacing.
5050
- Close out scanner sweeps after review. Status: started with `brigade work sweep closeout <sweep-id|latest>`, deferred import recording, missing-reference blocking, and inbox hygiene warnings for unclosed sweeps.
51-
- Inspect local operator state from one read-only center view. Status: started with `brigade center status/activity/reviews/templates` and `brigade center report plan/build/list/show/archive`, aggregating local work, imports, sweeps, reviews, handoffs, tools, learning, context packs, projects, security, and release state into JSON and local report bundles without a daemon or server.
51+
- Inspect local operator state from one read-only center view. Status: started with `brigade center status/activity/reviews/templates` and `brigade center report plan/build/list/show/archive/review/compare/closeout`, aggregating local work, imports, sweeps, reviews, handoffs, tools, learning, context packs, projects, security, and release state into JSON, action plans, closeouts, and local report bundles without a daemon or server.
5252

5353
## Later Phase: Chat Surface Scanners
5454

docs/operator-center.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ brigade center report build
1818
brigade center report list
1919
brigade center report show <report-id>
2020
brigade center report archive <report-id>
21+
brigade center report review <report-id>
22+
brigade center report compare <report-id>
23+
brigade center report closeout <report-id>
2124
```
2225

2326
`status` summarizes active work, pending tasks, pending imports, scanner sweep health, review health, handoff drafts, tool catalog health, learning candidates, context packs, release readiness, release candidates, repo fleet, roadmap health, project consolidation, and security health.
@@ -51,6 +54,22 @@ Each bundle contains:
5154
- `OPERATOR_REPORT.html`, a dependency-free escaped static rendering of the Markdown report.
5255
- `CENTER_EVIDENCE.json`, stable JSON evidence for wrappers.
5356

54-
`brigade center report plan` previews the same evidence without writing. `list`, `show`, and `archive` inspect or move local bundles. Report health warns when the latest bundle is stale, references missing receipts, was built from an older git HEAD, or newer center activity exists. `brigade work brief`, `brigade work doctor`, `brigade release doctor`, and release candidate evidence surface those report health checks.
57+
`brigade center report plan` previews the same evidence without writing. `list`, `show`, and `archive` inspect or move local bundles. Report health warns when the latest bundle is unclosed, stale, references missing receipts, was built from an older git HEAD, or newer center activity exists. `brigade work brief`, `brigade work doctor`, `brigade release doctor`, release candidate evidence, and release candidate compare surface those report health checks.
58+
59+
`brigade center report review <report-id|latest>` groups actionable report items into:
60+
61+
- urgent blockers
62+
- pending work imports
63+
- code review findings
64+
- handoff drafts
65+
- scanner sweep issues
66+
- tool approvals, checkpoints, and runs
67+
- backup, security, and memory-care issues
68+
- release readiness and candidate issues
69+
- project and learning candidates
70+
71+
`brigade center report compare <report-id|latest>` checks the report against current local state. It warns when HEAD changed, referenced receipts are missing, newer activity exists, newer release/readiness/verification/review/sweep/security receipts exist, or the review queue changed.
72+
73+
`brigade center report closeout <report-id|latest>` writes `CLOSEOUT.json` in the report bundle. Closeout states are `reviewed`, `deferred`, `superseded`, and `archived`. Closeout stores a reviewed timestamp, reason, unresolved item count, deferred item ids, and report fingerprint.
5574

5675
The operator center never invokes scanners, tools, reviewers, handoff ingestion, release publishing, git commands that mutate state, or remote APIs. Only `center report build` and `center report archive` write local gitignored report bundle files.

docs/release-candidates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ brigade release candidate archive <candidate-id>
2222
.brigade/release/candidates/
2323
```
2424

25-
`list` and `show` inspect bundles. `compare` checks the candidate against current local state, including changed HEAD, missing referenced receipts, newer verification or review evidence, newer scanner or security evidence, and docs changed after the bundle was built.
25+
`list` and `show` inspect bundles. `compare` checks the candidate against current local state, including changed HEAD, missing referenced receipts, newer verification or review evidence, newer scanner, security, or operator report evidence, and docs changed after the bundle was built.
2626

2727
`closeout` writes a local `CLOSEOUT.json` into the candidate bundle with `draft`, `reviewed`, `superseded`, or `archived` state. `archive` moves a reviewed candidate into the local archive so it no longer appears as the latest candidate.
2828

@@ -42,7 +42,7 @@ Each candidate contains:
4242

4343
These are warnings because candidate bundles are review artifacts. They do not replace release readiness checks, verification, code review closeout, or content guard.
4444

45-
Release readiness and candidate bundles include operator report health so an operator can tell whether the local daily review packet is fresh before publishing manually.
45+
Release readiness, candidate bundles, and candidate compare include operator report health so an operator can tell whether the local daily review packet is fresh and closed out before publishing manually.
4646

4747
## Boundary
4848

docs/roadmap-completion-plan.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ Implementation scope:
567567
- Add `brigade center activity`.
568568
- Add `brigade center reviews`.
569569
- Add `brigade center templates`.
570-
- Add `brigade center report plan/build/list/show/archive`.
570+
- Add `brigade center report plan/build/list/show/archive/review/compare/closeout`.
571571
- Aggregate existing local state only: work sessions, pending tasks, pending imports, scanner runs and sweeps, review runs, handoff drafts, tool approvals, checkpoints, context packs, learning candidates, repo fleet, project decisions, security health, release readiness, and release candidates.
572572
- Every center item includes subsystem, local id, status, safe summary, suggested next command, and priority or severity when available.
573573
- Keep center commands read-only and JSON-first for future wrappers.
@@ -576,7 +576,7 @@ Implementation scope:
576576
Acceptance:
577577

578578
- Tests cover center status, activity, reviews, and templates in text and JSON.
579-
- Tests cover center report plan, build, list, show, archive, freshness checks, and release/work integration.
579+
- Tests cover center report plan, build, list, show, archive, review, compare, closeout, freshness checks, and release/work integration.
580580
- Tests prove center commands are read-only.
581581
- Public docs describe the operator center as local CLI output, not a hosted dashboard, app server, daemon, or sync engine.
582582

@@ -588,9 +588,16 @@ Phase 36 status:
588588
Phase 37 status:
589589

590590
- Implemented command surface: `brigade center report plan/build/list/show/archive`.
591-
- Operator reports write `OPERATOR_REPORT.md`, `OPERATOR_REPORT.html`, and `CENTER_EVIDENCE.json` under `.brigade/center/reports/`.
591+
- Operator reports write `OPERATOR_REPORT.md`, `OPERATOR_REPORT.html`, `CENTER_EVIDENCE.json`, and optional `CLOSEOUT.json` under `.brigade/center/reports/`.
592592
- Work brief, work doctor, release doctor, and release candidate evidence include operator report freshness.
593593

594+
Phase 38 status:
595+
596+
- Implemented command surface: `brigade center report review/compare/closeout`.
597+
- Report review groups pending items into an action plan with suggested commands.
598+
- Report compare checks changed HEAD, missing receipts, newer local activity, newer subsystem receipts, and changed review queues.
599+
- Report closeout stores reviewed, deferred, superseded, or archived metadata without taking actions on queued items.
600+
594601
## Suggested Execution Order
595602

596603
1. Roadmap audit, inspiration pattern registry, and repo-fleet readiness.

0 commit comments

Comments
 (0)