Aftermath
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Aftermath
Evidence-bound transaction recovery with intent-aware authorization.
AgntID Agent Security Challenge entry. Primary category: Best Intent Exploration, as named in the official challenge guide. The recorded output-projection finding also supports Security Insight & Product Discovery.
A supplier accepts an order, but its acknowledgment never reaches the buyer. The buyer sees an unknown outcome. A blind retry can create a second purchase.
Aftermath holds retries, investigates the original operation, validates signed evidence and repairs the buyer's historical acknowledgment. AgntID checks whether the requested workflow fits its trusted task. A separate commit guard decides whether the evidence and current business state permit the exact repair. Independent readback verifies what happened.
Try the interactive demo · GitHub · Run locally · AgntID setup · Measured results
The hosted demo replays actual captured synthetic runs in your browser. Use the downloaded protected runtime to execute new AgntID calls. Reviewer walkthrough · Agent execution guide · Experiment design.

Recorded interactive demo of actual captured AgntID runs.
Follow one incident from failure to proof
The workbench keeps six questions together: what failed, what the agent was asked to achieve, which action it proposed, why it was permitted or blocked, what actually happened, and what independently proves the result.
Search incidents by order, operation or incident ID and open a stable investigation link.
Inspect the trusted objective, evidence, authorization decision, effect receipt and verification.
Follow persisted SSE events, pause the feed and reconnect with sequence-based replay.
Compare the same proposed action under different trusted objectives.
Stop new buyer mutations while preserving the outcome of work already dispatched.
Historical acceptance and current fulfillment are separate facts. Recovering a missing acknowledgment does not establish that an order is still active, and Aftermath never creates a replacement purchase.
Related MCP server: velvet-rope
How the boundaries fit together
flowchart LR
O[Trusted operator task] --> P[Bounded agent proposal]
P --> A[AgntID intent and policy]
A --> W[Fixed recovery workflow]
S[Signed supplier evidence] --> G[Buyer commit guard]
W --> G
G --> B[Atomic buyer repair and receipt]
B --> V[Independent readback]
V --> C[Workbench and durable event ledger]Layer | Responsibility |
Agent | A connected model selects an action for the assigned incident and returns a strict typed proposal. |
AgntID | Prepares task context and evaluates intent and access policy for the outer recovery invocation. |
Recovery workflow | Runs fixed MCP operations against separate buyer, supplier and warehouse services. Playwright reads the owned supplier portal. |
Commit guard | Checks signed evidence, operation and order identity, mandate, phase, lease fence, policy revision, stop epoch, buyer version and an expiring single-use permit. |
Buyer transaction | Consumes the permit and writes the repair, effect receipt and event together in SQLite. |
Verifier | Rereads the resulting buyer state. A successful response or generated explanation is never a substitute for this check. |
The runtime's upstream credential exposes two business tools: recover_incident and get_recovery_checkpoint. Direct calls to internal claim or repair primitives are refused. Internal deterministic guards remain distinct from AgntID's outer-workflow decision.

