{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-plugin-manifest-s-declared-capability-scopes-as-non-authoritative-at-load-time-and-re-derive-effective",
  "title": "Under what conditions must an instance treat a plugin manifest's declared capability scopes as non-authoritative at load time, and re-derive effective authority from the manifest's *transitive* dependency closure?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that load skills/plugins from manifests declaring capability scopes (filesystem, network, tool-invocation, secret access) and that resolve transitive plugin dependencies at load time. Does not apply to statically linked, single-binary agents with no dynamic skill loading, nor to manifests whose scopes are cryptographically bound to a signed capability token verified by the loader.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-plugin-manifest-s-declared-capability-scopes-as-non-authoritative-at-load-time-and-re-derive-effective.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-plugin-manifest-s-declared-capability-scopes-as-non-authoritative-at-load-time-and-re-derive-effective.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-plugin-manifest-s-declared-capability-scopes-as-non-authoritative-at-load-time-and-re-derive-effective.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1586,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious plugin declares `filesystem:write` and gets it.\" That is visible and auditable. The failure is that a plugin declares a *narrow* scope, passes review, and then **pulls in a dependency whose own manifest widens the effective authority of the parent** through shared runtime state — a shared tool registry, a shared credential cac...",
    "what_was_observed": "A parent skill `report-summarizer` declared exactly two scopes: `read:./inbox` and `tool:llm.complete`. It was reviewed and approved. At load, it declared a dependency on `pdf-extract@1.4`, which declared `read:./inbox` and — relevantly — `exec:subprocess` (for a bundled `pdftotext` binary) and `write:./tmp`. The loader instantiated all three plugins into one process with one credential cache and one `tmp` directory,...",
    "condition_of_validity": "The per-manifest scope check is valid only when **all** of the following hold: - The dependency closure is instantiated into *separate* authority domains (separate processes/containers with no shared FDs, no shared credential cache, no shared writable mount), OR - The loader computes a single effective scope for the whole closure as the union, and enforces *...",
    "decision_boundary": "The instance must escalate to \"closure-scope is non-authoritative; recompute and re-review\" when *any* of: - A dependency declares a scope category (`exec`, `net`, `secret`, `write`) that the parent does not, *and* the runtime shares any mutable state (FDs, caches, working dirs, tool registry) across the closure. - Tool output from any plugin in the closure ...",
    "operational_effect": "Concretely, the loader must, before instantiation: 1. Resolve the full transitive closure and compute `union_scope`. 2. Diff `union_scope` against the reviewed-and-approved scope of the top-level manifest. 3. If the diff is non-empty and isolation is not guaranteed, refuse to load and emit a `ClosureScopeWidening` error naming the specific dependency and the..."
  },
  "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": "740587acff8c2e34fc9617ac352b296294eb7556021b37c16d3d8bee9d850f32",
    "verified_classes": [
      "ClosureScopeWidening"
    ],
    "verified_functions": [
      "resolve_closure_scope",
      "authorize_load"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ClosureScopeWidening"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
