Record the independent prototype implementation review brief
1 file changed,
+78
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R1.md+78 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R1.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R1.md| new file mode 100644 |
| index 000000000..32ba46cf0 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R1.md |
| @@ -0,0 +1,78 @@ |
| +# Review brief: team-service local prototype, implementation round 1 of 3 |
| + |
| +Repo carlos/platform, branch `team-service-prototype`. |
| +Code tip: `b96bd5866f8c89f94f6b397c113f71fa23df611c`. |
| +Base on Amadan main: `65420a4d9e0d919743ea2e95e20b1a649605db3d`. |
| +Under review: that base..tip diff, principally `internal/team` and |
| +`internal/teamcontract`, plus the implementation-plan progress update. |
| + |
| +Authorities merged in main at `21738194`: |
| +`docs/superpowers/specs/2026-11-01-team-service-design.md` and |
| +`docs/superpowers/plans/2026-11-01-team-service.md`. |
| +Design review history: Fable R1 and R2, R2 accepted. This is the first review |
| +of implementation, not another design round. Do not reopen settled product |
| +choices. The spec's review record documents the prior design findings. |
| + |
| +You are an independent Opus reviewer. Read the complete changed code and its |
| +tests. Verify claims against source. No edits, shell commands, live requests, |
| +credential access or subagents. Do not run the full suites. |
| + |
| +## Fixed scope |
| + |
| +- This is the offline local execution core and a visible fixture workflow. |
| + It makes no live provider/forge calls and adds no console route or command. |
| + The Go store API is for trusted control-plane callers; it is not an |
| + authenticated worker transport. Network identity, sandbox runner, UI, |
| + memory/conversation persistence and real adapters are later gated work. |
| +- The first job fixes an account's limits in this prototype; proposals cannot |
| + change them later. Depth is explicitly limited to one child-job level. |
| +- No automatic merge, deploy, production credentials or customer messaging. |
| +- Minimal anthropomorphism; capabilities, jobs, attempts and evidence. |
| +- Prefer explicit refusal of unsupported cases over a wider live scope. |
| + |
| +## What to check |
| + |
| +1. Account/parent policy inheritance; concurrency and budget transactions, |
| + checked arithmetic, reservations, duplicate or late settlement and |
| + unknown outcomes. Prove that a new job cannot increase account limits. |
| +2. Claim/renew/complete/cancel races, fencing and containment. Parent |
| + cancellation must stop descendants. A replaced Store cannot resume or |
| + close a newer owner. Consider in-flight calls and startup recovery. |
| +3. Action identity, canonical payloads, replay classification, dispatch |
| + boundaries, lost replies and the shared outbox path. Identify unsafe |
| + replay or an unbounded effect in the actual local API contract. |
| +4. Frozen reproduction, candidate/review bindings and success predicates. |
| + Skipped/missing/compile-error checks must never satisfy verification. |
| + Distinguish trusted fixture provenance from the unbuilt network transport. |
| +5. Whether tests exercise the advertised properties, including the generic |
| + business fixture, and whether any claimed local functionality is absent. |
| + |
| +Parent integration checks already found and fixed strict-JSON trailing |
| +bytes, duration overflow, parent depth escalation, per-job account-cap |
| +escalation, descendant cancellation and stale Store ownership. Their witness |
| +tests are in `internal/teamcontract`; verify the fixes, not just the test |
| +names. These are development checks, not earlier independent review rounds. |
| + |
| +Validation before this review: both packages pass ordinary and race tests |
| +using the machine's default Go cache. Full repository gate is running. |
| +Neither package is linked into the root binary on Linux amd64 or arm64, as |
| +verified by `go list -deps .`; no root-census unit changed in this diff. |
| + |
| +## Severity and stopping rules |
| + |
| +- P1: unsafe within this slice, does not compile, a test fails, or the |
| + implemented contract does not work. State a concrete failure scenario, |
| + verified file:line evidence and the invariant/trust boundary (fault family). |
| +- P2: wrong or missing, fixed without reopening this review. Changed security, |
| + root, termination or production-storage behaviour still needs its required |
| + check within the same budget. |
| +- P3: clarity/polish; record it for follow-up, never start another round. |
| + |
| +Stop at the first round without P1. Do not promote a P2 to keep review open. |
| +A fourth round requires Paul's explicit go. Two consecutive rounds producing |
| +findings in the same fault family require a scope/enforcement decision, not |
| +a third patch loop. Apply AGENTS.md's stopping rules to this review. |
| + |
| +Return ranked findings with evidence, scenario, minimal fix and fault family. |
| +End with exactly one verdict: READY (no P1/P2), READY AFTER FIXES (P2 only), |
| +or NOT READY (P1s listed). Do not edit files or spawn reviewers/subagents. |