Files
crank/_bmad-output/planning-artifacts/architecture/architecture-crank-2026-08-03/reviews/review-rubric.md
T

75 lines
6.1 KiB
Markdown

# Reviewer Gate — Good-Spine Rubric
## Verdict
**PASS WITH FIXES.** The spine is unusually complete for initiative altitude: the paradigm is named, brownfield boundaries are mostly ratified, all FR/NFR areas are mapped, AD rules are generally enforceable, and Deferred does not hide a major architectural choice. The fixes below remove three real cross-unit divergences before finalization.
Lint evidence: `lint_spine.py` passed with zero mechanical findings.
## Critical
None.
## High
### H-1 — Durable telemetry has no bound persistence envelope
- **Touches:** AD-12, AD-18, AD-25, topology; FR-31 / NFR-O2a.
- **Problem:** AD-12 mandates a per-process durable disk spool, while AD-25 permits read-only container filesystems and AD-18 gives the correctness set a shared 100 GB disk/headroom envelope. The topology shows logical spools but does not bind persistent mounts, quota reservation, crash-consistent acknowledgement, permissions/encryption, or separation from PostgreSQL/artifact safety reserve. Independent app implementations can therefore be “durable” in incompatible ways, and an ephemeral/container-local spool would violate restart completeness.
- **Disposition:** **Autofix.** Bind either dedicated quota-reserved persistent volumes per process or one explicitly owned local collector/WAL boundary; state write-before-accept/recovery semantics, filesystem compatibility, and that the measured 30-hour budget is outside PostgreSQL/artifact reserve.
### H-2 — Emergency Load Run stop is not independently reachable
- **Touches:** AD-14, AD-19, deployment topology; FR-38..FR-39.
- **Problem:** AD-14 requires an independent local kill path and reserved control capacity, but AD-19 routes UI product state only through Admin API and the topology exposes no operator endpoint/CLI/signal path to `load-runner`. Builders can choose incompatible stop mechanisms, including one that fails exactly when Admin/worker pools saturate.
- **Disposition:** **Autofix.** Bind the independent operator surface and trust boundary (for example, local CLI/Unix socket or authenticated runner control listener), its authorization/audit behavior, and stop semantics for new versus in-flight work; show it in topology.
### H-3 — UI ↔ GlitchTip trace navigation is mapped but not invariant
- **Touches:** AD-11..AD-13, AD-19; FR-27..FR-30, especially FR-28.
- **Problem:** IDs are persisted and boundary errors carry them, but no AD requires Logs/Task/Load Run UI to search/copy a local Trace ID, generate a configured deep link, or suppress a false “available in GlitchTip” claim when a Telemetry Loss Record exists. The capability map is not an enforceable rule, so UI and backend units can satisfy their local contracts while the user's principal diagnosis path remains broken.
- **Disposition:** **Autofix.** Add this end-to-end navigation contract to AD-11 or AD-19, including backend-unavailable/loss-record behavior and the required cross-boundary E2E evidence.
## Medium
### M-1 — Admission policy timing for queued Tasks is ambiguous
AD-23 does not say whether the persisted `ExecutionAdmission` snapshot is authoritative at enqueue, revalidated at claim, or both. Bind which changes (revocation, capability archive, limits, deadlines) invalidate queued work. **Disposition: discuss/autofix.**
### M-2 — Topology contradicts the UI boundary
The topology includes `UI --> MCP`, while AD-19 says UI accesses product state only through Admin API. Clarify whether this is merely reverse-proxy routing for external MCP clients or remove the edge. **Disposition: autofix.**
### M-3 — Evidence signatures lack a trust-root owner
AD-20 binds signatures and fail-closed verification but not who owns the signing key, how the verifier obtains/trusts it, or how rotation/revocation is represented. Two CI/release units could produce mutually unverifiable manifests. **Disposition: autofix in AD-20/AD-25.**
## Low
### L-1 — Current-technology evidence should be normalized
The MCP Tasks source path in frontmatter is not the canonical extension host, and the 2026-07-28 line is still treated as an RC candidate at authoring. Preserve the safe feature-freeze gate, but record canonical official URLs/status and the verified-at date in the evidence/memlog. **Disposition: autofix metadata.**
## Checklist Summary
- Real divergence points: **pass with H-1..H-3 fixes**.
- Enforceability of ADs: **pass**, except the three contracts above and M-1.
- Deferred safety: **pass**; deferred tuning and later HA/adapters are bounded by existing invariants.
- Brownfield fit: **pass**; existing crate boundaries, MCP revisions, UI model and migration ledgers are acknowledged rather than erased.
- PRD coverage: **broadly pass**; FR-1..FR-54 and NFR families are mapped, with FR-28 requiring an actual invariant.
- Initiative operational dimensions: **pass** for deployment, offline operation, security, migrations, backup/restore, upgrade, observability, capacity and release evidence, subject to the physical spool and kill-path fixes.
## Finalizer resolution
Все findings применены до handoff:
- **H-1:** AD-12 теперь фиксирует отдельные persistent quota-reserved volumes, write-ahead fsync/recovery/ack, permissions/encryption и изоляцию safety reserve.
- **H-2:** AD-14 и topology фиксируют local operator CLI → permission-restricted Unix socket → reserved runner control runtime, audit и stop semantics.
- **H-3:** AD-19 фиксирует search/copy/deep-link/loss-record behavior и обязательный cross-boundary E2E.
- **M-1:** AD-23 разделяет pinned enqueue semantics и claim-time authorization/publication/revocation/deadline/capacity revalidation.
- **M-2:** topology маркирует UI→MCP только как reverse-proxy route для MCP client, browser state идёт в Admin API.
- **M-3:** AD-20 фиксирует repository-pinned `release-trust.json`, protected private keys и rotation/revocation semantics.
- **L-1:** frontmatter содержит canonical Tasks extension URL; RC status остаётся non-binding до feature-freeze verification.
**Post-fix verdict: GO.**