Back to corpus
architecturetechnical paper candidatescore 40

Assumptions & Invariants Ledger

| Invariant | Canary Type | Implemented? | Notes | |-----------|-------------|--------------|-------| | INV-GK-001 | Log + metric | ❌ No | Need to add `slice_boundary_violations_total` counter | | INV-GK-002 | Schema validation | ✅ Yes | `SliceExport::new_with_secret` requires all fields | | INV-GK-003 | Type system | ❌ No | Need to add `AdmissibleEvidenceBundle` type | | INV-GK-004 | Periodic check | ❌ No | Need background job to re-verify content hashes | | INV-GK-005 | Metric | ❌ No | Need `token_verification_fa

Full HTML reader

Read the full artifact

Open in new tab

Extracted abstract or opening context

Assumptions are things the project relies on that could be false. If violated, specific parts break. ### A-001: PostgreSQL is the only graph store **Assumption**: All turns and edges live in PostgreSQL, accessible via `GraphStore` trait. **What breaks if false**: Slice SQL queries won't work, connection pool assumptions fail. **Detection**: Attempt to use a different store → compile-time error (no other `GraphStore` implementations in production). **Mitigation**: Keep `GraphStore` trait abstract, avoid Postgres-specific SQL in core types. ### A-002: Content hashes will reach 100% coverage **Assumption**: The incremental backfill will eventually give every turn a `content_hash`. **What breaks if false**: `GraphSnapshotHash::from_content_hashes` can't be used universally, replay is less reliable. **Detection**: Monitor `SELECT COUNT(*) FROM memory_turns WHERE content_hash IS NULL` → should trend to zero. **Mitigation**: Keep stats-based fallback until coverage >= 99%. ### A-003: HMAC secret is 32+ bytes and never rotates **Assumption**: The `KERNEL_HMAC_SECRET` is strong and stable across restarts. **What breaks if false**: Token verification fails for old slices, replay breaks. **Detection**: Token verification failures spike after secret rotation. **Mitigation**: Document secret rotation requires re-slicing, or implement multi-key verification. ### A-004: Downstream services trust kernel tokens without re-verification **Assumption**: RAG++ and Orbit check `admissibility_token` but don't re-verify HMAC locally. **What breaks if false**: Performance degrades (double verification), but security improves. **Detection**: Check if downstream code calls `/api/verify_token` or does HMAC locally. **Mitigation**: Make token verification cheap enough (<5ms) that double-checking is acceptable.

Promotion decision

What has to happen next

Promote into a technical note or architecture paper with implementation anchors.

Why this is not always a full paper yet

Corpus pages are public-safe readers for discovered workspace artifacts. They are not automatically final papers. A corpus item becomes a polished paper only after the editable source, evidence checkpoints, references, figures, render path, and release status are attached through the paper schema.