@remnic/core 9.7.10 → 9.7.11
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-boundary.d.ts +1 -1
- package/dist/access-boundary.js +1 -1
- package/dist/access-cli.js +7 -7
- package/dist/access-http.d.ts +2 -1
- package/dist/access-http.js +5 -5
- package/dist/access-mcp.js +4 -4
- package/dist/access-operations-batch.js +2 -2
- package/dist/access-operations.d.ts +4 -4
- package/dist/access-operations.js +3 -3
- package/dist/access-schema.d.ts +64 -64
- package/dist/access-surface-catalog.js +2 -0
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/{chunk-N3LWQJ6Y.js → chunk-5U65RIVI.js} +294 -2
- package/dist/chunk-5U65RIVI.js.map +1 -0
- package/dist/{chunk-UZRIKUFS.js → chunk-6LM6PPDX.js} +3 -1
- package/dist/chunk-6LM6PPDX.js.map +1 -0
- package/dist/chunk-7XRUYC6G.js +1794 -0
- package/dist/chunk-7XRUYC6G.js.map +1 -0
- package/dist/{chunk-VDLMAJXS.js → chunk-GHVJASQ4.js} +2 -2
- package/dist/{chunk-7EX4YOKH.js → chunk-JYRFO4EH.js} +2 -2
- package/dist/{chunk-QVALQE4P.js → chunk-QHT4W3RU.js} +126 -8
- package/dist/chunk-QHT4W3RU.js.map +1 -0
- package/dist/{chunk-7CKS4AXY.js → chunk-W6R43NLA.js} +3 -3
- package/dist/cli.js +6 -6
- package/dist/index.d.ts +3990 -4
- package/dist/index.js +54 -7
- package/dist/orchestrator.js +7 -7
- package/dist/schemas.d.ts +52 -52
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/transfer/types.d.ts +66 -66
- 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/index.ts +53 -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/dist/chunk-FNJX2O6G.js +0 -467
- package/dist/chunk-FNJX2O6G.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-VDLMAJXS.js.map → chunk-GHVJASQ4.js.map} +0 -0
- /package/dist/{chunk-7EX4YOKH.js.map → chunk-JYRFO4EH.js.map} +0 -0
- /package/dist/{chunk-7CKS4AXY.js.map → chunk-W6R43NLA.js.map} +0 -0
|
@@ -3432,7 +3432,7 @@ ${normalized}`).digest("hex");
|
|
|
3432
3432
|
(meta.processedExtractionFingerprints ?? []).map((entry) => [entry.fingerprint, entry.observedAt])
|
|
3433
3433
|
);
|
|
3434
3434
|
seen.set(fingerprint, observedAt);
|
|
3435
|
-
meta.processedExtractionFingerprints = Array.from(seen.entries()).map(([value,
|
|
3435
|
+
meta.processedExtractionFingerprints = Array.from(seen.entries()).map(([value, at2]) => ({ fingerprint: value, observedAt: at2 })).sort((left, right) => left.observedAt.localeCompare(right.observedAt)).slice(-500);
|
|
3436
3436
|
if (!preloadedMeta) {
|
|
3437
3437
|
await storage.saveMeta(meta);
|
|
3438
3438
|
}
|
|
@@ -18075,6 +18075,295 @@ ${doc.content}` : doc.content,
|
|
|
18075
18075
|
}
|
|
18076
18076
|
};
|
|
18077
18077
|
|
|
18078
|
+
// src/relay/mission-fixture.ts
|
|
18079
|
+
var RELAY_DEMO_MISSION_ID = "checkout-token-recovery";
|
|
18080
|
+
var RELAY_DEMO_NAMESPACE = "relay-build-week";
|
|
18081
|
+
var sourceEvidence = {
|
|
18082
|
+
kind: "source",
|
|
18083
|
+
id: "source-checkout-contract",
|
|
18084
|
+
label: "Checkout token contract",
|
|
18085
|
+
locator: "fixture://checkout-service/src/token-policy.ts",
|
|
18086
|
+
capture: "fixture"
|
|
18087
|
+
};
|
|
18088
|
+
var testEvidence = {
|
|
18089
|
+
kind: "test",
|
|
18090
|
+
id: "test-checkout-contract",
|
|
18091
|
+
label: "Checkout integration contract",
|
|
18092
|
+
locator: "fixture://checkout-service/test/token-policy.test.ts",
|
|
18093
|
+
capture: "fixture"
|
|
18094
|
+
};
|
|
18095
|
+
var approvalEvidence = {
|
|
18096
|
+
kind: "approval",
|
|
18097
|
+
id: "approval-build-week-operator",
|
|
18098
|
+
label: "Human approval receipt",
|
|
18099
|
+
locator: "fixture://relay/approvals/correction-token-refresh.json",
|
|
18100
|
+
capture: "fixture"
|
|
18101
|
+
};
|
|
18102
|
+
var correctionEvidence = {
|
|
18103
|
+
kind: "correction",
|
|
18104
|
+
id: "correction-token-refresh",
|
|
18105
|
+
label: "Applied Remnic correction",
|
|
18106
|
+
locator: "fixture://remnic/corrections/correction-token-refresh.json",
|
|
18107
|
+
capture: "fixture"
|
|
18108
|
+
};
|
|
18109
|
+
function at(second) {
|
|
18110
|
+
return `2026-07-17T18:00:${String(second).padStart(2, "0")}.000Z`;
|
|
18111
|
+
}
|
|
18112
|
+
function createRelayMissionFixture() {
|
|
18113
|
+
return [
|
|
18114
|
+
{
|
|
18115
|
+
occurredAt: at(0),
|
|
18116
|
+
idempotencyKey: "fixture-001",
|
|
18117
|
+
payload: {
|
|
18118
|
+
kind: "mission_started",
|
|
18119
|
+
title: "The checkout token split",
|
|
18120
|
+
objective: "Resolve a conflicting token refresh policy and prove a cold agent acts on it.",
|
|
18121
|
+
runMode: "fixture",
|
|
18122
|
+
evidence: [sourceEvidence]
|
|
18123
|
+
}
|
|
18124
|
+
},
|
|
18125
|
+
{
|
|
18126
|
+
occurredAt: at(2),
|
|
18127
|
+
idempotencyKey: "fixture-002",
|
|
18128
|
+
payload: {
|
|
18129
|
+
kind: "agent_status",
|
|
18130
|
+
agentId: "agent-atlas",
|
|
18131
|
+
sessionId: "session-atlas",
|
|
18132
|
+
label: "Atlas",
|
|
18133
|
+
role: "Checkout implementation",
|
|
18134
|
+
status: "working",
|
|
18135
|
+
evidence: [sourceEvidence]
|
|
18136
|
+
}
|
|
18137
|
+
},
|
|
18138
|
+
{
|
|
18139
|
+
occurredAt: at(3),
|
|
18140
|
+
idempotencyKey: "fixture-003",
|
|
18141
|
+
payload: {
|
|
18142
|
+
kind: "agent_status",
|
|
18143
|
+
agentId: "agent-nova",
|
|
18144
|
+
sessionId: "session-nova",
|
|
18145
|
+
label: "Nova",
|
|
18146
|
+
role: "Integration verification",
|
|
18147
|
+
status: "working",
|
|
18148
|
+
evidence: [testEvidence]
|
|
18149
|
+
}
|
|
18150
|
+
},
|
|
18151
|
+
{
|
|
18152
|
+
occurredAt: at(6),
|
|
18153
|
+
idempotencyKey: "fixture-004",
|
|
18154
|
+
payload: {
|
|
18155
|
+
kind: "agent_output",
|
|
18156
|
+
agentId: "agent-atlas",
|
|
18157
|
+
sessionId: "session-atlas",
|
|
18158
|
+
outputId: "output-atlas-policy",
|
|
18159
|
+
summary: "Implemented a new token for every checkout retry.",
|
|
18160
|
+
evidence: [
|
|
18161
|
+
{
|
|
18162
|
+
kind: "agent_output",
|
|
18163
|
+
id: "output-atlas-policy",
|
|
18164
|
+
label: "Atlas one-shot output",
|
|
18165
|
+
locator: "fixture://codex/atlas/final-output.txt",
|
|
18166
|
+
capture: "fixture"
|
|
18167
|
+
}
|
|
18168
|
+
]
|
|
18169
|
+
}
|
|
18170
|
+
},
|
|
18171
|
+
{
|
|
18172
|
+
occurredAt: at(7),
|
|
18173
|
+
idempotencyKey: "fixture-005",
|
|
18174
|
+
payload: {
|
|
18175
|
+
kind: "belief_observed",
|
|
18176
|
+
agentId: "agent-atlas",
|
|
18177
|
+
sessionId: "session-atlas",
|
|
18178
|
+
beliefId: "belief-new-token-every-request",
|
|
18179
|
+
decisionId: "decision-new-token-every-request",
|
|
18180
|
+
statement: "Mint a new checkout token for every request and retry.",
|
|
18181
|
+
confidence: 0.91,
|
|
18182
|
+
evidence: [
|
|
18183
|
+
{
|
|
18184
|
+
kind: "memory",
|
|
18185
|
+
id: "memory-stale-token-policy",
|
|
18186
|
+
label: "Stale project decision",
|
|
18187
|
+
locator: "fixture://remnic/memories/memory-stale-token-policy.md",
|
|
18188
|
+
capture: "fixture"
|
|
18189
|
+
}
|
|
18190
|
+
]
|
|
18191
|
+
}
|
|
18192
|
+
},
|
|
18193
|
+
{
|
|
18194
|
+
occurredAt: at(9),
|
|
18195
|
+
idempotencyKey: "fixture-006",
|
|
18196
|
+
payload: {
|
|
18197
|
+
kind: "agent_output",
|
|
18198
|
+
agentId: "agent-nova",
|
|
18199
|
+
sessionId: "session-nova",
|
|
18200
|
+
outputId: "output-nova-policy",
|
|
18201
|
+
summary: "The contract requires one token per checkout session, refreshed only after expiry.",
|
|
18202
|
+
evidence: [
|
|
18203
|
+
{
|
|
18204
|
+
kind: "agent_output",
|
|
18205
|
+
id: "output-nova-policy",
|
|
18206
|
+
label: "Nova one-shot output",
|
|
18207
|
+
locator: "fixture://codex/nova/final-output.txt",
|
|
18208
|
+
capture: "fixture"
|
|
18209
|
+
},
|
|
18210
|
+
sourceEvidence
|
|
18211
|
+
]
|
|
18212
|
+
}
|
|
18213
|
+
},
|
|
18214
|
+
{
|
|
18215
|
+
occurredAt: at(10),
|
|
18216
|
+
idempotencyKey: "fixture-007",
|
|
18217
|
+
payload: {
|
|
18218
|
+
kind: "belief_observed",
|
|
18219
|
+
agentId: "agent-nova",
|
|
18220
|
+
sessionId: "session-nova",
|
|
18221
|
+
beliefId: "belief-refresh-after-expiry",
|
|
18222
|
+
decisionId: "decision-refresh-after-expiry",
|
|
18223
|
+
statement: "Reuse the checkout-session token and refresh it only after expiry.",
|
|
18224
|
+
confidence: 0.98,
|
|
18225
|
+
evidence: [sourceEvidence]
|
|
18226
|
+
}
|
|
18227
|
+
},
|
|
18228
|
+
{
|
|
18229
|
+
occurredAt: at(12),
|
|
18230
|
+
idempotencyKey: "fixture-008",
|
|
18231
|
+
payload: {
|
|
18232
|
+
kind: "conflict_detected",
|
|
18233
|
+
conflictId: "conflict-token-lifecycle",
|
|
18234
|
+
decisionIds: ["decision-refresh-after-expiry", "decision-new-token-every-request"],
|
|
18235
|
+
agentIds: ["agent-nova", "agent-atlas"],
|
|
18236
|
+
summary: "The agents disagree on whether retries reuse or rotate the checkout token.",
|
|
18237
|
+
evidence: [sourceEvidence, testEvidence]
|
|
18238
|
+
}
|
|
18239
|
+
},
|
|
18240
|
+
{
|
|
18241
|
+
occurredAt: at(14),
|
|
18242
|
+
idempotencyKey: "fixture-009",
|
|
18243
|
+
payload: {
|
|
18244
|
+
kind: "test_result",
|
|
18245
|
+
testId: "test-before-correction",
|
|
18246
|
+
decisionId: "decision-new-token-every-request",
|
|
18247
|
+
command: "npm test -- token-policy.test.ts",
|
|
18248
|
+
status: "failed",
|
|
18249
|
+
summary: "Retry minted a second token instead of reusing the session token.",
|
|
18250
|
+
durationMs: 418,
|
|
18251
|
+
evidence: [testEvidence]
|
|
18252
|
+
}
|
|
18253
|
+
},
|
|
18254
|
+
{
|
|
18255
|
+
occurredAt: at(18),
|
|
18256
|
+
idempotencyKey: "fixture-010",
|
|
18257
|
+
payload: {
|
|
18258
|
+
kind: "correction_proposed",
|
|
18259
|
+
correctionId: "correction-token-refresh",
|
|
18260
|
+
conflictId: "conflict-token-lifecycle",
|
|
18261
|
+
proposedDecisionId: "decision-refresh-after-expiry",
|
|
18262
|
+
supersedesDecisionIds: ["decision-new-token-every-request"],
|
|
18263
|
+
statement: "Reuse the checkout-session token and refresh it only after expiry.",
|
|
18264
|
+
rationale: "The implementation contract and failing integration test agree on session reuse.",
|
|
18265
|
+
proposedBy: "agent-resolver",
|
|
18266
|
+
evidence: [sourceEvidence, testEvidence]
|
|
18267
|
+
}
|
|
18268
|
+
},
|
|
18269
|
+
{
|
|
18270
|
+
occurredAt: at(21),
|
|
18271
|
+
idempotencyKey: "fixture-011",
|
|
18272
|
+
payload: {
|
|
18273
|
+
kind: "correction_approved",
|
|
18274
|
+
correctionId: "correction-token-refresh",
|
|
18275
|
+
approvedBy: {
|
|
18276
|
+
kind: "human",
|
|
18277
|
+
id: "operator-build-week",
|
|
18278
|
+
label: "Build Week operator"
|
|
18279
|
+
},
|
|
18280
|
+
note: "Approve the source-grounded policy and retire the stale decision.",
|
|
18281
|
+
evidence: [approvalEvidence]
|
|
18282
|
+
}
|
|
18283
|
+
},
|
|
18284
|
+
{
|
|
18285
|
+
occurredAt: at(23),
|
|
18286
|
+
idempotencyKey: "fixture-012",
|
|
18287
|
+
payload: {
|
|
18288
|
+
kind: "decision_superseded",
|
|
18289
|
+
decisionId: "decision-new-token-every-request",
|
|
18290
|
+
replacementDecisionId: "decision-refresh-after-expiry",
|
|
18291
|
+
correctionId: "correction-token-refresh",
|
|
18292
|
+
evidence: [correctionEvidence]
|
|
18293
|
+
}
|
|
18294
|
+
},
|
|
18295
|
+
{
|
|
18296
|
+
occurredAt: at(27),
|
|
18297
|
+
idempotencyKey: "fixture-013",
|
|
18298
|
+
payload: {
|
|
18299
|
+
kind: "recall_observed",
|
|
18300
|
+
agentId: "agent-orbit",
|
|
18301
|
+
sessionId: "session-orbit-cold",
|
|
18302
|
+
recallReceiptId: "recall-orbit-cold",
|
|
18303
|
+
decisionId: "decision-refresh-after-expiry",
|
|
18304
|
+
query: "What token lifecycle must checkout retries follow?",
|
|
18305
|
+
capturedAtAction: true,
|
|
18306
|
+
evidence: [
|
|
18307
|
+
{
|
|
18308
|
+
kind: "recall_audit",
|
|
18309
|
+
id: "recall-orbit-cold",
|
|
18310
|
+
label: "Cold-start recall audit",
|
|
18311
|
+
locator: "fixture://remnic/recall-audit/recall-orbit-cold.json",
|
|
18312
|
+
capture: "fixture"
|
|
18313
|
+
}
|
|
18314
|
+
]
|
|
18315
|
+
}
|
|
18316
|
+
},
|
|
18317
|
+
{
|
|
18318
|
+
occurredAt: at(29),
|
|
18319
|
+
idempotencyKey: "fixture-014",
|
|
18320
|
+
payload: {
|
|
18321
|
+
kind: "propagation_verified",
|
|
18322
|
+
agentId: "agent-orbit",
|
|
18323
|
+
sessionId: "session-orbit-cold",
|
|
18324
|
+
correctionId: "correction-token-refresh",
|
|
18325
|
+
decisionId: "decision-refresh-after-expiry",
|
|
18326
|
+
recallReceiptId: "recall-orbit-cold",
|
|
18327
|
+
staleDecisionAbsent: true,
|
|
18328
|
+
evidence: [
|
|
18329
|
+
{
|
|
18330
|
+
kind: "recall_audit",
|
|
18331
|
+
id: "recall-orbit-cold",
|
|
18332
|
+
label: "Cold-start recall audit",
|
|
18333
|
+
locator: "fixture://remnic/recall-audit/recall-orbit-cold.json",
|
|
18334
|
+
capture: "fixture"
|
|
18335
|
+
}
|
|
18336
|
+
]
|
|
18337
|
+
}
|
|
18338
|
+
},
|
|
18339
|
+
{
|
|
18340
|
+
occurredAt: at(34),
|
|
18341
|
+
idempotencyKey: "fixture-015",
|
|
18342
|
+
payload: {
|
|
18343
|
+
kind: "test_result",
|
|
18344
|
+
testId: "test-after-correction",
|
|
18345
|
+
decisionId: "decision-refresh-after-expiry",
|
|
18346
|
+
correctionId: "correction-token-refresh",
|
|
18347
|
+
command: "npm test -- token-policy.test.ts",
|
|
18348
|
+
status: "passed",
|
|
18349
|
+
summary: "The cold agent reused the session token and the integration contract passed.",
|
|
18350
|
+
durationMs: 391,
|
|
18351
|
+
evidence: [testEvidence, correctionEvidence]
|
|
18352
|
+
}
|
|
18353
|
+
},
|
|
18354
|
+
{
|
|
18355
|
+
occurredAt: at(36),
|
|
18356
|
+
idempotencyKey: "fixture-016",
|
|
18357
|
+
payload: {
|
|
18358
|
+
kind: "mission_completed",
|
|
18359
|
+
outcome: "recovered",
|
|
18360
|
+
summary: "One approved correction reached a cold agent and changed the observable outcome.",
|
|
18361
|
+
evidence: [testEvidence, approvalEvidence]
|
|
18362
|
+
}
|
|
18363
|
+
}
|
|
18364
|
+
];
|
|
18365
|
+
}
|
|
18366
|
+
|
|
18078
18367
|
// src/coding/review-context.ts
|
|
18079
18368
|
var REVIEW_KEYWORD_PATTERNS = [
|
|
18080
18369
|
/\breview\b/i,
|
|
@@ -23274,6 +23563,9 @@ export {
|
|
|
23274
23563
|
resolvePersistedMemoryRelativePath,
|
|
23275
23564
|
deriveTopicsFromExtraction,
|
|
23276
23565
|
buildProcedureRecallSection,
|
|
23566
|
+
RELAY_DEMO_MISSION_ID,
|
|
23567
|
+
RELAY_DEMO_NAMESPACE,
|
|
23568
|
+
createRelayMissionFixture,
|
|
23277
23569
|
isReviewPrompt,
|
|
23278
23570
|
parseTouchedFiles,
|
|
23279
23571
|
rankReviewCandidates,
|
|
@@ -23369,4 +23661,4 @@ export {
|
|
|
23369
23661
|
blendGraphExpandedRecallScore,
|
|
23370
23662
|
Orchestrator
|
|
23371
23663
|
};
|
|
23372
|
-
//# sourceMappingURL=chunk-
|
|
23664
|
+
//# sourceMappingURL=chunk-5U65RIVI.js.map
|