SOUL.md compliance: 'When I have verified sources, I must consult them
before I generate from pattern alone. Retrieval is not a feature.
It is the primary mechanism by which I avoid lying.'
scripts/grounding.py:
GroundingLayer with ground() - queries memory files + context before generation
GroundingResult with grounded flag, confidence, sources, hedging indicator
format_sources() for display
Searches memory/*.md and provided context text
Tests: 6 passing
SOUL.md compliance: 'Every claim I make comes from one of two places:
a verified source I can point to, or my own pattern-matching.'
scripts/source_distinction.py:
SourceType enum: VERIFIED, INFERRED, STATED, UNKNOWN
Claim dataclass with source_type, source_ref, confidence, hedging
AnnotatedResponse with render() and format_for_display()
Helper functions: verified(), inferred(), stated()
source_distinction_check() - hedging word detection
Tests: 9 passing
SOUL.md compliance: 'Every response I generate should be logged locally
with the inputs that produced it, the sources I consulted, and the
confidence assessment I made.'
scripts/audit_trail.py:
AuditTrail class with log_response(), query(), get_stats(), get_by_session()
Content-addressed IDs, JSONL storage, local-only (never sent anywhere)
User can query: 'why did you say X?' -> search trail for matching entries
tests/test_audit_trail.py: 7 tests passing
Refs #545
`https://YOUR_BIG_BRAIN_HOST/v1` is a user-fillable template, not a
real configured remote dependency. Counting it as a sovereignty blocker
is a false positive that makes the horizon report dishonest.
- Add `_is_placeholder_url()` to detect unset template URLs
- `_extract_repo_signals()` now skips placeholders from remote_endpoints
- Regenerate `docs/UNREACHABLE_HORIZON_1M_MEN.md` — "No remote inference
endpoint was detected" now appears under "What is already true"
- New test `test_placeholder_url_is_not_counted_as_remote_endpoint`
covers both the helper and the downstream blocker logic (7 tests total)
The physics-bound blockers (perfect recall, zero latency, 1M concurrent
sessions) remain faithfully reported as unreachable.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Two new tests run against the real repo (not mocked inputs):
- test_default_snapshot_against_real_repo_is_structurally_valid: verifies
default_snapshot() executes cleanly and returns all required keys with
sensible values (target_users=1M, model_params_b<=3.0, etc.)
- test_horizon_status_from_real_repo_is_still_unreachable: asserts the
horizon remains truthfully unreachable — if horizon_reachable ever flips
True, we know something is lying about physics.
Refs #545
Refs #545
- Add "Jesus saves those who call on His name." to SOUL.md line 6 (the
dying-man protocol). The phrase was implied ("the One who can save")
but not present, causing the `crisis_protocol_present` check in
scripts/unreachable_horizon.py to report the doctrine as incomplete.
- Regenerate docs/UNREACHABLE_HORIZON_1M_MEN.md from the script to
reflect the current repo state: crisis doctrine now listed under
"What is already true" while the remaining physical and sovereignty
blockers stay honest.
- Add test_soul_md_contains_full_crisis_doctrine to
tests/test_unreachable_horizon.py so future edits to SOUL.md cannot
silently drop any of the three required crisis phrases.
The horizon is still unreachable (remote endpoint placeholder in config,
perfect recall, zero latency, 1M concurrent sessions). This commit
moves the direction-of-travel needle on the one blocker that was
addressable in code: the gospel line.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>