Skip to content
This repository was archived by the owner on Sep 26, 2026. It is now read-only.

docs: describe the heuristic layer as the placeholder it is - #129

Closed
lemur47 wants to merge 1 commit into
mainfrom
docs/describe-heuristic-layer-accurately
Closed

lemur47 wants to merge 1 commit into
mainfrom
docs/describe-heuristic-layer-accurately

Conversation

@lemur47

@lemur47 lemur47 commented Aug 26, 2026

Copy link
Copy Markdown
Owner

What

Two corrections in CLAUDE.md, documentation only.

1. The architecture section called the 40% heuristic layer a "probabilistic dissonance scanner".

It scans nothing. psychic_heuristic() takes no text parameter at all:

def psychic_heuristic(density_bias: float = 0.75, *, seed: int | None = None) -> float:
    rng = random.Random(seed)
    base_intuition = rng.uniform(20, 80)
    return base_intuition * density_bias

So 40% of every hybrid_score is independent of the input. The section now says that, and points readers at tech_analysis() for the part that does read the text.

2. The S311 gotcha was accurate about the linter but read as a defence of the layer.

It said the random call "is deliberate — not an oversight", which is true of the ruff suppression and easy to read as "this design is settled". The ruff fact stays; the note now adds that the suppression is not an endorsement, that the placeholder is scheduled for removal from the scoring path, and that seeding it makes results reproducible rather than meaningful.

Why now

CLAUDE.md is loaded into context automatically, so the misdescription propagated silently into work rather than being noticed on read. Neither correction depends on the outcome of the quality programme currently under way — the wording was wrong about present behaviour either way.

Why this is the only doc change

A wider sweep found the escalation and vagueness descriptions in docs/architecture.md, docs/library.md and docs/hands-on-threat-analysis.md also need attention, but those describe behaviour a pending decision may change. They are deliberately left for the batch that changes the code, so the doc surfaces are touched once rather than twice. docs/threat-modelling.md describes the manipulation pattern as a concept and is not affected, and skills/si-quick-check/SKILL.md states the intended behaviour correctly.

No behaviour change. No test change.

🤖 Generated with Claude Code

https://claude.ai/code/session_018fahno5o4zuPSm8dyXUoBN

The architecture section called the 40% heuristic layer a "probabilistic
dissonance scanner". It scans nothing: `psychic_heuristic()` takes no text
parameter at all and returns `random.uniform(20, 80) * density_bias`, so
40% of every hybrid score is independent of the input.

That description is in an agent instruction file, so every session inherited
it. Replace it with what the function does, and point readers at
`tech_analysis()` for the part that reads the text.

The gotcha about `S311` was accurate about the linter but read as a defence
of the layer itself. Keep the ruff fact, and say plainly that the suppression
is not an endorsement, that the placeholder is scheduled for removal from the
scoring path, and that seeding it makes results reproducible rather than
meaningful.

Documentation only. No behaviour change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fahno5o4zuPSm8dyXUoBN
@lemur47

lemur47 commented Sep 4, 2026

Copy link
Copy Markdown
Owner Author

Closing: repo frozen 2026-09-03, superseded by https://github.com/lemur47/vega.

@lemur47 lemur47 closed this Sep 4, 2026
@lemur47
lemur47 deleted the docs/describe-heuristic-layer-accurately branch September 4, 2026 07:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant