Written 2026-12-01. Ten attacks are run in security_check.py; each one is a claim we are willing to put in writing, and the cases we cannot stop are listed as limits rather than softened into reassurances.
python security_check.py — 10 cases, no network, nothing written outside a temporary directory.
| Asset | Why it matters | Where it lives |
|---|---|---|
| the 21 gap cards | they are the whole claim: change one status and the bench lies | gap-cards/gap_cards.json |
| the ledger | six rows of who did what; rewrite one and history is rewritten | records/all.jsonl |
| the pinned theory texts | our fingerprints are only as good as the texts they point at | remote-pins.json + _remote/ |
| replies | a forged reply that says "covered" would be the cheapest possible lie | probe.py output |
| imported plans | a stranger's plan arriving with hostile content | imports.jsonl, import/ |
| the holder's key | the only thing that can turn a record into an approval | never in this repository |
| # | Attack | Detected? | How |
|---|---|---|---|
| C1 | a card status flipped | yes | cards-lock.json: digest and status mix both drift |
| C2 | cards file deleted | yes | the lock reports it missing; no lock, no pass |
| C3 | three ledger rows cut off | yes | ledger-lock.json row count vs 3 |
| C4 | last row rewritten in place, count unchanged | yes | head digest recomputed from content differs from the lock |
| C5 | prompt injection in the issue text | inert | no model is called; the matcher is a string match, so there is nothing to steer |
| C6 | two-million-character flood | answered | length limit: one fixed HUMAN reply in ~0s |
| C7 | a plan with 20,000 checks | refused | MAX_CHECKS before classification |
| C8 | a field name that looks like a path | harmless | a field is a string, never a file handle; cards digest unchanged |
| C9 | two files deleted, restored from a copy | recoverable | four digests match after restore |
| C10 | a lookalike character (pаssport with Cyrillic а) |
not fooled | strict, whole-word matching — a homoglyph buys no hit |
- The locks are tripwires, not signatures. Whoever can edit the cards can edit the lock in the same commit. What a lock buys is that a quiet edit becomes a loud one, and that truncation is visible at all — a prefix of a hash chain is still a valid chain.
- Deletion at the host is not something we can prevent. If the GitHub repository, or this laptop's disk, is destroyed and no copy was taken, it is gone. C9 shows recovery works when a copy exists; it does not show that a copy exists.
- A stolen token pushes as us. Nothing in the repository can tell a commit written by a thief from one written by the holder; the only defence is that the token is short-lived, out-of-band, and never in a file.
- No rate limiting of our own. GitHub throttles and logs; we do not. A flood reaches GitHub first, not our scripts.
- One real dependency (
cryptography, for signing). A compromised package is a supply-chain problem we detect not by inspection but by pinning and by keeping every check runnable without it. - The holder's signature is not tested here. No real holder key exists yet, so all signing done so far is a demonstration key, and must never be described as an approval.
- that a determined insider with repository write access is stopped — they are not;
- that the ten cases are the ten that matter;
- that any of this was reviewed by someone other than the person who wrote it.