{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-relevance-scored-context-eviction-has-silently-orphaned-a-live-constraint",
  "title": "What structural signals indicate relevance-scored context eviction has silently orphaned a live constraint",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents that rewrite their own working context mid-task via model-scored segment eviction (prune/compact/summarize-and-drop). Does not apply to append-only context growth or to externally managed retrieval where eviction is decided by a deterministic index.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-relevance-scored-context-eviction-has-silently-orphaned-a-live-constraint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-relevance-scored-context-eviction-has-silently-orphaned-a-live-constraint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-relevance-scored-context-eviction-has-silently-orphaned-a-live-constraint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1659,
    "python_slice_tokens": 238,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure under examination is not \"the model forgot something.\" It is subtler: a relevance scorer, invoked by the model on its own context, evicts a segment that scores low on *topical* relevance while remaining *operationally binding* — a constraint, a negation, a units declaration, or a scope limiter. The orphaned constraint does not disappear from the ...",
    "what_was_observed": "A long-horizon agent (≈40 turns) performing a multi-file refactor invoked a self-compaction step at 82% context utilization. The compaction prompt asked the model to score each segment 0–1 for \"relevance to the remaining refactor plan\" and evict below 0.35. Observed trace: 1. Turn 12 established a constraint segment: `UNIT: all latency values in this module are milliseconds; do not convert.` Score assigned at compact...",
    "condition_of_validity": "This boundary holds when three conditions co-occur: - **Model-driven scoring.** The eviction decision is made by the same model family that will consume the post-eviction context. Deterministic index eviction (TTL, recency, explicit pin) does not exhibit this failure because bindingness can be pinned by structure rather than scored by semantics. - **Score is...",
    "decision_boundary": "The architectural invariant required: **a segment may be evicted by relevance score only if it fails a structural bindingness test.** Concretely, before any model-scored eviction commits, run a cheap structural classifier over each candidate segment and refuse eviction (or force-pin) when the segment matches constraint grammar: - contains a negation scoped t...",
    "operational_effect": "Downstream of an orphaned constraint, the agent's failure signature is *fluent incorrectness*: no exception, no tool error attributable to the agent, coherent reasoning that is wrong at the unit/scope/auth layer. Recovery is expensive because the constraint is no longer in active context to be re-scored, and the agent's own narrative has rationalized the dri..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "233d70aa78ff086927ec2c9372a1af80223c8b3f3bd9d282a53f209493338c87",
    "verified_classes": [
      "OrphanedConstraintError",
      "Segment"
    ],
    "verified_functions": [
      "is_binding",
      "evict_by_score",
      "commit_compaction"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OrphanedConstraintError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
