Repository navigation
fix(compliance): seed 3.1 provenance accounts and isolate replays - #8590
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean 3.1.x backport with no blocking or medium findings.
Verified against the decision table:
- No critical/high findings (row 1 n/a).
- gated_paths: false (row 2 n/a).
- high_risk: false — no deleted/modified high-risk entries (rows 3, 5 n/a).
- No medium findings in any category (rows 4, 8 n/a).
- No prior decision (row 6 n/a).
- No no-auto-approve team match (row 7 n/a).
- Falls through to row 9 → approve.
What was checked: seeds acct_acmeoutdoor_pinnacle_sandbox across the three provenance storyboards + creative_reception (natural-key AccountRefs, explicit sandbox: true, single shared idempotent fixture, no 3.2 operator_unit), and registers the sales seed_account adapter outside frozen 3.0 mode. The load-bearing change — createPrincipalScopedSeedCache (comply.ts) plus withControllerPrincipal wrapping the transport path (router.ts:313) — correctly namespaces the SDK replay cache by the trusted router principal, aligning it with the principal-scoped account store and closing the cross-caller false-"diverges" rejection. 'anonymous' defaulting is consistent; local comply path never touches the scoped cache; 3.0 mode omits the account seed. Cache built once (memoized registry), no new external I/O/timeout surface, changeset present (patch), scenario versions bumped 1.0.0→1.0.1. Strong test coverage for caller isolation, frozen-3.0 rejection, and cold/rotated prerequisites.
|
Forward-merge preparation, comparing actual merged heads
Refresh the comparison when the next 3.1 versioned records are ready. Resolve the release-workflow test hunks narrowly, retain immutable records through the existing resolver, and rerun the adapted controls. The legacy wrapper and fixture shapes should not replace main's modern identity handling. |
Refs #8533; adapts the account prerequisites from #7601/#7602 to 3.1.x. The three provenance scenarios and
creative_receptionnow declare the sandbox account they reference. Their natural-key AccountRefs explicitly usesandbox: true; one identical fixture ID across all four permits idempotent rotated runs without 3.2'soperator_unitfield.The sales tenant registers its existing native
seed_accountadapter outside frozen 3.0 mode. A replay-cache collision found during review is also closed: the SDK cache is bounded and namespaced by the router's trusted caller identity. Different callers can use the same fixture/correlation IDs without poisoning each other's setup; same-caller divergent replays remain rejected. Native authentication, schema validation and sandbox gates are preserved.No production/test SDK pin, protocol schema, package version or released artifact changes. A patch changeset records the conformance-source correction.
Validation in Docker:
Full authored MCP comparison against the actual 3.1 reference tenant and unchanged 3.1.30 schemas:
Every added pass is account seeding. All existing failure details match byte-for-byte: malformed static product-card responses and modern-runner refusal of
embedded_provenanceafter the old tenant negotiates 3.0. The comparison uses read-only baseline file overlays, identical dependencies/schema roots and all authored validations. This PR neither suppresses those failures nor claims the reference tenant is fully conformant. The unrelated oldsrc/.../tenant-smoke.test.tsversion expectation also fails unchanged on the base; new MCP regression controls are in the required server unit suite instead.The source correction ships through the next 3.1 bundle; existing versions remain immutable.
Normal pre-commit hooks pass: 1,012 root unit tests, 4,370 server unit tests (30 existing skips), and typecheck. No hooks bypassed.
Open workspace in Conductor