Repository navigation
fix(addie): preserve certification workflows and report tool failures - #7515
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — App/Addie-only PR with no blocking findings.
Scope check: changes are confined to server/src/addie/**, server/src/routes/addie-chat.ts, and their tests. No protocol surface (static/schemas/source/**, normative docs, dist artifacts) touched, so no changeset is owed and no schema↔docs or oneOf gates apply.
What I checked (per reviewer):
- Web certification continuity fix is fail-closed: user-scoped progress and authorized-thread receipts only; injection cases covered by tests; no credential path touched.
- First-line-only tool-failure classification: prefixes match live adapter strings; GitHub fallback still flagged via
legacyResultIndicatesFailure. - Certification completion remains reachable only through Addie tool calls — no self-report REST route introduced.
Gate evaluation: no critical/high/medium findings (row 1 n/a). gated_paths is false (row 2 n/a). high_risk is true but reasons are (added)/(modified) with no medium finding on modified files, and no (deleted) — rows 3–5 n/a. No prior decision (row 6 n/a). No no-auto-approve team match (row 7 n/a). Zero medium findings (row 8 n/a). Falls through to row 9 → approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — subsequent pass, clean.
No blocking findings. No medium findings. The reviewer confirmed the delta since the prior clean approve is a single mechanical line in a generated artifact (tool-surface-inventory.generated.json): the recorded hash for addie-chat.ts, verified to match head content exactly — legitimate regeneration, not drift. No protocol surface (static/schemas/source/**), normative docs, or dist artifacts touched, so no changeset/oneOf/immutability gates apply.
Gate checks:
- No no-auto-approve team match.
- gated_paths: false → row 2 does not fire.
- high_risk: true, but reasons are (modified)/(added) with zero findings → rows 3–5 do not fire (no deletions, no medium on modified files).
- Prior decision was approve (not escalate) → row 6 sticky-escalation not applicable.
- Zero medium findings → rows 7/8 do not apply.
Falls through to row 9: approve.
Web certification follow-ups could lose their completion tools when a lesson was resumed in a different chat, or when a placement assessment had not created a progress row. Preserve the existing certification workflow using owned progress and recorded certification tool activity in the authorized conversation. Streaming recovery also receives the existing bounded certification budget reserve.
Classify AdCP failure headers and GitHub rejection/authentication/rate-limit responses as failures at the common tool boundary. These now set provider error flags and execution-ledger statuses instead of reporting successful calls. Successful results that merely contain failure text remain successful.
Validation: targeted routing, conversation ownership, Gemini, result-contract, and execution-ledger regressions; typecheck; full pre-commit checks. Replaying the 14 recorded failed calls now flags all 14 (previously three). No paid model evaluation calls were needed.
Addie code version:
2026.09.56. This change preserves credential assessment requirements and does not manually award or alter learner credentials.Open workspace in Conductor