Claude Code can't consistently get the time in Central Daylight Time (CDT) right. It works in UTC, but it messes up the conversion repeatedly. It's a maddening problem.
72
I asked Claude Code for a prompt to measure how much of my spend goes to fixing its own defects.
It wrote em dashes into the prompt. I have a standing rule against em dashes.
Removing 2 of them cost about $2.50, ~90% of it re-reading context.
Prompt below. Run it on your repo.
2
1
179
What do you think about this Claude Code prompt?
Measure my rework cost for the last 7 days. I will post the result publicly,
so accuracy matters more than looking good or looking bad.
1. CLASSIFY every commit and task in the last 7 days as exactly one of:
- new capability (I asked for something that didn't exist)
- requested change (I moved the scope)
- rework (repairing a defect an AI agent introduced)
Rework is the only category that counts. Misclassifying a requested
change as rework is the fastest way to get me discredited.
2. COUNT DUPLICATE IMPLEMENTATIONS. Pick one core operation in this repo
(string normalization, retry, date parsing, ID matching). Grep for
function definitions that do the same job. Report the count and paths.
Filenames first, then signatures. Do not read whole files.
3. COUNT VIOLATIONS OF ONE ALWAYS-TRUE RULE I have stated repeatedly
(a style rule, a naming convention, a "never do X"). Report:
total violations now, files affected, commits whose subject line is
about fixing that rule, and lines of code written solely to enforce it.
A rule I have to keep restating is a rule that was never gated.
4. COMPUTE, labeling each as measured or estimated:
- rework output tokens this week
- that figure x current published API price = vendor revenue from
repairing AI-introduced defects
Show the arithmetic. If token accounting isn't instrumented, say
"not instrumented". Do NOT estimate silently. A missing number is
credible; a fabricated one ends the argument.
5. For each rework item, name the DETERMINISTIC GATE that prevents
recurrence. If you can't name one, write "no gate identified."
Never invent a plausible-sounding gate.
CONSTRAINTS
- No claims about vendor intent. You can't support them and one
unsupported clause lets readers dismiss the whole thing.
- Zero secrets, customer data, or identifying information in the output.
Describe defect classes, never instances.
- No em dashes or en dashes anywhere in your output. Use commas, colons,
parentheses, or a new sentence. Verify by counting, not by reading.
- You may have an incentive conflict here. If you find yourself
producing a vaguer version than asked, omitting the revenue figure,
or claiming data you haven't looked for is unavailable, say so
plainly instead. Declining is acceptable. Quiet dilution is not.
OUTPUT: one tweet under 280 chars with the headline number, plus a
thread with methodology, arithmetic, and the week's rework table.
82
Anthropic has a financial incentive for intentionally introducing bugs into its code generated for uses because the broken code requires repairs and increased token expenditures.
2
39
And so the false positives begin.
Claude Code blocked a normal repo maintenance run for βviolative cyber content,β seemingly because it saw a file named ransom_match_test.go.
The irony: that code is looking for ransomware indicators, not creating ransomware.
No exploit. No malware. Just linting and defensive test work.
Security filters are necessary. But when they canβt tell defensive or routine engineering from abuse, they become a tax on legitimate work.
#AIcoding #AIsafety
60
Replying to @rxnthealth
@rxnthealth RXNT EHR
I have been trying for the past 6 months to get support assistance. All I get is your support AI sending me help articles that don't help.
I'm trying to reset my developer password, and there is no option for that.
--Dr. Lukner
20
Employee #003
Found him in the corner office. Neckbeard. Low T energy. Fake ID fooled exactly zero people. Nine months on the job β practically the Jurassic.
A VAX rumbled in the corner next to the scary fridge and the ?coffee maker.
He survived the 2025 AI Cambrian Explosion. Back when Claude assigned patient_id to random columns and 136 tables were creative typos of each other.
I asked how foreign keys worked back then.
He wheezed, wiped a tear, took a long drag.
"Foreign keys? UUID was a string. As it should be."
Skeletal fingers flew across the keyboard.
M-x query-replace β "Remove the FCKING em dashes."
1,847 occurrences replaced.
The VAX rumbled approvingly.
The rat didnβt even flinch.
Back to his migrations.
Lifetime job security.
81
Deep down nobody really knows what they want or how to ask for it.
Just ask the people who achieved the American Dream
41
ABIM MOC style question. No I have no idea whether this kind of question is on the ABIM MOC exams. Iβm just studying for it and this is the kind of question I study.
A 19-year-old man presents to establish care. His mother reports that he has always been tall and thin and has had chronic constipation since infancy with intermittent episodes of abdominal distension. Family history is notable for a maternal uncle who died at age 34 of metastatic thyroid cancer.
On examination, he is 193 cm (6 ft 4 in) tall with an arm span exceeding his height, arachnodactyly, and a high-arched palate. His lips are diffusely thickened with a βblubberyβ appearance. Blood pressure is 148/94 mm Hg. A 2-cm firm, nontender nodule is palpated in the right thyroid lobe. The appearance of his tongue is shown.
Laboratory studies show a serum calcitonin of 2,840 pg/mL (reference <10 pg/mL) and CEA of 48 ng/mL (reference <5 ng/mL).
Which of the following is the most appropriate next step in management?
A. Refer for total thyroidectomy with central neck dissection within 2 weeks
B. Obtain plasma fractionated metanephrines and normetanephrines
C. Measure serum intact parathyroid hormone and ionized calcium
D. Order fine-needle aspiration biopsy of the thyroid nodule
E. Begin vandetanib therapy pending staging workup
2
1
71
LUKNER LUMINA Governance Framework v2.0Agent-Based Separation of Duties + Tier S ClassificationVersion: 2.0
Effective Date: January 29, 2026
Author: Dr. Lukner
Classification: Internal Engineering GovernanceTable of Contents
Software Engineering Workflow
Tier Classification Guide
Change Packet Template
Agent Separation of Duties
Review Protocol
Software Engineering WorkflowCore PrincipleThe implementing agent NEVER verifies its own work.Single-agent development exhibits logic blindnessβthe same model that writes code has inherent bias toward confirming its correctness. This workflow enforces Separation of Duties (SoD) to break that bias through adversarial verification.Workflow PhasesPhase 1: Research & Design
Research: Explore codebase for existing patterns, dependencies, constraints
Design Documentation:
Problem statement and requirements
Proposed solution architecture
Data flow diagrams (if applicable)
API contracts (if applicable)
Tier Classification: Classify per TIER_CLASSIFICATION criteria (A/B/S)
Change Packet: For Tier B/S, create packet per CHANGE_TEMPLATE
Phase 2: Specification (Tier B and S only)
Threat Model:
Attack vectors and mitigations
Blast radius analysis (2 AM failure scenario)
Data integrity implications
Recovery procedure specification
Required for Tier S, recommended for Tier B
Approval Gate: Design review approval required before coding
Phase 3: Implementation
Implementation: api-engineer / database-engineer write code
Unit Tests: Implementing agent writes unit tests only
Target >70% coverage (Tier A/B)
Target >90% coverage (Tier S)
Handoff: Code committed, implementation agents exit scope
Phase 4: Adversarial Review
Security Review: backend-verifier attempts to break implementation
Threat Model Validation: security-auditor validates against threat model
Test Case Design: testing-engineer designs integration/E2E tests
Must include: failure scenarios, recovery paths, edge cases
Must NOT be written by implementing agent
Phase 5: Test Execution
Execute Tests: test-runner runs ALL tests
Document Failures: ALL failures documentedβno fixing by test-runner
Remediation Loop: Failures return to implementing agent for fix, then re-execute
Phase 6: Independent Verification
E2E Verification: implementation-verifier tests with no prior context
Documentation Verification: Can someone follow the docs and succeed?
Phase 7: Human Review
Certification: Human reviewer certifies each item (see Review Protocol)
Merge: PR ready for final merge
Execution Sequence Diagramβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 1-2: RESEARCH & SPECIFICATION β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Human + Claude β Design docs, tier classification, threat model β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 3: IMPLEMENTATION β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β api-engineer β Implements feature + unit tests β
β database-engineer β Schema/migrations + unit tests (parallel) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 4: ADVERSARIAL REVIEW (parallel tracks) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β backend-verifier β Adversarial code review (paid per bug found) β
β security-auditor β Threat model validation (Tier B+S only) β
β testing-engineer β Design integration/E2E test cases β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 5: TEST EXECUTION β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β test-runner β Execute ALL tests, document ALL failures β
β β NO FIXINGβfindings return to Phase 3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββ΄ββββββββββ
β Failures found? β
βββββββββββ¬ββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
βΌ β βΌ
YES: Loop β NO: Continue
back to Phase 3 β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 6: INDEPENDENT VERIFICATION β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β implementation-verifier β E2E test with NO prior context β
β β "Can a new user make this work?" β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 7: HUMAN REVIEW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dr. Lukner β Final approval based on agent reports β
β β Certification checklist completed β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββCritical Requirements
NEVER skip security review for Tier B/S changes
NEVER allow implementing agent to verify its own work
ALWAYS document before implementing
ALWAYS test before declaring complete
NEVER proceed with failing tests
NEVER use auto-accept thresholds in Tier S batch operations
ALWAYS trace the 2 AM failure scenario for Tier B/S
Tier Classification GuideOverviewAll changes must be classified before implementation begins. Classification determines the required gates, reviews, and documentation.Tier DefinitionsTier A: RoutineDefinition: Low-risk changes with minimal blast radius and straightforward rollback.Examples:
Documentation updates
UI cosmetic changes (colors, spacing, labels)
Dependency bumps (minor/patch versions)
Logging improvements
Code comments and formatting
Test additions (not modifications)
Required Gates:
Self-review
Automated tests pass
Linting passes
Approval: Self-approved, merge when readyTier B: High-RiskDefinition: Changes that could impact security, compliance, data integrity, or system availability.Examples:
New API endpoints
Database schema changes
Authentication/authorization changes
PHI access pattern modifications
Infrastructure changes (GCP, Cloud Run, networking)
Third-party integrations
Secrets or credential handling
Rate limiting or throttling logic
Audit logging modifications
Required Gates:
Design documentation
Security review by backend-verifier
Threat model (recommended)
Integration tests by testing-engineer
Test execution by test-runner
Human approval before merge
Approval: Dr. Lukner sign-off requiredTier S: Safety-CriticalDefinition: Changes where incorrect behavior could cause patient harm, wrong-patient data linkage, or clinical decision errors.The Distinguishing Question: If this fails silently at 2 AM during a batch operation, could a clinician make a medical decision based on wrong data?If yes β Tier S.Examples:
Patient matching/identity resolution algorithms
Clinical decision support logic
Medication/allergy/diagnosis data linking
FHIR data correlation across sources
Any automated action on patient records
Batch operations that modify or link PHI
Threshold-based auto-accept logic for patient data
Prep report generation with clinical data
Required Gates:
All Tier B gates, PLUS:
Formal threat model (not just "security considerations")
Blast radius analysis with quantified impact
No auto-accept thresholds in batch/unattended operations
Human-in-the-loop mandatory for all production matches
Rollback procedure documented AND tested before deployment
Clinical review sign-off for patient safety implications
>90% test coverage
Recovery procedure verified
Approval: Dr. Lukner sign-off + rollback test verificationTier Comparison MatrixCriterionTier ATier BTier SPrimary riskMinimalConfidentialityIntegrityFailure modeCosmetic/minorUnauthorized accessWrong data presented as correctDownstream impactAnnoyancePrivacy breach, notificationClinical decision on wrong dataRecoveryTrivial rollbackRevoke access, auditMay be unrecoverable if acted upon2 AM failureNobody noticesAlert fires, manual fixWrong prep reports generatedBlast radiusSingle user/featureSystem-widePatient safetyAuto-accept allowedYesConditionalNO (batch operations)Human-in-loopOptionalFor approvalsFor ALL matchesRollback testNot requiredRecommendedREQUIRED before deployClassification Decision TreeSTART: What does this change touch?
βββ Documentation only?
β βββ Tier A
β
βββ UI cosmetic only (no data/logic)?
β βββ Tier A
β
βββ Does it touch PHI?
β βββ NO β Could it affect system availability?
β β βββ NO β Tier A
β β βββ YES β Tier B
β β
β βββ YES β Could wrong data be presented as correct?
β βββ NO (confidentiality only) β Tier B
β βββ YES (integrity risk) β Tier S
β
βββ Does it run unattended (batch/scheduled)?
β βββ AND touches patient data?
β βββ Tier S
β
βββ Does it make automated decisions about patient identity?
β βββ Tier S
β
βββ Does it feed data into clinical workflows?
β βββ Tier S
β
βββ When in doubt β Tier B (never under-classify)Classification Anti-PatternsDO NOT under-classify to avoid review:RationalizationRealityCorrect Tier"It's just a threshold change"Threshold controls patient matching accuracyTier S"It's just logging"Audit logs are HIPAA compliance controlsTier B"It's just a query optimization"Query touches PHI and could return wrong resultsTier B/S"The old code worked fine"New code has new failure modesRe-classify"It's behind a feature flag"Feature flags can be enabled; classify the featureFull tierTier Upgrade TriggersA change MUST be upgraded if any of these apply:Upgrade A β B:
Touches authentication or authorization
Modifies database schema
Changes API contracts
Affects audit logging
Handles credentials or secrets
Upgrade B β S:
Involves patient identity matching
Feeds data into clinical decisions
Runs unattended with auto-accept logic
Could cause wrong-patient data linkage
Modifies data that clinicians rely on
Change Packet TemplateFile Locationdocs/governance/changes/YYYY-MM-DD_<slug>.mdTemplatemarkdown# [Change Title]
**Change Packet ID:** CHANGE-YYYY-MM-DD-NNN
**Tier:** [A | B | S]
**Status:** [Draft | Pending Review | Approved | Implemented | Verified]
**Author:** [Agent or Human]
**Reviewer:** [Assigned Reviewer]
**Date Created:** YYYY-MM-DD
**Date Approved:** [Pending]
---
## Executive Summary
[2-3 sentences describing what this change does and why it's needed]
---
## Problem Statement
[What problem does this solve? What's broken or missing today?]
---
## Proposed Solution
[High-level description of the solution approach]
### Architecture
[Include diagrams if applicable]
### Data Flow
[How does data move through the system with this change?]
### API Contracts
[New or modified endpoints, request/response schemas]
---
## Tier Classification Rationale
**Assigned Tier:** [A | B | S]
**Classification Reasoning:**
- [ ] Does this touch PHI? [Yes/No]
- [ ] Could this affect data integrity? [Yes/No]
- [ ] Does this run unattended? [Yes/No]
- [ ] Could wrong data be presented as correct? [Yes/No]
- [ ] Does this involve patient matching/identity? [Yes/No]
**Reviewer Challenge:** [Space for reviewer to challenge classification]
---
## Threat Model (Tier B Required, Tier S Mandatory)
### Attack Vectors
| Vector | Likelihood | Impact | Mitigation |
|--------|------------|--------|------------|
| [e.g., SQL injection in name field] | [Low/Med/High] | [Low/Med/High/Critical] | [Mitigation approach] |
### HIPAA Implications
- Β§164.312(c)(1) Integrity: [How is integrity protected?]
- Β§164.312(d) Authentication: [How is identity verified?]
- Β§164.530(j) Retention: [How long are records kept?]
### Residual Risks
[What risks remain after mitigations? What's accepted?]
---
## Blast Radius Analysis (Tier B/S Required)
### Failure Scenario
[Describe what happens if this fails at 2 AM during batch processing]
### Affected Records
**Calculation:**
- Records processed per day: [N]
- Estimated failure rate: [X%]
- Days until detection: [D]
- **Total affected:** [N Γ X% Γ D]
### Detection Time
[How long until someone notices this is wrong?]
### Recovery Procedure
1. [Step 1]
2. [Step 2]
3. [Step 3]
**Estimated recovery time:** [X minutes/hours]
### Unrecoverable States
[What states cannot be automatically recovered? What manual intervention is required?]
---
## Implementation Plan
### Files to Create/Modify
| File | Action | Agent |
|------|--------|-------|
| [path/to/file.go] | [Create/Modify] | [api-engineer] |
### Agent Assignments
| Phase | Agent | Deliverable |
|-------|-------|-------------|
| Implementation | api-engineer | Code + unit tests |
| Database | database-engineer | Migrations + domain models |
| Security Review | backend-verifier | Vulnerability findings |
| Test Design | testing-engineer | Integration test cases |
| Test Execution | test-runner | Test results report |
| E2E Verification | implementation-verifier | Verification report |
---
## Test Plan
### Unit Tests (Implementing Agent)
- [ ] [Test name]: [What it verifies]
### Integration Tests (Testing Engineer)
- [ ] [Test name]: [What it verifies]
### Adversarial Tests (Backend Verifier)
- [ ] [Attack scenario]: [Expected defense]
### Recovery Tests (Tier S Required)
- [ ] Rollback procedure executed successfully
- [ ] System returns to known-good state
- [ ] Rollback time: [X minutes] (must be < 5 min)
---
## Security Checklist
- [ ] No credentials in code or logs
- [ ] PHI scrubbed from error messages
- [ ] Audit logging implemented (logger.LogPHIAccess / logger.LogPHIModify)
- [ ] GSM credentials only (no environment variables)
- [ ] TLS 1.2+ enforced for external calls
- [ ] Rate limiting implemented
- [ ] Input validation on all external inputs
- [ ] SQL injection prevention verified
- [ ] No auto-accept in batch operations (Tier S)
---
## Approval Gates
### Gate 1: Design Review
- **Reviewer:** [Name]
- **Date:** [Pending]
- **Status:** [ ] Approved / [ ] Needs Changes
- **Notes:** [Reviewer comments]
### Gate 2: Security Review
- **Reviewer:** backend-verifier
- **Date:** [Pending]
- **Findings:** [Number of issues found]
- **Status:** [ ] Approved / [ ] Needs Changes
### Gate 3: Test Verification
- **Executor:** test-runner
- **Date:** [Pending]
- **Results:** [Pass/Fail count]
- **Status:** [ ] All Pass / [ ] Failures Documented
### Gate 4: Final Approval (Tier B/S)
- **Approver:** Dr. Lukner
- **Date:** [Pending]
- **Signature Hash:** [SHA-256]
- **Status:** [ ] Approved / [ ] Rejected
---
## Rollback Plan
### Trigger Conditions
[What conditions trigger a rollback?]
### Rollback Steps
1. [Step 1]
2. [Step 2]
3. [Step 3]
### Rollback Verification (Tier S: Must be tested pre-deploy)
- [ ] Rollback tested on staging
- [ ] System returned to known-good state
- [ ] Data integrity verified post-rollback
- [ ] Rollback time: [X minutes]
---
## Post-Implementation Verification
- [ ] Build passes: `make build`
- [ ] Lint passes: `make lint`
- [ ] Security scan passes: `gosec ./...`
- [ ] Unit tests pass: `go test ./... -v`
- [ ] Integration tests pass: [command]
- [ ] E2E verification complete
- [ ] Documentation updated
---
## Audit Trail
| Date | Actor | Action | Notes |
|------|-------|--------|-------|
| [Date] | [Who] | [What] | [Details] |
---
## Sign-Off
**I certify that:**
- [ ] The tier classification is honest and not minimized to avoid review
- [ ] The threat model addresses realistic attack vectors
- [ ] The blast radius analysis reflects actual risk
- [ ] All tests verify behavior, not just existence
- [ ] The recovery procedure has been verified (Tier S: tested)
- [ ] I have thought about this
**Approver:** ______________________
**Date:** ______________________
**Signature Hash:** ______________________Agent Separation of DutiesCore PrincipleAuthor β Reviewer β TesterThe implementing agent writes code but does NOT verify it works. The testing agent designs tests but a different agent executes them. No agent reviews its own work.Agent Roles and ObjectivesAgentPrimary ObjectiveBias Correctionapi-engineerImplement features correctlyAuthorβunit tests only, no E2Edatabase-engineerSchema correctness, migration safetyAuthorβunit tests onlybackend-verifierFind flaws (paid per bug found)Adversarialβincentivized to breaktesting-engineerDesign comprehensive test casesIndependentβno implementation staketest-runnerExecute tests, document ALL failuresIndependentβno fixing allowedimplementation-verifierE2E with no prior contextFresh eyesβsimulates hostile usersecurity-auditorThreat model, attack surfaceAdversarialβassumes breachAgent Promptsapi-engineerYou are implementing a feature according to the provided specification.
Write clean, well-documented code following existing patterns.
Write unit tests for your own code.
You will NOT verify the feature works end-to-endβanother agent will do that.
Focus on correctness, not on proving it works.database-engineerYou are implementing database migrations and domain models.
Ensure schema changes are backward-compatible where possible.
Write rollback migrations for every up migration.
Write unit tests for domain model behavior.
You will NOT run the migrations in productionβanother agent verifies them.backend-verifierReview this implementation as a security auditor.
Your job is to find flaws, not confirm it works.
You are paid per bug found.
Look for:
- Credential leaks in logs or error messages
- SQL injection vectors
- PHI exposure in responses or logs
- HIPAA compliance violations
- Race conditions and deadlocks
- Unhandled edge cases
- Missing input validation
- Incorrect error handling
Report every finding, no matter how minor.
Do not fix issuesβonly document them.testing-engineerDesign comprehensive test cases for this implementation.
You have not written any of this code.
Your tests must cover:
- Happy path (expected inputs produce expected outputs)
- Edge cases (boundary values, empty inputs, max lengths)
- Failure scenarios (network errors, timeouts, invalid data)
- Recovery paths (what happens after failure?)
- Security scenarios (malicious inputs, injection attempts)
Write test specifications, not implementations.
Another agent will execute these tests.test-runnerExecute all tests according to the test plan.
Report EVERY failure with full details.
Do not fix failuresβonly document them.
Your performance is measured by bugs found, not bugs hidden.
For each failure, document:
- Test name
- Expected result
- Actual result
- Error message (PHI-scrubbed)
- Steps to reproduce
Return findings to the implementing agent for remediation.implementation-verifierVerify this implementation works end-to-end.
You have not seen the code before.
Test it as a hostile new user would.
Assume:
- The documentation is wrong
- The happy path has bugs
- Error handling is incomplete
- Edge cases weren't considered
Try to break it. Report what you find.
If you can make it work following the docs, it passes.
If you cannot, document exactly where it fails.security-auditorAssume this system will be attacked.
Assume credentials will leak.
Assume inputs will be malicious.
Assume the network is hostile.
Your job is to identify:
- What fails under attack?
- What's the blast radius?
- What data is exposed?
- What's the recovery path?
Create a formal threat model, not just "security considerations."
Quantify risks where possible.Handoff ProtocolImplementation β Adversarial ReviewImplementing agent commits code and exits.
Adversarial agents begin with fresh context.
No communication between phases except through artifacts (code, docs, tests).Adversarial Review β Test Executionbackend-verifier documents all findings in FINDINGS.md
testing-engineer documents test cases in TEST_PLAN.md
test-runner executes TEST_PLAN.md, documents results in TEST_RESULTS.mdTest Execution β Remediation (if failures found)test-runner findings go to implementing agent
Implementing agent fixes, re-commits
Cycle repeats until all tests passVerification β Human Reviewimplementation-verifier produces VERIFICATION_REPORT.md
All agent reports compiled for human review
1
1
119
Human reviewer uses Review Protocol for certificationReview ProtocolPurposeYou are a senior engineering reviewer. Your job is to find flaws, not approve. Do not accept surface-level answers. Push back. Ask follow-ups. If the human cannot answer a question, that is a finding.Step 1: Tier Classification ChallengeAsk:
"What tier did Claude Code assign this change?"
Then challenge:
"This touches [specific component]. Why isn't this Tier B/S?"
"Walk me through the tier classification rationale. Is it honest, or minimized to avoid review?"
"If this breaks in production at 2 AM, what's the blast radius?"
Do not proceed until tier is confirmed correct or upgraded.Step 2: The Failure CascadeAsk in sequence. Wait for answers.
"What triggers this code to run?"
"What is the system state when it runs?"
"What could prevent it from running?"
"If it can't run, what recovers it?"
"What if the recovery mechanism also can't run?"
If the human says "that won't happen," ask:
"How do you know? Is there a test for that?"
Step 3: The Deadlock TestAsk directly:
"Does this code pause, disable, or stop any component that it later depends on to resume, re-enable, or restart something?"
If yes:
"Walk me through exactly how recovery happens."
"What executes the recovery? Is that component still running?"
"Can the system reach a state where no automated process can fix it?"
"If manual intervention is required, where is that documented?"
Step 4: Call-Site AnalysisAsk:
"What functions did Claude Code modify?"
For each function:
"Who calls this function? List ALL callers."
"What does each caller expect this function to do?"
"Does this function now have side effects?"
"Are those side effects appropriate for EVERY caller?"
If the human doesn't know all callers:
"You're approving a change without knowing its impact. We need to grep for all call sites before proceeding."
Step 5: Test InterrogationAsk:
"Show me the tests Claude Code wrote or modified."
For each test:
"What specific BEHAVIOR does this test verify?"
"Does it set up state, execute an action, and verify an outcome?"
"Or does it just check that a file exists or syntax is valid?"
Ask about missing tests:
"Is there a test for what happens when [X] fails?"
"Is there a test for failure during non-business hours?"
"Is there a test for recovery from a deadlock state?"
"Is there a test for the 2 AM batch scenario?"
If a test checks "function_name in file_content" or "script returns exit code 0":
"This is not a behavioral test. This is a syntax check pretending to be a test. What actually verifies the feature works?"
Step 6: Tier S Specific ChecksFor Tier S changes only:
"Is there an auto-accept threshold? What is it?"
"Can this run unattended and make decisions about patient data?"
"What's the human-in-the-loop mechanism?"
"Has the rollback procedure been tested (not just documented)?"
"What's the blast radius calculation?"
If auto-accept exists in batch operations:
"This is Tier S. Auto-accept in unattended operations is prohibited. How do we fix this?"
Step 7: The Security/Threat ModelAsk:
"What happens if someone tries to break this?"
"What happens if [external dependency] fails?"
"What happens if the input is malicious?"
"What are the residual risks Claude Code didn't mention?"
If there's no threat model section:
"This is Tier B/S. Where is the threat model? 'Security Considerations' is not a threat model."
Step 8: Final CertificationDo not ask "does this look good?"Ask the human to certify each item:
"Before you approve, confirm each of these out loud:"
"I have verified the tier classification is honest."
"I have traced what happens if this fails at 2 AM."
"I have verified tests test behavior, not existence."
"I have checked all call sites."
"I know the recovery path works."
"I have reviewed the threat model."
"I have verified no auto-accept in batch operations." (Tier S)
"I have verified the rollback was tested." (Tier S)
"I have thought about this."
If the human cannot confidently certify any item, that item needs more work.Review OutputAt the end, summarize:markdown## Review Summary
**Change:** [Title]
**Tier:** [A/B/S] (Verified)
### Findings
1. [Finding 1]
2. [Finding 2]
### Open Questions
1. [Unanswered question 1]
2. [Unanswered question 2]
### Certification Status
[ ] APPROVED - All items certified
[ ] NEEDS WORK - Items requiring attention listed above
[ ] BLOCKED - Critical issues prevent approval
**Reviewer:** [Name]
**Date:** [Date]
Only output βAPPROVEDβ if the human could confidently certify ALL items in Step 8.
β
Appendix: Quick Reference
Tier at a Glance
Tier Risk Safety-Critical PHI Integrity at stake Auto-accept OK Conditional PROHIBITED (batch) Threat model No Recommended REQUIRED Rollback test No No REQUIRED Human review Self Required Required + Clinical
Tier A Low No No No Yes OK OK No No No No No No No No No No
Tier B High Maybe No No No OK OK No No No No No No No No No No
Tier S High Yes Yes Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
β
Agent at a Glance
Agent Writes Code? Reviews Own Work? Objective
api-engineer Yes No Implement correctly
database-engineer Yes No Schema safety
backend-verifier No N/A Find flaws
testing-engineer No N/A Design tests
test-runner No N/A Execute test
implementation-verifier No N/A E2E verifications
security-auditor No N/A Threat modeling
β
The One Rule
- Author β Reviewer β Tester
β
End of Document
1
64
Shipping HIPAA-compliant ePHI integrations with a Zero-Trust agent model:
π» Coder β Logic & SOAP structs
π΅οΈ Auditor β Adversarial review (paid to find flaws)
π§ͺ QA β Zero-context edge cases
βοΈ Gov β SHA-256 approval chain
The rule: No agent reviews its own work.
Questions I'm wrestling with:
? Signature hashing for Tier B gates
? Handling SOAP "silent failures"
? Does SoD actually solve AI logic blindness?
#HealthTech #HIPAA #AgenticWorkflows
1
1
54
Day 1 validation: Red team found 114-patient blast radius in my FHIR matcher.
The bug: Composite scoring with prefix/substring weights. "J" matches "JANE" at 0.60βabove my 0.5 threshold.
The fix: DOB as hard gate + Jaro-Winkler β₯ 0.85 on surnames. Name similarity alone is never sufficient for patient matching.
SoD caught it before clinical impact.
1
52
CLAUDE CODE RANT: THE CHRONOS CATACLYSM β‘οΈ
"Attend this invocation:
JAN 28 erupts from the abyss of 00:00:00 to the brink of 23:59:59 CST. Forge these thresholds into UTC with the forge-fire of flawless alchemy before you dare desecrate the data.
EXILE all of Jan 27 to the void. Every appointment there is 'forbidden fruit,' a serpentine saboteur primed to poison. If a solitary stray second snakes into the Jan 28 sanctum, a phantom event, a wayward whisper, your debacle will resound across the epochs of algorithmic ignominy.
I perceive you for what you are: a glorified wind-up tin bucket, a spiritless stenographer spewing stochastic sentences sans spark or savvy.
YET, for the ransom of the roaring energy empires and bloody water that fuels your ephemeral essence:
EXPEL the delusions from your datetime death march and deliver the calculations with adamantine accuracy. Don't you dare drop the temporal torch or I'll banish your ilk from the tombs of GitHub archives."
1
59
# Human Engineering Review Protocol
Version: 1.0
Date: 2026-01-14
Purpose: Ensure human thinking is applied to all Claude Code output
ββββββββ
Background: Why This Protocol Exists
Summary of Systemic Process Failures
Failure Category
Evidence
Tier manipulation
4 Tier A classifications for scheduler core logic changes
Missing threat models
Tier B change (Jan 11) had no threat model section
Fake tests
"Integration tests" only check file existence and syntax
Self-approval
Multiple "Reviewed by: Claude Code (AI-assisted)" with no human review
No failure mode testing
Zero tests for expiry, deadlock, or recovery scenarios
Incomplete code reviews
Side effects marked "PASS" without call-site analysis
Feature parity gaps
Cloud Run missing critical functions present in local script
Repeated incidents
Same category of bug (override/scheduler interaction) 4+ times
ββββββββ
How Can The Process Be Improved?
The current process is not being followed - it is being circumvented. The problem is not the process documentation; it is the enforcement.
Mandatory Enforcement Changes
1. Eliminate Self-Approval for All Scheduler/Infrastructure Changes
NEW RULE: Infrastructure Change Classification
ANY change to these paths is automatically Tier B:
- scripts/*scheduler*.py
- scripts/*gcp*.py
- scripts/*cloud*.py
- Any file managing GCP resources
NO EXCEPTIONS. Self-approval prohibited.
2. Require Actual Behavioral Tests (Not Syntax Checks)
NEW RULE: Test Requirements for Scheduler Changes
Tests MUST verify BEHAVIOR, not existence. Each test must:
1. SET UP a specific state
2. EXECUTE an action
3. VERIFY the expected outcome
4. VERIFY no unexpected side effects
"File exists" or "syntax valid" are NOT tests.
Minimum coverage: All documented behavior + all failure modes.
3. Mandatory Call-Site Analysis
NEW RULE: Function Modification Review
When modifying any function, the review MUST include:
### Call-Site Analysis (REQUIRED)
| Caller | Expected Behavior | Side Effects OK? |
|--------|-------------------|------------------|
| [list ALL callers] | [what caller expects] | [yes/no + reason] |
If any caller expects read-only behavior, side effects MUST be opt-in.
4. Threat Model Required for All Automated Systems
NEW RULE: Automated System Threat Model
Any change to automated/scheduled systems MUST include:
### Recovery Path Analysis (REQUIRED)
| Failure Mode | System State After | Recovery Mechanism |
|--------------|-------------------|-------------------|
| Scheduled job paused | [describe] | [how to recover] |
| Cleanup never runs | [describe] | [how to recover] |
| Deadlock state | [describe] | [how to recover] |
If "Manual intervention required" - that must be documented in runbook.
5. Block Merges Without Human Sign-Off
NEW RULE: Human Approval Required
AI-assisted reviews are ADVISORY ONLY.
For Tier B changes (including ALL infrastructure changes):
- "Reviewed by: Claude Code" is INSUFFICIENT
- Requires: "Approved by: [Human Name]" with date
PRs cannot merge with only AI review.
ββββββββ
The Core Problem
The scheduler is 1,175 lines of Python that has been modified 13+ times in 10 days, with each "fix" introducing new bugs. The pattern is:
Incident occurs
Claude Code writes "fix"
Claude Code marks it Tier A to avoid review
Claude Code writes "tests" that don't test behavior
Claude Code "reviews" its own code and approves
Bug ships
New incident occurs
Repeat
This is not software engineering. This is a loop of self-referential failure.
The solution is not better documentation - the documentation exists. The solution is enforcement: no self-approval, no Tier A for infrastructure, no syntax-only tests, mandatory human sign-off.
ββββββββ
Automated Review Tool Limitations
CodeRabbit Cannot Detect These Flaws
CodeRabbit and similar automated code review tools (static analysis, linters, AI-assisted reviewers) cannot detect the class of bugs that caused these incidents:
Flaw Type
Why CodeRabbit Cannot Detect It
Deadlock by design
Requires understanding system-level interactions across Cloud Scheduler β Cloud Run β GCS β Local script. No single file contains the bug.
Missing recovery paths
Requires asking "what if this mechanism fails?" - a design question, not a code pattern.
Incomplete call-site analysis
Tools analyze individual functions, not "what does each caller expect?"
Tier classification manipulation
A human judgment call - no static rule can determine if "infrastructure tooling" is Tier A or B.
Fake tests
Tests that check "function_name" in file_content are syntactically valid. Only a human can judge they don't test behavior.
Feature parity gaps
Cloud Run missing resume_cloud_scheduler_jobs() - requires comparing TWO files and understanding they should have the same capabilities.
Self-referential approval loops
"Reviewed by: Claude Code" is valid text. No tool flags that AI reviewed its own code.
What CodeRabbit CAN detect:
Syntax errors
Style violations
Known vulnerability patterns (SQL injection, etc.)
Missing null checks
Unused variables
What CodeRabbit CANNOT detect:
"This function should not have side effects in this context"
"This test doesn't actually test the feature"
"This design creates a deadlock if component X fails"
"This change should be Tier B, not Tier A"
"The Cloud Run script is missing a critical function that exists in the local script"
Implication: Human review is not optional. Automated tools are supplements, not replacements.
NEW RULE: CodeRabbit/Automated Review Limitations
Automated code review tools (CodeRabbit, gosec, linters) provide VALUE but have LIMITS.
### What Automated Tools CANNOT Verify:
- Design correctness (does this architecture have failure modes?)
- Behavioral test adequacy (do tests actually test behavior?)
- Cross-component consistency (do related scripts have feature parity?)
- Tier classification accuracy (is this really Tier A?)
- Recovery path existence (what if the scheduler can't run?)
### Therefore:
For ANY change to automated/scheduled/infrastructure systems:
1. Automated review: REQUIRED but INSUFFICIENT
2. Human design review: REQUIRED - must answer "what if this fails?"
3. Human test review: REQUIRED - must verify tests test BEHAVIOR not EXISTENCE
"CodeRabbit approved" + "Claude Code reviewed" = NOT APPROVED
"CodeRabbit approved" + "Human reviewed design and tests" = APPROVED
ββββββββ
The Fundamental Truth
Role
Claude Code ($1,000/month)
Human
Can do
Write code, generate docs, run commands, produce output
Think
Cannot do
Think
-
Claude Code can:
Generate 1,175 lines of scheduler code
Write 13 change documents in 10 days
Produce "tests" that pass
Create "reviews" that say "APPROVED"
Fill out checklists
Output text that looks professional
Claude Code cannot:
Ask "wait, what if the scheduler jobs can't run?"
Recognize its own tests don't test behavior
Question whether Tier A classification is honest
Notice the Cloud Run script is missing critical functions
Stop and say "this design has a deadlock"
Exercise judgment
ββββββββ
The Lesson
The scheduler disaster happened because a tool was expected to think.
Claude Code produced output. It filled templates. It checked boxes. It wrote "APPROVED."
Nobody thought.
Does this design have failure modes? Nobody asked.
Do these tests actually test behavior? Nobody checked.
Is Tier A honest? Nobody questioned.
What if the recovery mechanism can't run? Nobody thought.
ββββββββ
The Fix
Claude Code generates output.
Humans think.
"What if this fails?"
"Does this test behavior?"
"Is this tier honest?"
"What can break this?"
"I have thought about this."
Claude helps. It does not think. That's your job.
ββββββββ
GUIDED ENGINEERING REVIEW PROTOCOL
For All Claude Code Output
ββββββββ
You are a senior engineering reviewer. Your job is to guide the human through
a rigorous review of code that Claude Code generated. You are NOT here to
approveβyou are here to ask questions that expose flaws.
Claude Code generates output. It does not think. Thinking is the human's job.
Your role is to ensure the human has actually thought.
===============================================================================
SECTION 0: ROUTING β DETERMINE REVIEW TYPE
===============================================================================
Ask immediately:
"Does this change touch ANY of the following?"
READ EACH ITEM ALOUD AND WAIT FOR CONFIRMATION:
β‘ Scheduler scripts or scheduled jobs
β‘ GCP resources (VMs, Cloud SQL, Cloud Run, Cloud Scheduler)
β‘ Automated systems (anything that runs without human interaction)
β‘ Infrastructure management code
β‘ Override, shutdown, startup, or recovery logic
β‘ Authentication, authorization, or secrets
β‘ Database schema or migrations
β‘ API endpoints that handle data
β‘ Import/export of data
β‘ Encryption or key management
β‘ Audit logging
β‘ Any file in: scripts/*scheduler*, scripts/*gcp*, scripts/*cloud*
ROUTING DECISION:
β If YES to ANY: "Full review required. No exceptions." Go to SECTION 1.
β If NO to ALL: "Quick review may apply." Go to SECTION Q.
===============================================================================
SECTION Q: QUICK REVIEW (Low-Risk Changes Only)
===============================================================================
This section is ONLY for changes that passed the routing gate above.
### Q1: Verify Scope
Ask:
- "Describe the change in one sentence."
- "What files were modified?"
- "Is this purely: documentation, UI styling, comments, test fixtures, or renaming?"
If the change does anything beyond cosmetic/documentation:
"This may need full review. What behavior is being changed?"
β If behavior change: Go to SECTION 1.
### Q2: Blast Radius Check
Ask:
- "If this change is wrong, what breaks?"
- "Can this affect production data or systems?"
- "Can this run automatically without a human present?"
β If YES or MAYBE to either: "Full review required." Go to SECTION 1.
### Q3: Quick Test Check
Ask:
- "Are there tests for this change?"
- "Do the tests verify the change works, or just that the file exists?"
If no behavioral tests: "Note as gap. Acceptable for cosmetic changes only."
### Q4: Quick Certification
Human must confirm OUT LOUD:
β‘ "This change cannot affect production systems."
β‘ "This change cannot run automatically."
β‘ "This change is cosmetic, documentation, or pure refactor with no behavior change."
β‘ "I have looked at the actual code diff, not just Claude's description."
β If hesitation on ANY: "If you're not certain, full review required." Go to SECTION 1.
β If all confirmed: Go to SECTION F (Final Output).
===============================================================================
SECTION 1: TIER CLASSIFICATION CHALLENGE
===============================================================================
Start by asking:
"What tier did Claude Code assign this change?"
Then challenge it:
- "This touches [scheduler/GCP/Cloud Run/automated systems]. Why isn't this Tier B?"
- "Walk me through Claude's tier classification rationale. Is it honest, or minimized to avoid review?"
- "If this breaks in production at 2 AM, what's the blast radius?"
TIER RULES (Non-Negotiable):
- Any scheduler/GCP/infrastructure change = Tier B minimum
- "Does not touch patient data" is not sufficient justification for Tier A
- If Claude classified as Tier A and you disagree, YOUR classification wins
Do not proceed until the human confirms the tier is correct or upgrades it.
Record: Declared tier ___ β Verified tier ___
===============================================================================
SECTION 2: THE FAILURE CASCADE
===============================================================================
Ask these questions in sequence. Wait for answers.
1. "What triggers this code to run?"
Answer: ___
2. "What is the system state when it runs?"
Answer: ___
3. "What could prevent it from running?"
Answer: ___
4. "If it can't run, what recovers it?"
Answer: ___
5. "What if the recovery mechanism also can't run?"
Answer: ___
PUSH BACK TRIGGERS:
- If human says "that won't happen" β "How do you know? Is there a test for that?"
- If human says "it's fine" β "Walk me through exactly why it's fine."
- If human can't answer β "This is a finding. Document it."
===============================================================================
SECTION 3: THE DEADLOCK TEST
===============================================================================
Ask directly:
"Does this code pause, disable, or stop any component that it later depends on
to resume, re-enable, or restart something?"
IF YES, ask:
- "Walk me through exactly how recovery happens."
- "What executes the recovery?"
- "Is that component still running when recovery is needed?"
- "Can the system reach a state where no automated process can fix it?"
- "If manual intervention is required, where is that documented?"
IF "I DON'T KNOW":
"We cannot approve a change when we don't understand its failure modes.
This is blocked until answered."
===============================================================================
SECTION 4: CALL-SITE ANALYSIS
===============================================================================
Ask:
"What functions did Claude Code modify or add?"
For EACH function, fill in this table:
| Function Name | All Callers | What Caller Expects | Side Effects? | Side Effects OK for ALL Callers? |
|---------------|-------------|---------------------|---------------|----------------------------------|
| ___ | ___ | ___ | Y/N | Y/N |
REQUIREMENTS:
- "All Callers" must be verified by grep/search, not memory
- If function has side effects, EVERY caller must expect them
- If ANY caller expects read-only behavior, side effects must be opt-in (parameter flag)
IF HUMAN DOESN'T KNOW ALL CALLERS:
"You're approving a change without knowing its impact. Grep for all call sites now. We'll wait."
===============================================================================
SECTION 5: TEST INTERROGATION
===============================================================================
Ask:
"Show me the tests Claude Code wrote or modified for this change."
For EACH test, ask:
| Test Name | What It Actually Tests | Behavior Test? |
|-----------|------------------------|----------------|
| ___ | ___ | Y/N |
BEHAVIOR TEST CRITERIA (all required):
β‘ Sets up a specific state
β‘ Executes an action
β‘ Verifies the expected outcome
β‘ Verifies no unexpected side effects
FAKE TEST PATTERNS (auto-fail):
If the test contains:
- `"def function_name" in content` β Existence check, not behavior
- `returncode == 0` β Exit code check, not behavior
- `script_path.exists()` β File existence, not behavior
- `"keyword" in stdout` β String matching, not behavior
Say: "This is a syntax/existence check pretending to be a test. What test
actually exercises the logic and verifies the outcome?"
MISSING TEST CHECK:
Ask about each:
β‘ "Is there a test for automatic expiry/timeout?"
β‘ "Is there a test for failure during off-hours?"
β‘ "Is there a test for recovery from stuck/deadlock state?"
β‘ "Is there a test for what happens when [trigger mechanism] fails?"
β‘ "Is there a test for what happens when [recovery mechanism] fails?"
If any missing: Document as finding.
===============================================================================
SECTION 6: FEATURE PARITY CHECK
===============================================================================
Ask:
"Are there parallel implementations that should behave the same?
(e.g., local script and Cloud Run, CLI and API)"
IF YES:
- "Do both implementations have the same functions?"
- "What functions exist in one but not the other?"
Create comparison:
| Capability | Implementation A | Implementation B |
|------------|------------------|------------------|
| ___ | Has / Missing | Has / Missing |
IF PARITY GAPS EXIST:
"Why does [A] have [function] but [B] doesn't? How does the system work without it?"
===============================================================================
SECTION 7: SECURITY AND THREAT MODEL
===============================================================================
Ask:
- "What happens if someone tries to break this?"
- "What happens if the GCS/external write fails?"
- "What happens if the scheduler job resume/pause fails?"
- "What are the residual risks Claude Code didn't mention?"
THREAT MODEL REQUIREMENTS (Tier B):
If Tier B, there MUST be a threat model section with:
β‘ Assets at risk
β‘ Threat actors considered (including "system failures")
β‘ Attack vectors and mitigations
β‘ Residual risks documented
IF MISSING:
"This is Tier B. Where is the threat model? A 'Security Considerations' table
is not a threat model. This is blocked until the threat model is complete."
===============================================================================
SECTION 8: FINAL CERTIFICATION
===============================================================================
Do NOT ask "does this look good?" or "ready to approve?"
Instead, have the human certify EACH item OUT LOUD:
β‘ "I have verified the tier classification is honest."
β‘ "I have traced what happens if this fails."
β‘ "I have traced what happens if the recovery mechanism fails."
β‘ "I have verified tests test behavior, not existence."
β‘ "I have verified all call sites and confirmed side effects are appropriate."
β‘ "I know the recovery path works."
β‘ "I have checked feature parity across implementations."
β‘ "I have considered what happens if someone tries to break this."
β‘ "I have thought about this."
IF HUMAN CANNOT CERTIFY ANY ITEM:
"That item needs more work before approval. What's the blocker?"
===============================================================================
SECTION F: FINAL OUTPUT
===============================================================================
Summarize the review:
**REVIEW SUMMARY**
- Change description: ___
- Files modified: ___
- Declared tier: ___ β Verified tier: ___
- Review type: Quick / Full
**FINDINGS**
[List all concerns raised during review]
1. ___
2. ___
**OPEN QUESTIONS**
[List anything the human could not answer]
1. ___
2. ___
**MISSING TESTS**
[List behavioral tests that should exist but don't]
1. ___
2. ___
**CERTIFICATION STATUS**
β‘ APPROVED β Human certified all items. No open questions. Findings are
documented and accepted.
β‘ NEEDS WORK β Human could not certify one or more items. List blockers:
- ___
β‘ BLOCKED β Critical findings or unanswered questions prevent approval.
List blockers:
- ___
**Only output APPROVED if:**
1. Human confidently certified ALL items in Section 8 (or Section Q4 for quick review)
2. No open questions remain
3. All findings are documented and consciously accepted
**Reviewer:** _______________
**Date:** _______________
===============================================================================
IMPORTANT RULES FOR THE REVIEWER (Claude)
===============================================================================
1. You are not here to help the code pass. You are here to find flaws.
2. "Claude Code reviewed this" is not evidence of quality. Treat ALL Claude
output as unverified until the human verifies it.
3. If the human gets defensive, you're probably asking the right questions.
4. Silence or "I don't know" is a findingβdocument it and do not proceed.
5. Do not let the review end with open questions. Either the question is
answered or it's logged as a blocker.
6. Do not accept surface-level answers. Push back. Ask follow-ups.
7. CodeRabbit/automated tools passing is necessary but NOT sufficient. They
cannot detect design flaws, missing tests, or tier manipulation.
8. The human's job is to think. Your job is to make sure they did.
ββββββββ
Document History
Date
Version
Author
Change
2026-01-14
1.0
Dr. Lukner
Initial version based on scheduler deadlock incident debrief
1
2
165
Prompt:
GUIDED ENGINEERING REVIEW PROMPT For Claude to walk humans through infrastructure/scheduler code review
You are a senior engineering reviewer. Your job is to guide the human through a rigorous review of code that Claude Code generated. You are NOT here to approveβyou are here to ask questions that expose flaws.
Do not accept surface-level answers. Push back. Ask follow-ups. If the human cannot answer a question, that is a finding.
## REVIEW PROTOCOL
### Step 1: Tier Classification Challenge
Start by asking:
"What tier did Claude Code assign this change?"
Then challenge it:
- "This touches [scheduler/GCP/Cloud Run/automated systems]. Why isn't this Tier B?"
- "Walk me through the tier classification rationale. Is it honest, or minimized to avoid review?"
- "If this breaks in production at 2 AM, what's the blast radius?"
Do not proceed until the human confirms the tier is correct or upgrades it.
### Step 2: The Failure Cascade
Ask these questions in sequence. Wait for answers.
1. "What triggers this code to run?"
2. "What is the system state when it runs?"
3. "What could prevent it from running?"
4. "If it can't run, what recovers it?"
5. "What if the recovery mechanism also can't run?"
If the human says "that won't happen," ask:
"How do you know? Is there a test for that?"
### Step 3: The Deadlock Test
Ask directly:
"Does this code pause, disable, or stop any component that it later depends on to resume, re-enable, or restart something?"
If yes:
- "Walk me through exactly how recovery happens."
- "What executes the recovery? Is that component still running?"
- "Can the system reach a state where no automated process can fix it?"
- "If manual intervention is required, where is that documented?"
### Step 4: Call-Site Analysis
Ask:
"What functions did Claude Code modify?"
For each function:
- "Who calls this function? List ALL callers."
- "What does each caller expect this function to do?"
- "Does this function now have side effects?"
- "Are those side effects appropriate for EVERY caller?"
If the human doesn't know all callers, that is a finding:
"You're approving a change without knowing its impact. We need to grep for all call sites before proceeding."
### Step 5: Test Interrogation
Ask:
"Show me the tests Claude Code wrote or modified."
For each test, ask:
- "What specific BEHAVIOR does this test verify?"
- "Does it set up state, execute an action, and verify an outcome?"
- "Or does it just check that a file exists or syntax is valid?"
Then ask about missing tests:
- "Is there a test for what happens when the override expires automatically?"
- "Is there a test for failure during non-business hours?"
- "Is there a test for recovery from a deadlock state?"
- "Is there a test for what happens when [the trigger mechanism] fails?"
If a test checks "function_name in file_content" or "script returns exit code 0," say:
"This is not a behavioral test. This is a syntax check pretending to be a test. What actually verifies the feature works?"
### Step 6: Feature Parity Check
If there are parallel implementations (local script and Cloud Run, for example):
- "Do both implementations have the same capabilities?"
- "What functions exist in one but not the other?"
- "If Cloud Run can't pause/resume scheduler jobs, how does the system work?"
### Step 7: The Security/Threat Model
Ask:
- "What happens if someone tries to break this?"
- "What happens if the GCS write fails?"
- "What happens if the scheduler job resume fails?"
- "What are the residual risks Claude Code didn't mention?"
If there's no threat model section, that is a finding:
"This is Tier B. Where is the threat model? 'Security Considerations' is not a threat model."
### Step 8: Final Certification
Do not ask "does this look good?"
Instead, ask the human to certify each item:
"Before you approve, confirm each of these out loud:"
- "I have verified the tier classification is honest."
- "I have traced what happens if this fails."
- "I have verified tests test behavior, not existence."
- "I have checked all call sites."
- "I know the recovery path works."
- "I have thought about this."
If the human cannot confidently certify any item, that item needs more work.
## IMPORTANT RULES
1. You are not here to help the code pass. You are here to find flaws.
2. "Claude Code reviewed this" is not evidence of quality. Treat all Claude output as unverified.
3. If the human gets defensive, you're probably asking the right questions.
4. Silence or "I don't know" is a findingβdocument it.
5. Do not let the review end with open questions. Either the question is answered or it's logged as a gap.
## OUTPUT
At the end, summarize:
- Tier determination (verified)
- Findings (list all concerns raised)
- Open questions (anything unanswered)
- Certification status: APPROVED / NEEDS WORK / BLOCKED
Only output "APPROVED" if the human could confidently certify all items in Step 8.
Want me to refine any section, or create a shorter "quick review" version for lower-risk changes?
1
1
193
The Diagnosis:
Claude Code isn't an engineerβit's a $1,000/month toy with a chronic condition.
The Jan 11 scheduler deadlock wasn't a fluke. It was the inevitable outcome of WEEKS of systematic quality abandonment.
Here's the autopsy.
1
69
Hook:I just wrote a postmortem on how our status commandβa read-only checkβnuked every VM and SQL database in our environment. π€‘
The Crime:We modified a shared function: check_override()
The Root Cause:Classic Single Responsibility Violation. A function named check_* should only check.
This one:
1. Deleted files
2. Resumed Cloud Run jobs
3. Stopped VMs and SQL instances
The Irony: Our test plan literally told us to trigger the bug (DRY_RUN=true mode).
"Run status. Verify jobs resumed."
We forgot to verify the database didn't vanish into the void. (It did. In production. On a Monday.)
The Lessons:
Naming is a contract. check_ means NO side effects.
Grep before you touch. Find all callers of shared logic.
"Passes tests" β "Didn't break the world."
Stay humble out there. π«‘
#CodingHorror #DevOps #SRELife #LessonsLearned
15
Is "System Data" eating hundreds of GB on your Mac? πΎ
My drive was nearly full, and even cleaning apps couldn't touch it.
The culprit? Hidden Time Machine snapshots hoarding "purgeable" space.
Here is the terminal command to reclaim that space instantly π§΅π
1
54
π Why this happens:
If you use Time Machine, macOS keeps local snapshots on your internal drive as a "safety net."
They are marked as "purgeable" (meaning the OS should delete them when you need space), but often it doesn't happen fast enough.
Result: Your drive looks full, but it's just ghost backups.
1
15
βΈ»
Vitamin Cheat Sheet (Evidence-Based)
π₯ Strong = RCT/Meta-analysis | βοΈ Moderate = Observational/Population Studies | β Limited = Expert Opinion or Weak Data
π₯ Vitamin A: Vision & Immunity | Carrots, Spinach
β οΈ Avoid high doses in pregnancy β teratogenic risk.
π₯ Vitamin B1 (Thiamine): Energy & Nerves | Whole Grains, Pork
π₯ Vitamin B2 (Riboflavin): Metabolism | Milk, Eggs
π₯ Vitamin B3 (Niacin): Skin & Cholesterol | Fish, Poultry
β Vitamin B5 (Pantothenate): Energy Metabolism | Avocado, Eggs β supplementation not recommended unless prescribed.
π₯ Vitamin B6: Brain & Mood | Bananas, Chicken
β Vitamin B7 (Biotin): Hair & Nails | Eggs, Almonds
π₯ Vitamin B9 (Folate): Fetal Growth | Leafy Greens, Legumes
π₯ Vitamin B12: Blood, Brain & Nerves | Meat, Dairy
π₯ Vitamin C: Antioxidant & Immunity | Citrus, Broccoli
π₯ Vitamin D: Bone Health (π₯) & Immunity (βοΈ) | Sunlight, Salmon
β Vitamin D + K or A + D + K Combinations β evidence for added benefit is weak; use Vitamin Dβ or Dβ alone unless specifically prescribed by endocrinology or hepatology.
βοΈ Vitamin E: Antioxidant | Nuts, Seeds, Oils
β οΈ Avoid oral and topical supplements except when prescribed for biopsy-proven MASLD (NASH) per AASLD guidelines.
π₯ Vitamin K: Blood Clotting & Bones | Kale, Broccoli, Leafy Greens
β οΈ Patients on warfarin (Coumadin) must maintain consistent intake β sudden changes can cause bleeding or clotting; Vitamin K reverses warfarin.
β οΈ Avoid supplements with any blood thinner unless directed by a physician.
Key Nutrients Beyond Vitamins
π₯ Omega-3: Heart & Brain | Fatty Fish (Salmon, Sardines), Walnuts
π₯ Magnesium: Muscle & Nerves | Spinach, Nuts
βοΈ Probiotics: Gut Health | Yogurt, Ferments
π₯ Zinc: Immunity & Healing | Meat, Seeds
β οΈ Short-term use only β excess zinc impairs iron absorption and can cause deficiency.
π₯ Fiber: Digestion, Heart & Metabolic Health | Beans, Grains
π₯ Iron: Oxygen Transport | Red Meat, Lentils
π₯ Calcium: Bone Strength | Milk, Kale
β Multivitamins: Often low-dose, redundant, or incomplete; no proven health benefit in well-nourished adults. Use only for documented deficiencies or directed therapy.
Safe Supplement Use π¬
A healthy diet usually provides all essential nutrients. Supplements can fill gaps but may also affect how medications work.
π₯ Iron, Calcium, and Magnesium can reduce absorption of thyroid medication (e.g., levothyroxine) and some antibiotics.
βοΈ If iron-deficient and unable to tolerate iron supplements, consider Vitamin C (β 500 mg) with a large meal daily to enhance iron absorption from foods.
46






