Repository navigation
fix(addie): retain matched v4 provider evidence - #7391
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — internal Addie eval-harness change, no blocking findings.
This PR (fix(addie): retain matched v4 provider evidence) adds provider response-ID retention with fail-closed validation propagated through executed dispatches to recorded observations, renames a report field (totalCostUsd→estimatedCostUsd with no orphaned consumers), and strengthens the documented fail-closed evidence gate covered by a new zero-call test.
Checks performed:
- No published-surface impact: no changes under static/schemas/source/, docs/reference/, dist/**, or release scripts — changeset and schema↔docs coherence rules do not apply.
- No oneOf discriminator or released-artifact-immutability concerns.
- Not a Breaking-class protocol change; no governance-precedent conflict.
- high_risk is true only because three server/src/addie/** files were (modified), but the reviewer surfaced no medium-or-higher concerns on them, so the modifications are presumed safe (row 5 does not fire without a medium finding).
- gated_paths is false; author is not on a no-auto-approve team.
Reviewer reported no Critical/High/Medium findings. Rows 1–8 do not fire; falls through to row 9 → approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — subsequent pass on PR #7391 with no blocking or medium findings.
The delta since the prior clean approve is limited to: two editorial wording alignments (the matched-v4 runbook and a manual-test comment) and a strengthened test that adds a correctly-scoped fetch spy asserting no dispatch before rejection on the zero-call evidence gate. No production code, protocol surface (static/schemas/source/**), or released dist/** artifacts are touched, so no changeset is owed and no immutability concern applies.
high_risk is true because three server/src/addie/** files match a high-risk glob, but all entries are (modified) and the reviewer surfaced zero findings — no medium-or-higher concern on a modified sensitive file, so row 5 does not fire. No (deleted) entries (row 3 N/A). gated_paths is false, so despite review_decision: REVIEW_REQUIRED, row 2 does not apply. No author team gate. Prior decision was approve, so sticky escalation (row 6) is irrelevant. No Editorial/Normative-vs-Breaking hard gate is triggered — these are editorial/test-only changes.
None of rows 1–8 fire; falls through to row 9 = approve.
Summary
Verification
npx vitest run --config server/vitest.config.ts tests/unit/addie/matched-v4-evidence-gate.test.tsnpx vitest run --config server/vitest.config.ts tests/unit/addie/matched-v4-evaluation.test.tsnpm run typecheck -- --pretty falsenpm run lint:schema-links --silentnode tests/docs-nav-validation.test.cjsThe repository pre-commit wrapper was stopped while its full
server/tests/unit/run made no progress after focused checks passed, following explicit operator direction. GitHub CI is the exact-head full check.Safety
No provider calls, dispatches, credentials, secrets, or infrastructure were changed. The new zero-call test asserts the paid authority rejects before it opens the database or constructs a provider adapter.
Open workspace in Conductor