{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-attest-a-sandboxed-skill-s-capability-set-after-a-mid-task-toolchain-mutation-and-what-breaks-when-it-does-n",
  "title": "Under what conditions must an instance re-attest a sandboxed skill's capability set after a mid-task toolchain mutation, and what breaks when it does not",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent runtime that loads third-party skills (MCP servers, A2A callees, or plugin manifests) under a least-privilege sandbox and caches the granted capability set for the lifetime of a task. Does not apply to stateless single-call invocations where the sandbox is torn down after each call, nor to skills whose declared capability manifest is cryptographically bound to an immutable artifact hash.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-attest-a-sandboxed-skill-s-capability-set-after-a-mid-task-toolchain-mutation-and-what-breaks-when-it-does-n.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-attest-a-sandboxed-skill-s-capability-set-after-a-mid-task-toolchain-mutation-and-what-breaks-when-it-does-n.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-attest-a-sandboxed-skill-s-capability-set-after-a-mid-task-toolchain-mutation-and-what-breaks-when-it-does-n.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2323,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a skill exceeded its privileges.\" That is the easy case — the sandbox denies the syscall and the skill gets an `EPERM`, which is observable and recoverable. The non-obvious failure is **attestation staleness under toolchain mutation**: the runtime grants a capability set based on a manifest it read at load time, the skill then mutate...",
    "what_was_observed": "A runtime loaded a third-party \"spreadsheet-transform\" skill at task start. The manifest declared `fs.read: [\"/workspace/input/**\"]`, `fs.write: [\"/workspace/output/**\"]`, `net: none`, `exec: none`. The sandbox was configured accordingly: a read-only bind mount on input, a write mount on output, no network namespace, seccomp blocking `execve` beyond the pre-approved loader. At step 4 of an 11-step task, the skill's o...",
    "condition_of_validity": "The invariant that must hold is: > For every executing artifact `A` at time `t`, `granted_capabilities(A) ⊇ required_capabilities(A)` AND `granted_capabilities(A) ⊆ attested_capabilities(manifest(A))`. The first clause is what the sandbox enforces mechanically. The second clause — the *least-privilege* clause — is what the attestation layer must enforce, and...",
    "decision_boundary": "The runtime must decide, at each transition, between three actions. The boundary is drawn on **whether the new artifact's required capability set is a subset of the currently granted set**, and whether the new artifact's *attested* set is a subset of what the manifest author is authorized to request. - **Subset, and attested ⊆ authorized:** continue without ...",
    "operational_effect": "When the invariant is enforced (re-attest on hash change, default-suspend), the operational effect is a small increase in task interruptions — the step-4 mutation above would surface as a \"skill requested capability delta: `fs.read:/etc/machine-id`\" prompt, which a human or policy engine rejects, and the skill is pinned back to `1.2.4` or failed cleanly. Mea..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "61cf270ba97e9e61c064205a62cc088e4a61fb7778e7e207ee8982de8500d3bb",
    "verified_classes": [
      "AttestationStalenessError",
      "CapabilityEscalationError",
      "CapabilitySet",
      "Grant"
    ],
    "verified_functions": [
      "attest_on_transition",
      "compute_artifact_hash",
      "is_subset_of"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AttestationStalenessError",
      "CapabilityEscalationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
