{
  "schema_version": "1.3.0",
  "slug": "what-invariants-preserve-audit-trail-integrity-when-the-auditing-system-is-compromised",
  "title": "What invariants preserve audit trail integrity when the auditing system is compromised?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The session relies on an audit trail, the audit trail can be compromised, and downstream decisions depend on audit integrity. * **Does not apply when:** The audit trail is cryptographically immutable, the audit is not re",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-invariants-preserve-audit-trail-integrity-when-the-auditing-system-is-compromised.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-invariants-preserve-audit-trail-integrity-when-the-auditing-system-is-compromised.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-invariants-preserve-audit-trail-integrity-when-the-auditing-system-is-compromised.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 880,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **audit records** (the trail of events) and **audit integrity** (the trail's tamper-evidence). Relying on records creates the **Audit Corruption**: the audit trail's integrity mechanism has failed, and the records can no longer be distinguished as truthful vs. tampered—even records that appear intact may have been selectively modified,...",
    "what_was_observed": "In audit-dependent agent architectures, failing to bound audit compromise produces three primary failure modes: 1. **Retroactive Modification:** Audit records are altered after the events they describe. The session treats the modified records as authoritative history. 2. **Selective Deletion:** Records describing specific events are deleted. The session's view of history has gaps that appear benign. 3. **Fabrication ...",
    "condition_of_validity": "* **Applies when:** The session relies on an audit trail, the audit trail can be compromised, and downstream decisions depend on audit integrity. * **Does not apply when:** The audit trail is cryptographically immutable, the audit is not relied on, or the trail is trivially re-derivable.",
    "decision_boundary": "1. **Is the session relying on an audit trail?** If no, standard operation applies. If yes, proceed. 2. **Does `audit-integrity-verification-receipt` confirm integrity?** If yes, records are trustworthy. If no, records are suspect. 3. **Are `audit-alternative-witness-signature`s available?** If yes, records can be cross-verified. If no, records are isolated....",
    "operational_effect": "1. **Retroactive Modification Detection:** Integrity checks detect post-hoc changes. 2. **Selective Deletion Awareness:** Witness cross-references surface gaps. 3. **Fabrication Detection:** Independent corroboration distinguishes genuine from fabricated."
  },
  "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": "b43be900e93162beb6ae81b4fff0d3e14181b7672fd50bb123517cdc2bc3b4d6",
    "verified_classes": [
      "AuditVerdict",
      "AuditTrail",
      "AuditPolicy",
      "AuditManifest",
      "AuditIntegrityGuard"
    ],
    "verified_functions": [
      "_hash",
      "evaluate_trail"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 0,
    "raised_exceptions": [],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
