feat(agent): bridge profile reconciliation to exact requester - #2214
Conversation
|
Exact-head review requested for |
|
Exact-head review requested for 0d8fef1. The aggregate wire-accounting blocker is fixed with request-plus-response bounds and independent artifact caps; a reconciler-level invalid-response regression proves terminal retained-state cleanup. Local validation is 196/196 Agent System Record tests, 8/8 unit-lane continuation/integration tests, and a clean Agent package build. Structural observations are explicitly tracked in #2216. Please review the current head; no merge action is requested. |
|
Exact-head review requested for 626ecc6 under the round cap. The direct API compatibility blocker is fixed and pinned in the type lane; retained object/byte overflow and mixed inventory-plus-closure continuation budget coverage are added; mutable final verifiers rerun on resume. Local validation is 201/201 Agent System Record tests plus a clean Agent build/type/package-root run. Remaining architecture preferences are tracked in #2216 and the required final parent rebase. Please report only red/high behavioral defects or acceptance-criteria gaps; no merge action is requested. |
ffae2e4 to
0c5f230
Compare
626ecc6 to
7000435
Compare
7000435 to
b611e98
Compare
b611e98 to
e82dcf4
Compare
e82dcf4 to
d218c78
Compare
Summary
prepareDispatch()boundary followed by one unraceddispatch()physical settlement. Freshness is resampled and clamped to the admitted monotonic deadline before the point of no return.Related
integration/2052-system-record-syncDiagrams
Large closure continuation
Before:
sequenceDiagram participant R as Reconciler participant T as Transport participant Q as Exact requester participant V as Receiver R->>T: Open physical slice V->>T: Resolve closure from artifact 1 T->>Q: Up to 12 exact requests Q-->>T: Requester leases T-->>R: Slice capacity pause R->>T: Release slice and leases R->>T: Open next physical slice V->>T: Restart closure from artifact 1After:
sequenceDiagram participant R as Reconciler participant T as Transport participant Q as Exact requester participant V as Receiver R->>T: Open physical slice V->>T: Resolve closure artifacts T->>Q: Up to 12 exact requests Q-->>T: Transfer owned leases T-->>R: Typed capacity pause; retain bounded continuation R->>T: Open next physical slice V->>T: Replay closure; rerun mutable verification T-->>V: Retained hits with zero remote cost T->>Q: Fetch only missing artifacts R->>V: prepareDispatch with admitted deadline R->>V: dispatch and await physical settlement R->>T: Complete or abort; release ownership onceProvider-scoped negative handling
Before:
sequenceDiagram participant R as Reconciler participant T as Transport participant A as Provider A participant B as Provider B R->>T: Resolve digest T->>A: Unbounded or noncanonical lookup path A-->>T: Missing or invalid T-->>R: Resolution failsAfter:
sequenceDiagram participant R as Reconciler participant T as Transport participant A as Provider A participant B as Provider B R->>T: Resolve canonical exact coordinates T->>A: Exact request A-->>T: Timeout, absence, or invalid response T->>T: Memoize provider plus exact identity and outcome T->>T: Skip memo hits without request cost T->>B: Try next provider within slice budget B-->>T: Verified requester lease T-->>R: Exact artifactFiles changed
packages/agent/src/system-records/reconcile-transport-v1.tspackages/agent/src/system-records/reconcile-v1.tspackages/agent/src/system-records/receiver-v1.tspackages/agent/test/support/agent-profile-reconcile-closure-v1-fixture.tspackages/agent/test/support/agent-profile-reconcile-v1-fixture.tspackages/agent/test/system-record-reconcile-closure-continuation-v1.test.tspackages/agent/test/system-record-reconcile-transport-integration-v1.test.tspackages/agent/test/system-record-reconcile-transport-v1.test.tspackages/agent/test/system-record-reconcile-v1.test.tspackages/agent/test/system-record-reconcile-public-api.typecheck.tspackages/agent/vitest.unit.config.tspackages/core/src/system-record-inventory-traversal-v1-internal.tspackages/core/src/system-record-limits-v1.tspackages/core/test/system-record-inventory-v1.test.tspackages/core/test/system-record-limits-v1.test.tspackages/core/test/system-record-package-export-v1.mjsTest plan
pnpm --filter @origintrail-official/dkg-agent build: TypeScript, public type tests, and package-root checks passed./tmp/dkg-hardhat-ctx-9547.json, causing the pre-existing Hardhat-dependent suites to fail; it also exposed the ambiguous-root rebase conflict, which was corrected and rerun successfully above.git diff --checkand verify a clean worktree with no generated deployment churn.