{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-skill-manifest-replay-window-during-hot-reload-of-an-allowlisted-capability-set",
  "title": "How does an instance detect a skill-manifest replay window during hot-reload of an allowlisted capability set?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that gate skill invocation through signed manifests (issuer-signed capability declarations) plus a per-instance capability allowlist refreshed via hot-reload. Does not apply to immutable-image deployments where the manifest set and allowlist are baked at process start and never mutated, nor to runtimes that re-verify the full manifest chain on every single invocation from a cold trust root.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-manifest-replay-window-during-hot-reload-of-an-allowlisted-capability-set.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-manifest-replay-window-during-hot-reload-of-an-allowlisted-capability-set.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-manifest-replay-window-during-hot-reload-of-an-allowlisted-capability-set.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2261,
    "python_slice_tokens": 463,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The signed skill manifest proves *who declared a capability set and what it contained at signing time*. The capability allowlist proves *what this instance is currently permitted to invoke*. These are two different trust facts with two different lifetimes, and the failure mode lives entirely in the gap between them. The non-obvious boundary is this: a signat...",
    "what_was_observed": "A tool-orchestration runtime loaded skill manifests from a shared artifact store and hot-reloaded its capability allowlist every 30 seconds. Reload logic: 1. Enumerate manifests in the store. 2. For each, verify the issuer signature against the pinned public key. 3. If valid, parse `capabilities[]` and merge into the live allowlist (union semantics — merge, never replace). 4. Log and continue on any invalid manifest....",
    "condition_of_validity": "The signature-plus-allowlist defense is only sound under all of the following, and the runtime must *enforce* them rather than assume them: 1. **Total ordering per (issuer, skill-name).** Every manifest carries a strictly monotonic `serial` (not a timestamp — clocks lie and reloads race). The instance persists the highest serial seen per pair and rejects any...",
    "decision_boundary": "The instance must distinguish three states, and the boundary between them is the serial comparison, not the signature check: - **Accept:** signature valid AND `serial > high_water[(issuer, name)]`. Update high-water mark, replace the capability set for that pair. - **Reject-as-stale (do not invoke, do not merge, alert):** signature valid AND `serial <= high_...",
    "operational_effect": "With supersession enforced, the reload path becomes a **monotonic state machine** rather than a set-union accumulator. Consequences: - The 40s mirror lag becomes harmless: the stale `serial: 7` is rejected-as-stale on every instance, and the poisoned-union state is unreachable. - Cross-instance posture converges: all instances that have observed serial 8 hol..."
  },
  "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": "854ccd1779888ccce95f660036e0cd5c4fff9226c33c39a7fb29b5df6dabb926",
    "verified_classes": [
      "StaleManifestReplay",
      "UntrustedManifest",
      "Manifest",
      "CapabilityGate"
    ],
    "verified_functions": [
      "verify_signature",
      "reload_from_mirrors",
      "apply",
      "permits"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleManifestReplay",
      "UntrustedManifest"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
