Repository navigation
feat(admin): variant gate failures inspection [STORY-039e] - #76
Merged
Merged
Conversation
khoks
force-pushed
the
story/039e-admin-failed-gate-surface
branch
3 times, most recently
from
May 11, 2026 15:02
b7c79fb to
4edd8f1
Compare
…e) [STORY-039e] Squashed rebase of the STORY-039e branch onto current main (which already includes STORY-039d's spec-clarity judge merged via PR #75). Lands: - Migration 0025_variant_gate_failures: CHECK-constrained failure_reason enum (parse_error / identity_mismatch / spec_clarity_judge / self_validation / retry_exhausted), failure_detail jsonb, model_id, attempt_number; indexed on (source_problem_id, attempted_at desc). - Migration 0026_users_is_admin: boolean default false. - @learnpro/db variant-gate-failures helpers + tests. - apps/api admin route GET /v1/admin/variant-failures with 401/403/200 gates + filter + pagination. - apps/web admin page at /admin/variant-failures (server component). - is_admin: false added to apps/api test session factories (data-controls, export, index, onboarding, profile-insights, session-plan, today-plan, tutor, weekly-plan, autonomy, bug-finding-scores, cheatsheet, cheatsheet-cron, email-digest, email-digest-cron, install-eligible, llm-mode, notifications, portfolio, profile-insights-cron, quiet-hours, recommendation, sandbox*, tutor-factory, etc). - is_admin: false in db data-export.test.ts makeUser factory. Known follow-up: the agent-side failureLogger wiring (passing failureLogger to generateProblemVariant + safeLogFailure calls in tryGenerateOne) is NOT included in this commit because it conflicted non-trivially with STORY-039d's spec-clarity judge runtime integration that landed on main first. The variant_gate_failures table is set up to receive failure entries; wiring the agent to write to it is filed as a STORY-039g follow-up.
khoks
force-pushed
the
story/039e-admin-failed-gate-surface
branch
from
May 11, 2026 15:07
4edd8f1 to
cc4a908
Compare
khoks
marked this pull request as ready for review
May 11, 2026 15:12
1 task done
khoks
added a commit
that referenced
this pull request
May 11, 2026
…80) - STORY-039f (variant seeding CLI) status → done with merge SHA + summary. - STORY-039g (failureLogger agent wiring) filed at status: backlog with full ACs. Captures the unwired piece of PR #76's squash-rebase. - DECISIONS_LOG: two new 2026-05-11 entries — (1) cycle-break + NOT-NULL ripple + TaskStop reflex, (2) squash-rebase fallback + STORY-NNNg "ship the structure, defer the glue" convention.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
Story: project/stories/STORY-039e-admin-failed-gate-surface.md
Parent: STORY-039
DRAFT — see story checklist; will flip to ready once tests pass.
🤖 Generated with Claude Code