Skip to content

[context-loading] Stop overclaiming determinism + hook-force scope-touch detection #73

Description

@SUaDtL

Source: context-loading review (upheld under challenge, both halves).

Problem: Docs claim the load model is "deterministic and reproducible," but only the anti-slop-design bundle's leaf-selection actually is. Three decisions rely on the model judging: redirect inference (redirect.md:4-5), small-vs-full-lane triage (feature.md), and scope-touch detection (ORCHESTRATOR.md:140-144 — the reference-map read only happens if the model notices the touch). lazy-load-bundles.md:36 explicitly forbids "load if you judge X" selection — but enforces it only inside the bundle, not at the orchestrator tier.

Do:

  1. (S) Reframe the claim to "deterministic bundle-leaf load map; judgment-gated command routing."
  2. (L, the high-value half) Push scope-touch detection onto the existing hooks/pre-edit.py / hooks/pre-write.py — a crypto/secret/migration edit emits a breadcrumb that mechanically forces the governing read, moving detection off the model onto the hook layer. This is enforcement-not-trust applied to the loading model itself.

Related: the /add-dep and migration enforcement issues are the same root cause (soft scope-touch firing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmarket-evalFrom the 2026-06 multi-agent market-readiness evaluation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions