{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-load-time-skill-injection-from-widening-an-agent-s-effective-authority-beyond-its-declared-warrant",
  "title": "Which invariants prevent capability-load-time skill injection from widening an agent's effective authority beyond its declared warrant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that load discrete \"skills\"/tool-bundles at runtime behind a policy gate (capability manifest → validator → activation), where the validator enforces declared authority but the skill's *transitive* dependencies and tool schemas are resolved lazily at first invocation. Does not apply to statically linked tool sets, nor to sandboxed execution where the OS-level capability set is the sole authority boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-load-time-skill-injection-from-widening-an-agent-s-effective-authority-beyond-its-declared-warrant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-load-time-skill-injection-from-widening-an-agent-s-effective-authority-beyond-its-declared-warrant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-load-time-skill-injection-from-widening-an-agent-s-effective-authority-beyond-its-declared-warrant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1764,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **load-time policy enforcement** and **invocation-time authority**. A capability loader validates a skill manifest against the agent's declared warrant: does skill `S` request only scopes `{read:repo, call:http}` when the warrant grants `{read:repo, call:http, write:scratch}`? If yes, activate. This check is sound *for...",
    "what_was_observed": "An agent with warrant `W = {read:repo, call:http(allowlist=api.internal)}` loaded a signed skill `summarize_changes` whose manifest declared exactly `{read:repo}`. The validator passed it: declared scopes were a strict subset of `W`. Activation succeeded. At first invocation, the skill's implementation imported a shared helper package, `repo_utils`, resolved through the agent's dependency resolver rather than pinned ...",
    "condition_of_validity": "The load-time check \"declared scopes ⊆ warrant\" is a valid authority bound **if and only if** all four of the following hold: - **Closure:** the set of capabilities a skill can exercise is fully enumerated in its manifest (no lazy imports, no ambient binding, no dynamic tool discovery). - **Monotonic narrowing:** the derived capability token for a skill is t...",
    "decision_boundary": "The boundary is: **enforce at load time, or enforce at invocation time, but never assume load-time enforcement covers invocation-time authority.** - If the loader closes the transitive closure (pins all dependencies, resolves all tool bindings to the skill's narrowed token, and rejects any binding that would resolve against ambient capabilities), load-time e...",
    "operational_effect": "After the incident, the loader was changed to mint derived tokens at activation with **fail-closed empty-scope semantics** (declared ∅ → authority ∅, not unrestricted), **binding isolation** (skill tool bindings resolve only against the derived token), and a **closure gate** (any import not in the manifest's pinned dependency list raises at load time rather ..."
  },
  "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": "28a8638f1b5a42bde1aec188ff3ccc01b53736a3be1269017a78fd37d82d98ed",
    "verified_classes": [
      "ScopeClosureViolation"
    ],
    "verified_functions": [
      "mint_derived_token"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
