Chapter 08 — ocarina-with-ai-example#
CURA Healthcare e2e suite co-written by Claude Code. The living proof of concept of the “AI is the bridge” philosophy.
Outline#
| # | File | Topic |
|---|---|---|
| 01 | 01-ai-manifesto.md | The README and its “Code: 99% Claude / Intelligence: 50-50” headline. |
| 02 | 02-sut-cura.md | CURA Healthcare: external SUT, open-source PHP, Heroku eco-dyno. |
| 03 | 03-canonical-documents.md | The 4 documents: CLAUDE.md, CURA_FRD.md, CURA_TEST_STRATEGY.md, IDENTIFIED_GAPS.md. |
| 04 | 04-test-strategy.md | Test types (happy / unhappy / edge / business logic vulnerability / exploratory / regression). |
| 05 | 05-security-gaps.md | Security gaps: CSRF, session, rate-limit (G-SEC-1 to G-SEC-3). |
| 06 | 06-data-gaps.md | Data gaps: visit_date with no validation, duplicates (G-DATA-1 to G-DATA-2). |
| 07 | 07-spec-gaps.md | Spec gaps: history order, profile placeholder, redirects (G-SPEC-1 to G-SPEC-3). |
| 08 | 08-bfcache.md | Chrome BFCache: B-BROWSER-1 (and A-ENV-1, A-ENV-2). |
| 09 | 09-ci-matrix.md | CI: ai_proof_ci.yml + ai_proof_e2e.yml Firefox/Chrome matrix + Heroku warm-up + ChromeDriver stacktrace filtering. |
Success story#
| Claude Code | Human | |
|---|---|---|
| Code written | 99% | 1% |
| Intelligence | 50% | 50% |
Almost every line was machine-written. The judgement behind it — what to test, what to distrust, when to dig and when to stop — was shared.
It’s the embodiment of ../01-philosophy/01-flip-the-problem.md:
With AI, and tools like Claude Code, this bet gets sturdier by the day. The bridge between technical and non-technical is no longer a layer of abstraction.
It’s AI itself. AI working on raw data.
Holy Book reminder#
Four things this project is not, per the Holy Book (chapter “Using Ocarina with AI”):
- Doesn’t generate tests autonomously.
- Doesn’t patch hallucinations in CI; a failure triggers
review-report+analyse-*.- Doesn’t rewrite the spec; only
update-frd-and-testsdoes, with a revision line.- Doesn’t run active security tests. Ever.
The human keeps control. The AI produces the machinery.
Singularity#
- Reading the PHP source to find real defects: missing CSRF, client-only validation, history ordered by submission, etc.
- Business logic vulnerability tests: past-date booking, duplicate appointments, geographically impossible slots.
- Cross-browser divergence as a finding: Chrome BFCache restoring a
no-storepage after logout.
Each gap is documented with file:line and PHP evidence, and materialized as an intentionally red test that stays red until CURA is fixed.
Related reading#
- The philosophical bet →
../01-philosophy/01-flip-the-problem.md - The role of AI skills documented on the Holy Book →
../09-holy-book/ - The framework it uses →
../02-ocarina/