ποΈ Standard Marchemalo β Implementation Review Loop
"No code in production without Council validation at 9+/10"
Overviewβ
Every significant implementation ticket follows an iterative validation loop until achieving a score β₯9/10 from the Council.
What is "Significant"?β
A ticket is significant if it meets both criteria:
- β₯3 story points
- AND at least one of:
- π Security-related
- π₯ Breaking change
- π New pattern (not yet in codebase)
- ποΈ Critical infrastructure
The Review Loopβ
ββββββββββββββββββββββββββββββββββββββββββββββββ
β MAX 3 ITERATIONS β
β (then escalate/split) β
βΌ β
βββββββββββββββββββββββββββββββββββββββ β
β STEP 1: Code Scan β β
β β β
β β’ Scan existing structure β β
β β’ Identify patterns to follow β β
β β’ Produce implementation PLAN β β
β β’ Include proposed code β β
β β β
β β±οΈ Timebox: 2h max β β
ββββββββββββββββββββ¬βββββββββββββββββββ β
β β
βΌ β
βββββββββββββββββββββββββββββββββββββββ β
β STEP 2: Council Review β β
β β β
β JUDGES (context-dependent): β β
β β’ Archi 50x50 (always) β β
β β’ Team Coca (if security) β β
β β’ OSS Killer (if scope/business) β β
β β’ Better Call Saul (if IP/legal) β β
β β β
β β±οΈ Timebox: 1h max β β
ββββββββββββββββββββ¬βββββββββββββββββββ β
β β
βΌ β
βββββββββββββββββββββββββββββββββββββββ β
β STEP 3: Verdict β β
β β β
β Score = MINIMUM of all reviewers β β
β (not average - strictest wins) β β
β β β
β Score < 9/10 + iteration < 3? β β
β β Corrections β Back to STEP 1 βββββββββββββββββββββββββββββ
β β LOOP
β Score < 9/10 + iteration = 3? β
β β ESCALATE (see below) β
β β
β Score β₯ 9/10? β
β β STEP 4 β
ββββββββββββββββββββ¬βββββββββββββββββββ
β
βΌ (Score β₯ 9/10 only)
βββββββββββββββββββββββββββββββββββββββ
β STEP 4: Implementation β
β β
β Score 10/10: β
β β Direct to prod, flag OFF β
β β
β Score 9/10: β
β β Prod with feature flag ON β
β β Enhanced monitoring 48h β
β β Post-deploy review β
ββββββββββββββββββββ¬βββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β STEP 5: Capitalization β
β β
β If new pattern validated: β
β β Create ADR β
β β Add to Patterns Library β
β β
β Always: β
β β Log in review history β
β β Update metrics β
βββββββββββββββββββββββββββββββββββββββ
Fast-Track (Security Hotfix)β
For critical security hotfixes only:
| Criteria | Value |
|---|---|
| Conditions | Active CVE or ongoing breach, immediate prod impact |
| Process | Team Coca review ONLY |
| Threshold | β₯8/10 sufficient |
| Timebox | 4h max total |
| Follow-up | Full review within 48h post-deploy |
Arbitrationβ
Reviewer Disagreementβ
Rule: MINIMUM score prevails.
Example:
Archi 50x50: 9/10
Team Coca: 7/10
OSS Killer: 9/10
β Final score = 7/10 (Team Coca)
β Corrections required on Coca's points
Deadlock (>24h without consensus)β
- Each reviewer presents arguments (5min each)
- BDFL makes final decision
- Decision documented in ADR
- No appeal
After 3 Iterations Without β₯9/10β
| Option | Description |
|---|---|
| SPLIT | Break ticket into smaller parts |
| DEFER | Postpone to next cycle with new scope |
| BDFL | Escalate for forced decision (rare) |
Scoring Scaleβ
| Score | Meaning | Action | Deployment |
|---|---|---|---|
| 10/10 | Perfect | β Implement | Direct to prod |
| 9/10 | Excellent β minor risks identified | β Implement | Prod + feature flag |
| 8/10 | Good β issues to monitor | β Corrections | (Staging if fast-track) |
| 7/10 | Acceptable β significant issues | β Corrections | β |
| <7/10 | Insufficient | β Major rework | β |
The Councilβ
Reviewers and Activationβ
| Reviewer | Activated if... | Focus |
|---|---|---|
| Archi 50x50 | ALWAYS | Patterns, consistency, maintainability |
| Team Coca | Tag security OR auth/crypto/input | Full security review |
| OSS Killer | New feature OR unclear scope | Business value, over-engineering |
| Better Call Saul | Tag legal OR IP/licensing/data | Compliance, legal risks |
Minimum Compositionβ
| Ticket Type | Required Reviewers |
|---|---|
| Standard feature | Archi |
| Feature + security | Archi + Team Coca |
| Feature + new scope | Archi + OSS Killer |
| Security fix | Team Coca (fast-track possible) |
| Anything with IP/data | Archi + Better Call Saul |
Reviewer Criteriaβ
Archi 50x50 (40 years XP)β
| Criterion | 10/10 | 9/10 | <9/10 |
|---|---|---|---|
| Patterns | 100% follows existing | 1 justified deviation | Inconsistent |
| Lifecycle | status + soft delete + audit | 1 minor missing | Major gaps |
| Config | Pydantic Settings | Acceptable mix | os.getenv everywhere |
| Tests | Unit + Integration + Edge | Unit + Integration | Insufficient |
| Docs | Docstrings + README | Docstrings | Nothing |
Team Coca (Security Red Team)β
Score = minimum of all 4 sub-reviewers.
Chucky (Crypto)β
| Criterion | 10/10 | 9/10 | <9/10 |
|---|---|---|---|
| Private key | Never stored/logged | β | Any violation |
| Entropy | Crypto secure | β | random() |
| X.509 extensions | All present | β | Missing |
N3m0 (Injection)β
| Criterion | 10/10 | 9/10 | <9/10 |
|---|---|---|---|
| Input validation | Regex + sanitize | Sanitize only | None |
| Injection tests | Complete parametrized | Basic | None |
Gh0st (Secrets)β
| Criterion | 10/10 | 9/10 | <9/10 |
|---|---|---|---|
| Logs | No secrets | Warning if debug | Secret in logs |
| Errors | Generic messages | β | Stack traces |
Pr1nc3ss (Access Control)β
| Criterion | 10/10 | 9/10 | <9/10 |
|---|---|---|---|
| RBAC | Complete + tested | Complete | Missing |
| Isolation | 404 (not 403) + tested | 404 | Info disclosure |
| Rate limit | Implemented | Documented TODO | Absent |
OSS Killer (Skeptical VC)β
| Criterion | 10/10 | 9/10 | <9/10 |
|---|---|---|---|
| Scope | Exactly the ticket | +1 nice-to-have | Scope creep |
| YAGNI | No "just in case" code | 1 future abstraction | Over-engineering |
| Business value | Clear and measurable | Clear | Vague |
| E2E Tests | Automated | Semi-auto | Manual curl |
Review Templateβ
## Council Review β [TICKET-ID] [Title]
**Iteration:** X/3
**Date:** YYYY-MM-DD
**Activated Reviewers:** [Archi] [Coca] [OSS] [Saul]
### Scores
| Reviewer | Score | Blockers | Comment |
|----------|-------|----------|---------|
| Archi 50x50 | X/10 | 0 | ... |
| Team Coca | X/10 | X | ... |
| OSS Killer | X/10 | 0 | ... |
**Final Score: X/10** (minimum)
### P0 Corrections (Blocking for 9+)
1. [ ] ...
2. [ ] ...
### P1 Corrections (Recommended)
1. [ ] ...
### Verdict
- [ ] β
**APPROVED 10/10** β Direct to prod
- [ ] β
**APPROVED 9/10** β Prod + feature flag + 48h monitoring
- [ ] β **REJECTED** β Corrections required (iteration X/3)
- [ ] π¨ **ESCALATE** β 3 iterations reached, BDFL decision required
### Capitalization
- [ ] New pattern β Create ADR
- [ ] Existing pattern validated β Ref: ADR-XXX
Metrics to Trackβ
| Metric | Target | Alert if... |
|---|---|---|
| Avg review time | <1h | >2h |
| Avg iterations | <2 | >2.5 |
| 1st iteration approval rate | >30% | <20% |
| BDFL escalation rate | <5% | >10% |
| Review/code overhead | <30% | >50% |
Anti-Patternsβ
| β Forbidden | β Alternative |
|---|---|
| "Good enough for MVP" | Simplify scope to reach 9+ |
| "We'll fix in v2" | Fix now or split ticket |
| "Time pressure" | Fast-track if truly critical |
| "It's just internal" | Same standard everywhere |
| "Tests later" | Tests in initial plan |
| "Review = overhead" | Review = quality investment |
Applicability Matrixβ
| Type | Review Loop? | Reviewers |
|---|---|---|
| Feature β₯3pts + criterion | β YES | Per tags |
| Feature β₯3pts simple | β οΈ Light Archi | Archi only |
| Feature <3pts | β Standard PR review | β |
| Security fix | β Fast-track | Team Coca |
| Critical hotfix | β Fast-track | Team Coca |
| Major refactor | β YES | Archi + OSS |
| Config change | β οΈ Per impact | Archi |
| Doc/typo | β NO | β |
Storage Locationsβ
| What | Where |
|---|---|
| This standard | docs.gostoa.dev/governance/ |
| Review template | Linear (ticket template) |
| Review history | Notion (confidential, CIR) |
| Metrics | Grafana dashboard |
| ADRs | docs.gostoa.dev/adr/ |
| Patterns Library | docs.gostoa.dev/patterns/ |
Changelogβ
v1.1 (2026-01-28)β
- Changed threshold from 10/10 to 9/10 (pragmatic)
- Added timeboxing: max 3 iterations
- Added arbitration: minimum score + BDFL escalation
- Added fast-track for security hotfixes
- Refined scope: β₯3pts AND (security OR breaking OR new pattern)
- Added capitalization: ADR + Patterns Library
- Added tracking metrics
v1.0 (2026-01-28)β
- Initial version
- Reviewed by OSS Killer (7/10) and Archi 50x50 (8/10)
- Did not pass its own test β v1.1 created