Skip to content

docs(future): 12k-line PROTOCOL.md cataloging per-subsystem improvements#171

Merged
NagyVikt merged 2 commits into
mainfrom
claude/protocol-future-docs-hrSwK
May 17, 2026
Merged

docs(future): 12k-line PROTOCOL.md cataloging per-subsystem improvements#171
NagyVikt merged 2 commits into
mainfrom
claude/protocol-future-docs-hrSwK

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Summary

  • Adds docs/future/PROTOCOL.md (~12,000 lines) as a long-horizon, subsystem-by-subsystem improvement protocol for codex-fleet.
  • Covers every bash script under scripts/codex-fleet/, every Rust crate under rust/, plus 18 cross-cutting concerns (OpenSpec, Colony, accounts, observability, security, perf, resilience, cost, UI, i18n, versioning, etc.).
  • Each section follows a uniform schema: mission, current state, pain points, improvement protocols, backlog, open questions, dependencies, risks, migration plan, out-of-scope.
  • Every improvement carries a lifecycle state (PROPOSED / ACCEPTED / SCHEDULED / IN-PROGRESS / SHIPPED / DEFERRED / REJECTED) plus problem, hypothesis, proposal, steps, lane, verification, acceptance criteria, rollback, risks, metrics, and refs.
  • Closes with: env-var registry, daemon cadence reference, quality gates checklist, mega backlog, section-status snapshot table, dependency matrix seed, and an alphabetical maintainer index.

Notes

  • The doc is intentionally verbose so reviewers can pick up cold; AGENTS.md caveman compression rules do not apply to specs/protocols.
  • Every improvement cites at least one real path in refs to keep entries grounded.
  • Captains are unassigned by default and should be filled in at first review.
  • Slugs are stable; renames require deprecation per the meta-protocol section.

Test plan

  • Open docs/future/PROTOCOL.md in a markdown renderer and spot-check section anchors.
  • Run wc -l docs/future/PROTOCOL.md and confirm it lands near 12,000.
  • Walk the TOC and verify every section title is reachable.
  • Cross-check three random refs: entries against the working tree.
  • Confirm the section-status snapshot table includes every numbered section.

Generated by Claude Code

claude added 2 commits May 17, 2026 04:04
…vements

Adds docs/future/PROTOCOL.md as a long-horizon, subsystem-by-subsystem
improvement protocol covering every bash script, Rust crate, and
cross-cutting concern in codex-fleet. Each section follows the same
schema (mission, current state, pain points, improvement protocols,
backlog, open questions, dependencies, risks, migration plan,
out-of-scope) and every improvement carries a lifecycle state plus
verification, acceptance, rollback, and metrics.

Closes with section-status snapshot, dependency matrix seed, and
maintainer index for fast rg lookup.
Implements the foundational governance lane of the future protocol:
the scaffolding that makes every other proposed improvement enforceable.

Tooling under scripts/protocol/:
- protocol-state.sh: lifecycle-state counts / table / list per state
- check-states.sh: assert every improvement carries one valid state line
- check-refs.sh: assert every improvement cites >=1 real path
- check-budget.sh: warn when a section exceeds 1.5x its declared budget

Templates and indices:
- docs/future/decisions/{README,_template}.md: ADR-lite scaffolding
- docs/future/reviews/{README,_template}.md: bi-weekly review scaffolding

Top-level workflow:
- justfile: protocol-state, protocol-check, protocol-check-*, ci recipes
- .editorconfig: shared editor defaults (utf-8, lf, trim trailing ws)

PROTOCOL.md gains an Implementation Log appendix that records SHIPPED
governance entries, their artifacts, and the known gaps (no ADR backfill
yet, no first review held yet, CI wiring still pending).

All four governance scripts pass against the current PROTOCOL.md.
@NagyVikt NagyVikt marked this pull request as ready for review May 17, 2026 12:22
@NagyVikt NagyVikt merged commit b83e011 into main May 17, 2026
5 checks passed
NagyVikt added a commit that referenced this pull request May 20, 2026
…t sweep) (#199)

Audited docs/future/PROTOCOL.md against the actual repo + git history and
flipped 20 stale `state: PROPOSED` lines to `state: SHIPPED` for items
whose implementation has clearly landed on main. Each item's acceptance
verification command runs green and the touched script/file already
implements the proposal.

Updates (section → slug → representative PR):

- 1.4.1 Formal lifecycle states for every improvement entry → PR #171
  (scripts/protocol/{protocol-state,check-states}.sh + state lines)
- 7.4.1 --help/--version on stall-watcher.sh → PR #1
- 9.4.1 --help/--version on plan-watcher.sh → PR #46
- 10.4.1 --help/--version on review-queue.sh → PR #37
- 11.4.1 --help/--version on review-pane-scanner.sh → PR #41
- 12.4.1 --help/--version on auto-reviewer.sh → PR #99
- 17.4.1 --help/--version on show-fleet.sh → PR #139
- 18.4.1 --help/--version on token-meter.sh → PR #17
- 19.4.1 --help/--version on warm-pool.sh → PR #1
- 20.4.1 --help/--version on spawn-fleet.sh → PR #1
- 21.4.1 --help/--version on dispatch-plan.sh → PR #133
- 23.4.1 --help/--version on proactive-probe.sh → PR #1
- 24.4.1 --help/--version on claim-trigger.sh → PR #1
- 27.4.1 --help/--version on claude-supervisor.sh → PR #116
- 33.4.1 --help/--version on plan-tree-pin.sh → PR #1
- 36.4.1 --help/--version on supervisor.sh → PR #1
- 37.4.1 --help/--version on patch-codex-prompts.sh → PR #1
- 39.4.1 --help/--version on down.sh → PR #1
- 41.4.1 --help/--version on add-workers.sh → PR #1
- 42.4.1 --help/--version on codex-fleet-2.sh → PR #1

Diff is exactly 20 `- state: PROPOSED` → `- state: SHIPPED` line edits
in docs/future/PROTOCOL.md; nothing else touched. Both governance
checks still pass:

  bash scripts/protocol/check-states.sh                # exit 0
  bash scripts/protocol/protocol-state.sh --summary    # SHIPPED: 0 → 20

PR refs live in this commit body / PR description rather than inline in
the state line, because both check-states.sh and protocol-state.sh
require the state token to be the bare enum value (e.g. `SHIPPED`); any
suffix breaks both checks.

Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants