@remnic/core 9.7.10 → 9.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-admin-ops-surface.d.ts +6 -6
- package/dist/access-admin-ops-surface.js +7 -7
- package/dist/access-boundary.d.ts +7 -7
- package/dist/access-boundary.js +8 -8
- package/dist/access-cli.js +31 -31
- package/dist/access-http.d.ts +8 -7
- package/dist/access-http.js +12 -12
- package/dist/access-identity-continuity-surface.d.ts +5 -5
- package/dist/access-identity-continuity-surface.js +7 -7
- package/dist/access-lcm-surface.d.ts +6 -6
- package/dist/access-lcm-surface.js +7 -7
- package/dist/access-mcp.d.ts +6 -6
- package/dist/access-mcp.js +11 -11
- package/dist/access-observe-write-surface.d.ts +6 -6
- package/dist/access-observe-write-surface.js +7 -7
- package/dist/access-operations-batch.js +9 -9
- package/dist/access-operations.d.ts +10 -10
- package/dist/access-operations.js +10 -10
- package/dist/access-recall-surface.d.ts +6 -6
- package/dist/access-recall-surface.js +7 -7
- package/dist/access-schema.d.ts +64 -64
- package/dist/{access-service-DSuzikHQ.d.ts → access-service-tHd3eQpd.d.ts} +4 -4
- package/dist/access-service.d.ts +6 -6
- package/dist/access-service.js +7 -7
- package/dist/access-surface-catalog.d.ts +6 -6
- package/dist/access-surface-catalog.js +2 -0
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +5 -5
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +3 -3
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-BNwjACa5.d.ts → catalog-DEMiw6HZ.d.ts} +48 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +4 -4
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-U4KHQTJ6.js → chunk-2AL7N3BH.js} +4 -2
- package/dist/{chunk-U4KHQTJ6.js.map → chunk-2AL7N3BH.js.map} +1 -1
- package/dist/{chunk-L4H6MQ7I.js → chunk-2RSL6YRA.js} +2 -2
- package/dist/{chunk-7EX4YOKH.js → chunk-2ZPQUTMW.js} +4 -4
- package/dist/{chunk-673NPXE3.js → chunk-3SIC3E65.js} +2 -2
- package/dist/{chunk-OVMS3DCB.js → chunk-675YU5IK.js} +2 -2
- package/dist/{chunk-7LMEY5KZ.js → chunk-6N7R7TR2.js} +34 -1
- package/dist/chunk-6N7R7TR2.js.map +1 -0
- package/dist/{chunk-7CKS4AXY.js → chunk-AOWPZ7TM.js} +17 -17
- package/dist/{chunk-TGBJ2OMK.js → chunk-BQTSGK5Y.js} +2 -2
- package/dist/{chunk-UZRIKUFS.js → chunk-CE3GMHT4.js} +4 -2
- package/dist/chunk-CE3GMHT4.js.map +1 -0
- package/dist/{chunk-YXOAQAH2.js → chunk-CLFY35ED.js} +3 -3
- package/dist/{chunk-HQ7QZJM5.js → chunk-D4TLWDYR.js} +2 -2
- package/dist/{chunk-LQKITFGB.js → chunk-FUUF7FMX.js} +2 -2
- package/dist/{chunk-3ZVFLMFQ.js → chunk-G5PVJJRA.js} +1 -1
- package/dist/chunk-G5PVJJRA.js.map +1 -0
- package/dist/{chunk-MXRMNKSY.js → chunk-I3GKTDM2.js} +3 -3
- package/dist/{chunk-EQF5763Z.js → chunk-IQULRIZM.js} +2 -2
- package/dist/{chunk-DJCKXI4M.js → chunk-NVXQTRBL.js} +2 -2
- package/dist/{chunk-VDLMAJXS.js → chunk-OCY3CRPG.js} +3 -3
- package/dist/{chunk-YLTG6BO4.js → chunk-OIFZII6J.js} +2 -2
- package/dist/{chunk-XF4KOVDK.js → chunk-PA6DMYEK.js} +6 -6
- package/dist/{chunk-3OQ4IZJN.js → chunk-QPZCAVDC.js} +7 -7
- package/dist/{chunk-DLWYAN6A.js → chunk-T6U7HDIY.js} +2 -2
- package/dist/chunk-TITSEN2M.js +1794 -0
- package/dist/chunk-TITSEN2M.js.map +1 -0
- package/dist/{chunk-JZM5QUTE.js → chunk-TMGK6YE7.js} +171 -9
- package/dist/chunk-TMGK6YE7.js.map +1 -0
- package/dist/{chunk-KXLRMM35.js → chunk-TRH533CA.js} +30 -7
- package/dist/chunk-TRH533CA.js.map +1 -0
- package/dist/{chunk-UTDA43TB.js → chunk-TWGGNUWJ.js} +2 -2
- package/dist/{chunk-SBFDL2EQ.js → chunk-UTZW3X2R.js} +2 -2
- package/dist/{chunk-SECMZACR.js → chunk-XUQUBZ7O.js} +2 -2
- package/dist/{chunk-N3LWQJ6Y.js → chunk-YI7XUXLX.js} +309 -16
- package/dist/chunk-YI7XUXLX.js.map +1 -0
- package/dist/{chunk-QVALQE4P.js → chunk-ZASJ53ML.js} +128 -10
- package/dist/chunk-ZASJ53ML.js.map +1 -0
- package/dist/{chunk-WUDBMLC6.js → chunk-ZC3HG22I.js} +2 -2
- package/dist/{chunk-VCEH5UYS.js → chunk-ZRXSHGXT.js} +2 -2
- package/dist/{cli-DACyuK8-.d.ts → cli-D8Tsa4Sh.d.ts} +5 -5
- package/dist/cli.d.ts +8 -8
- package/dist/cli.js +25 -25
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +3 -3
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +3 -3
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +2 -2
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +3 -3
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +5 -5
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/identity-continuity.d.ts +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/index.d.ts +4002 -16
- package/dist/index.js +78 -31
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +3 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
- package/dist/maintenance/rebuild-memory-projection.js +4 -4
- package/dist/mcp-memory-inspector-app.d.ts +6 -6
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +4 -4
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +3 -3
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +2 -2
- package/dist/operator-toolkit.js +8 -8
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +5 -5
- package/dist/{orchestrator-D83AvrPf.d.ts → orchestrator-B_WXBmuE.d.ts} +4 -4
- package/dist/orchestrator.d.ts +5 -5
- package/dist/orchestrator.js +31 -31
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-BSqGpYl1.d.ts → pipeline-Dvtvt141.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{qmd-CutnpRVe.d.ts → qmd-DwBLh_hl.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +2 -2
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/schemas.d.ts +52 -52
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-btIVRC4l.d.ts → semantic-consolidation-Dia_6FOn.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +9 -9
- package/dist/signal.d.ts +1 -1
- package/dist/{storage-BVv_Mqa0.d.ts → storage-RshM7i8-.d.ts} +18 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +2 -2
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-Cmkz7csa.d.ts → types-CHSXOq7s.d.ts} +34 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +3 -3
- package/package.json +2 -2
- package/src/access-boundary.ts +2 -0
- package/src/access-http.ts +147 -6
- package/src/access-mcp-cancellation.test.ts +2 -2
- package/src/access-operations.ts +2 -0
- package/src/access-surface-catalog.ts +2 -0
- package/src/config.test.ts +44 -0
- package/src/config.ts +43 -0
- package/src/index.ts +53 -0
- package/src/namespaces/catalog.test.ts +258 -0
- package/src/namespaces/catalog.ts +235 -10
- package/src/namespaces/storage.ts +9 -0
- package/src/orchestrator.ts +3 -0
- package/src/relay/mission-access.test.ts +379 -0
- package/src/relay/mission-access.ts +125 -0
- package/src/relay/mission-fixture.ts +301 -0
- package/src/relay/mission.test.ts +964 -0
- package/src/relay/mission.ts +1725 -0
- package/src/storage-catalog-touch-gating.test.ts +70 -0
- package/src/storage.ts +31 -5
- package/src/types.ts +34 -0
- package/dist/chunk-3ZVFLMFQ.js.map +0 -1
- package/dist/chunk-7LMEY5KZ.js.map +0 -1
- package/dist/chunk-FNJX2O6G.js +0 -467
- package/dist/chunk-FNJX2O6G.js.map +0 -1
- package/dist/chunk-JZM5QUTE.js.map +0 -1
- package/dist/chunk-KXLRMM35.js.map +0 -1
- package/dist/chunk-N3LWQJ6Y.js.map +0 -1
- package/dist/chunk-QVALQE4P.js.map +0 -1
- package/dist/chunk-UZRIKUFS.js.map +0 -1
- /package/dist/{chunk-L4H6MQ7I.js.map → chunk-2RSL6YRA.js.map} +0 -0
- /package/dist/{chunk-7EX4YOKH.js.map → chunk-2ZPQUTMW.js.map} +0 -0
- /package/dist/{chunk-673NPXE3.js.map → chunk-3SIC3E65.js.map} +0 -0
- /package/dist/{chunk-OVMS3DCB.js.map → chunk-675YU5IK.js.map} +0 -0
- /package/dist/{chunk-7CKS4AXY.js.map → chunk-AOWPZ7TM.js.map} +0 -0
- /package/dist/{chunk-TGBJ2OMK.js.map → chunk-BQTSGK5Y.js.map} +0 -0
- /package/dist/{chunk-YXOAQAH2.js.map → chunk-CLFY35ED.js.map} +0 -0
- /package/dist/{chunk-HQ7QZJM5.js.map → chunk-D4TLWDYR.js.map} +0 -0
- /package/dist/{chunk-LQKITFGB.js.map → chunk-FUUF7FMX.js.map} +0 -0
- /package/dist/{chunk-MXRMNKSY.js.map → chunk-I3GKTDM2.js.map} +0 -0
- /package/dist/{chunk-EQF5763Z.js.map → chunk-IQULRIZM.js.map} +0 -0
- /package/dist/{chunk-DJCKXI4M.js.map → chunk-NVXQTRBL.js.map} +0 -0
- /package/dist/{chunk-VDLMAJXS.js.map → chunk-OCY3CRPG.js.map} +0 -0
- /package/dist/{chunk-YLTG6BO4.js.map → chunk-OIFZII6J.js.map} +0 -0
- /package/dist/{chunk-XF4KOVDK.js.map → chunk-PA6DMYEK.js.map} +0 -0
- /package/dist/{chunk-3OQ4IZJN.js.map → chunk-QPZCAVDC.js.map} +0 -0
- /package/dist/{chunk-DLWYAN6A.js.map → chunk-T6U7HDIY.js.map} +0 -0
- /package/dist/{chunk-UTDA43TB.js.map → chunk-TWGGNUWJ.js.map} +0 -0
- /package/dist/{chunk-SBFDL2EQ.js.map → chunk-UTZW3X2R.js.map} +0 -0
- /package/dist/{chunk-SECMZACR.js.map → chunk-XUQUBZ7O.js.map} +0 -0
- /package/dist/{chunk-WUDBMLC6.js.map → chunk-ZC3HG22I.js.map} +0 -0
- /package/dist/{chunk-VCEH5UYS.js.map → chunk-ZRXSHGXT.js.map} +0 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import type { RelayMissionEventInput } from "./mission.js";
|
|
2
|
+
|
|
3
|
+
export const RELAY_DEMO_MISSION_ID = "checkout-token-recovery";
|
|
4
|
+
export const RELAY_DEMO_NAMESPACE = "relay-build-week";
|
|
5
|
+
|
|
6
|
+
const sourceEvidence = {
|
|
7
|
+
kind: "source" as const,
|
|
8
|
+
id: "source-checkout-contract",
|
|
9
|
+
label: "Checkout token contract",
|
|
10
|
+
locator: "fixture://checkout-service/src/token-policy.ts",
|
|
11
|
+
capture: "fixture" as const,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const testEvidence = {
|
|
15
|
+
kind: "test" as const,
|
|
16
|
+
id: "test-checkout-contract",
|
|
17
|
+
label: "Checkout integration contract",
|
|
18
|
+
locator: "fixture://checkout-service/test/token-policy.test.ts",
|
|
19
|
+
capture: "fixture" as const,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const approvalEvidence = {
|
|
23
|
+
kind: "approval" as const,
|
|
24
|
+
id: "approval-build-week-operator",
|
|
25
|
+
label: "Human approval receipt",
|
|
26
|
+
locator: "fixture://relay/approvals/correction-token-refresh.json",
|
|
27
|
+
capture: "fixture" as const,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const correctionEvidence = {
|
|
31
|
+
kind: "correction" as const,
|
|
32
|
+
id: "correction-token-refresh",
|
|
33
|
+
label: "Applied Remnic correction",
|
|
34
|
+
locator: "fixture://remnic/corrections/correction-token-refresh.json",
|
|
35
|
+
capture: "fixture" as const,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
function at(second: number): string {
|
|
39
|
+
return `2026-07-17T18:00:${String(second).padStart(2, "0")}.000Z`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Deterministic evidence stream shared by contract tests, replay, and the
|
|
44
|
+
* judge-facing fixture mode. Every event has a stable idempotency key and
|
|
45
|
+
* source reference so the resulting receipt is complete without fabricated
|
|
46
|
+
* runtime evidence.
|
|
47
|
+
*/
|
|
48
|
+
export function createRelayMissionFixture(): RelayMissionEventInput[] {
|
|
49
|
+
return [
|
|
50
|
+
{
|
|
51
|
+
occurredAt: at(0),
|
|
52
|
+
idempotencyKey: "fixture-001",
|
|
53
|
+
payload: {
|
|
54
|
+
kind: "mission_started",
|
|
55
|
+
title: "The checkout token split",
|
|
56
|
+
objective: "Resolve a conflicting token refresh policy and prove a cold agent acts on it.",
|
|
57
|
+
runMode: "fixture",
|
|
58
|
+
evidence: [sourceEvidence],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
occurredAt: at(2),
|
|
63
|
+
idempotencyKey: "fixture-002",
|
|
64
|
+
payload: {
|
|
65
|
+
kind: "agent_status",
|
|
66
|
+
agentId: "agent-atlas",
|
|
67
|
+
sessionId: "session-atlas",
|
|
68
|
+
label: "Atlas",
|
|
69
|
+
role: "Checkout implementation",
|
|
70
|
+
status: "working",
|
|
71
|
+
evidence: [sourceEvidence],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
occurredAt: at(3),
|
|
76
|
+
idempotencyKey: "fixture-003",
|
|
77
|
+
payload: {
|
|
78
|
+
kind: "agent_status",
|
|
79
|
+
agentId: "agent-nova",
|
|
80
|
+
sessionId: "session-nova",
|
|
81
|
+
label: "Nova",
|
|
82
|
+
role: "Integration verification",
|
|
83
|
+
status: "working",
|
|
84
|
+
evidence: [testEvidence],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
occurredAt: at(6),
|
|
89
|
+
idempotencyKey: "fixture-004",
|
|
90
|
+
payload: {
|
|
91
|
+
kind: "agent_output",
|
|
92
|
+
agentId: "agent-atlas",
|
|
93
|
+
sessionId: "session-atlas",
|
|
94
|
+
outputId: "output-atlas-policy",
|
|
95
|
+
summary: "Implemented a new token for every checkout retry.",
|
|
96
|
+
evidence: [
|
|
97
|
+
{
|
|
98
|
+
kind: "agent_output",
|
|
99
|
+
id: "output-atlas-policy",
|
|
100
|
+
label: "Atlas one-shot output",
|
|
101
|
+
locator: "fixture://codex/atlas/final-output.txt",
|
|
102
|
+
capture: "fixture",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
occurredAt: at(7),
|
|
109
|
+
idempotencyKey: "fixture-005",
|
|
110
|
+
payload: {
|
|
111
|
+
kind: "belief_observed",
|
|
112
|
+
agentId: "agent-atlas",
|
|
113
|
+
sessionId: "session-atlas",
|
|
114
|
+
beliefId: "belief-new-token-every-request",
|
|
115
|
+
decisionId: "decision-new-token-every-request",
|
|
116
|
+
statement: "Mint a new checkout token for every request and retry.",
|
|
117
|
+
confidence: 0.91,
|
|
118
|
+
evidence: [
|
|
119
|
+
{
|
|
120
|
+
kind: "memory",
|
|
121
|
+
id: "memory-stale-token-policy",
|
|
122
|
+
label: "Stale project decision",
|
|
123
|
+
locator: "fixture://remnic/memories/memory-stale-token-policy.md",
|
|
124
|
+
capture: "fixture",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
occurredAt: at(9),
|
|
131
|
+
idempotencyKey: "fixture-006",
|
|
132
|
+
payload: {
|
|
133
|
+
kind: "agent_output",
|
|
134
|
+
agentId: "agent-nova",
|
|
135
|
+
sessionId: "session-nova",
|
|
136
|
+
outputId: "output-nova-policy",
|
|
137
|
+
summary: "The contract requires one token per checkout session, refreshed only after expiry.",
|
|
138
|
+
evidence: [
|
|
139
|
+
{
|
|
140
|
+
kind: "agent_output",
|
|
141
|
+
id: "output-nova-policy",
|
|
142
|
+
label: "Nova one-shot output",
|
|
143
|
+
locator: "fixture://codex/nova/final-output.txt",
|
|
144
|
+
capture: "fixture",
|
|
145
|
+
},
|
|
146
|
+
sourceEvidence,
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
occurredAt: at(10),
|
|
152
|
+
idempotencyKey: "fixture-007",
|
|
153
|
+
payload: {
|
|
154
|
+
kind: "belief_observed",
|
|
155
|
+
agentId: "agent-nova",
|
|
156
|
+
sessionId: "session-nova",
|
|
157
|
+
beliefId: "belief-refresh-after-expiry",
|
|
158
|
+
decisionId: "decision-refresh-after-expiry",
|
|
159
|
+
statement: "Reuse the checkout-session token and refresh it only after expiry.",
|
|
160
|
+
confidence: 0.98,
|
|
161
|
+
evidence: [sourceEvidence],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
occurredAt: at(12),
|
|
166
|
+
idempotencyKey: "fixture-008",
|
|
167
|
+
payload: {
|
|
168
|
+
kind: "conflict_detected",
|
|
169
|
+
conflictId: "conflict-token-lifecycle",
|
|
170
|
+
decisionIds: ["decision-refresh-after-expiry", "decision-new-token-every-request"],
|
|
171
|
+
agentIds: ["agent-nova", "agent-atlas"],
|
|
172
|
+
summary: "The agents disagree on whether retries reuse or rotate the checkout token.",
|
|
173
|
+
evidence: [sourceEvidence, testEvidence],
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
occurredAt: at(14),
|
|
178
|
+
idempotencyKey: "fixture-009",
|
|
179
|
+
payload: {
|
|
180
|
+
kind: "test_result",
|
|
181
|
+
testId: "test-before-correction",
|
|
182
|
+
decisionId: "decision-new-token-every-request",
|
|
183
|
+
command: "npm test -- token-policy.test.ts",
|
|
184
|
+
status: "failed",
|
|
185
|
+
summary: "Retry minted a second token instead of reusing the session token.",
|
|
186
|
+
durationMs: 418,
|
|
187
|
+
evidence: [testEvidence],
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
occurredAt: at(18),
|
|
192
|
+
idempotencyKey: "fixture-010",
|
|
193
|
+
payload: {
|
|
194
|
+
kind: "correction_proposed",
|
|
195
|
+
correctionId: "correction-token-refresh",
|
|
196
|
+
conflictId: "conflict-token-lifecycle",
|
|
197
|
+
proposedDecisionId: "decision-refresh-after-expiry",
|
|
198
|
+
supersedesDecisionIds: ["decision-new-token-every-request"],
|
|
199
|
+
statement: "Reuse the checkout-session token and refresh it only after expiry.",
|
|
200
|
+
rationale: "The implementation contract and failing integration test agree on session reuse.",
|
|
201
|
+
proposedBy: "agent-resolver",
|
|
202
|
+
evidence: [sourceEvidence, testEvidence],
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
occurredAt: at(21),
|
|
207
|
+
idempotencyKey: "fixture-011",
|
|
208
|
+
payload: {
|
|
209
|
+
kind: "correction_approved",
|
|
210
|
+
correctionId: "correction-token-refresh",
|
|
211
|
+
approvedBy: {
|
|
212
|
+
kind: "human",
|
|
213
|
+
id: "operator-build-week",
|
|
214
|
+
label: "Build Week operator",
|
|
215
|
+
},
|
|
216
|
+
note: "Approve the source-grounded policy and retire the stale decision.",
|
|
217
|
+
evidence: [approvalEvidence],
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
occurredAt: at(23),
|
|
222
|
+
idempotencyKey: "fixture-012",
|
|
223
|
+
payload: {
|
|
224
|
+
kind: "decision_superseded",
|
|
225
|
+
decisionId: "decision-new-token-every-request",
|
|
226
|
+
replacementDecisionId: "decision-refresh-after-expiry",
|
|
227
|
+
correctionId: "correction-token-refresh",
|
|
228
|
+
evidence: [correctionEvidence],
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
occurredAt: at(27),
|
|
233
|
+
idempotencyKey: "fixture-013",
|
|
234
|
+
payload: {
|
|
235
|
+
kind: "recall_observed",
|
|
236
|
+
agentId: "agent-orbit",
|
|
237
|
+
sessionId: "session-orbit-cold",
|
|
238
|
+
recallReceiptId: "recall-orbit-cold",
|
|
239
|
+
decisionId: "decision-refresh-after-expiry",
|
|
240
|
+
query: "What token lifecycle must checkout retries follow?",
|
|
241
|
+
capturedAtAction: true,
|
|
242
|
+
evidence: [
|
|
243
|
+
{
|
|
244
|
+
kind: "recall_audit",
|
|
245
|
+
id: "recall-orbit-cold",
|
|
246
|
+
label: "Cold-start recall audit",
|
|
247
|
+
locator: "fixture://remnic/recall-audit/recall-orbit-cold.json",
|
|
248
|
+
capture: "fixture",
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
occurredAt: at(29),
|
|
255
|
+
idempotencyKey: "fixture-014",
|
|
256
|
+
payload: {
|
|
257
|
+
kind: "propagation_verified",
|
|
258
|
+
agentId: "agent-orbit",
|
|
259
|
+
sessionId: "session-orbit-cold",
|
|
260
|
+
correctionId: "correction-token-refresh",
|
|
261
|
+
decisionId: "decision-refresh-after-expiry",
|
|
262
|
+
recallReceiptId: "recall-orbit-cold",
|
|
263
|
+
staleDecisionAbsent: true,
|
|
264
|
+
evidence: [
|
|
265
|
+
{
|
|
266
|
+
kind: "recall_audit",
|
|
267
|
+
id: "recall-orbit-cold",
|
|
268
|
+
label: "Cold-start recall audit",
|
|
269
|
+
locator: "fixture://remnic/recall-audit/recall-orbit-cold.json",
|
|
270
|
+
capture: "fixture",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
occurredAt: at(34),
|
|
277
|
+
idempotencyKey: "fixture-015",
|
|
278
|
+
payload: {
|
|
279
|
+
kind: "test_result",
|
|
280
|
+
testId: "test-after-correction",
|
|
281
|
+
decisionId: "decision-refresh-after-expiry",
|
|
282
|
+
correctionId: "correction-token-refresh",
|
|
283
|
+
command: "npm test -- token-policy.test.ts",
|
|
284
|
+
status: "passed",
|
|
285
|
+
summary: "The cold agent reused the session token and the integration contract passed.",
|
|
286
|
+
durationMs: 391,
|
|
287
|
+
evidence: [testEvidence, correctionEvidence],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
occurredAt: at(36),
|
|
292
|
+
idempotencyKey: "fixture-016",
|
|
293
|
+
payload: {
|
|
294
|
+
kind: "mission_completed",
|
|
295
|
+
outcome: "recovered",
|
|
296
|
+
summary: "One approved correction reached a cold agent and changed the observable outcome.",
|
|
297
|
+
evidence: [testEvidence, approvalEvidence],
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
];
|
|
301
|
+
}
|