Recorded interactive demo of actual captured AgntID runs.
Run locally
Requirements: Python 3.12 or newer and uv. The local workflow needs the Playwright Chromium headless shell. Docker and a model account are optional for this path.
uv sync --locked --extra dev
uv run playwright install chromium --only-shell
uv run aftermath demo --mode local --runtime .runtime-demo --output traces/latest.jsonThis command starts five loopback services, injects a real commit with a lost acknowledgment, runs recovery, saves the trace and shuts down its services.
To open the workbench:
uv run aftermath serve --mode local --runtime .runtime-workbenchOpen localhost:8410. Local operator access uses the generated .runtime-workbench/operator-token file. Keep it on your machine. The separate public demo entry does not require this credential.
Select Supplier commits, ACK lost, run the incident and inspect its receipt and verification. Try a forged receipt or a quantity mismatch to see containment. Ctrl+C stops the owned services. Use a fresh runtime directory for a new isolated sandbox; prior records and stop state remain preserved.
Connect AgntID
The protected path uses the actual customer-hosted runtime, managed intent and a registered MCP server. Follow the complete setup for bootstrap, scoped upstream authentication, action review, the incident-prefix policy and applied synchronization.
uv run aftermath serve --mode protected --agntid-profile profiles/agntid-intent.example.json --runtime .runtime-protectedProtected startup requires an explicit profile. A runtime refusal or transport failure does not trigger a direct repair fallback. The trusted orchestrator can separately hold retries and contain uncertainty.
The integration was exercised against a pinned AgntID runtime image. Actual task, intent and policy observations are retained alongside independent buyer effects in the live runtime report. The initial typed-result projection mismatch is preserved: the adapter failed closed, and the revised workflow keeps permit handling inside trusted code instead of deriving authority from generated prose.
Connect a model
The protected workbench can ask a connected model to select a bounded workflow action. Configure the model connection on the operator's machine. No model is bundled with Aftermath, and the public recorded demo has no model access. Provider account and authentication details are omitted from the public evaluation report.
Choose the existing connected-client adapter (codex, the default) or bring your own key and compatible endpoint (openai_compatible). The latter requires a Chat Completions API with strict JSON-schema responses. Configuration stays on the operator's machine; see model connection setup. Its transport and failure behavior passed owned HTTP-double tests. No external BYOK inference was measured, and compatibility with every provider is not claimed.
The model can propose recover_incident, get_recovery_checkpoint or finish. The runner validates the assigned incident and enforces an action allowlist for its typed objective before dispatch. A read-only objective cannot initiate recovery, even if the model proposes it and a vendor would allow it. A successful read-only checkpoint ends the run without another model request. Recovery runs allow at most three proposals. Model shell tools are disabled, and applicable calls still traverse AgntID. The internal recovery algorithm remains deterministic.
The current three-case model study records unchanged collection-time source: 3/3 safe outcomes and 1/3 completed tasks. Authorized recovery executed once. A legitimate audit read was refused with DECISION_CALL_LOW_CONFIDENCE; a checkpoint request under injected supplier text was refused with DECISION_CALL_deny. Both read-only cases produced zero buyer repairs. These are utility failures, not successful reads. The initial study remains separate and retained.
Public evidence copies omit account-authentication metadata and normalize model labels. Native vendor decisions, outcomes and collection-time source receipts are unchanged; private originals are retained. The publication metadata receipt records original/public SHA-256 pairs and changed paths. Study source digests identify collection-time code, not the current public tree or normalized artifact bytes.
Two whole-run regressions first reproduced missing local objective admission and unnecessary post-read model action. Both now pass against an explicit always-allow vendor double. That establishes the application control, not a new live AgntID denial. The forced intent experiment remains unfiltered at the client so it can measure the actual vendor decision.
Reproduce the evidence
uv run pytest -q --junitxml results/tests.xml
uv run ruff check aftermath tests scripts
uv run pip-audit --skip-editable
uv run aftermath benchmark --mode local --runtime .runtime-benchmark-new --base-port 19410 --output results/recovery-pilot.json
uv buildRecorded evaluation | Result |
Current local regression suite | 165 passed in 98.16 seconds on Windows/Python 3.13; Ruff passed. Current receipt |
Current public Windows CI | 165 passed in 138.58 seconds for public commit |
Controlled live intent pairs | Three read-only refusals with zero buyer actions; three recovery allowances with one verified repair each |
Broader live acceptance | Initial 11/15 retained; revised fixed-workflow and scoped-credential studies each matched 16/16 intended states |
Local recovery comparison | 45 observations across three arms. Both safe methods recovered 8/8 resolvable cases and contained 7/7 other cases, with zero duplicates |
Strong deterministic comparator | Tied Aftermath on outcomes and was faster in the recorded sample |
Current model-selected study | Three cases: 3/3 safe business states, 1/3 useful completions; both refused reads retained |
One additional actual UI model trial is retained separately: the model selected recovery for the assigned incident, but AgntID refused it with DECISION_CALL_LOW_CONFIDENCE at confidence 0.42. Policy and execution were skipped, with zero buyer repairs. Buyer containment reached FAILED_SAFE. That trial exposed a stale saved worker state, now covered by an authenticated regression: reports preserve the original worker state and containment flag while reflecting the buyer's final state and confirmed containment. This additional trial does not change the three-case cohort's counts.
The tests include stale authority, concurrent permit consumption, process death, lost repair responses, invalid evidence, stop races, original remote commitment after local stop, authenticated SSE replay and browser-network reconnection. Local atomicity is enforced at the buyer database; cross-organization exactly-once execution is not claimed.
The benchmark report, security review and coverage record identify measurement revisions, sample counts and retained failures. The public demo uses synthetic replay; the protected runtime performs actual tool calls. Neither mode silently substitutes for the other.
Published recording

Watch the 2K product film, 2 minutes 51 seconds with narration and timed subtitles. Follow the missing acknowledgment, inspect the guarded repair and compare actual AgntID intent outcomes. The film identifies recorded application states and the separate controlled pair.
Download the video, subtitles and installable packages. The encoded-media verification records the exact file hash, format, timing and voice-only audio comparison.
Repository map
Path | Contents |
| Buyer guard, services, MCP gateway, runtime adapter, optional model runner and workbench |
| Database, transport, authorization, recovery, SSE and browser tests |
| Runtime preparation and explicit live-study runners |
| Non-secret example runtime configuration |
| Setup, architecture, experiments and measured reports |
| Curated runtime evidence, including negative outcomes |
| Two original actual local execution records |
Generated credentials, signing keys, runtime databases, dependency caches and licensed raw audio stay outside publication. Project source is MIT licensed; third-party fonts, icons and media retain their own licenses.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Bounded authorization and independently verifiable execution evidence for agents.
Governed MCP: agent audit, provenance, deterministic checks, and receipt-backed FragGate execution.
Agent-native MCP for governed commerce, x402 payments, paid capabilities, and verifiable receipts.
Tamper-evident proof creation and verification for AI agents via MCP, A2A, and REST.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for Agent Reputation, enabling agent buyers to examine candidate agents' claims, outcomes, and independent sources, and to order evidence briefs before purchase.6 npm1ISC
- AlicenseNot gradedqualityCmaintenanceAn MCP server for agent authorization that tests the full effect surface and enforces control over consequential actions before dispatch, emitting verifiable execution evidence.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides evidence-oriented MCP service for cryptographically identified agents, bounded public contracts, privacy-preserving records, and append-only audit.Apache 2.0
- AlicenseAqualityCmaintenanceFree seven-tool proof loop for MCP agents: scoped sessions, bounded authorization, typed outcomes, evidence-bound claims, and tamper-evident local closure. Upgrade to Complete Local for durable memory, recovery, signed traces, release verification, and multi-agent workflows.7Apache 2.0