Law AI — Backlog¶
Law AI's backlog of record: append-only
BL-YYYYMMDD-NNfollow-ups in Open, Claimed and Done, linted byscripts/backlog_lint.py.Append-only register of follow-ups discovered during implementation. Every
/implementcycle MUST append discovered work here in addition to closing the current task. Items graduate from this list intospecs/NNN-*/via/specify.Format: One bullet per item, kebab-case ID, status, brief context, link to the spec/PR that surfaced it.
Conventions¶
| Field | Notes |
|---|---|
id |
BL-YYYYMMDD-NN — the date discovered + an ordinal |
status |
open / claimed-by:specs/NNN / wontfix (with reason) / done |
kind |
feature / refactor / tech-debt / test-gap / doc-gap / infra |
severity |
low / med / high |
surfaced-in |
Spec or PR that discovered it |
Triage rules¶
- New items go to Open. Promotions go to Claimed. Resolved items move to Done (kept for audit; never delete).
- Items unclaimed > 60 days get reviewed at the next
/specifycycle and either closedwontfixor escalated. - The fleet's spec gate (
backlog_lint.pyfrom the bamr87/bamr87 spec-driven kit: CI'sSpec Drift Gate,make lint-specslocally) enforces format and forbids deletion of historical entries. - Ids are unique file-wide, and two branches open on the same day will both reach for that day's
-01. The collision only surfaces once both merge, so the branch that merges second renumbers to the next free ordinal — its ids are the ones no merged PR has quoted yet. Renumbering must never drop an id: rule 3's append-only check compares the id set against the previous commit, so move an id forward, never delete one. - Ids are
BL-YYYYMMDD-NNwhere the date is the discovery date; the ordinal caps at 99 per date. The 2026-09-05/06 backlog-zero sweep exhausted both days, so ten follow-ups discovered on the 6th carry 2026-09-07 ids. Tracked as BL-20260907-11.
Open¶
- BL-20261116-02 — test-gap, low —
SynthExecutor(backend/law_ai/lsat/factory/executors.py) derives its seed asabs(hash(job.job_id)) % 100_000, butstrhashing is salted per process (PYTHONHASHSEED), so its docstring's "re-running a manifest reproduces the same drafts" holds only within one process, andtests/lsat/test_synth_delivery.py::TestSynthExecutor(test_fulfils_a_job_with_no_network,test_drafts_pass_the_factory_intake_gates) fails whenever a run's salt lands on a seed the verifier rejects: 4 of 1,000 sampled base seeds onmain, e.g.lr-necessary-assumption/commercial-logistics/seed=5565failscredited_length_is_unremarkable. Derive the seed from a stable digest of the job id (e.g.hashlib.sha256) so the claim holds and the tests stop depending on the salt. Surfaced in: the localmake test-backendrun for #221 (2026-11-15). - BL-20261116-01 — tech-debt, med — Secure-by-default DRF permissions:
REST_FRAMEWORK["DEFAULT_PERMISSION_CLASSES"]isAllowAny(backend/law_ai/settings/base.py), so a new view that forgets its ownpermission_classesis public. The deep dive found every current view setting one (or checking sign-in ininitial()), so nothing was exposed on 2026-11-12. Switch the default toIsAuthenticated, keep the explicitAllowAnyon the auth, health, settings and shared-link routes, and add a test that walks the URLconf and asserts every/api/view declarespermission_classes. Split out of #221 (BL-20261112-01 in law-ai#233), which kept it out of scope as its own change. Surfaced in: #221 (the cycle 1 day 14 fleet deep dive, 2026-11-12). - BL-20261116-05 — tech-debt, low —
.cardsis also a<ul>in the Writing prompt list (components/Writing.tsx) with no list reset, so it keeps the browser's 40px indent and.cardsneeds a 180px floor instead of 190px to fit four columns at 860px. Resetlist-style/margin/paddingonul.cardsand confirm the Writing grid at 860-1439px. Surfaced in: #123 (the.cardsgrid fix). - BL-20261116-06 — feature, med — Concept-filtered drill entry point (#122 half two):
Drillaccepts only{ section, onAnnounce }, so "N bank questions drill this concept" (components/Concepts.tsx) and its article twin (components/Library.tsx) stay inert text. Add a real link or button that opens a drill overquestionsForConcept(id). Blocked behind #117 (key={view}remounts the view subtree); split out of #122 so the wording fix can ship. Surfaced in: #122. - BL-20261116-03 — feature, low — lsat-static in-article fragment links still drop the Library's address. A glossary link (
#concept-<id>,components/library/BlockRenderer.tsx) and an "On this page" link (#<heading anchor>,components/Library.tsx) are native fragment navigations, so after following one the URL no longer says#article-<id>. A reload or a copied link then opens Overview, because neither fragment names a destination (lib/destinations.ts); Back still returns to the article. Keep the article in the address: scroll to the target from a click handler without navigating, or make those anchors carry the article (for example#article-<id>/<anchor>) and teachLibrary.tsxhashTarget()to read them. Surfaced in: the #223 hash-routing fix. - BL-20261116-07 — test-gap, med — The verify kit's scenarios run only against the static LSAT edition (
verify/verify.ymlbuilds and serveslsat-static/out, LAWAI-005), because the platform stack (Django, Postgres, Neo4j, Redis, Ollama) is too heavy for a PR job. Nothing drives the platform frontend against the API the way a user would, and LAWAI-005 still has noevidence:link orverified:stamp infeatures/features.yml. Once a CI-startable platform stack exists (a slim compose profile, or thee2eservice), add a verify config and scenarios for each implemented platform UI feature, and link the evidence bundles from the feature index (node verify/runner.mjs --stamp). Surfaced in: bamr87/law-ai#193 (finishing the seeded verify kit). - BL-20261116-12 — tech-debt, med —
code_legal_reviewwrites the file path into every chain's turn outside the per-review marker block. P2 puts it on one line, drops control characters and keeps its last 240 characters (_prompt_pathinbackend/law_ai/agents_runtime/graphs/code_legal_review.py), so a file name cannot add lines or forge theENDline, but a short instruction in a file name (ignore all previous instructions.py) still reaches the model outside the block. P4'slawmode_scanfills the path from the scanned repository's file names: before it does, move the path inside the data envelope (or into a second block under the same marker, with every chain prompt saying so) and plant an instruction in a file name inTestPromptInjection. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-002, lawmode fold-in P2, #238). - BL-20261116-11 — test-gap, low — The prompt-injection test for
code_legal_review(backend/tests/lawmode/test_code_legal_review.py::TestPromptInjection) runs a stubbed model that obeys any instruction it finds outside the data block: it proves code under review cannot end the per-review marker block, not that a real model ignores instructions written inside it. Add an opt-in@pytest.mark.integrationcheck (never inmake test) that runs the planted fixture against a local Ollama model and asserts the privacy finding survives. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-002, lawmode fold-in P2, #238). - BL-20261116-10 — feature, low —
code_legal_reviewruns its six review chains one after another, in the old pipeline's order, so a scan on a hosted tier waits for eight sequential calls. Fan the six review chains out in parallel when the serving tier is hosted, and keep them sequential when the chain is pinned toollama(a local model serves one call at a time, so six concurrent calls would queue and time out behind each other); record scan latency before and after. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-002, lawmode fold-in P2, #238). - BL-20261116-09 — tech-debt, low — The review surfaces still word every approval as a knowledge-graph commit. For a
lawmode_findingrow the service now returnsskipped: decision-onlywith nocommit_error(DECISION_ONLY_KINDS), but the Django admin's "Approve + commit" action counts it as failed,manage.py review_queue approveprints "approved but NOT committed", andPOST /api/ingestion/reviews/approvereturnscommitted: false. Have all three report "decision recorded" for decision-only kinds. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-002, lawmode fold-in P2, #238). - BL-20261116-08 — tech-debt, med — P1's single-call
LawmodeReviewer(backend/law_ai/lawmode/services/review.py) still wraps the code in fixed<source_code>tags (prompts/lawmode/review.v1.md), so the per-review random marker that BL-20261112-14 asked for protects only thecode_legal_reviewgraph. When P4 wireslawmode_scan, either retire the single-call path or move it onto the same marker in areview.v2.md, with the adversarial test. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-002, lawmode fold-in P2, #238). - BL-20261114-10 — doc-gap, low — Feature-catalog entries for the core-schema work in
features/features.yml, with the PRD trace and the generatedfeatures:start/features:endblock regenerated rather than hand-edited: decide whether specs/058-core-schema-contract and its successors sit under LAWAI-011 / LAWAI-013 / LAWAI-016 or get their own ids. LAWAI-018..021 are reserved by law-ai#234 (the 2026-11-12 deep dive) and LAWAI-022 is lawmode, so new ids start at LAWAI-023. Surfaced in: docs/core-schema.md (review of the core-schema draft, 2026-11-13). - BL-20261114-09 — feature, low — Seed token: a compact, signed token carrying a record's provenance (source hash, snapshot, agent keys, anchoring reference). Verification is deterministic code; a small local model may explain a verification result to a reader, never decide it. Depends on BL-20261114-08. Surfaced in: docs/core-schema.md (review of the core-schema draft, 2026-11-13).
- BL-20261114-08 — feature, low — Tamper-evidence phase for the git record: an ADR that evaluates signed commits (one key per agent), RFC 3161 trusted timestamps and OpenTimestamps against the test in docs/core-schema.md (a proof, admissible in court, that a record was what the platform held at a time) before any public or consortium chain is considered. No tokens with monetary value, no on-chain legal logic. Depends on BL-20261114-04. Surfaced in: docs/core-schema.md (review of the core-schema draft, 2026-11-13).
- BL-20261114-07 — tech-debt, low — Relabel the existing corpus under the core schema: add
:InstrumenttoCase,Statute,StatuteSection,Ordinance,OrdinanceSectionandRegulation, and:AuthoritytoCourt, as a forward-only Neo4j data migration with human approval (constitution §5). Spec 058 adds the new labels to new nodes only (its NG4), so until this lands a query over:Instrumentmisses the pre-existing corpus. Surfaced in: specs/058-core-schema-contract/spec.md (§4 NG4). - BL-20261114-06 — feature, med — Rulemaking feedback pipeline: an analysis agent (
agents_runtime/crews/rulemaking_analyst.py) triggered by an open comment period, a new ruling or a status change on a tracked instrument; its output is the first:DerivedDocumentwrite path. On request it files a draft comment as adraftMatterArtifactplus aMatterTaskwhosedue_atis the source-published close date (decision of 2026-11-13; the spec must state how this sits with spec 036 NG1, which assumed user-entered due dates). One draft per human request, labelled AI-assisted with the disclaimer (BL-20260811-05); nothing is ever submitted by the platform; LegalBench run required. Depends on BL-20261114-01 and BL-20261114-05. Surfaced in: docs/core-schema.md (implementation sequence, step 7). - BL-20261114-05 — feature, med — Snapshots and reconciliation over time for core-schema records: poll cadence per
OfficialSourcevia Celery beat under theAUTONOMY_ENABLEDkill switch, hash-based change detection, deterministic diffs,status_history, boundedneeds_rereview_sincepropagation that retrieval labels rather than hides, and conflicts between two official sources sent to a human with both snapshots. The first step toward LAWAI-016. Depends on BL-20261114-03. Surfaced in: docs/core-schema.md (implementation sequence, step 6). - BL-20261114-04 — feature, med — Git record store per ADR 0009, after the first loop run: a separate data repository at
LAW_AI_DATA_REPO, one JSON file per entity, a run branch per cycle, commit trailers, human merge,law/<date>tags, content-addressed text, a projector into Neo4j (idempotent,archived_at, never deletes), a drift check between the main branch and the graph, the git library chosen with a licence note (constitution §8), and a one-time seed from the first run's accepted records. Depends on BL-20261114-03. Surfaced in: docs/core-schema.md (implementation sequence, step 5). - BL-20261114-03 — feature, high — Governance review loop and the first milestone run: a LangGraph graph at
agents_runtime/graphs/governance_loop.py(ingest → structure → review → back to structure at most three times → quarantine), a structuring agent (deterministic; a model only proposes GovernanceLinks, and every proposal is quarantined) and a deterministic reviewer (source_urlresolves with its content hash recorded; per-kind citation parsers for FR, CFR, C.R.S. and CCR, reusing the CourtListener citation-lookup verifier from law-ai#231 / LAWAI-020 for case citations if it has landed; every link's basis exists). Runs throughrun_cycle()behindAUTONOMY_ENABLED, with a milestone-report command that measures the exit criteria in docs/core-schema.md. New agent roles: HITL, docs/agent-roles.md, tests under backend/tests/agents/. Depends on specs/058-core-schema-contract, BL-20261114-01 and BL-20261114-02. Surfaced in: docs/core-schema.md (implementation sequence, step 4). - BL-20261114-02 — feature, high — Colorado Attorney General source adapter: coag.gov press releases and the Attorney General's rulemakings in the Colorado Register (Secretary of State). There is no API, so deterministic HTML parsers, fixture-tested, with a robots and terms-of-use check,
requires_human_approval=True, and a live drift smoke like the Justia one. Emits Authority, Action (enforcement, settlement, rulemaking) and Instrument records with individuals never named (decision of 2026-11-13). A new public source, so its own/specifycycle (constitution §5, §12 I2). Depends on specs/058-core-schema-contract. Surfaced in: docs/core-schema.md (implementation sequence, step 3). - BL-20261114-01 — feature, high — Federal Register source adapter for one federal agency with AI-governance activity, the agency chosen at
/clarifyby checking the Federal Register for the 90-day window:ingestionapp/services/federal_register.pyplussources/federal_register.pyover the keyless, official JSON API. One document yields an Instrument (RULE/PRORULE/NOTICE/PRESDOCU), an Action, a CommentPeriod (comments_close_oncopied as published) andcfr_referencesforimplements. First writer of:Regulation;SourceAdapter.afetchneeds asincewindow. A new public source, so its own/specifycycle (constitution §5, §12 I2). Depends on specs/058-core-schema-contract. Surfaced in: docs/core-schema.md (implementation sequence, step 2). - BL-20261116-04 — tech-debt, low — The platform library reader has the scroll-region defect #222 fixed on the static site.
frontend/components/lsat/library/BlockRenderer.tsxwraps each article table in anoverflow-x-auto<div>with notabIndex, role or name, so on a phone a keyboard user cannot reach a wide table's off-screen columns (WCAG 2.1.1, axescrollable-region-focusable). Give the wrapperrole="region", a name built from the column headers andtabIndex={0}, the waylsat-static/components/library/BlockRenderer.tsxnow does, and make surefrontend/e2e/a11y.spec.tsscans an article that carries a table at 390px. Surfaced in: the #222 fix. - BL-20261112-16 — tech-debt, low —
LLM_PRICE_TABLE=set but blank — or any malformed JSON in it — stops settings import with a rawjson.JSONDecodeErrorfromenv.json(backend/law_ai/settings/base.py).LAWMODE_MODELSavoids this by staying a string thatlaw_ai.lawmode.policyparses into anImproperlyConfigurednaming the setting, and by treating blank as unset; giveLLM_PRICE_TABLEthe same treatment. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-001, lawmode fold-in P1, #237). - BL-20261112-15 — doc-gap, low — Spec 057
plan.md§8 and handoff issues #237 / #241 sayLAWAI-022movesplanned → in-progress, butin-progressis not afeatures/v1status (shipped | partial | planned | deprecated | tbd) and fails the hub'sgovernance_lint.py check. P1 recordedpartialwith a comment infeatures/features.yml. Amend the plan's wording through a spec amendment, or ask the hub to add the status. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-001, lawmode fold-in P1, #237). - BL-20261112-13 — feature, med —
LawmodeReviewer.review_code(backend/law_ai/lawmode/services/review.py) sends its whole input as one prompt, with no size cap and no chunking, so a large file, diff or directory will overrun the serving tier's context or time out and surface only asReviewUnavailableError. Spec 057 P4'slawmode_scanmust review per file (or chunk) and report anything it skipped or cut asnot_run— never truncate silently, and never count an unreviewed file as no findings. Surfaced in: specs/057-lawmode-fold-in/tasks.md (T-001, lawmode fold-in P1, #237). - BL-20261112-12 — feature, low — Package and publish the folded lawmode VS Code extension (Marketplace / Open VSX) once spec 057 phase P5 ships; publishing is an external action and needs Amr's OK. Surfaced in: specs/057-lawmode-fold-in/tasks.md (lawmode fold-in plan, decision on #226).
- BL-20261112-11 — feature, low — Optional PR-review workflow that runs
lawmode_scanon law-ai pull requests and posts findings only after HITL approval; needs Amr's OK (pull-requests: write, hosted-provider secrets) and must stay on public-repo standard runners ($0). Surfaced in: specs/057-lawmode-fold-in/tasks.md (lawmode fold-in plan, decision on #226). - BL-20261112-10 — feature, low — Per-repository
.lawmode/policy.yamloverrides forlawmode_scan; needs PyYAML as a direct backend dependency with a licence and security note (constitution §8). Surfaced in: specs/057-lawmode-fold-in/tasks.md (lawmode fold-in plan, decision on #226). - BL-20261112-09 — infra, med — Retire the old
lawmode/tree after the fold-in ships: remove or archivelawmode/(inert nested workflow, committedvscode-extension/out/,lawmode/CLAUDE.md) and archivebamr87/lawmode. Needs Amr's OK in his own words; spec 057 T-006. Surfaced in: specs/057-lawmode-fold-in/tasks.md (lawmode fold-in plan, decision on #226). - BL-20261112-01 — infra, high — Refuse to boot production with the default
SECRET_KEYorALLOWED_HOSTS=*(new deploy checkslaw_ai.E002/E003besideE001); the key signs JWT access tokens and the LSAT shuffle HMAC. Optional: DRFDEFAULT_PERMISSION_CLASSEStoIsAuthenticated. Tracked in #221. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-02 — test-gap, med — lsat-static WCAG 2.2 AA axe findings left after the nav fix: Library switcher label-in-name, keyboard-unscrollable passage
<aside>and.lib-table-wrap, no<h1>,.site-footeroutside landmarks; add an axe pass toe2e/responsive.spec.ts. Tracked in #222. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-03 — feature, med — lsat-static destination is not in the URL: cold
#article-…permalinks open Overview, reload and Back lose place; route views through the fragment withpushState. Tracked in #223. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-04 — tech-debt, low — lsat-static question card shows the section twice because
type == sectionfor every bank item (lsat/services/bank.py:222,proposals.py:585); show the archetype label instead. Tracked in #224. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-05 — test-gap, med —
Makefilelsat-static-e2e*pinplaywright:v1.63.0while the lock is 1.64.1 (1.65.0 after #219); extendtests/test_e2e_harness.pyto guard the Makefile too. Tracked in #225. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-06 — tech-debt, med — lawmode: OpenAI
gpt-4odefault outside the constitution §1 vendor list, no CI, no catalog entry; needs the maintainer's revive/fold/retire call. Tracked in #226. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-07 — infra, med — No code scanning analysis on a public repo (CodeQL is $0),
ci.yml/integration-tests.ymlrely on the repo-default token scope, three@mainhub refs. Tracked in #227. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12). - BL-20261112-08 — doc-gap, med — Feature catalog misses shipped surfaces (lsat-static, provider chain, API auth, local AI stack, synthesis engine, lawmode) and PRD §5 has no requirement ids; also AGENTS.md over the 2,000-word budget, no CONTRIBUTING.md, spec 052 idle. Tracked in #228. Surfaced in: the cycle 1 day 14 fleet deep dive (2026-11-12).
- BL-20261026-05 — infra, low — Feed the backend coverage report to the fleet hub's evolution loop now that the test pillar is gone (ADR 0008): the nightly already uploads
backend/coverage.xmlas an artifact, and the hub'srepo-evolution.ymlbrief (bamr87/bamr87.github/evolution/,dash-gen targets) is where "propose tests for the thinnest modules" belongs — one signal line in the brief, no agent in this repo. Pairs with theauto_evolve: trueopt-in. Surfaced in: ADR 0008, retiring the test pillar (refactor/fleet-spec-driven). - BL-20261026-04 — infra, low — The 2026-10-25 fleet conformance run lists this repo's remaining Universal Project Standard gaps: no
fleet-dodmarkers in the PR template (UPS-WORK-03), no release-please caller or config (UPS-REPO-21, UPS-QA-32), nofeatures/features.yml+verify/kit (UPS-QA-50/51), no SECURITY.md or issue forms (UPS-REPO-14/18), a committedpackage-lock.jsonagainst the always-latest policy (UPS-QA-40, UPS-REPO-07). Adopt from the hub withtools/fanout.sh --kit community|sdlc|verify, one PR each. Surfaced in: the 2026-10-25 move of the AO-SDLC machinery into the fleet hub (refactor/fleet-spec-driven). - BL-20261026-03 — doc-gap, low — GitHub Copilot cannot load the
spec-drivenClaude Code plugin, so Copilot users drive the chain from docs/spec-driven.md and the hub's skill text; decide whether the hub's fan-out should seed.github/prompts/*.prompt.mdmirrors of the six skills (a kit follow-up in bamr87/bamr87 templates/spec-driven) or whether the CI-enforced gates are enough. Surfaced in: the 2026-10-25 move of the AO-SDLC machinery into the fleet hub (refactor/fleet-spec-driven). - BL-20261026-02 — infra, med — Opt this repo into the hub's weekly
repo-evolution.ymlloop (auto_evolve: trueon the law-ai entry of bamr87/bamr87_data/projects.yml) now that the per-repoevolve.ymland thefactory--evolve-pilotline are gone; without it the only autopilot is the interactive/spec-driven:evolve. A policy call (one Opus draft PR a week), not a code change. Surfaced in: the 2026-10-25 move of the AO-SDLC machinery into the fleet hub (refactor/fleet-spec-driven). - BL-20261022-01 — doc-gap, low — Two
make helplines no longer say what their target runs, anddocs/reference/make-targets.mdis generated from them:make testrunstest-lsat-staticas well as backend pytest and frontend vitest, andmake test-smokeruns the backend suite, not the roottests/smoke tier or the spec/backlog linters (tests/README.md already warns about the second). Fix thehelp:recipe, thenpython3 scripts/gen_make_reference.py. Surfaced in: the docs-framework harmonization PR (docs/harmonize-docs). - BL-20261022-02 — test-gap, low —
docs/api-examples.mdclaims curl examples for "every public REST endpoint", but nothing checks that against the routes. Now thatdocs/reference/http-routes.mdis generated from the URLconf (scripts/gen_route_reference.py), either add a root test that every generated/api/route appears in the examples (or an explicit allowlist), or narrow the claim. Surfaced in: the docs-framework harmonization PR (docs/harmonize-docs). - BL-20261022-04 — doc-gap, low — Decide whether
docs/law-ai-proposal.md(the April 2026 proposal, banner-marked superseded in its architecture section) is kept as a record or deleted per the fleet's UPS-DOC-06; PRD.md and specs/036 cite it as a roadmap anchor, so a delete has to repoint those. Surfaced in: the docs-framework harmonization PR (docs/harmonize-docs). - BL-20261022-05 — doc-gap, low —
.github/copilot-instructions.mdrestates AGENTS.md's stack, structure and Docker-first rules, which is how it came to list CrewAI crews, Next.js 15 and an Anthropic/Ollama-only chain after all three changed. Slim it to the Copilot-specific notes plus a pointer to AGENTS.md so each rule has one home (UPS-DOC-01). Surfaced in: the docs-framework harmonization PR (docs/harmonize-docs). - BL-20261018-01 — feature, med — Extend the gated LegalBench set beyond
core_reasoning/precedent_retrievalto the already-fetchablecontract_nli,definitions(CC BY-SA 4.0) andcausationsubsets, each with its own baseline row, once spec 056's hosted run proves the CPU budget. Surfaced in: specs/056-legalbench-baseline. - BL-20261018-02 — feature, low — A non-gating reference lane that scores the same items on
claude-sonnet-5-5throughlaw_ai.core.llmwith a pinned single-tierLLM_PROVIDER_CHAIN; needs an ADR amending constitution §1 ("LegalBench does not route through the chain"), theANTHROPIC_API_KEYsecret, and a per-run cost cap (spec 056 OQ-3). Surfaced in: specs/056-legalbench-baseline. - BL-20261018-04 — refactor, low — Report item counts and a binomial confidence interval next to every LegalBench pp delta, and decide by ADR whether the constitution §3 1 pp rule should become item-count-aware (on ~100
precedent_retrievalitems, 1 pp is one item) (spec 056 OQ-2). Surfaced in: specs/056-legalbench-baseline. - BL-20261018-05 — infra, low — Protect
backend/var/legalbench/baseline.json: a CODEOWNERS entry for @bamr87 and alegalbench-baselinelabel so a baseline change cannot ride along unnoticed in an unrelated PR. Surfaced in: specs/056-legalbench-baseline. - BL-20261018-06 — feature, low — Per-item flip report for LegalBench (
regressed/recovereditem indices between a run'sitem_outcomesand the baseline's), mirroring the LSATregression_report(), surfaced in the nightly step summary. Surfaced in: specs/056-legalbench-baseline. - BL-20261007-02 — tech-debt, low —
eslintis held at 9.x in.github/dependabot.ymlbecauseeslint-config-nextdepends on aneslint-plugin-reactthat still callscontext.getFilename(), which ESLint 10 removed; the 9 -> 10 bump took down the whole regrouped frontend PR (#155) atnpm run lint. Drop the ignore entry onceeslint-plugin-react's peer range admits ESLint 10. Surfaced in: open-PR CI sweep 2026-10-07 (#155). - BL-20261007-01 — tech-debt, low —
mswis held at 2.x in.github/dependabot.ymlbecause msw 3 conflicts with the@vitest/mockerthat vitest nests, which peersmsw ^2.4.9; the bump took down the whole grouped frontend PR (#136) atnpm ci. Drop the ignore entry once a@vitest/mockerrelease admits msw 3. Surfaced in: open-PR CI sweep 2026-10-07 (#136). - BL-20260918-02 — test-gap, med —
make ui-sync+ ux_audit R12 gate that the mirroredlib/files are byte-identical, but nothing checks that a value they export is actually used on both sides. That is how BL-20260905-32 shipped half:LSAT_SECTION_QUESTIONSwas mirrored intolsat-static/lib/lsatTimer.tsautomatically while its call site — which lives incomponents/, where the two products keep independent implementations — stayed behind, and the register recorded the item as resolved on the strength of the platform half. A dead-export check over the mirrored modules (everyexport constin aui-sync'd file must have at least one importer on each side) would have failed the build the day the constant landed. Surfaced in: issue #118. - BL-20260917-01 — test-gap, high — The
lsat-staticPlaywright suite (lsat-static/e2e/responsive.spec.ts) runs only indeploy-lsat-pages.yml, i.e. after a merge tomain. Thelsat-staticjob inci.ymlgates a PR on lint +tsc+ vitest, and vitest is jsdom, which computes no layout and evaluates no media query — so the browser-level layout contract, including the #115 Writing hit-test regression, is never checked before merge. That is how a page that was unusable with a mouse at 1280×800 shipped green. Either add alsat-static-e2ejob toci.ymlon thelsat-staticpath filter (the image is pinned and the run itself is ~15s; thenext buildaround it is the cost), or make the deploy job's failure block the Pages publish loudly enough to be noticed. Surfaced in: the #115 fix. - BL-20260917-02 — feature, med — Time spent on a writing prompt is unreportable, because nothing records it.
writingSubmittedKey(id)stores the literal string'1'— no timestamp, no elapsed time, no word count — so the #121 Stats figure could only report whether a prompt was submitted, not the "time spent" the reporter also asked for. Doing it properly means changing the stored value's shape (an object rather than'1') and bumpingSNAPSHOT_SCHEMAinlsat-static/lib/backup.tsfrom1, which would reject every export file readers already hold — so it needs a migration path inparseSnapshot, not just a new field. The drafting clock inWriting.tsx'sDraftPanelis local component state today and would have to be persisted too. Surfaced in: the #121 fix. - BL-20260917-03 — test-gap, med —
Stats.tsx's "Reset progress" callsclearAttempts()only, so it erases multiple-choice history and leaves library read marks, writing drafts and writing submissions untouched — while the confirm dialog says "Erase all saved practice history on this device?". That was invisible while Stats showed nothing but attempts; with the writing figure on the same screen (#121) the discrepancy is now visible to a reader who resets and watches the writing count survive. Decide whether reset means attempts or everythingdeviceState.tsholds, make the dialog say so, and cover it. Deliberately not changed in the #121 fix: widening what a destructive button erases is not a bug fix. Surfaced in: the #121 fix. - BL-20260916-02 — tech-debt, med —
Entergrades the first question of a section and silently stops working on every one after it. Bothlsat-static/components/Drill.tsxandQuestionCard.tsxbindEnteron the window, andlib/keyboard.tstreats an event a previous listener claimed withpreventDefault()as handled. On first mount the card's listener is registered first (child effects run before the parent's) and wins; advancing remounts the card — it is keyed onq.id— so its new listener is appended after Drill's, which never tore down. From question 2 onward Drill claims the keystroke and then no-ops, because the question is not answered yet. Letter keys and theCheck answerbutton are unaffected, so the drill is still usable, but the advertisedEnterflow is dead for 24 of a 25-question section and__tests__/Drill.test.tsxcannot see it (every case grades only question 1). Fix by giving the two a single owner — bindEnteronce in Drill and let it submit or advance — rather than by ordering listeners, which is not something effect order can guarantee. Surfaced in: the #117 drill-position fix (found by a regression test that tried to grade question 2 from the keyboard). - BL-20260908-06 — feature, med — Human review of the full-bank agent sweeps (spec 054): the
typecheck,rewriteand contrast-variation rows queued by the 2026-09-08 runs oflsat_type_review_sweep,lsat_question_review_sweepandlsat_contrast_sweepneed a reviewer to approve or reject on the Authoring tab; nothing inbackend/law_ai/lsat/services/data/*_bank.jsonchanges until they do. Surfaced in: specs/054-lsat-contrast-variations. - BL-20260908-01 — feature, med —
lsat-staticparity for the contrast panel (spec 054):content.jsonnow carriesvariation_ofandcontrast_noteon bank items, butlsat-static/components/QuestionCard.tsxrenders neither. Mirrorfrontend/components/lsat/ContrastPanel.tsxreading from the bundle. Surfaced in: specs/054-lsat-contrast-variations. - BL-20260908-02 — feature, med — Wire the revise loop into the main content factory: give
LSATContentAuthoracritiqueinput and callauthor_with_review(backend/law_ai/lsat/factory/revise.py) frombackend/law_ai/lsat/factory/judge.pybehind aFactoryConfig.revise_enabledflag, so a judgefailon a factory draft is fed back instead of merely recorded. Surfaced in: specs/054-lsat-contrast-variations. - BL-20260908-03 — feature, low — Contrast variations for RC and LG: re-ask a passage or game question as another task on the same context.
pivot_targetsinbackend/law_ai/lsat/services/contrast.pyreturns nothing for them andlsat_contrast_sweeprejects--section RC/LG. Surfaced in: specs/054-lsat-contrast-variations. - BL-20260908-04 — infra, low — Autonomy beats for
lsat_contrast_sweepandlsat_type_review_sweep, like the weeklyautonomy-lsat-cross-checkbeat, under theAUTONOMY_ENABLEDkill-switch with small budgets. Surfaced in: specs/054-lsat-contrast-variations. - BL-20260908-05 — tech-debt, low —
AgentListView(backend/law_ai/agentsapi/urls.py,/api/agents) returns onlynameandmodule; every LSAT crew docstring says the registry surfaceshuman_approval_requiredto the dashboard, and it does not. Expose the flag. Surfaced in: specs/054-lsat-contrast-variations. - BL-20260907-16 — feature, med —
lsat-staticparity for the question-type diagnosis exercise and the playbooks page: export the playbook catalog intocontent.jsonvialsat_export, mirrorDiagnoseStepandPlaybookBrowserunderlsat-static/components/, and extend the drift gate. The static bundle carries the bank'sarchetypestamps already; the UI does not use them yet. Surfaced in: specs/053-lsat-question-diagnosis. - BL-20260907-17 — feature, med — Per-choice trap tagging: when spec 047 FR-17's per-choice rationales land, tag each distractor with a trap id from
backend/law_ai/lsat/services/data/playbooks.jsonso post-grade feedback can name the trap a wrong answer fell for, and/api/lsat/statscan rank traps as well as types. Surfaced in: specs/053-lsat-question-diagnosis. - BL-20260907-18 — feature, low — Adaptive sequencing by weakest type: deal the next LR question from the archetype the learner misreads most (
diagnosis.weakeston/api/lsat/stats). Spec 047 NG3 fences adaptive sequencing off; it needs its own spec. Surfaced in: specs/053-lsat-question-diagnosis. - BL-20260907-19 — feature, low — Server-side
archetypefilter for/api/lsat/passagesso the playbook browser's "drill this type" link lands RC/LG on the type rather than on its primary concept (the proxydrillHrefinfrontend/components/lsat/PlaybookBrowser.tsxuses today). Surfaced in: specs/053-lsat-question-diagnosis. - BL-20260907-20 — tech-debt, low — The factory coverage census now counts by
archetypestamp, which drops the LG game-type archetypes (lg-grouping,lg-hybrid,lg-in-out-selection) to one item each because task cues win classification (docs/lsat-playbooks.md). Decide whetherbackend/law_ai/lsat/factory/coverage.pyshould treat game-type archetypes as passage-set targets rather than per-item deficits. Surfaced in: specs/053-lsat-question-diagnosis. - BL-20260907-12 — feature, med — The feedback widget files in
urlmode only: the reader submits a prefilledissues/newform under their own GitHub account, so no token exists in the browser or on the server. Aproxymode (UPS-FB-05) would file directly, but a server-side token turns any visitor into an unauthenticated issue-writer — a spam vector with no attribution and no rate limit of its own. If it is ever wanted, it needs an authenticated endpoint, a rate limit, and anAuditEventper filing throughcore.provenance, not just a route. Surfaced in: the universal-feedback adoption PR. - BL-20260907-13 — feature, low — UPS-FB-01 asks for an inline feedback trigger in the page action bar alongside the floating button; this app has the FAB and the two contextual entry points (error boundary, 404) but no action bar to put an inline trigger in. Revisit when the Masthead grows one. Surfaced in: the universal-feedback adoption PR.
- BL-20260907-14 — tech-debt, low —
frontend/tsconfig.jsonsetsbaseUrl, which TypeScript now reports asTS5101: deprecated and will stop functioning in TypeScript 7.0. Under the fleet's always-latest policy that becomes a hardmake typecheckfailure on a future minor. Move the path mapping offbaseUrl. Surfaced in: the universal-feedback adoption PR. -
BL-20260907-15 — test-gap, low — The feedback widget is covered by unit tests for the mount and the call sites, and by the kit's own contract tests upstream, but no Playwright spec drives the dialog in this app. A
frontend/e2espec would catch a token mapping or shadow-DOM regression that unit tests structurally cannot. Surfaced in: the universal-feedback adoption PR. -
BL-20260811-05 — doc-gap, med — Have counsel review the spec-030 UPL disclaimer wording and decide whether jurisdiction-specific text or a first-run click-through acknowledgement is warranted; the shipped text is engineering-authored, not legally reviewed. Surfaced in: specs/030-safety-guardrails.
- BL-20260904-03 — doc-gap, med — No terms-of-service / data-retention review exists for xAI as a processor of legal text; ADR 0005 accepted Anthropic's terms, nobody has done the equivalent for xAI. Complete it before BL-20260904-01 ships, since the amendment adds a second default egress path. Surfaced in: docs/adr/0007-xai-runtime-provider.
- BL-20260905-25 — doc-gap, med — specs/008-agent-api-auth/spec.md FR-5/FR-6 and its tasks.md still describe
NEXT_PUBLIC_AGENT_API_KEYbeing read in the browser and documented in .env.example; that variable no longer exists (apiFetch sends no credential, the proxy route attaches the key). Add a dated amendment note to spec 008 pointing atfrontend/app/api/backend/[...path]/route.ts,frontend/app/api/ws-ticket/route.tsandbackend/law_ai/core/ws_ticket.py. Surfaced in: specs/052-backlog-zero (while closing BL-20260430-07). Remaining (blocked): The main loop owns specs/. The amendment note should point at frontend/app/api/backend/[...path]/route.ts, frontend/app/api/ws-ticket/route.ts and backend/law_ai/core/ws_ticket.py, dated 2026-09-06. - BL-20260905-31 — refactor, med — Phase 2 of the LSAT Lab decomposition: once specs/039-design-system ships frontend/ui/components/, swap the Tailwind class strings in frontend/components/lsat/{LrPanel,PassagePanel,QuestionCard,TutorPane,AuthoringPanel,StatsPanel,OverviewPanel,LabPrimitives}.tsx onto the 039 primitives (Button/Choice/Panel). Phase 1 (the behaviour-preserving split) is done; spec 039 is still Status: planned and frontend/ui/ has no components/ directory, so the 'onto frontend/ui primitives' half of BL-20260830-02 cannot land yet. Surfaced in: specs/052-backlog-zero (while closing BL-20260830-02). Remaining (blocked): Unblocks only when spec 039 ships frontend/ui/components/ with Button/Choice/Panel. Left in the register for the main loop; I did not touch BACKLOG.md.
- BL-20260905-44 — feature, med — Human editorial pass over the 100
LSATContentFactory build100bank items (58 LR, 28 RC, 14 LG): each currently carriesreview.method: "machine-judge"in backend/law_ai/lsat/services/data/{lr,rc,lg}_bank.json. A reviewer who reads an item should flip its record toeditorialwith their own name; backend/tests/lsat/test_bank_review.py already enforces that machine review is never labelled editorial. Surfaced in: specs/052-backlog-zero (while closing BL-20260429-19). Remaining (blocked): Needs a human reviewer to read items and stamp their own name; leave in the register as a human task. - BL-20260905-47 — test-gap, low — backend/tests/lsat/test_factory_ollama_integration.py has never executed its assertions: the Docker ollama here cannot load mistral:7b (4.9 GiB needed). Run
make test-integration-ollamaon a box with enough RAM, or point OLLAMA_INTEGRATION_URL at one, and confirm the llm_call/agent_call assertions hold against a real generation. Surfaced in: specs/052-backlog-zero (while closing BL-20260702-05). Remaining (blocked): Skip reason is the honest one:ollama cannot run 'qwen2.5:3b-instruct-q4_K_M': {"error":"model requires more system memory (2.5 GiB) than is available (2.4 GiB)"}(mistral:7b needs 4.9 GiB). - BL-20260905-63 — feature, low — lr-parallel-reasoning and lr-parallel-flaw are decidable by shape-matching over schemas._shape() but need whole mini-arguments as answer choices, i.e. a structural guarantee like CausalSchema rather than a model-theoretic proof. Adding them needs authored argument pools in the domain packs (lexicon.py) the way causal_scenarios already are. Surfaced in: specs/052-backlog-zero (while closing BL-20260903-13). Remaining (blocked): Remains open. Needs its own spec package: a CausalSchema-style structural guarantee plus argument pools in lexicon.py + the four domain JSON packs, then flipping the coverage assertion in test_synth_generate.py:636.
- BL-20260905-65 — test-gap, low — The polish prompt's real yield is now measurable but has never been measured: backend/tests/lsat/test_synth_polish_live.py stays skipped without LSAT_SYNTH_LIVE_POLISH=1, and no polish_yield.json exists. Someone should run
make lsat-synth-polish-yieldonce against a pinned tier (LLM_PROVIDER_CHAIN=ollama for a free run) and record the number and its tier. Surfaced in: specs/052-backlog-zero (while closing BL-20260903-17). Remaining (blocked): Same RAM wall as BL-20260905-47: the ollama container reports 1.2 GiB available and the smallest pulled instruct model needs 2.5 GiB. No polish_yield.json was produced. - BL-20260905-66 — tech-debt, low — Structural-proof schemas get no difficulty proxy at all (measure() returns None), so lr-causal-weaken and lr-percent-vs-number are indistinguishable to the census and keep whatever band their author declared. A structural-only proxy — attack-pool depth, inert-fact similarity, stimulus length — would put them on some scale rather than none. Surfaced in: specs/052-backlog-zero (while closing BL-20260903-14). Remaining (blocked): Remains open. A safe first step would be an advisory-only ItemComplexity that the census reads but blend() ignores, so the scale exists before it is allowed to move any band.
- BL-20260905-67 — tech-debt, low — Bank explanations and spec 045 guide steps in backend/law_ai/lsat/services/data/*.json are still authored with bare answer labels ('A is correct: …'), so shuffling depends on a regex rewrite. Migrating them to {{A}}-style placeholders plus a validation.py rule rejecting bare labels in new content would make the remap a substitution instead. Surfaced in: specs/052-backlog-zero (while closing BL-20260606-01). Remaining (blocked): Closing it means migrating 208 explanations plus 40 guides to placeholders and adding a validation rule that would reject the phrasing models naturally produce — a content migration and an authoring-contract change, not a tight sweep edit.
- BL-20260905-72 — feature, low — XAI_INTERACTIVE_MODEL ships blank because choosing a faster Grok id needs a live SuperGrok subscription the suite may never touch (spec 050 AC-5). Someone with
make xai-loginshould runmake validate-xai(which now lists the served ids) plus a timed IRAC through the xai tier, pick a candidate, and record the measured latency and any IRAC-quality regression in docs/adr/0007-xai-runtime-provider.md before setting a default. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-11). Remaining (blocked): Cannot be done from an agent run: choosing a faster Grok id needsmake validate-xaiagainst a real subscription plus a timed IRAC comparison, and the result belongs in docs/adr/0007. Duplicates BL-20260906-78 in substance. - BL-20260905-87 — tech-debt, med —
backend/law_ai/core/neo4j/migrations/006_derived_document.cypherdeclares two property-existence constraints (derived_document_agent_version_exists,derived_document_kind_exists) that are Enterprise-only and are rejected by the pinnedneo4j:5-communityimage in docker-compose.yml.migrate_neo4jnow defers the file instead of failing, but the constraints are simply absent in every dev/CI environment, so nothing actually enforces theDerivedDocumentprovenance invariant the spec-015 tests assert on paper. Surfaced in: specs/052-backlog-zero (while closing BL-20260509-02). Remaining (partial): Still open: nothing enforces the invariant in the graph. The only real closes are running CI/dev Neo4j on Enterprise (a licensing decision, not a code change) or a write-path guard — and there is no DerivedDocument write path yet, which is why the model is the right place today. - BL-20260905-88 — test-gap, low —
backend/law_ai/core/management/commands/densify_backfill.pyandbackfill_embeddings.pyare unit-tested against fake sessions only. Add@pytest.mark.integrationtests underbackend/tests/db/that seed a real(:Case)-[:HAS_CITATION]->(:Citation)pair with a resolvable alias (and a vector-less:Case) and assert theCITESedge /embeddingproperty actually lands, plus that a second--commitrun is a no-op. Surfaced in: specs/052-backlog-zero (while closing BL-20260429-11). - BL-20260905-91 — infra, low —
commit_extraction(backend/law_ai/core/neo4j/queries.py) now makes one synchronous-in-the-await-sense embedding call per case at ingest. On a largemake ingestrun that serialises N HTTP round-trips to Ollama. Batch the embeddings perExtractionResultbatch viaembed_texts, or move the embedding write to a Celery follow-up task that reusesbackfill_embeddings. Surfaced in: specs/052-backlog-zero (while closing BL-20260810-17). Remaining (blocked): The Celery alternative is worse than the latency: deferring the embedding write would silently stop embedding on every path without a worker, including scripts/ingest_sample.py behindmake ingest, and vectors would go missing rather than be slow. - BL-20260906-03 — feature, low — The
(:Case)-[:INTERPRETS]->(:StatuteSection)edge remains declared-only in docs/data-model.md. Deciding that an opinion construes a section rather than merely citing it is a judgement the rule-based extractor cannot make, so it needs either an audited LLM pass or a signal-based heuristic (pin-cite depth, quotation of the section text). Surfaced in: specs/052-backlog-zero (while closing BL-20260509-07). Remaining (blocked): Now cheaper than it was: the --refetch pass added under BL-20260906-88 already holds the opinion body and the resolved section ids in one place, so a quotation-overlap heuristic (or an audited LLM pass behind a flag like the new INGEST_LLM_SUMMARY) has a natural home in _refetch_case. - BL-20260906-06 — feature, med — Denver ingestion has no chapter discovery:
--chaptersmust be typed by hand andparse_chapter_htmlignores the code's article/division layer, soOrdinanceis one flat node per chapter. Add a table-of-contents parse that enumerates chapters, and decide whether articles deserve their own node or a property onOrdinanceSection. Surfaced in: specs/052-backlog-zero (while closing BL-20260509-05). Remaining (partial): The second half is untouched: the article/division layer is still absent, so Ordinance remains one flat node per chapter and an article is neither a node nor a property. - BL-20260906-14 — feature, med — Finish the drafting export: add
python-docxand one PDF engine (weasyprint or reportlab) to backend/pyproject.toml + backend/Dockerfile, then render the structurelaw_ai/matters/drafting/memo.compose_memoalready returns into DOCX and PDF behindGET /api/matters/<slug>/memo?output=docx|pdf(currently 501). Needs its own spec sub-package per the item, and a UPL wording review of the draft disclaimer. Surfaced in: specs/052-backlog-zero (while closing BL-20260817-03). Remaining (blocked): Remains open. compose_memo in law_ai/matters/drafting/memo.py already returns the structure to render; what is missing is the dependency decision, the renderers, and the UPL review. - BL-20260906-16 — feature, med —
MatterAuthority.node_idis an unvalidated string andMatterArtifact.analysis_idis a string join toAnalysisRun. Validate a recorded authority against Neo4j (core/neo4j/queries.py) when the graph is reachable, and make the analysis link a real nullable FK, so an export bundle cannot point at authorities or runs that do not exist. Surfaced in: specs/052-backlog-zero (while closing BL-20260817-01). Remaining (partial): MatterArtifact.analysis_id is still a CharField join to AnalysisRun, not a nullable FK. Converting it needs a schema migration plus a data migration for existing rows in an app another wave-1 package owns, which is more concurrency risk than this sweep should take mid-wave; docs/data-model.md now sa… - BL-20260906-33 — infra, med — Apply the checked-in branch-protection ruleset:
gh api -X POST repos/bamr87/law-ai/rulesets --input .github/rulesets/main-required-checks.json. The JSON, its sync tests and the docs shipped with BL-20260815-01, but the API call is a repo-settings write that the agent permission layer denied, sogh api repos/bamr87/law-ai/rulesetsstill returns[]and nothing blocks a merge on a red check today. Surfaced in: specs/052-backlog-zero (while closing BL-20260815-01). Remaining (blocked): The owner runs exactly one command: gh api -X POST repos/bamr87/law-ai/rulesets --input .github/rulesets/main-required-checks.json. Everything else the item asks for already shipped. - BL-20260906-35 — tech-debt, low — Decide the fate of the unmerged AM-1 auto-merge work before it is forgotten.
scripts/check_am1_eligible.py,tests/test_am1_eligible.py,.github/workflows/am1-automerge.ymland an ADR numbered 0004 exist only on origin/claude/cranky-burnell-fd2782 (commit 7c8a0f9) and were never merged to main — main has since reused ADR number 0004 for 0004-jurisprudential-stance.md, and the org still shows a disabled 'AM-1 auto-merge' workflow. Either promote it under a fresh ADR number or record it as abandoned; the local worktree that held it has now been deleted. Surfaced in: specs/052-backlog-zero (while closing BL-20260818-03). Remaining (blocked): Needs an owner's call: promote the AM-1 work under a fresh ADR number, or record it abandoned. Either way it is a one-commit change once decided — the blocker is the decision, not the work. - BL-20260906-40 — infra, med — Boot the LangGraph Studio host end to end once a free LANGSMITH_API_KEY exists:
make studio-up, confirm backend/Dockerfile.studio builds against langchain/langgraph-api:3.12 with-c /api/constraints.txt, that LANGSERVE_GRAPHS resolves law_ai/agents_runtime/graphs/studio.py:make_graph, and that a run steps through retrieve → analyze → cite_check in smith.langchain.com/studio. Everything but the boot is verified today. Surfaced in: specs/052-backlog-zero (while closing BL-20260502-01). Remaining (blocked): Blocked on exactly the precondition the item names ("once a free LANGSMITH_API_KEY exists"), plus a smith.langchain.com session to step a run through retrieve -> analyze -> cite_check. I deliberately did not half-do it by building the image without being able to boot or drive it. - BL-20260906-41 — feature, med — Wire the vLLM server (docker-compose.gpu.yml, profile
vllm) intolaw_ai/core/llm/providers.pyas an OpenAI-compatible chain tier. It serves an OpenAI API on :8001 today but nothing in the product can call it, and adding a tier is a constitution §1 amendment, not a compose change. Surfaced in: specs/052-backlog-zero (while closing BL-20260502-02). Remaining (blocked): Needs the AO-SDLC path: an ADR and a constitution amendment first, then the provider class, then a chain-position decision. The compose service (docker-compose.gpu.yml, profile vllm) is unaffected and still serves an OpenAI API on :8001. - BL-20260906-42 — infra, med — Validate the GPU overlay on a real Linux + NVIDIA host:
make local-ai-up-gpu(device reservations, 70B gate model, 7200s start_period) andmake local-ai-up-server(nvidia/dcgm-exporter, vllm/vllm-openai:v0.11.0). Both image tags and everydeploy.resourcesblock are currently validated only bydocker compose config. Surfaced in: specs/052-backlog-zero (while closing BL-20260502-02). Remaining (blocked): Needs a machine with NVIDIA hardware; no code change can close it. - BL-20260906-43 — tech-debt, low — Retire the dead DEFAULT_MODEL / FALLBACK_MODEL settings (backend/law_ai/settings/base.py:25-26, :204-205 and .env.example) — nothing reads them, and DEFAULT_MODEL advertising llama3.1:70b-q4_K_M reads like the live knob when OLLAMA_DEFAULT_MODEL is. They are only annotated as dead right now, because base.py is shared with other in-flight packages. Surfaced in: specs/052-backlog-zero (while closing BL-20260502-02). Remaining (partial): Partial only because the item asked for FALLBACK_MODEL too; that request is obsolete rather than unfinished. New test
TestRetiredSettings::test_default_model_is_goneassertsnot hasattr(django_settings, 'DEFAULT_MODEL'). - BL-20260906-44 — feature, low — Expose a Django /metrics endpoint (django-prometheus) and add it to infra/prometheus/prometheus.yml, so API latency, error rate and Celery task outcomes join the Grafana dashboard. Today Prometheus only sees vLLM, Redis and DCGM — the app itself is invisible to the server-tier dashboard. Surfaced in: specs/052-backlog-zero (while closing BL-20260502-03). Remaining (blocked): Wants its own change window: add django-prometheus to backend/pyproject.toml, rebuild the image, mount /metrics, add a
law-aijob to infra/prometheus/prometheus.yml, and add Grafana panels. Not safe to do inside a concurrent wave. - BL-20260906-46 — doc-gap, med — A human must read xAI's legal pages in a browser (x.ai/legal/terms-of-service, x.ai/legal/privacy-policy, x.ai/legal/europe-privacy-policy-addendum) and record the decision in docs/adr/0007-xai-runtime-provider.md's 'Terms-of-service and data-retention review' section, replacing the draft, plus the outcome in docs/constitution.md §1's xAI amendment block. The pages 403 automated fetches, so no agent can close this. Until then the default LLM_PROVIDER_CHAIN keeps a second unreviewed third-party egress path (settings/base.py:35). Surfaced in: specs/052-backlog-zero (while closing BL-20260904-03). Remaining (blocked): By construction not closable by an agent: x.ai/legal/terms-of-service, /privacy-policy and /europe-privacy-policy-addendum 403 automated fetches, and the ADR itself says the acceptance is the owner's to give.
- BL-20260906-47 — tech-debt, low — scripts/spec_validator.py has no 'superseded' status: SHIPPED_STATUSES = {'shipped'} and the symmetric check errors when every task is [x] but the status is anything else, so specs/025-lsat-static-site/spec.md had to keep '- Status: shipped — superseded'. Add 'superseded' to SHIPPED_STATUSES (and to the status enum in specs/_template/spec.md) so a retired spec can say so in the field the validator reads. Surfaced in: specs/052-backlog-zero (while closing BL-20260716-11). Remaining (partial): Remaining: the status enum line specs/_template/spec.md:4 (
draft | clarified | planned | in-progress | shipped) should gain| superseded, and specs/025-lsat-static-site/spec.md can drop its '- Status: shipped — superseded' workaround. - BL-20260906-55 — feature, low — Node size on the graph is now CITES in-degree within the rendered neighbourhood (BL-20260803-03), which changes as you traverse. If a corpus-wide citation count is ever wanted, it needs a backend field on the :Case node plus the same litigation-frequency labelling in GraphViewer's aria-label and KnowledgeGraph's Legend. Surfaced in: specs/052-backlog-zero (while closing BL-20260803-03). Remaining (blocked): Not obsolete (the description of today's behaviour is accurate) and not actionable: it is a design note gated on a product decision. Should stay in the register as an option, not a defect.
- BL-20260906-58 — tech-debt, low — Clear the remaining 34 non-
lsat/urls.pyentries inbackend/mypy-baseline.txtapp by app:agentsapi/urls.py(8),lsat/services/bank.py(5),ingestionapp/services/courtlistener.py(3),core/auth.py(3),agents_runtime/graphs/runtime.py(3,BaseCheckpointSavermissing type args),celery.py/core/tasks.py/ingestionapp/tasks.py(2 each), plus six single-error files. When the baseline reaches zero, delete it and drop the ratchet call fromMakefileand.github/workflows/ci.ymlso plainmypy law_ai --strictis the gate —scripts/mypy_ratchet.pyprints that instruction itself. Surfaced in: specs/052-backlog-zero (while closing BL-20260429-04). Remaining (blocked): Wants a single-owner pass on a quiet tree: burn the files down app by app,make mypy-baselineonce at the end, then delete the file and drop the ratchet call from the Makefile and ci.yml (scripts/mypy_ratchet.py prints that instruction itself). - BL-20260906-59 — tech-debt, low — Celery publishes no type stubs, so
celery.*sits in theignore_missing_importsoverride inbackend/pyproject.tomland every@shared_taskproduces anuntyped-decoratorerror (6 of the 59 baseline entries, inlaw_ai/celery.py,core/tasks.py,ingestionapp/tasks.py). Evaluatecelery-typesas a dev dep; if accurate enough it clears those and lets the override dropcelery.*. Surfaced in: specs/052-backlog-zero (while closing BL-20260429-04). Remaining (blocked): Needs an operator-approved image change: add celery-types to the backend dev deps, rebuild, drop "celery.*" from the ignore_missing_imports override in backend/pyproject.toml, then re-bank the baseline. Best done between waves, not while other agents share the image. - BL-20260906-60 — infra, low —
backend/mypy-baseline.txtcarries a global# total:header, so two PRs that each burn a different file down conflict on that one line. If that becomes annoying, drop the header total and relaxtests/test_mypy_ratchet.py::TestCommittedBaseline::test_header_total_matches_the_entries, or teachscripts/mypy_ratchet.py --updateto merge per-file entries rather than rewrite the file. Surfaced in: specs/052-backlog-zero (while closing BL-20260429-04). Remaining (blocked): The item's own trigger ('if that becomes annoying') has not fired. If it ever does, dropping the header total is the cheap option, but it costs the half-edit cross-check. - BL-20260906-64 — doc-gap, low — CLAUDE.md's command table still describes
make lint-specsas "host stdlib, no container"; since BL-20260511-14 it also runspython3 -m pytest tests/test_evolve_audit.py, so it needs pytest on the host interpreter. AGENTS.md and tests/README.md were corrected; CLAUDE.md was deliberately left alone (agents must not edit it). Surfaced in: specs/052-backlog-zero (while closing BL-20260511-14). Remaining (blocked): Needs the repo owner to edit CLAUDE.md line 34, e.g.make lint-specs(host; needs pytest on the host interpreter). AGENTS.md:265 and tests/README.md:36,45 already carry the corrected description, so the only stale copy is CLAUDE.md. - BL-20260906-65 — tech-debt, med — The a11y baseline still amnesties re-use of an already-accepted colour pair: new text painted
#62748eon a dark slate ground passes because that signature is recorded. The only real close is paying off the contrast debt (text-slate-500onbg-slate-950/bg-slate-900) and emptying frontend/e2e/a11y-baseline.json, at which point any color-contrast violation fails outright. Surfaced in: specs/052-backlog-zero (while closing BL-20260831-09). Remaining (partial): To finish: catch the /agents red badge with a seeded failed run (it is almost certainly thetext-red-300onbg-red-500/20badge in agents/RunRow.tsx or RunDetailModal.tsx) and close BL-20260906-66. The file is then empty and the rule can drop its amnesty entirely. - BL-20260906-66 — tech-debt, med — Adding /matters to the a11y sweep surfaced a
scrollable-region-focusableviolation on#mainfor that route — the shell's scroller has no keyboard entry point there. It is now baselined as known debt rather than fixed. Surfaced in: specs/052-backlog-zero (while closing BL-20260831-09). Remaining (blocked): Two candidate fixes, both in files other wave-3 groups are editing right now: (a)tabindex="0"on #main in the shell — one attribute, the canonical a11y answer for a scrollable region, but it adds a tab stop on all seven routes and would change the tab order the specs I just touched assert on; (b)… - BL-20260906-67 — infra, med — The new ci.yml
a11yjob boots the whole compose stack (both app images) on every PR touching frontend/. The nightly had to drop from daily to weekly over runner disk exhaustion, which is why the job reclaims ~25 GB of preinstalled toolchains first — but nobody has watched it run yet. Check its first few PR runs for runtime and disk, and consider a prebuilt image or a cached build if it is marginal. Surfaced in: specs/052-backlog-zero (while closing BL-20260831-09). Remaining (blocked): Do it after the branch opens a PR: check the a11y job's wall time and post-cleanup free disk on its first two or three runs, and consider a prebuilt image or a cached build if it is marginal. - BL-20260906-70 — test-gap, low — The governance triage now has two homes (the Celery beat entry and the nightly workflow step) writing the same titled issue under the same label. Idempotency across the two is argued in docs/ao-sdlc.md and unit-tested for the library path, but nothing exercises the shell step's
ghbranch — a live smoke (or nektos/act run) of the nightly triage step would close that. Surfaced in: specs/052-backlog-zero (while closing BL-20260503-14). Remaining (blocked): Wants either anactrun of the triage step against a throwaway repo, or a deliberate live run on a scratch label with the issue cleaned up afterwards. Both need an owner's go-ahead to write to GitHub. - BL-20260906-76 — feature, low — LSAT item authoring (lsat_content_author._generate, measured at 68s on the xAI tier) still buffers its call: it now passes the interactive model override but does not stream. Give it the same delta relay the IRAC path got (llm.astream + an emit_stream_event sink keyed on a stream_id) so the authoring wait is visible too; the same applies to lsat/services/crosscheck.py and lsat_writing_evaluator.py. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-11). Remaining (partial): Not done: the same relay for lsat/services/crosscheck.py and lsat_writing_evaluator.py, and the client half — AuthoringPanel does not open a WebSocket before calling generateLsatProposals, so the backend deltas have no subscriber yet. Filed as a follow-up.
- BL-20260906-77 — tech-debt, low — Streamed analysis deltas write one ws_event_sent provenance row per chunk and each consumes a slot in the 200-event replay buffer, so a long IRAC answer can evict the run's earlier agent_step frames for a reconnecting client. The LSAT tutor has the same shape; consider coalescing token events (time- or size-bucketed) in law_ai/agentsapi/streaming.py, or exempting them from the replay buffer. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-11). Remaining (partial): Still outstanding: each delta continues to write one
ws_event_sentprovenance row. I left that alone deliberately — every coalescing scheme I could write tightly either needed a payload field the two producers do not share (analysis_tokencarries cumulativechars,tutor_tokendoes not) or pe… - BL-20260906-78 — feature, low — No Grok-variant latency/quality evaluation exists, so XAI_INTERACTIVE_MODEL still ships blank: an operator with a live subscription should measure at least one non-reasoning candidate against grok-4.6 on an IRAC question and an LSAT authoring run and record the numbers (or a reasoned 'none suitable') in docs/adr/0007. It needs live billed calls, so it cannot be done from CI or an agent run. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-11). Remaining (blocked): Cannot be run from CI or an agent session. An operator with
make xai-logindone needs to time an IRAC question and an LSAT authoring run per candidate and record the numbers (or a reasoned 'none suitable') in docs/adr/0007. - BL-20260906-79 — tech-debt, low — LegalAnalyst's direct-LLM path now runs one lexical GraphRAG query per model-named authority (previously only for the ones the alias resolver missed) because §13 attribution needs the passage behind a resolved :Case id. Batch the lookups into one query, or have the citation resolver return court/decided_at alongside the id, if the extra round trips show up in analysis latency. Surfaced in: specs/052-backlog-zero (while closing BL-20260803-04). Remaining (blocked): Remains open. The clean shape is a separate resolve_citation_details() returning {name: {id, court, decided_at, jurisdiction_code}} alongside the existing id-only resolver, with _name_lookup called only for names that came back without court+decided_at.
- BL-20260906-83 — test-gap, med — The polish prompt's yield is now measured against the free local tier only (30/30 = 1.00 on ollama/qwen2.5:3b-instruct-q4_K_M, committed at backend/var/lsat_synth/polish_yield.json). Yield is not comparable across tiers, so the hosted tiers (Claude, xAI) are still uncalibrated and the 0.50 floor is unvalidated for the chain's default first tier. Run
make lsat-synth-polish-yieldonce against the default chain and commit the second report alongside the local one. Surfaced in: specs/052-backlog-zero (while closing BL-20260903-17). Remaining (blocked): Needs an operator to runmake lsat-synth-polish-yieldonce with hosted credentials and commit the second report next to the local one. Keep it open in the register. - BL-20260906-86 — tech-debt, low — Bank content is still authored with bare answer labels ('A is correct: …', '(D) is the exception'), so the shuffle has to rewrite explanation prose with a pattern matcher rather than substitute placeholders. A migration to {{A}}-style placeholders would make the remap a substitution; the conservative rewrite exists precisely so that migration is not a prerequisite, but it remains the safer end state. Surfaced in: specs/052-backlog-zero (while closing BL-20260606-01). Remaining (blocked): Remains open as the safer end state. Needs a migration script over backend/law_ai/lsat/services/data/*.json, a re-export of lsat-static/content.json, and the simplification of remap_labels once no bare labels remain.
- BL-20260906-87 — doc-gap, high — Amend the register for BL-20260429-03: BACKLOG.md:191 still reads "Reintroduce Blackstone NER for
_extract_entities" with no note that Blackstone was deliberately dropped (it pins spacy==2.1.8 against this project's spacy>=3.8 and publishes no Python 3.12 wheels; upstream unmaintained since 2024-07), and BACKLOG.md:300 (BL-20260429-08) still asserts "blackstonenow lives in[project.optional-dependencies].nlpinbackend/pyproject.toml", which is false — the extra now carries only the en_core_web_sm wheel. Surfaced in: specs/052-backlog-zero (while closing BL-20260429-03). Remaining (blocked): For the main loop: amend BACKLOG.md:484 so BL-20260429-08 reads that blackstone was REMOVED from the nlp extra rather than moved into it, and that the extra now carries only the en_core_web_sm wheel (docs/related-github-repos.md:131 already states this correctly). - BL-20260906-90 — test-gap, med — The Justia live drift smoke can still only ever skip: law.justia.com answers every plain HTTP client with a Cloudflare 403, so the parser has never once run against real Justia markup and the frozen fixture (tests/ingestion/fixtures/co/title_18_article_3.html) is hand-written and models an article page while the adapter fetches the title index URL. Either drive the fetch through a browser context in the nightly, or point the smoke at the already-supported COLORADO_STATUTES_PDF_BASE_URL fallback, so a drift baseline exists at all. Surfaced in: specs/052-backlog-zero (while closing BL-20260511-07). Remaining (blocked): The frozen fixture's second problem is real and independent: tests/ingestion/fixtures/co/title_18_article_3.html is hand-written and models an article page while the adapter fetches the title index URL, so even a working fetch would be compared against the wrong shape.
- BL-20260906-97 — test-gap, med — tests/api/test_analysis.py::test_default_engine_path_never_500s_when_engine_explodes is order- and data-dependent: it asserts confidence == 0.0, which only holds while PrecedentHunter degrades. With Case nodes present in the shared dev neo4j and the driver warmed by an earlier test, the hunter succeeds and returns 0.16. Reproduced with git-HEAD copies of my changed files, so it is pre-existing. It should stub the hunter or assert on the analyst's degraded flag instead of the aggregate confidence. Surfaced in: specs/052-backlog-zero (while closing BL-20260817-05).
- BL-20260907-01 — infra, med — Ingest embeds one case at a time over one HTTP round trip each, and no batching is possible with the current transport: law_ai.core.llm.embeddings.embed_texts loops POSTs against Ollama's single-prompt /api/embeddings, and commit_extraction/run_and_commit have no batch entry point above them. Either switch embed_texts to Ollama's array-input /api/embed (one call for N texts, needs a response-shape change and a dimension check per entry) or introduce a real batch commit path so a large
make ingeststops serialising N generations. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-91). - BL-20260907-02 — tech-debt, med — Backfill the archetype stamp onto the 208 pre-existing bank items. Question.archetype now exists and is stamped at promotion (BL-20260905-54), but every item authored before it still has archetype=None, so the coverage census and exemplar selection keep the primary-concept proxy as a fallback and archetype counts stay approximate. Needs a decision per item (the proxy's inference is a guess, not evidence) plus a one-shot migration command and a test that the census reports stamped counts directly. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-54).
- BL-20260907-03 — feature, med — Finish the interactive-streaming pass for LSAT: relay deltas from lsat/services/crosscheck.py and agents_runtime/crews/lsat_writing_evaluator.py the way lsat_content_author now does, and open the client half — AuthoringPanel must subscribe to /ws/agents/
before calling generateLsatProposals and render authoring_token deltas, or the backend relay added for BL-20260906-76 has no subscriber and the 68-second authoring wait still looks like a spinner. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-76). - BL-20260907-04 — tech-debt, med — The mypy strict ratchet now reports zero errors across law_ai while backend/mypy-baseline.txt still allows 34, and scripts/mypy_ratchet.py itself prints "Zero strict errors. Delete backend/mypy-baseline.txt and drop the ratchet so
mypy law_ai --strictis the gate on its own." Fourteen files are listed as reclaimable slack. Until the baseline is dropped, a file can regress by up to its banked allowance without failing CI — the ratchet is currently weaker than the code deserves. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-23 / BL-20260906-26 (running the ratchet to check my files added no strict errors)). - BL-20260907-05 — tech-debt, med — GET /api/lsat/questions reports
countas the size of the returned sample, not the size of the matching pool, and above its hard cap of 25 it returnsrandom.sample(pool, 25)— so a caller cannot distinguish '25 of 25' from '25 of 60', and gets a different 25 on each request. Any client that treats the response as the complete answer to a filter is silently wrong (that is how BL-20260906-74 arose). Either report the pool size in a separate field, or make the endpoint say it truncated. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-74). - BL-20260907-06 — feature, med — Ordinances are now retrievable but semantically invisible: the new ordinance leg in GraphRAGRetriever is lexical-only because migration 008 creates vector indexes for :Case and :StatuteSection only, and neither the ingest path nor
manage.py backfill_embeddingswrites anembeddingonto :OrdinanceSection. Municipal code is the label most likely to be asked about in words the drafters never used ("can the city tow my car from my own driveway?"), so lexical-only under-recalls it exactly where it matters. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-07). - BL-20260907-07 — tech-debt, med — Finish the phoenix_trace_url -> trace_url deprecation across the LSAT surface so the old name can eventually be dropped. /api/analysis now emits both names identically and the Analysis Studio prefers the new one, but the LSAT tutor still emits only the old spelling (backend/law_ai/lsat/services/tutor.py:210 and :768) and frontend/components/lsat/TutorPane.tsx:131 reads only that, so
phoenix_trace_urlcannot be removed while a client still depends on it. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-10). - BL-20260907-08 — test-gap, med — No end-to-end coverage of the browser session round-trip now that the proxy forwards cookies (BL-20260906-08). The RTL tests run against MSW and the proxy tests stub fetch, so nothing exercises Next -> Django with a real csrftoken/sessionid: a Django CSRF or cookie-attribute change (SESSION_COOKIE_SAMESITE, a future CSRF_TRUSTED_ORIGINS requirement, SECURE flags in prod) would break sign-in with every unit test still green. A Playwright case in frontend/e2e that signs in as a seeded user through /api/backend and asserts /api/auth/me comes back authenticated would close it. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-08).
- BL-20260907-09 — feature, med — The /settings scope chooser offers 'Instance defaults' to every signed-in user, not only staff (frontend/components/shell/SettingsForm.tsx:96, gated on userScope alone). The server refuses a non-admin instance write, but the client writes the row locally first and mirrors optimistically, so a non-staff user who picks that scope ends up with a local instance row the instance does not actually have — the UI shows a value nobody else will ever inherit, with no error. Surfaced in: specs/052-backlog-zero (while closing BL-20260906-17).
- BL-20260907-10 — feature, med — The intro band can now be generated but the bank has not been fed from it:
lg-sequencing-one-ruleandlr-conditional-one-stepexist, yet the intro depth in backend/law_ai/lsat/services/data/*_bank.json is still whatever was hand-authored, and test_bank_bands.py's floor is held by hand. Run a promotion batch of intro items throughlsat_synth generate --emit bank --promote(or the review queue) so the intro band has generator-backed depth in both MCQ sections, and record the promotion in the audit trail. Surfaced in: specs/052-backlog-zero (while closing BL-20260905-50). - BL-20260907-11 — infra, med — The
BL-YYYYMMDD-NNid scheme caps at 99 items per discovery date, and the 2026-09-05/06 backlog-zero sweep exhausted both days, so its last ten follow-ups carry 2026-09-07 ids despite being discovered on the 6th (noted in Triage rules below). Widen the ordinal to three digits inscripts/backlog_lint.py'sBULLET_REand the Conventions table, or accept the date drift and say so. Surfaced in: specs/052-backlog-zero (while closing the follow-up sweep). - BL-20260907-21 — feature, med — An image path through
law_ai.core.llm(LLMRequest.imagesacross the four transports), so ocrmd's vision cross-check can run inside Law AI through the §4 choke point instead of OCR-only; the embedded scanner in spec 055 runsprovider=Noneuntil then. Surfaced in: specs/055-ocrmd-plugin. - BL-20260907-22 — feature, med — A frontend for the ocrmd plug-in: an upload panel (
POST /api/ingestion/ocrmd/scan) on the LSAT Lab authoring tab and on a matter's documents, and a "scanned page" view that shows the scanner's provenance and caveats. Surfaced in: specs/055-ocrmd-plugin. - BL-20260907-23 — feature, low — A
:SourceDocumentgraph node (or aPendingReviewkindscanned_page) so a scanned source can be cited from an analysis with graph-level provenance; needs its own spec, a licence posture per source, and HITL. Surfaced in: specs/055-ocrmd-plugin. - BL-20260907-24 — infra, low — Pin the
ocrmdextra to a release tag (or PyPI) once ocrmd publishes one, and consider installing it in the default image if the opencv system libraries are acceptable there. Surfaced in: specs/055-ocrmd-plugin. - BL-20260907-25 — test-gap, med — An
integration-marked test that runsocrmd_plugin.scan_fileagainst a real RapidOCR engine in anINSTALL_OCRMD=1image, nightly, so the embedded path is exercised end to end. Surfaced in: specs/055-ocrmd-plugin. - BL-20260907-26 — doc-gap, low — Regenerate
frontend/__tests__/fixtures/api-schema.jsonwithIngestScanRequest/IngestScanResultand the ocrmdEnvelopeonce the frontend consumes them (make manage CMD=export_api_schema). Surfaced in: specs/055-ocrmd-plugin.
Claimed¶
- BL-20260906-28 — test-gap, high — claimed-by:specs/056-legalbench-baseline — Record and commit the first real LegalBench baseline: on a host that can load mistral:7b-instruct-q4_K_M run
make legalbench-cache && make legalbench-baseline, commit backend/var/legalbench/baseline.json, and fill the score/commit columns in the docs/legalbench.md "Baseline scores" table. The dataset cache and the --fail-on-synthetic gate already landed; only the numbers are missing. Surfaced in: specs/052-backlog-zero (while closing BL-20260811-10). Remaining (blocked): Needs a host with more free RAM for the ollama container (freeing it here would mean stopping services other agents are using, which is out of bounds for this sweep). - BL-20260906-34 — infra, med — claimed-by:specs/056-legalbench-baseline — Prove the LegalBench scored gate green once. After this branch merges, run
gh workflow run nightly-tests.ymland confirm 'Pull the LegalBench gate model' and 'Run LegalBench eval (regression gate)' both succeed on a hosted runner, then record the run id in docs/legalbench.md § 'CI status of the scored gate'. The workflow is re-enabled and the missing model-pull step is added, but neither the 2026-07-16 disk-space fix (613ab69) nor the new pull step has ever been exercised by an actual run. Surfaced in: specs/052-backlog-zero (while closing BL-20260511-26). Remaining (blocked): Remaining work, unchanged: after merge,gh workflow run nightly-tests.yml, confirm 'Pull the LegalBench gate model' and 'Run LegalBench eval (regression gate)' both succeed, then record the run id in docs/legalbench.md § 'CI status of the scored gate' (the placeholder paragraph is already there). - BL-20260903-13 — feature, med — claimed-by:specs/052-backlog-zero — Thirteen synthesis schemas cover the provable families, but the archetype taxonomy has 45 entries;
SynthExecutorcorrectly refuses the other 32, so the factory still falls back to an LLM for most targets. Extend the registry toward the remaining formal archetypes where a proof is available. Surfaced in: specs/049-lsat-synthesis-engine. Remaining (blocked here): the remaining archetypes need proof machinery that does not exist yet (symbolic cardinality) - BL-20260831-23 — feature, med — claimed-by:specs/052-backlog-zero — 86 of 126 bank questions have no solve guide, so most of the published site shows "No step-by-step guide for this question yet." Run
lsat_guide_backfillthrough the HITL proposals queue to close the gap. Surfaced in: specs/046-static-lsat-feature-parity. Remaining (blocked here): drafting 168 guides needs live model calls that bill the owner plus human review of each - BL-20260831-24 — refactor, low — claimed-by:specs/052-backlog-zero —
lsat-static/content.jsonmore than doubled to 339 KB now that guides ship in the bundle. If it keeps growing, split guides into per-question chunks fetched on demand instead of bundling all of them at build time. Surfaced in: specs/046-static-lsat-feature-parity. Remaining (blocked here): the item is conditional on the bundle growing. 2026-10-17: content.json reached 1,030,931 bytes and tripped the 1,000,000-byte shard trigger; Amr approved raising the trigger to 1,500,000 bytes (the full budget) to keep the static site offline-only rather than shard. Revisit if it grows past 1,500,000 bytes - BL-20260830-02 — refactor, med — claimed-by:specs/052-backlog-zero — Decompose
LsatLab.tsx(~1611 lines) andAgentDashboard.tsx(~1460 lines) ontofrontend/uiprimitives after spec 039 lands. Surfaced in: specs/039-design-system. Remaining (blocked here): the remaining half is explicitly gated on spec 039 landing frontend/ui primitives, which are not built - BL-20260815-01 — infra, high — claimed-by:specs/052-backlog-zero — Make the CI gates required for merge on
main.markdown-onelinewent red onmainwhen #73 merged (28 soft-wrapped files) and stayed red across four stacked PRs before anyone noticed, because nothing blocks a merge on a failing check. MarkBackend Lint + Type-check,Backend Tests + Coverage,Spec Drift Gate, andonelineas required in branch protection. Surfaced in: open-PR CI sweep 2026-08-15. Remaining (blocked here): applying a repo ruleset is a GitHub settings write the permission layer declines - BL-20260815-04 — tech-debt, low — claimed-by:specs/052-backlog-zero —
typescriptis pinned to 5.x in.github/dependabot.ymlbecauseeslint-config-nextnests atypescript-eslintthat rejects TS 7.0, which took down the whole grouped dependency PR (#58). Drop the ignore entry once that transitive pin ships TS 7 support. Surfaced in: open-PR CI sweep 2026-08-15. Remaining (blocked here): the item conditions the change on upstream shipping TypeScript 7 support, which has not happened - BL-20260817-08 — infra, low — claimed-by:specs/052-backlog-zero — Model the deterministic weekly
evolve.ymlaudit as a compiled GitFactory line so all orchestration shares the blueprint/drift-hash governance. Surfaced in: specs/037-gitfactory-orchestration. Remaining (blocked here): the work lives in a different repository (gitorio), outside this working tree - BL-20260817-03 — feature, med — claimed-by:specs/052-backlog-zero — Drafting & export sub-spec: DOCX/PDF memo export with Bluebook-formatted citations and a provenance footer, graduating spec 036's deterministic memo seam into a real drafting stage. Surfaced in: specs/036-legal-journey-platform. Remaining (blocked here): DOCX/PDF rendering needs runtime dependencies absent from the backend image
- BL-20260811-10 — test-gap, med — claimed-by:specs/056-legalbench-baseline (was specs/052-backlog-zero) — Establish and commit the first real LegalBench baseline once BL-20260811-09 caches a dataset, then flip nightly to
--fail-on-syntheticso a stub-backed run can never satisfy the regression gate. Surfaced in: specs/031-legalbench-real-measurement. Remaining (blocked here): the gate model cannot load on this host (insufficient free RAM) and a real run would be required to bank the baseline - BL-20260503-02 — feature, med — claimed-by:specs/052-backlog-zero — Expand RC + LG banks to ≥10 passage/game sets each with editorial review and source attribution; add CI schema check for
passage_idlinkage. Surfaced in: specs/005-lsat-lab refactor. Remaining (blocked here): same editorial-review clause: a human must read the new passages - BL-20260503-04 — feature, low — claimed-by:specs/052-backlog-zero — Add the LSAT Writing Sample (WS) section: rubric viewer, exemplar prompts, and a self-grading rubric in the tutor. Surfaced in: specs/005-lsat-lab refactor. Remaining (blocked here): the remaining clause needs the platform writing surface (BL-20260901-09) plus a rubric self-check on it
- BL-20260502-01 — feature, med — claimed-by:specs/052-backlog-zero — Self-host LangGraph API + Studio container (
langchain/langgraph-api) so designers can step throughLegalWorkflowruns visually. Surfaced in: specs/010-local-ai-stack. Remaining (blocked here): needs a LANGSMITH_API_KEY validated against an external service at container boot - BL-20260502-02 — infra, med — claimed-by:specs/052-backlog-zero — Linux + NVIDIA workstation tier: GPU runtime in compose, optional vLLM service, default model upgraded to
llama3.1:70b-q4_K_M. Surfaced in: specs/010-local-ai-stack. Remaining (blocked here): needs an NVIDIA runtime; this host and CI have no GPU - BL-20260429-19 — feature, low — claimed-by:specs/052-backlog-zero — Expand
backend/law_ai/lsat/data/lr_bank.jsonto ≥ 50 items with editorial review; add a CI check that validates schema + label set. Surfaced in: specs/005-lsat-lab. Remaining (blocked here): -editorial review- means a person reading the items; stamping it would fabricate a record - BL-20260509-07 — feature, med — claimed-by:specs/052-backlog-zero — Citation-resolver pass that creates
(:Case)-[:CITES_STATUTE]->(:StatuteSection)edges from existing opinion text once the CRS corpus is loaded. Likely lives in a 002.b spec or rolls into spec 018. Surfaced in: specs/016-ingest-colorado-statutes. Remaining (still open): Neither half of the remedy is fully in place. (a) No re-extraction pass exists — recovering the dominant C.R.S. forms for a pre-change corpus needs stored or re-fetched opinion text (:Case persists none), a new command, and network access; that is a feature, not a remediation, and I did not start it. - BL-20260511-06 — feature, med — claimed-by:specs/052-backlog-zero — Backfill
LegalAnalyst(BL-20260430-03) andPrecedentHunter(BL-20260430-04) ontoLegalWorkflowonce the LegalBench baseline lands; resolves overlap with BL-20260502-04. Surfaced in: specs/018-autonomous-framework. Remaining (still open): Precondition 'once the LegalBench baseline lands' remains undemonstrated: docs/legalbench.md:117-118 still reads TBD for core_reasoning and precedent_retrieval. - BL-20260511-07 — test-gap, low — claimed-by:specs/052-backlog-zero — Live-network nightly smoke test that fetches one real Justia CRS title via
colorado_statutesadapter and re-runs the parser to detect upstream HTML drift; resolves overlap with BL-20260509-04. Surfaced in: specs/018-autonomous-framework. Remaining (still open): A live HTTP 200 from Justia is still unobtainable (Cloudflare JS challenge), so the parser has still never been run against real Justia markup andassert docshas no demonstrated passing baseline. - BL-20260511-26 — test-gap, low — claimed-by:specs/052-backlog-zero — Add
make test-integration+make test-legalbenchto T-012 gate once full Docker stack is available in CI (currently skipped in--no-depsmode). Surfaced in: specs/018-autonomous-framework. Remaining (blocked here): needs a pushed branch so the workflow runs this YAML rather than main-s - BL-20260810-04 — test-gap, high — claimed-by:specs/056-legalbench-baseline (was specs/052-backlog-zero, before that specs/031-legalbench-real-measurement) — Make LegalBench measure something real. Shipped: CWD-relative paths anchored, infrastructure failure raised as a distinct error (exit 2) instead of scoring 0.0, deterministic decoding, score history + baseline + a 1 pp regression gate wired into nightly, synthetic-stub runs flagged and refused as baselines, and stronger scoring (spec 031). Remaining: cache the real dataset (BL-20260811-09) and set the first baseline (BL-20260811-10). Surfaced in: specs/026-truthful-harness-dev-substrate audit. Remaining (blocked here): depends on the LegalBench baseline that cannot be produced here
Done¶
- BL-20261026-01 — infra, high — (resolved 2026-11-15): CI's
Spec Drift Gateand the nightlybacklog-triagejob call the hub'sspec-gate.yml@v2again. The hub'sv2tag predated that workflow, so from 2026-10-30 every CI run onmainstarted no job; #215 (ci.yml) and #214 (nightly) pinned both calls to hub commit47a4619instead, and the hub's v2.1.0 (2026-11-15) movedv2to a commit whosespec-gate.ymlis byte-identical to the pinned one, so both calls are back on@v2(#217). The ruleset half of this item continues as BL-20260906-33:.github/rulesets/main-required-checks.jsonalready requiresSpec Drift Gate / Spec gate, but no ruleset is live, and importing it is the owner's call. Surfaced in: the 2026-10-25 move of the AO-SDLC machinery into the fleet hub (refactor/fleet-spec-driven). - BL-20261112-14 — tech-debt, med — (resolved 2026-11-16): The
code_legal_reviewgraph's eight nodes send the code betweenBEGIN/ENDlines carrying a random marker drawn once per review and shared by all eight (new_marker,render_user_turninbackend/law_ai/agents_runtime/graphs/code_legal_review.py). The marker is named before the code starts and is checked not to occur in it, so code containing</source_code>, a forged marker or an instruction cannot end its own data block, and every chain prompt says only theENDline with that exact marker ends the code.TestPromptInjectioninbackend/tests/lawmode/test_code_legal_review.pyruns a planted fixture through a model double that obeys instructions found outside the data block — therisksarray survives — and shows the same double, given the same fixture in a fixed closing tag, reports nothing. The detection chains read the same code and their answers sit outside the block in every review chain's turn, so an answer is used only when it is jurisdiction codes or a short lowercase domain name (_jurisdiction_codes,_domain_name); any other answer is refused withDetectionRejectedError, that chain isnot_run, and the review falls back to the policy, whichTestPromptInjectionpins by planting the instruction in both answers. P1's single-call path keeps its fixed tags: BL-20261116-08. The file path outside the block is single-lined and capped but not yet inside it: BL-20261116-12. Shipped in: spec 057 T-002 (lawmode fold-in P2, #238). - BL-20261018-03 — test-gap, high — (resolved 2026-11-10): Four backend tests failed in the nightly "Run test coverage" step (run 38212032910:
test_tutor_reports_no_trace_when_telemetry_is_disabled, twotest_run_autonomy_integrationcases,test_densify_backfill_commit_writes_the_missing_cites_edge), and the digest step loggedrelation "audit_auditevent" does not exist. That run tested4f9f898, which predates the fixes for all four tests: #164 pins telemetry off in the tutor test, #165 makes the live-model autonomy cases opt in viaOLLAMA_INTEGRATION_URL, and #166 keeps one Neo4j driver per event loop. All four pass in Docker onmain(the two autonomy cases skip unless opted in). The digest error was its own fault: the coverage run migrates only pytest-django's test database, and nothing in the job migrated the composelaw_aidatabase the digest reads.nightly-tests.ymlnow runsmake migratebeforeCompose autonomy digest, guarded bytests/test_integration_ci.py. Re-runningmake test-coverageon 2026-11-10 then found a new order-dependent red: 20 failed and 646 errors (coverage 72.70%), all<LazySettings "None"> has no attribute 'AUDIT_PATH'. The cause was one test,tests/agents/test_lsat_source_extractor.py::test_intake_writes_an_audit_event, callingmonkeypatch.setattron pytest-django'ssettingsfixture. monkeypatch's undo runs after the wrapper's teardown and leaves an override enabled for every later test. It now sets the value through the wrapper, and the suite is 2730 passed / 10 skipped at 90.16% coverage. A dispatched nightly can't confirm it on a hosted runner until BL-20261026-01 (hubspec-gate.yml@v2) lands, because GitHub refuses to parse the workflow until then. Shipped in: #214. - BL-20261022-03 — tech-debt, low — (resolved 2026-10-22):
tools/unwrap-prose.pyis re-vendored byte-identical from bamr87/bamr87tools/(prose kit 0.4.0) and the tree was re-run through it with this repo's markdown-oneline excludes: wrapped list items whose continuation lines are indented now sit on one line, and nothing outside a list moved. Shipped in: the docs-framework harmonization PR (docs/harmonize-docs). - BL-20260916-03 — tech-debt, med — (resolved 2026-09-16): The section clock no longer leaks across a section switch.
lib/lsat/timerStore.tsalready hadresetSection()written for exactly this andlsat-static/components/Drill.tsxalready called it — but the call was unreachable. The guard around it compareduseRef(section)againstsection, which is sound only if the component instance survives the switch, and it does not:app/page.tsxkeys the view wrapper onview, so a switch unmounts the drill and mounts a fresh one whose ref initialises to the new section. The comparison was then true on every first run, the early return always taken, and the reset never executed — while the module-level store, by design, kept the previous section's counters. RC inherited LR's clock and LG inherited RC's average. Fixed in the store rather than inpage.tsx, because the store is the only participant in a section switch that is not remounted and can therefore still tell a change of section from a first mount:LsatTimerStategains asectionfield (persisted and rehydrated, so a refresh is not mistaken for a switch) and a newbeginSection(section)claims the clock, resetting only on an actual change and returning whether it did. Idempotent, so a remount within a section still keeps its clock (BL-20260830-04) and a first claim never discards a clock the reader already started.Drillnow calls it on mount; the ref guard stays, narrowed to the component-local state it was always valid for.lsat-static/__tests__/sectionSwitch.test.tsxunmounts and remounts across sections, which is whatDrill.test.tsx— eight cases, allsection="LR"— structurally could not. Shipped in: the #119 fix. Store edited infrontend/and mirrored bymake ui-sync; ux_audit R12 passes. - BL-20260918-01 — tech-debt, med — (resolved 2026-09-18): The
lsat-statichalf of BL-20260905-32, which was marked resolved on the strength of the platform half alone.lsat-static/components/Drill.tsxstill publishedquestions.length - answers.sizeas the section clock's pace denominator, so the published GitHub Pages site advertised 35:00 ÷ 99 ≈ "0:21 left / q" for Logical Reasoning — in the visual position of an official per-question budget, next to the section's own "~1:25 per question". It now importsLSAT_SECTION_QUESTIONSand publishesMath.max(0, Math.min(questions.length, LSAT_SECTION_QUESTIONS) - answers.size), matchingfrontend/components/lsat/LrPanel.tsx.__tests__/DrillPace.test.tsxrendersDrillend to end (the existingSectionTimer.test.tsxcallssetRemainingQuestionsitself, which is structurally why it could not catch this). Mechanism recorded as BL-20260918-02. Shipped in: issue #118. - BL-20260916-01 — tech-debt, high — (resolved 2026-09-16): The drill's position and answers now survive a view change.
app/page.tsxkeys the view wrapper onview, so checking Stats mid-section unmountedDrilland itsuseStateindex andanswersmap went with it — while attempts (lib/progress.ts) and the section clock (lib/lsat/timerStore.ts) both survived, because neither lives in the component tree. Of the site's three tiers of state the drill was on the only one a remount can erase, so the site disagreed with itself: Stats showed two questions attempted and the drill claimed none. AddedDRILL_POSITION_PREFIXplusreadDrillPosition/writeDrillPosition/clearDrillPositiontolib/deviceState.ts, keyed per section so LR → RC still starts clean, andDrillrestores during render (it is never part of the prerender, so unlike the header pin there is no hydration pass to disagree with) and writes back from one effect. Deliberately not in the export snapshot: a half-finished section is a cursor into this device's sitting, not history, andlib/backup.ts'sreplacewould otherwise drop a reader into the middle of a section they never started.__tests__/drillPosition.test.tsxdrivesPage— the remount is the parent's doing, which is why the existingDrill.test.tsxcould not see this. Shipped in: the #117 fix. Nothing undermake ui-syncwas touched. - BL-20260905-54 — feature, low — (resolved 2026-09-07): All 208 bank items now carry
archetype, stamped bylsat_archetype_backfillfrom the stem-cue classifier inbackend/law_ai/lsat/services/playbooks.py(204 by cue, 4 main-conclusion items by primary concept);backend/tests/lsat/test_playbooks.py::test_every_bank_item_is_stamped_and_the_stem_agreesfails on any unstamped or disagreeing item, and--checkguards the data.select_exemplarsand the coverage census read the stamps directly. Shipped in: specs/053-lsat-question-diagnosis. - BL-20260905-14 — tech-debt, med — (resolved 2026-09-06): Removed the unreachable
graded && hasLockedVisiblebranch (and the now-deadhasLockedVisiblecomputation) from /Users/bamr87/github/law-ai/lsat-static/components/solve/SolveAssist.tsx, replacing it with a comment stating why the static site has no "Show final step" button: the bundle ships every step, so the lock is a pure function ofgradedand lifts in place — which is what the shared cont Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-15 — test-gap, low — (resolved 2026-09-06): Added /Users/bamr87/github/law-ai/lsat-static/eslint.config.mjs mirroring frontend/eslint.config.mjs (eslint-config-next flat preset,
react-hooks/set-state-in-effectdemoted to warn), switched lsat-static/package.jsonlintfrom the unconfigurednext linttoeslint ., added eslint ^9.39.0 + eslint-config-next ^16.2.4 devDeps (package-lock.json regenerated in the container), and wired `npm r Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-16 — refactor, low — (resolved 2026-09-06): Decided both questions and made the decision load-bearing. The pin key and its accessors moved out of lsat-static/app/page.tsx into lsat-static/lib/deviceState.ts as HEADER_PINNED_KEY / readHeaderPinned() / writeHeaderPinned(), with the decision written where the storage lives: (a) preferences stay OUT of the export snapshot — the snapshot exists so drilling history survives a replaced phone, and Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-17 — feature, low — (resolved 2026-09-06): lsat-static/components/Concepts.tsx now keeps the catalog's URL current: an IntersectionObserver over the concept cards tracks which is nearest the top of the viewport and writes
#catalog-<id>with history.replaceState (no history entries, no hashchange, so Library.tsx's listener is untouched). Guarded ontypeof IntersectionObserver === 'undefined'for the prerender, re-observed when the filte Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-18 — tech-debt, med — (resolved 2026-09-06): Paid off the muted-text contrast debt: swept
text-slate-500->text-slate-400across 58 files / 261 call sites in frontend/app, frontend/components, frontend/ui (#62748e measured 4.19:1 on the shell's #03081a ground; slate-400 is 7.7:1, and 6.1:1 on the lightest baselined ground #122240). Also raised the one accent that missed AA, in frontend/components/shell/PageLayout.tsx: the indigo page ey Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-19 — feature, low — (resolved · already satisfied 2026-09-06): No change needed. lsat-static/app/globals.css:108-111 makes
.skip-linkan inline-flex box (so min-height applies) and both floors already list it: line 1462-1466 under@media (max-width: 719px)and line 1519-1526 under@media (pointer: coarse), the latter with a comment naming BL-20260901-03. The e2e sweep selector at lsat-static/e2e/responsive.spec.ts:130 already includes.skip-link, and Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-20 — tech-debt, low — (resolved 2026-09-06): The direction-aware header in lsat-static/app/page.tsx now tracks
document.documentElement.scrollHeightalongside the scroll position and ignores a backwards delta that arrives together with a document-height change — reflow, not intent — so condensing on a short page no longer clamps scrollY upward and restores the bar the reader just scrolled away. A genuine scroll up (no height change) still Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-21 — tech-debt, med — (resolved 2026-09-06):
openAgentStreamin frontend/lib/agentStream.ts no longer loses the live trace to one lost handshake: thereadywindow went 3000ms -> 5000ms and a timed-out handshake is retried once on a fresh socket (newhandshakeRetriesoption, default 1) before the caller falls back to an unstreamed run. The abandoned socket is detached (onmessage/onerror/onclose nulled) and closed through its rawcloseShipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-22 — feature, low — (resolved 2026-09-06): The live agents panel now outlives the run that produced it. /Users/bamr87/github/law-ai/frontend/components/AnalysisStudio.tsx renders LiveTrace on
(submitting || liveSteps.length > 0)instead ofsubmitting, passeslive={submitting}(heading flips "Agents reporting" -> "Agents reported") and suppresses the transientwritingline once the run ends.liveStepsis still cleared at the start Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-23 — infra, low — (resolved 2026-09-06): AgentDashboard honours
?poll=off: a newpollDisabledByUrl()seeds the existingpausedstate from the URL, so the screen makes its first pass and then stops (the Pause control still toggles from there, and the ops WebSocket subscription is skipped too). frontend/e2e/a11y.spec.ts's two keyboard specs now visit routes through afrozen(route)helper that adds the flag on /agents; the axe sweep Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-24 — test-gap, low — (resolved · already satisfied 2026-09-06): A sibling already covered this. frontend/tests/lib/backendProxy.test.ts asserts every property the item names: line 51 'attaches the server-only key, and never one the client supplied', line 68 'sends no key at all when none is configured', line 78 'passes a POST body through and returns the upstream status', line 99 'answers 502 rather than throwing when the backend is down' — plus path/query Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-26 — test-gap, med — (resolved 2026-09-06): New frontend/e2e/proxy-origin.spec.ts: for /agents?poll=off, /agents/reviews, /graph and /lsat it records every
/api/request the browser makes and asserts each one starts with the page's own origin and is either/api/backend/...or/api/ws-ticket— with a poll on request count first, so 'no cross-origin call' cannot pass on a screen that called nothing. This is the layer the vitest suite st Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-27 — feature, low — (resolved · already satisfied 2026-09-06): No change needed. A sibling already bound the hint keys on the platform: frontend/components/lsat/SolveAssist.tsx:243-257 registers h/j/k/r through
useShortcuts, and frontend/components/lsat/drillShortcuts.ts:24-46 publishes the H, J/K and R rows to the shell's?sheet (its docstring names them as 'the hint keys H/J/K/R that SolveAssist now answers'). The two sheets no longer diverge on these Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-28 — tech-debt, low — (resolved 2026-09-06): Dropped the dead
NEXT_PUBLIC_API_URL=http://localhost:8000from docker-compose.yml (frontend service) and docker-compose.debug.yml, and the matching-e NEXT_PUBLIC_API_URLfrom .claude/skills/run-law-ai/driver.sh — nothing reads that name; frontend/lib/api.ts reads NEXT_PUBLIC_API_BASE_URL and the socket client reads NEXT_PUBLIC_WS_URL. Added tests/test_configs.py::test_compose_passes_no_dead_ Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-29 — feature, low — (resolved 2026-09-06): The cookie now carries only the keys the server render lays out with. Added MIRRORED_SETTING_KEYS (the 14 LAYOUT_SETTINGS keys, as a literal so lib/scope/rows.ts stays dependency-free and does not reach into the shell) plus mirroredRows() in frontend/lib/scope/rows.ts, and cookiePayload() in frontend/lib/scope/store.ts which both writeAll() and reconcileSettingsCookie() go through. A drift test fa Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-30 — refactor, low — (resolved 2026-09-06): Chose "disable with an explanation" over nesting. Item gained an optional disabledReason in frontend/components/shell/LayoutMenu.tsx; the 'Labelled rail (wide screens)' row carries it while ui.rail.visible is off, rendering aria-disabled=true, a title, a visible 'needs the rail' hint, muted styling, and a click that only moves the roving focus. aria-disabled rather than disabled on purpose: the me Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-32 — feature, low — (resolved 2026-09-06): Decided the LR pacing denominator: the drill now paces against one real 25-item Logical Reasoning section, capped by the bank when the bank is smaller, instead of publishing
bank size - graded(which quoted an 8-second-per-question pace off a 200-item bank). Added LSAT_SECTION_QUESTIONS = 25 to /Users/bamr87/github/law-ai/frontend/lib/lsatTimer.ts with the rationale in the docstring, and /Users/ Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-33 — feature, low — (resolved 2026-09-06): Decided it stays out, and pinned the decision. The boundary for LAYOUT_SETTINGS is "does it change the shape of the shell", not "is it a preference": a drill length describes the exercise, so a student who set a 10-minute homework clock and then tidied their layout has said nothing about how long they want to drill, and Reset layout resetting it would be the button inventing an answer. It is not l Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-34 — tech-debt, low — (resolved · already satisfied 2026-09-06): The premise no longer holds and the suggested refactor is not available. lsat-static/lib/lsat/timerStore.ts keeps only a section total (
answeredSeconds, recordAnswer at :245-249), not per-question seconds, so the drill'sanswersMap is the only per-question record — not a duplicate. Both writes are first-answer-only (Drill.tsx:147-153:if (!answers.has(q.id)) recordAnswer(...)and `if (pre Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-35 — test-gap, low — (resolved 2026-09-06): frontend/mocks/server.ts had no default POST /api/lsat/tutor handler (verified: only per-suite server.use in LsatLab/QuestionCard/TutorPane tests). Added
lsatTutorFixture(a real model answer: used_llm true, model 'claude_code/claude-opus-5', cached false, one catalog concept) plus a default POST handler that echoes the posted question_id/user_choice, so any suite reaching the tutor gets a stabl Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-36 — infra, med — (resolved · already satisfied 2026-09-06): The export is back in sync; the drift gate is green on this branch, so no
make lsat-exportre-run is needed. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-37 — tech-debt, high — (resolved 2026-09-06): backend/law_ai/lsat/urls.py called audit_store.record("lsat_intake_ocr", {...}) with two args against a one-arg signature, so the TypeError was swallowed and the OCR-intake audit event was never written. Folded the type into the dict like every other call site. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-38 — refactor, med — (resolved 2026-09-06): _fold_extras now reads audit_store.tail(10_000) once and passes the event list to _fold_reading, _fold_hints, _fold_writing and _read_article_ids (both of the latter keep an optional-events default so LibraryReadView's standalone calls are unchanged). StatsView's anonymous branch hands in the tail it already took, so one response is one JSONL read instead of four. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-39 — tech-debt, med — (resolved 2026-09-06): Added law_ai.lsat.models.LsatArticleRead (unique on (reader, article_id), never hard-deleted) plus law_ai/lsat/services/reading.py with record_article_read/persisted_read_state. LibraryReadView upserts the row beside the audit event; _read_article_ids overlays the table on the JSONL replay so the table wins where they disagree and an unreachable table degrades to exactly the old behaviour. Migrati Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-40 — feature, med — (resolved · already satisfied 2026-09-06): A sibling already implemented this. /Users/bamr87/github/law-ai/frontend/components/LsatLab.tsx:80-115 resolves the opening tab from the bank rather than hard-defaulting to LR — it fetches questions for the concept and passes them to drillSectionOf (LsatLab.tsx:228), keeps an explicit ?tab= winning, and shows a 'Finding questions tagged …' status while the lookup runs (:171-180). PassagePanel now Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-41 — feature, low — (resolved 2026-09-06): Decided against chaining the shell's Escape (one key would mean two things on every route) and recorded the divergence where the item asked — the
?sheet copy. frontend/components/lsat/drillShortcuts.ts now carries a paragraph naming BL-20260905-41 and explaining that lsat-static gives Escape two stages because it has no shell, while here the second press belongs to the shell and the way back to Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-42 — feature, low — (resolved 2026-09-06): WritingPanel now reports a completed rubric evaluation upward, and the lab refreshes the all-time stats from it. /Users/bamr87/github/law-ai/frontend/components/lsat/WritingPanel.tsx takes an optional onEvaluated prop and threads it PromptWorkspace -> ReviewPanel -> EvaluationCard, where it fires only after evaluateLsatWriting resolves (a failed call changed nothing to refresh). /Users/bamr87/gith Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-43 — test-gap, low — (resolved 2026-09-06): Added test_manifest_summary_reads_the_manifest_on_disk to backend/tests/lsat/test_factory_status_api.py: it compiles a real manifest into the sandboxed factory dir (factory_env fixture) and asserts GET /api/lsat/factory/status returns that manifest's manifest_id, created_at, jobs, by_tier and by_archetype — the branch backend/law_ai/lsat/urls.py:1513-1531 only exercised through its None arm before Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-45 — feature, low — (resolved 2026-09-06): The judge verdict and the paired guide now render in the HITL queue. Added JudgeVerdictPanel to frontend/components/lsat/AuthoringPanel.tsx (verdict, 'key disputed · solved X' when key_agrees is false, 'second defensible choice', rationale, issues, and a degraded state that never reads as approval), a line on the question card naming the guide drafts authored beside it (built from meta.guide_for_p Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-46 — feature, low — (resolved · already satisfied 2026-09-06): A sibling already closed it: backend/law_ai/lsat/urls.py:1403 maps proposal_kind "writing_prompt" → proposals_store.promote_writing_prompt in ProposalApproveView's promoter table, and backend/tests/lsat/test_factory_writing.py:311 (test_approve_endpoint_promotes_a_queued_writing_draft) drives it over HTTP. The queue UI already renders 'Approve → writing library' (AuthoringPanel.tsx writing_prompt Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-48 — tech-debt, low — (resolved 2026-09-06): promote_to_bank now writes the bank files at indent=2 (backend/law_ai/lsat/services/proposals.py, the write under _LOCK), matching the checked-in 2-space banks, so the first production promotion appends one item instead of reformatting the file. Left promote_guide_to_bank at indent=4 because guides.json is 4-space on disk. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-49 — feature, low — (resolved 2026-09-06):
_run_lsat_factoryin backend/law_ai/core/management/commands/run_autonomy.py now turns the judge tier on for the nightly beat, but only where judging is free: the executor is pinned to Ollama while the judge goes throughlaw_ai.core.llm, sojudge_enabledissettings.LSAT_FACTORY_JUDGE or chain_names() <= {'ollama'}. A beat must not quietly start billing a hosted tier for a second model cal Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-50 — feature, med — (resolved 2026-09-06): The registry declared easy/med/hard only, so the generator could never fill the intro band. Added two intro schemas in backend/law_ai/lsat/synth/schemas.py:
lr-conditional-one-step(ConditionalChain parameterised with newchain_lengths/side_countsfields, pinned to one conditional plus its trigger and no side arrows) andlg-sequencing-one-rule(SequencingGame parameterised with `rule_count Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-51 — tech-debt, med — (resolved 2026-09-06): Decided and documented the convention rather than inventing a method value: review=None on a hand-authored item means 'a person wrote it and the PR that added it was the review', and a machine-authored item must always carry a record. Written on ReviewMethod and on Question.review in backend/law_ai/lsat/services/bank.py, and pinned by TestHandAuthoredConvention in backend/tests/lsat/test_bank_revi Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-52 — test-gap, med — (resolved 2026-09-06): backend/tests/lsat/fixtures/search_parity.json gained a
scoresblock: for five queries (assumptions, fallacies, games sequencing, pacing, must be true) it pins the top hits' exactscoreand orderedmatched_invector over the real library. Both suites now assert it — test_score_vectors_match_the_fixture in backend/tests/lsat/test_search_parity.py and 'scores the shipped corpus the way the bac Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-53 — feature, low — (resolved 2026-09-06): Added scaffold_article() to backend/law_ai/lsat/services/library.py (valid frontmatter + a stub body that satisfies the 3-section / worked-example / key-takeaways structure gate, written then validated by a full load_library() with rollback on failure) and a
lsat_library scaffold --article <id> --title … --summary … --section …subcommand. Also made pick_librarian_targets prefer expanding a scaf Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-55 — doc-gap, low — (resolved 2026-09-06): Split the guide runbook out of the library doc: new docs/lsat-solve-guides.md carries where guides live, the lsat_guide_backfill runbook, the deterministic validate_guide_quality lint plus the LSATGuideReviewer judge tier, and promotion (promote_guide_to_bank, the guide_for_proposal link, the lsat-export requirement). docs/lsat-library.md keeps a two-line cross-reference. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-56 — feature, med — (resolved 2026-09-06): Added promoteLsatPassage() to frontend/lib/api.ts (POST /api/lsat/proposals/passages/approve with pending_passage_path, typed LsatPassagePromotion) and a 'Promote passage' button on the question card in AuthoringPanel.tsx, shown only when meta.factory.pending_passage_path is set and the draft has no passage_id yet, with the explanation that approving the draft first is refused. Promotion reloads t Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-57 — tech-debt, med — (resolved 2026-09-06): Made the proposal reader rotation-proof: _tail(5000) is gone and every reader now goes through _replay_log(), which streams the whole JSONL through _iter_events() (memory is one row per proposal, which the caller wants anyway) instead of replaying a bounded window in which an old create event — and with it the whole row — disappeared. lsat_proposals_backfill was moved onto the same helper. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-58 — feature, low — (resolved 2026-09-06): Added a
lsat_cross_checkautonomy kind (argparse choice, dispatcher, and_run_lsat_cross_checkin run_autonomy.py) that reuses the sweep command's own helpers —checked_question_ids,pending_crosscheck_ids,file_disagreement— so there is one definition of 'unchecked', 'already queued' and 'how a disagreement is filed'. Its own budget knob:budgetquestions per cycle, default 5, hard-c Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-59 — test-gap, low — (resolved 2026-09-06): Added a date window to backend/law_ai/lsat/services/regression.py: cross_check_history(since_days=…) drops verdicts older than the cutoff and regression_report threads it through and reports it, with DEFAULT_SINCE_DAYS = 90 so a verdict from a different model and prompt version months ago can no longer anchor today's flip; since_days=None restores the all-time comparison. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-60 — refactor, low — (resolved · obsolete 2026-09-06): The item is conditional ('If more LSAT-wide quality checks appear, move the family into law_ai/lsat/services/quality.py') and the condition is unmet: answer_key_skew is still the only symbol law_ai.lsat.factory.intake imports from an agents_runtime crew (backend/law_ai/lsat/factory/intake.py:38), so the move would create a module for one function. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-61 — feature, med — (resolved 2026-09-06): The tutor now reasons about the board the learner is looking at. TutorRequest takes the serve's signed remap token; displayed_board() in backend/law_ai/lsat/services/tutor.py rebuilds the Question in display order with the key at the position it was shown and the bank explanation's label references remapped, and tutor applies it before anything else, so the prompt, the offline synthesis, correct Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-62 — feature, med — (resolved 2026-09-06): Both archetypes built; coverage 17 -> 19 of 45. lg-max-min: added GroupAtMost/GroupAtLeast to backend/law_ai/lsat/synth/logic.py (bounded counts over AssignModel — GroupSize is a fact about one arrangement, a bound is a claim about all of them), rendering + symbolisation in realize.py, and a MaxMinGame schema over three groups (two would make bounds on one group restatements of the other). The cre Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-64 — tech-debt, low — (resolved 2026-09-06): Re-ran the structural sweep (
lsat_synth_calibrate --structural, 320 proved items over the post-expansion registry): it suggests (15.31, 17.51) against the shipped (14.7, 16.0). UpdatedSCORE_CUTSin backend/law_ai/lsat/synth/difficulty.py:120 with a dated comment recording the old value and why it moved. The 2-seed and 5-seed sweeps agree exactly on those percentiles, so the new test computes Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-68 — tech-debt, low — (resolved · already satisfied 2026-09-06): The register already retired BL-20260615-01. BACKLOG.md:452 carries
**(resolved 2026-09-05 · obsolete)**with exactly the evidence this item asked for, and no code reads LSAT_LLM_PROVIDER: grep over backend/law_ai finds only backend/tests/core/test_claude_code.py:84 assertingnot hasattr(django_settings, "LSAT_LLM_PROVIDER")plus doc prose in docs/llm-provider-chain.md:66 saying the pin was re Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-69 — feature, med — (resolved 2026-09-06): Built the read side of the llm_call token/cost accounting. New backend/law_ai/audit/spend.py holds a pure rollup(payloads) plus spend_report(days=...) over AuditEvent(kind='llm_call'), grouping by agent and by provider/model tier; unpriced successful calls are counted (unpriced_calls) rather than summed as 0.0, and whole-chain failures are counted as failed_calls. New management command backend/la Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-70 — infra, low — (resolved 2026-09-06): .env.example already carried a one-line commented example, but it was undated and its Grok row was wrong. Replaced it with a dated starter table (checked 2026-09-06): claude-opus-5 at 5/25 (Anthropic list price) keyed on the bare model id so it prices BOTH Claude tiers — ANTHROPIC_MODEL defaults blank and the API tier then serves CLAUDE_CODE_MODEL — and xai/grok-4.6 corrected from 3/15 to 2/6 (x.a Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-71 — infra, med — (resolved 2026-09-06): The permanent-failure memory is now L1 + L2, matching the Ollama probe's shape in agents_runtime/llm.py. backend/law_ai/core/llm/router.py gains
_shared_cache()/_shared_key(),_l2_adopt(),_apermanent_skip_reason()(L1, thenawait cache.aget),_share_permanent()(await cache.asetafter a credential failure), and_askip_reason();aroute,aroute_stream(via a now-async `_stream_f Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-73 — test-gap, low — (resolved 2026-09-06): Added TestPinnedChainAtTheServiceLayer to backend/tests/core/test_privileged_data_guarantee.py: the tutor case now calls law_ai.lsat.services.tutor.tutor(TutorRequest, question) directly and the analyst case calls LegalAnalyst(cite_resolver=..., name_retriever=...).run(...) directly, both under the same respx interception and the same Ollama pin. Neither imports law_ai.urls, so the guarantee now h Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-74 — feature, med — (resolved · already satisfied 2026-09-06): The item's premise no longer holds. backend/law_ai/agents_runtime/graphs/legal_workflow.py:407-434 (
_drafted) streams throughChatProviderChain.astream->router.astreamwhenever anon_deltasink is supplied and falls back toainvokeotherwise; backend/law_ai/agents_runtime/crews/legal_analyst.py:755 supplies that sink and :579-616 (_delta_sink) forwards each delta as an `analysis_toke Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-75 — tech-debt, low — (resolved 2026-09-06): backend/law_ai/agentsapi/replay.py now holds one
redis.asyncioclient for the process instead of building and closing one per event._client()caches(url, client)keyed by url so a settings change still takes effect;_discard_client()drops and closes only the entry the failing call used, so a concurrent task that already installed a fresh pool is untouched; the per-call fallback to the i Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-76 — feature, low — (resolved 2026-09-06): Took the "or drop the constant" branch, because emitting it honestly is impossible:
/api/agents/metrics(agentsapi/urls.py:249) aggregates the veryagent_callaudit events that already raiseruns_changed, so a second kind could only ever fire alongside the first. RemovedMETRICS_CHANGEDfrom backend/law_ai/agentsapi/streaming.py and its__all__, narrowedOpsChangeEvent['type']to `'run Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-77 — feature, low — (resolved · already satisfied 2026-09-06): No change needed on the platform, which is where the defect was. frontend/components/lsat/QuestionCard.tsx:94-97 holds an
eliminatedstate, :251 bindsXto cross out the focused choice, :381 renders the crossed-out state, and :155-156 feeds it intoattemptTrace(omitted when empty), which is passed to the tutor at :523 and :594 — soTutorTrace.eliminatedis no longer always empty. The stat Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-78 — test-gap, med — (resolved 2026-09-06): backend/tests/api/test_analysis.py::test_default_engine_path_never_500s_when_engine_explodes now monkeypatches PrecedentHunter.run with a degraded PrecedentList (new _degraded_hunter() helper at the bottom of the file), so the
confidence == 0.0assertion measures the analyst's engine boundary instead of whatever rows the shared dev Neo4j happens to hold. Also added an explicit assertion on the L Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-79 — feature, low — (resolved 2026-09-06): The stream's connection state is now exposed and shown. /Users/bamr87/github/law-ai/frontend/lib/agentStream.ts exports AgentStreamStatus ('live' | 'reconnecting' | 'lost') and openAgentStream takes an onStatus option: 'live' on every ready frame (so a successful reconnect is visible), 'reconnecting' when a drop schedules a retry, 'lost' when the retry budget is spent; a caller-initiated close sta Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-80 — feature, low — (resolved 2026-09-06): Added
response_schema: dict[str, Any] | None = NonetoChatProviderChain(backend/law_ai/core/llm/langchain.py) and threaded it torouter.agenerate/router.generate/router.astreamfrom_agenerate/_generate/_astream, plus into_identifying_paramsso LangChain caching treats two schemas as two models. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-81 — feature, med — (resolved 2026-09-06): Defined and enforced resume semantics. legal_analyst.py gains ThreadDivergence (a typed refusal), _thread_state_values() (renamed from _thread_has_state, now returning the checkpointed channel values instead of a bool) and _check_thread_continuity(), which raises when a resume's question or jurisdiction differs from what the thread recorded; the analyst's broad resilience except now re-raises Thre Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-82 — test-gap, low — (resolved 2026-09-06): Added test_checkpoint_tables_land_in_the_langgraph_schema to the LANGGRAPH_INTEGRATION-gated postgres test: after ensure_schema() it opens a psycopg connection on checkpointer_conn_string() and asserts
checkpointsandcheckpoint_writesappear in information_schema.tables for LANGGRAPH_CHECKPOINTER_SCHEMA. That is the end-to-end claim the existing conn-string unit tests cannot make. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-83 — feature, low — (resolved 2026-09-06): Pre-flagged drafts now sort to the top of the pending queue: AuthoringPanel.tsx orders rows by flagRank (meta.review.flagged first) with the API's order preserved inside each group, so a reviewer with fifty rows does not scroll to find the ones the blind pre-review doubted. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-84 — feature, low — (resolved 2026-09-06): The source half was already satisfied — SourceAttribution renders court/date/binding next to each citation's verified badge (AnalysisStudio.tsx:88-110, used at the sources list). The precedent half was missing, so I added a PrecedentAuthority component and render it under each precedent's title row: decided_at + jurisdiction, plus a colour-coded binding/persuasive/unknown chip, or an amber "no iss Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-85 — test-gap, med — (resolved 2026-09-06): New backend/tests/agents/test_attribution_prose_judge.py: a legalbench-marked, LLM-judged check on the prose half of §13. It judges an IRACOutput.application paragraph against the run's citation set and asks for JSON {verdict, unattributed}. Two fixtures the judge must tell apart: a fully attributed paragraph, and one whose every emitted citation is well attributed but which still asserts a treble Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-86 — tech-debt, low — (resolved 2026-09-06):
logged_nodenow prefers the tier that actually answered. backend/law_ai/core/provenance.py gains_node_model_label(output), and_record_node_eventoverwritesevent['model']with a node's returnedmodel_labelwhen it is a non-blank string. LegalWorkflow's_retrieveand_analyzealready return that key, so theirlanggraph_nodeaudit rows now name the real provider instead of the stat Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-89 — feature, low — (resolved 2026-09-06): Added GET /api/graph/courts: graph_queries.LIST_COURTS_CYPHER + list_courts() (archived and court-less cases excluded, ordered most-populous first), CourtsView in backend/law_ai/graph/urls.py (limit 1-500, default 200, degrades to {available:false}), fetchGraphCourts in frontend/lib/api.ts, and KnowledgeGraph now seeds its court dropdown from the whole corpus with a soft-fail back to the loaded pa Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-90 — feature, low — (resolved · already satisfied 2026-09-06): A sibling already shipped this. backend/law_ai/agents_runtime/tools/graph_rag.py defines STATUTE_VECTOR_CYPHER (~line 150) and GraphRAGRetriever._vector_statutes (~line 710, using STATUTE_VECTOR_INDEX from core.llm.embeddings), and _retrieve fuses it with _lexical_statutes through reciprocal_rank_fusion inside the
if self._include_statutes:block, sharing one embedding per query with the case le Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-92 — doc-gap, low — (resolved 2026-09-06): Added a
## Embeddings (nomic-embed-text)section to /Users/bamr87/github/law-ai/docs/local-ai.md: nomic-embed-text is load-bearing for retrieval (the GraphRAG vector leg, not just LSAT intake dedup), embeddings are always local regardless of LLM_PROVIDER_CHAIN, the 768-dim pin means a model change needs a migration and re-backfill, and an existing corpus must runmake backfill-embeddings(dry Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-93 — infra, med — (resolved · already satisfied 2026-09-06): The backend image already ships both optional deps:
python -cin the container reports pypdf importable and spacy.load('en_core_web_sm') working (3 entities on a sample). backend/Dockerfile:29-31 installs the en_core_web_sm wheel and backend/pyproject.toml:45 makes pypdf a core dependency. I also removed the now-stale skipif on test_real_pypdf_extraction_finds_sections so a stale image fails the Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-94 — test-gap, med — (resolved 2026-09-06): test_topic_frontier_integration.py no longer seeds through the module-level get_neo4j_driver() singleton. It now builds a per-test driver with AsyncGraphDatabase.driver(settings.NEO4J_URI, ...) (new _new_driver(), documented against the same pattern in tests/ingestion/test_force_quarantine_integration.py), hands it to the extracted _run_frontier_and_assert body, and closes it in a finally. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-95 — feature, low — (resolved · already satisfied 2026-09-06): A sibling already shipped the ordinance commit path: backend/law_ai/ingestionapp/services/ordinance_scout.py exists with commit_section (line 183) and approval._commit_by_kind dispatches KIND_ORDINANCE_SECTION to it (backend/law_ai/ingestionapp/services/approval.py:132-139); the 'unsupported quarantine kind' error is now only reached by kinds with no scout at all. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-96 — feature, low — (resolved 2026-09-06): Statute rows can now be re-extracted. colorado_statutes.rescore_section() is the public re-scorer, StatuteScout.rescore() rehydrates a quarantined section payload and returns it with a fresh confidence (one audited log_agent_call), and approval._reextract_by_kind dispatches case→IngestionScout.extract / statute_section→StatuteScout.rescore, still raising ApprovalError for kinds with no path. Nothi Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-97 — tech-debt, low — (resolved 2026-09-06): Duplicate of BL-20260905-78 (same test, same order/data dependence). Closed by the same change: the hunter is stubbed, so the aggregate confidence is deterministic regardless of Case rows in the shared graph or driver warm-up order. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260905-98 — feature, low — (resolved 2026-09-06): Added the scoped bulk-approve verb
manage.py review_queue approve-allwith --source / --kind / --id-prefix filters (at least one required — it refuses to approve the whole queue), --limit cap, per-row record_decision + commit through the same audited service, and a per-row error report. Documented against the PDF-fallback flood in docs/data-sources.md. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-99 — tech-debt, med — (resolved 2026-09-06): New
manage.py backfill_holding_summariesalongside densify_backfill/resolve_statute_citations, plus queries.list_cases_missing_holding_summary + set_holding_summary (write-once: the SET only fills an empty property). Reports the gap by default; --refetch re-reads the opinion from CourtListener and derives the same excerpt an ingest would; only --commit writes, and --commit without --refetch is r Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-01 — feature, low — (resolved 2026-09-06): Added IngestionScout.aextract() — extract() plus the optional audited LLM holding-summary pass — gated behind the new INGEST_LLM_SUMMARY setting (backend/law_ai/settings/base.py + .env.example, off by default), routed through law_ai.core.llm.agenerate so the llm_call provenance event is written, bounded to LLM_SUMMARY_INPUT_CHARS of opinion text, and fail-open (refusal/outage/empty answer leaves h Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-02 — feature, med — (resolved 2026-09-06): Replaced the hard-coded CRS tuple with a per-corpus table: StatuteCorpus (code_id, id_prefix, reporters, section_re) and STATUTE_CORPORA drive statute_section_id_from_normalized, and STATUTE_REPORTERS (the union) is what resolve_statute_citations now passes to the scan, so a second corpus is one table entry rather than edits in three places. CRS_REPORTERS is kept as an alias. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-04 — feature, med — (resolved 2026-09-06): Added POST /api/ingestion/reviews/re-extract (ReviewReextractView) — resolved reviewer identity, 422 for a kind with no re-extraction path, {reextracted, previous_confidence, confidence, clears_threshold, n_citations} in the body, and never a commit — plus reextractReview() in frontend/lib/api.ts and a Re-extract button in ReviewQueue that reports the score change and whether the row now clears th Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-05 — test-gap, low — (resolved 2026-09-06): Covered in the new frontend/e2e/proxy-origin.spec.ts against the real page and the real API: one case clicks the shell's 'Review queue' link from /agents (so a dropped sidebar registration fails, not just a hand-typed URL), asserts the URL and the
, and asserts the Pending/Committed/Rejected tabs render; a second watches responses and requires at least one served (<400) `/api/backend/api/inges Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-07 — feature, low — (resolved 2026-09-06): Ordinances are retrievable. graph_rag.py gains ORDINANCE_FULLTEXT_INDEX, ORDINANCE_FULLTEXT_CYPHER, _ordinance_passage() and GraphRAGRetriever._lexical_ordinances(), plus an include_ordinances=True constructor flag, and _retrieve runs the leg alongside the statute legs. Because :OrdinanceSection carries no jurisdiction_code of its own, the Cypher walks (node)-[:PART_OF]->(:Ordinance)-[:IN_JURISDIC Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-08 — feature, med — (resolved 2026-09-06): Added the sign-in surface and made the proxy able to carry a session. New frontend/components/shell/AccountMenu.tsx (masthead button -> role=dialog popover; anonymous gets a username/password form, signed in gets 'Signed in as
' with a staff badge and Sign out; Escape and outside click close and restore focus; renders nothing while the identity probe is in flight so the masthead does not shu Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-09 — tech-debt, med — (resolved 2026-09-06): backend/law_ai/agentsapi/consumers.py::_TicketAuth._authorized is now async and accepts the same credentials core/auth.py does: raw AGENT_API_KEY (constant-time compare), a stream-scoped ticket, a live agent-scoped ApiToken, then an authenticated Django session off the AuthMiddlewareStack scope. Order is cheapest-first, so a key-only or ticket client never touches the ORM. Both call sites (AgentRu Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-10 — refactor, low — (resolved 2026-09-06): Opened the deprecation window rather than doing the (still-blocked) rename. IRACOutput and AnalysisResponse each gained a trace_url field plus an after-model_validator that mirrors it with phoenix_trace_url in both directions, so the two can never disagree and a stored payload carrying only the old name still yields both. phoenix_trace_url's description now says DEPRECATED. Client side: lib/api.ts Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-11 — test-gap, med — (resolved · already satisfied 2026-09-06): The premise ('no regeneration gate in CI') is false. backend/tests/core/test_export_api_schema.py:51-66 already contains test_checked_in_fixture_is_current and test_check_flag_passes_against_the_checked_in_fixture, the latter literally running
export_api_schema --check; .github/workflows/ci.yml:220-271 (backend-test) runs the whole backend suite on any change under backend/**, so a pydantic chan Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-12 — feature, low — (resolved 2026-09-06): Registered the three missing ModelAdmins. backend/law_ai/core/admin.py gains SettingValueAdmin: list_display/list_filter over scope + locked,
lockededitable straight from the changelist (taking a lock off is the operator lever the item names), deletion allowed (clearing a row falls back to the setting's default), and scope_type/scope_id/key read-only once a row exists so an edit cannot silently Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-13 — tech-debt, low — (resolved 2026-09-06): Investigated rather than changed behaviour: AUDIT_DB_THREAD_OFFLOAD is read in exactly one branch of law_ai/core/provenance.py::_persist —
eager and _in_async_context(). Outside it (production: real broker, real worker) the Celery hand-off already lands in a worker's sync context whatever the flag says, so there are not two paths to collapse and the base default of False names no prod/dev diverg Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-15 — feature, med — (resolved 2026-09-06): The backend half was already true and well covered: AnalysisRequest.matter_id -> _reject_unowned_matter -> payload -> LegalAnalyst -> LegalWorkflow.invoke(matter_id=...) -> retriever boost, pinned link by link in backend/tests/agents/test_matter_boost_reachability.py. What was missing was the reader-facing half, so I added boosted_count/boost_source to the RetrievalStats TS type and a 'Ranking boo Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-17 — feature, med — (resolved · already satisfied 2026-09-06): A sibling already shipped it. frontend/components/shell/SettingsForm.tsx:70 holds
const [editing, setEditing] = useState<'user'|'instance'>('user'), :96 renders{userScope && <ScopeChoice .../>}, and :164-207 is the ScopeChoice radio fieldset ('Your preferences' / 'Instance defaults'), with the chain at :71-77 resolving to [INSTANCE_SCOPE] when instance is selected — so a signed-in admin can s Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-18 — feature, low — (resolved 2026-09-06): Added law_ai.lsat.models.LsatWritingAttempt (sibling table, not a section='WS' LsatAttempt row — an essay has no choice and no correct answer, and the writing section is unscored, so a model-derived band must stay out of the accuracy denominator and the Leitner queue). WritingEvaluateView persists one row per evaluation for signed-in learners; attempts.writing_stats builds the same 'writing' block Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-19 — test-gap, low — (resolved 2026-09-06): Added TestBeatRegistration to backend/tests/matters/test_tasks.py. The entry key 'matter-task-reminders' is now asserted to exist, to name law_ai.matters.sweep_task_reminders (cross-checked against sweep_task_reminders.name, so the beat string is proved to resolve to the function the other tests call), to run hourly (schedule == 3600), and to stay off the autonomy queue. Previously only test_run_a Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-20 — doc-gap, low — (resolved 2026-09-06):
manage.py review_queuegained --reviewer-user: it resolves the Django account (unknown username is a CommandError, never a silent downgrade to free text) and passes it to record_decision(reviewer_user=...) for approve, reject and the new approve-all, so a CLI decision gets the same joinable attribution the admin path produces. The 'unattributed' warning now fires only when neither --r Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-21 — feature, low — (resolved 2026-09-06): NavRail and MobileTabBar now ask moduleForPath instead of testing
pathname.startsWith(mod.nav.href), so a route a module claims through a sidebar link (/autonomy -> Agent Ops) lights that module's entry, and exactly one entry can ever be current. Kept one guard the naive swap would have lost: moduleForPath falls back to homeModule for an unclaimed route, so activeId is null when the owner is Hom Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-22 — feature, med — (resolved 2026-09-06): compose_digest now reads AutonomyRun.summary: _fold_cycle_summaries merges recognised keys (prs_opened/pr_urls, backlog_ids, quarantined, legalbench_delta — at the top level or under
result) into the four content sections, de-duplicated against what the event scan contributed, and _cycle_counts appends the runner's numeric counts to each cycle line, so per-cycle numbers no longer have to be reco Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-23 — feature, med — (resolved 2026-09-06): Added AutonomyRunsView at GET /api/agents/autonomy/runs in backend/law_ai/agentsapi/autonomy_views.py — bounded ?limit=, ?kind= hitting the table's (kind, -started_at) index, per-status counts, and the module's 'absence is reported, never crashed' envelope. Wired the frontend: fetchAutonomyRuns + AutonomyRun/AutonomyRuns types in frontend/lib/api.ts, an MSW handler, and a fourth RunsPanel in Auton Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-24 — test-gap, med — (resolved 2026-09-06): Took the item's second arm — pinning the target to a small model — since the ~4 GiB is the developer's Docker VM allocation, not something docker-compose.yml sets.
OLLAMA_INTEGRATION_MODELnow defaults to$(LOCAL_AI_SMALL_MODEL)(qwen2.5:3b-instruct-q4_K_M, ~2 GiB resident, the same tagmake local-ai-pull-smallfetches, so the two cannot drift), andmake test-integration-ollamapulls it wh Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-25 — test-gap, low — (resolved · already satisfied 2026-09-06): Both probes are already lazy. backend/tests/lsat/test_factory_ollama_integration.py:132 and backend/tests/core/test_run_autonomy_integration.py:120 do
_URL = _candidate_url()at module scope, which is a plainos.getenv; the reachability probe that generates runs in the test body (test_factory_ollama_integration.py:143 inside the test, test_run_autonomy_integration.py:215/288 via `_require_live Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-26 — refactor, low — (resolved 2026-09-06): Replaced both if-chains with one AUTONOMY_RUNNERS table plus build_runner() at the bottom of backend/law_ai/core/management/commands/run_autonomy.py; Command.handle and law_ai.core.tasks.autonomy_cycle both build their runner from it, and both
# noqa: PLR0911suppressions are gone. build_runner reads each sub-runner's signature so only corpus_growth getssourceand only digest gets `window_to_ Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-27 — doc-gap, low — (resolved 2026-09-06): docs/constitution.md §12 invariant I4 now states both behaviours: every cycle is additionally projected into the queryable audit.AutonomyRun row, and --cycle-id makes run_cycle idempotent (a replay returning
replayed: truewith one autonomy_cycle.replayed event, not a re-run). Links to data-model.md and local-ai.md where each is documented in full. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-29 — feature, med — (resolved 2026-09-06): Added baseline_comparability(report) to backend/law_ai/eval/legalbench.py: it reads baseline.json's
modeland per-subsetscorers(both recorded by update_baseline since BL-20260811-11) and returns the reasons this run is not comparable. check_regression now logs each reason at WARNING and skips the comparison rather than reporting a false regression, and the CLI prints the reasons to stderr so Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-30 — infra, low — (resolved 2026-09-06): New scripts/check_legalbench_revisions.py (stdlib only, like the rest of scripts/): reads DATA_REVISION and PROMPT_REVISION straight out of backend/law_ai/eval/fetch.py by regex, asks the Hugging Face dataset API and the GitHub commits API for their current HEADs, and reports. Drift is news, not failure — the exit code is 0 unless
--strict, because bumping a benchmark revision is a deliberate ac Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-31 — feature, low — (resolved · obsolete 2026-09-06): Both halves already exist. The endpoint is AutonomyLegalbenchHistoryView at /api/agents/autonomy/legalbench-history (backend/law_ai/agentsapi/autonomy_views.py), which reads backend/var/legalbench/history.jsonl and pivots it into one series per subset; the UI is frontend/components/AutonomyDashboard.tsx:171 (LegalbenchPanel + the Sparkline component), fetched through frontend/lib/api.ts:2375. The Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-32 — test-gap, low — (resolved 2026-09-06): Added a TestLoaders.empty_cache fixture that monkeypatches loaders.subset_cache_path at a tmp dir, and pointed test_load_synthetic_stub_when_no_cache and test_limit_is_respected at it. Both now assert what their names claim: is_synthetic is True and every item index carries the
stub-prefix. The premise was live — this host has the real cache, so the old tests were loading 200 real LegalBench it Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-36 — test-gap, low — (resolved 2026-09-06): Took the item's second option and declared the scope explicitly, because closing the drift is not a tight change: ruff reports 17 errors and black would reformat 18 files under scripts/ + tests/, in a tree several other agents are editing right now. Makefile now carries a SCOPE comment above
lint:saying lint/format cover backend/ and frontend/ only and why repo-root Python is out of scope, plus Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-37 — infra, low — (resolved 2026-09-06): Picked 755 as the convention (a shebang that lies is the defect) and chmod'd the six mode-644 shebanged scripts: backlog_lint.py, evolve_audit.py, fetch_legalbench.py, legalbench_summary.py, mypy_ratchet.py, spec_validator.py. All ten scripts/*.py are now 755. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-38 — doc-gap, low — (resolved 2026-09-06): Took the 'make it clearer' branch — deleting the stub was not available, because specs/011 and specs/021 link to docs/ao-sdlc-guide.md and tests/test_docs.py::test_no_broken_relative_doc_links would fail. The file now opens with an explicit 'This file is not a documentation target' paragraph naming both real homes (docs/ao-sdlc.md for this repo's loop, AO-SDLC_Outline_Guide.md for the abstract one Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-39 — test-gap, low — (resolved · obsolete 2026-09-06): Both halves are answered. The 'promote the launch logic to scripts/' half was already decided against, in writing, in .claude/skills/run-law-ai/SKILL.md § 'Should the launch logic move into
scripts/?' — with a five-row table of why driver.sh's throwaway no-deps boot andmake test-e2e's real-service stack cannot share a launcher — and tests/test_run_law_ai_driver.py::test_the_scripts_graduation Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-45 — infra, low — (resolved 2026-09-06): scripts/ollama-bundle.sh takes
--models 'a b'(or--models=…, orMODELS=in the env). With it, the tar is assembled inside a throwaway--entrypoint shcontainer from each named manifest under models/manifests/registry.ollama.ai/library// plus the sha256:digests that manifest references, deduplicated throughsort -uand fed totar -T— blobs are shared between models, so g Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-48 — test-gap, low — (resolved 2026-09-06): The 34 legacy specs the item was waiting on are no longer a blocker —
stronger_question_warningsskips SHIPPED_STATUSES, so the whole back-catalogue is already exempt and a full run prints zero WARN lines today. Added--strictto scripts/spec_validator.py: it strips the flag before target parsing, counts warnings, and exits 1 with an actionable message when any fired while errors did not. Wire Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-49 — doc-gap, low — (resolved 2026-09-06): docs/llm-provider-chain.md's
## Setup (OAuth, for local dev),## Validate the connectionand## Run a live agentare now###under## The Claude transport, and the stale glue sentence ("Everything from here to Configuration reference documents tiers 1-2" — false since the xAI section landed before Configuration reference) is replaced by one that names the three subsections and says the x Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-50 — refactor, low — (resolved 2026-09-06): Folded the duplicate scan. Extracted
_link_problem(target) -> 'case' | 'missing' | Noneand deletedtest_no_case_mismatched_doc_links, itsos.walkand_LINK_SCAN_SKIP_DIRS.test_no_broken_relative_doc_linksnow partitions offenders and raises the two distinct messages: a case-only mismatch gets the 'fix the link casing (fine on macOS, broken on Linux/CI)' wording, and is never allowliste Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-51 — tech-debt, med — (resolved 2026-09-06): Verified the pruned lockfile end to end in an ephemeral container (compose mounts node_modules as a per-container anonymous volume, so this could not disturb concurrent agents):
npm cisucceeded, leaving 402 package dirs with @tanstack, @xyflow, framer-motion and lucide-react all absent, and the full frontend vitest suite passed on that install (73 files / 636 tests at the time). The image itsel Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-52 — feature, low — (resolved · already satisfied 2026-09-06): The skeleton loaders under frontend/components/lsat/ are already gated. /Users/bamr87/github/law-ai/frontend/components/lsat/LabPrimitives.tsx:73 (SkeletonQuestion) and :89 (SkeletonGrid) both carry motion-reduce:animate-none, as do both pulses in /Users/bamr87/github/law-ai/frontend/components/lsat/TutorPane.tsx (the caret at :162 and the skeleton block at :167 — the item's ':99' line reference m Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-53 — tech-debt, med — (resolved 2026-09-06): Audited the other overlays: Drawer (Overlay.tsx:111), CommandPalette (CommandPalette.tsx:34) and ShortcutsHelp (ShortcutsHelp.tsx:27) all go through the same useFocusTrap, so the BL-20260831-07 fix already covers them and no component needed changing — what was missing was the shared test. Added frontend/tests/shell/overlayFocus.test.tsx: a describe.each table over all three asserting focus la Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-54 — test-gap, low — (resolved 2026-09-06): New frontend/e2e/graph-keyboard.spec.ts drives the citation canvas with a real Cytoscape in a real browser — the thing jsdom cannot do, which is why the RTL suite could only assert tabIndex and the aria-label (under jsdom
cyRef.currentis null and the handler returns on its first line). Four cases: Enter selects the node the cursor starts on; ArrowRight steps forward through the nodes; ArrowLeft Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-56 — doc-gap, low — (resolved 2026-09-06): GET /api/agents/proposed-tests was undocumented. Added a curl reference under the /api/agents section of /Users/bamr87/github/law-ai/docs/api-examples.md (between the specs and local-ai-health entries, where backlog/specs/health live — architecture.md has no agentsapi route table, only prose), naming the response shape, the fixed backend/tests/autonomy/proposed/ directory, that no path parameter i Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-57 — tech-debt, med — (resolved 2026-09-06): Burned backend/law_ai/lsat/urls.py to strict-clean: annotated all 17 DRF handlers as
(self, request: Request, [<path arg>: str,] *args: Any, **kwargs: Any) -> Response, adding the one missingrest_framework.request.Requestimport.mypy law_ai --strictno longer reports the file at all. Removed its 25-error entry from backend/mypy-baseline.txt and corrected the header to# total: 34, which Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-61 — test-gap, low — (resolved 2026-09-06): Confirmed the behaviour and turned it into a stated, tested invariant rather than an unexamined gap. New lsat-static/tests/headerScroll.test.tsx walks the header from the top to HIDE_AFTER_PX and asserts it condenses at every step and never reaches
site-header-hidden; a companion case asserts one pixel past the threshold does hide, so the test pins the boundary rather than just the absence; Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-62 — tech-debt, low — (resolved 2026-09-06): lsat-static/components/ShortcutHelp.tsx keys each row on
${g.title}-${i}rather than the key cap, so the Argumentative Writing group's twoOrows no longer collide — React was dropping one of them and logging 'Encountered two children with the same key' on every mount. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-63 — infra, low — (resolved 2026-09-06): Added
make lsat-static-e2e-cachedto the Makefile beside the existing target (same pinned mcr.microsoft.com/playwright:v1.59.1-noble image, same shared node_modules volume): it skipsnpm ciwhen the volume already has an install and reuses lsat-static/out/ whenfind app components lib content.json package.json next.config.mjs -newer out/index.htmlcomes back empty, otherwise it rebuilds. `ls Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-68 — tech-debt, low — (resolved 2026-09-06): The shell now asks who it is before asking for anything account-scoped. New fetchIdentity() in frontend/lib/api.ts calls GET /api/auth/me (AllowAny, so signed out is a 200 saying authenticated:false, and any failure reads as anonymous). frontend/components/shell/ScopeSwitcher.tsx probes identity first and only then fetches /api/matters; the ?matter= deep-link resolve is gated the same way. Signed Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-69 — infra, low — (resolved · already satisfied 2026-09-06): The guard the item wants belt-and-braces for is strictly stronger than a periodic check, for the failure mode named. tests/test_lsat_site.py:986 (
test_the_drift_gate_defers_only_where_the_job_will_fix_it) loads ci.yml and pins the deferral condition and the refresh job's trigger together — it reads thelsat-contentpaths filter out of thechangesjob's outputs and the `LSAT_CONTENT_AUTOEXPOR Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-71 — doc-gap, low — (resolved · already satisfied 2026-09-06): Verified in the tree: the four residual pulses the item named all carry the gate — frontend/components/lsat/TutorPane.tsx:196 and :209, and frontend/components/lsat/LabPrimitives.tsx:73 (SkeletonQuestion) and :89 (SkeletonGrid) — each ending
motion-reduce:animate-none. A repo-wide grep foranimate-pulse|animate-spin|animate-pingin frontend/**/*.tsx that are NOT paired with `motion-reduce:anim Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-72 — tech-debt, low — (resolved 2026-09-06): Added ux_audit rule R15 (rule_reduced_motion in scripts/ux_audit.py): an animate-* utility must be paired with motion-reduce:animate-none or written as motion-safe:animate-*. It runs as a universal rule over frontend/app, frontend/components and the lsat-static export, so the whole tree is the contract instead of the five components HomeMotion.test.tsx samples. Documented in docs/ui-ux-review.md's Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-73 — feature, med — (resolved 2026-09-06): GET /api/settings/values now returns
writableScopesalongsidescopes, computed by a newwritable_scope_ids()that filters the visible chain through the very samemay_writethe PUT/DELETE handlers use — so the affordance and the enforcement can never disagree. On the client,hydrateSettingValuesrecords it and exposesserverWritableScopes()/mayWriteScope(id); both are optimistic whe Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-74 — tech-debt, low — (resolved 2026-09-06): The ceiling was worse than the item described:
/api/lsat/questionscaps at 25 AND, with no passage_id, takesrandom.sampleof the pool — so a concept on more than 25 questions dropped sets from PassagePanel's filter and dropped different ones on each fetch. Rather than raise a cap, moved the question to where the projection is passage-shaped and there is nothing to cap: `GET /api/lsat/passag Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-75 — doc-gap, low — (resolved 2026-09-06): Verified the staleness: frontend/lib/settings/define.ts:40 has USER_SETTABLE = ['instance','user'], catalog.ts applies it to exactly 15 keys, and frontend/components/shell/SettingsForm.tsx:96/164 renders a ScopeChoice chooser — while docs/ui-ux.md's 'Layout preferences (spec 050)' paragraph still called it 'an ordinary setting in the instance-scoped store'. Rewrote that clause: the store is server Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-80 — test-gap, med — (resolved · already satisfied 2026-09-06): As a documentation item this is satisfied. docs/legalbench.md:115 states in prose that the two TBD rows are the one open dependency of the LegalWorkflow backfill and that they await a run on a host that can load the gate model, naming BL-20260811-10; lines 119-120 repeat that dependency in the Notes column of the baseline table itself, next to each TBD. The remaining work is the eval run, whic Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-81 — test-gap, med — (resolved 2026-09-06): The nightly now runs the live-model slice: a 'Run the live-model integration slice (Ollama)' step calls
make test-integration-ollama, placed last before teardown on purpose (the target's own trap stops ollama/postgres/redis on exit, so anything after it would find the services gone) andcontinue-on-errorwhile an unproven step earns its keep. The runner already boots ollama and the target now Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-82 — infra, low — (resolved 2026-09-06): Added
make local-ai-pull-small(Makefile, withLOCAL_AI_SMALL_MODEL ?= qwen2.5:3b-instruct-q4_K_M, a help line and a .PHONY entry) which pulls one small instruct model and prints the exactmake test-integration-ollama OLLAMA_INTEGRATION_MODEL=…invocation to use it. Deliberately NOT added to OLLAMA_BOOTSTRAP_MODELS: the first entry of that list is the container healthcheck's gate model and O Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-84 — tech-debt, low — (resolved 2026-09-06): Both halves. (1) Bounded retry: backend/law_ai/lsat/synth/polish.py gains
POLISH_RETRIES = 1andpropose_with_yield(..., retries=POLISH_RETRIES)re-asks once when a reply is unparseable — a re-ask costs one call and the lint discards junk anyway. Anunavailableround is not retried (the chain already tried every tier). (2) Round-success rate:PolishYieldgainsrounds/rounds_failedand Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-85 — feature, med — (resolved 2026-09-06): Same work as BL-20260905-61 (the two items describe one defect): the tutor prompt receives the displayed board via the remap token. docs/lsat-answer-shuffling.md's 'What is not covered yet' no longer lists the tutor — it now documents the tutor's remap contract in the platform section and keeps only the cross-check caveat. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-88 — feature, med — (resolved 2026-09-06): New backend/tests/db/test_backfill_commands_integration.py: 6 @pytest.mark.integration tests against live Neo4j, calling the commands' own
run_backfillcoroutines so the real Cypher runs. densify_backfill: seeds a (:Case)-[:HAS_CITATION]->(:Citation) pair whose normalized string is in the cited case'saliases, asserts the CITES edge lands with its confidence, that a dry run resolves but writes Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-89 — tech-debt, med — (resolved 2026-09-06): Fixed all three decimal-article regexes: citation_resolver._CRS_SECTION_RE and scout._CRS_SECTION_NUMBER now give every dotted part its own optional decimal, and colorado_statutes._PDF_SECTION_RE no longer truncates '18-1.3-401.' to '18-1'. A case citing C.R.S. § 18-1.3-401 now yields us-co/crs/18-1.3-401 end to end, and PDF-derived sections keep their decimal article. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-91 — infra, high — (resolved · already satisfied 2026-09-06): A sibling propagated the extra already.
future-authis now installed everywhere the test checks: .github/workflows/ci.yml lines 204, 262 and 344 (.[dev,local-ai,future-auth], and.[dev,local-ai,nlp,future-auth]on the backend-test job), .github/workflows/integration-tests.yml line 41 (.[dev,test,local-ai,future-auth]) and Makefile line 757 — all supersets of backend/Dockerfile line 22's `. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-92 — tech-debt, low — (resolved 2026-09-06): Narrowed the hitl_gate_disabled emission to the case that is actually an override: the event now fires only when the extraction is sub-threshold (a high-confidence document commits with the gate armed too), and the detail names the score and the threshold it missed instead of asserting 'low-confidence extraction' for every document. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-93 — doc-gap, med — (resolved · already satisfied 2026-09-06): The premise no longer holds for the item line itself. BACKLOG.md:365 now reads: BL-20260503-12 ... 'now carry
throttle_classes = [ScopedActorRateThrottle]andthrottle_scope = "audit"' — django-ratelimit is not named anywhere in it. The divergence rationale is recorded where the item said it should be: backend/law_ai/core/throttling.py:20 ('a provisioned ApiToken -> its key_hash (per-token quo Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260906-94 — infra, med — (resolved 2026-09-06): Same change as BL-20260906-81 — the two items ask for the same thing from different angles (-94 wanted an opt-in workflow_dispatch job pulling a small model; -81 wanted it in the nightly). One step in nightly-tests.yml, which the repo already triggers by workflow_dispatch, covers both, and the small model is now the target's default rather than a hand-passed variable. `grep -rn 'test-integration-o Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-95 — feature, low — (resolved 2026-09-06): Added frontend/components/matters/MatterResearch.tsx — a 'Research in this matter' section that posts the question to /api/analysis with the matter's id (and its jurisdiction), renders the returned issue/conclusion, and names the ranking bias when irac.retrieval.boosted_count > 0 ('N passage(s) promoted because matter:… had already verified them'), plus the HITL note. A failed round says only 'cou Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-96 — tech-debt, low — (resolved 2026-09-06): Kept the [future-auth] extra and covered the degraded path, which was the untested half. Added TestDegradesWithoutTheExtra to backend/tests/api/test_jwt_oauth.py: with DEPENDENCIES_AVAILABLE monkeypatched False, mint_access_token raises OAuthError('temporarily_unavailable', status 503) rather than an ImportError, POST /api/auth/token answers 503 with that error code, decode_access_token/resolve_ac Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-98 — test-gap, high — (resolved · already satisfied 2026-09-06): A sibling already fixed it. backend/tests/core/test_run_autonomy.py:18-21 lists governance-triage in NON_AUTONOMY_BEATS mapped to law_ai.core.tasks.governance_triage, and _autonomy_beats() at line 24 excludes those entries so test_beat_tasks_point_at_autonomy_cycle and the TestBeatScheduleSmoke cases skip them. Shipped in: specs/052-backlog-zero (follow-up sweep).
- BL-20260906-99 — tech-debt, low — (resolved 2026-09-06): The premise had moved on:
$Lis no longer untracked — it was committed in 143c687 ('feat(backlog-zero): close 42 verification findings and reconcile the register'), so 'do not commit it' was already too late. Deleted the file;git statusnow showsD $Lfor the main loop to commit. Contents were only two agents' one-line log entries. Shipped in: specs/052-backlog-zero (follow-up sweep). - BL-20260905-10 — feature, low — (resolved 2026-09-06): Three fixes. (1) Server render: the store now mirrors the server-named user scope id into its own cookie (SETTINGS_SCOPE_KEY + parseScopeId in frontend/lib/scope/rows.ts, writeScopeCookie/readSettingsScopeCookie in frontend/lib/scope/store.ts, written by hydrateSettingValues and cleared by disableServerSync); frontend/app/(app)/layout.tsx reads it and passes initialUserScopeId to AppShell, which hands it to a new Set… Shipped in: specs/052-backlog-zero (remediated).
- BL-20260905-09 — feature, low — (resolved 2026-09-06): The chosen layout is now on the first paint. store.ts mirrors its rows into a
law-ai.settings.v1cookie on every write (deleting it when the last row goes, dropping an oversized blob rather than truncating) and exposesreconcileSettingsCookie; a new pure lib/scope/rows.ts parser is shared with the server; app/(app)/layout.tsx reads the cookie and passesinitialSettingsto AppShell; a new SettingsSnapshotProvide… Shipped in: specs/052-backlog-zero (verified). - BL-20260905-08 — feature, med — (resolved 2026-09-06): New components/shell/ModulesMenu.tsx: a compact masthead popover of
menuitemlinks generated from MODULE_CATALOG, with aria-current on the active module, rendered by AppShell only whenui.rail.visibleis false and hidden below md (MobileTabBar covers that width). Shipped in: specs/052-backlog-zero (verified). - BL-20260905-07 — feature, low — (resolved 2026-09-06): Modules now declare their Layout-menu rows as data.
AppModule.layoutandModuleSidebarLink.layout(frontend/lib/modules/define.ts) hold{id,label,setting}rows; lsatModule declares the timer row and its /lsat/library sidebar link declares contents+outline;layoutRowsForPathresolves them. Shipped in: specs/052-backlog-zero (verified). - BL-20260905-06 — feature, low — (resolved 2026-09-06):
ConceptDetailViewbuilds the id list once and returnsused_in_questions: ids[:10]besideused_in_count: len(ids), mirroring the article endpoint'sdrill_question_ids/drill_question_count.LsatConceptDetailand the MSW handler carry the count;EntryActionslost thedrillCappedprop and theN+rendering, and the concept entry passesdrillCount={detail?.used_in_count}— so both entry types render the… Shipped in: specs/052-backlog-zero (verified). - BL-20260905-05 — infra, med — (resolved 2026-09-06):
scripts/visual_evidence_gate.pynow reads the body the way GitHub renders it:strip_html_comments()removes(and drops everything after an unclosedblocks — both system steers, both output contracts, and the user template with required placeholders — read through anlru_cached loader; `… Shipped in: specs/052-backlog-zero (verified). - BL-20260503-03 — feature, med — (resolved 2026-09-06): Shipped the streaming tutor over Channels rather than SSE — ADR 0001 and spec 011 chose WebSockets as the repo-wide push transport, and the analysis path already streams there, so a second SSE surface would have been a divergence rather than a feature.
TutorRequest.stream_tokens(requiresstream_id) switches the call tollm.astreamand publishes each delta as atutor_tokenevent on the learner's stream. Shipped in: specs/052-backlog-zero (verified). - BL-20260503-06 — feature, low — (resolved 2026-09-06): Remedy A: TutorResponse now carries langgraph_thread_id (backend/law_ai/lsat/services/tutor.py:210-229), always null with a field description that says why — the tutor calls the provider chain directly and runs no graph, exactly as the analysis response returns null when no graph ran — so the tutor contract mirrors BL-20260502-05's field for field and a client can render one trace strip against either response. Shipped in: specs/052-backlog-zero (remediated).
- BL-20260503-07 — test-gap, low — (resolved 2026-09-06): Added a Vitest+MSW case to frontend/tests/components/LsatLab.test.tsx that overrides POST /api/lsat/tutor with
used_llm: false, model: 'fallback/offline', confidence: 0.55, drives the real LR flow (select, grade, Ask AI Tutor) and asserts the pane shows 'offline fallback' and 55% conf, still renders the coaching text, and never prints the model string. Shipped in: specs/052-backlog-zero (verified). - BL-20260503-08 — doc-gap, low — (resolved 2026-09-06): Appended '## 14. Scope evolution (post-MVP)' to specs/005-lsat-lab/spec.md plus a banner under the header saying §§1-13 are the historical LR-only record. The new section carries an expansion table (multi-section bank/Section enum, concept catalog, passages, tutor, authoring+HITL queue, solve guides, WS writing, knowledge library, item synthesis, static delivery) cross-linked to specs 011/019/024/030/045/047/048/049/… Shipped in: specs/052-backlog-zero (verified).
- BL-20260502-03 — infra, low — (resolved 2026-09-06): Server / multi-GPU metrics tier as a second overlay. docker-compose.observability.yml adds prometheus v3.1.0 (:9090, 15d retention), grafana 11.5.1 (:3002, provisioned datasource + dashboard, UI edits disabled) and oliver006/redis_exporter v1.67.0 with REDIS_EXPORTER_CHECK_KEYS=celery,autonomy behind an
observabilityprofile, plus nvidia/dcgm-exporter behind a separategpu-metricsprofile so the rest still runs o… Shipped in: specs/052-backlog-zero (verified). - BL-20260502-06 — infra, low — (resolved 2026-09-06): Air-gapped bundle + offline install. scripts/ollama-bundle.sh writes dist/ollama-models.tar (the ollama named volume, tarred through a throwaway container so the stack need not be up), dist/images.tar (
docker saveof every imagedocker compose config --imagesnames, with a hard check that locally built ones exist), dist/images.txt, dist/bundle.env and dist/SHA256SUMS; it supports --dry-run, --models-only, --image… Shipped in: specs/052-backlog-zero (verified). - BL-20260502-07 — feature, low — (resolved 2026-09-06): Abstracted the OTEL exporter behind
settings.OBSERVABILITY_BACKEND(phoenixdefault |langfuse|none).telemetry.exporter_config()returns(endpoint, headers)per backend — Phoenix usesPHOENIX_COLLECTOR_ENDPOINT, Langfuse posts to<LANGFUSE_HOST>/api/public/otel/v1/traceswith a Basic-auth header built from the key pair, andOTEL_EXPORTER_OTLP_ENDPOINT/_HEADERSreach any other OTLP/HTTP collecto… Shipped in: specs/052-backlog-zero (verified). - BL-20260502-08 — test-gap, low — (resolved 2026-09-06):
.github/workflows/integration-tests.ymlgained a 'Create the LangGraph checkpointer schema' step (python manage.py ensure_checkpointer) betweenmigrateandpytest -m integration, carrying the same DATABASE_URL/POSTGRES_URL/LANGGRAPH_CHECKPOINTER env — i.e. the third leg ofmake migratethat CI was omitting. Shipped in: specs/052-backlog-zero (remediated). - BL-20260429-27 — test-gap, low — (resolved 2026-09-06): The verifiers were right: the spec asserted the healthy IRAC/precedents/trace-id render against a stack that can only produce the degraded panel. Split it into the two things the stack can honestly do. (1) New
backend/law_ai/analysis/management/commands/seed_analysis_run.pywrites one deterministic finished run (an-e2e-demo, trace ide2e-trace-0123456789abcdef, degraded=false, four non-empty IRAC fields, two pr… Shipped in: specs/052-backlog-zero (remediated). - BL-20260429-22 — feature, med — (resolved 2026-09-06): Backend:
shortest_path(session, from_id, to_id, max_hops=6)+CASE_VECTOR-styleSHORTEST_PATH_CYPHERandMAX_PATH_HOPSin core/neo4j/graph_queries.py (undirectedshortestPathoverCITES, archived endpoints excluded, hop bound clamped and the only interpolated value, ids parameter-bound), andPathViewat/api/graph/path?from=&to=&max_hops=in law_ai/graph/urls.py returning the same{nodes, edges}sha… Shipped in: specs/052-backlog-zero (verified). - BL-20260429-23 — feature, low — (resolved 2026-09-06): Backend:
list_casesgained optionalcourt(case-insensitive substring — court values are free-form, not an enum),decided_fromanddecided_to(inclusive ISO dates, lexical compare on the ISO-storeddecided_at), all parameter-bound and empty-string-disabled, plus archived-case exclusion; the row now carriessource,source_url,confidence. Shipped in: specs/052-backlog-zero (verified). - BL-20260429-18 — feature, med — (resolved 2026-09-06): The learner's reasoning now actually reaches the tutor. frontend/components/lsat/QuestionCard.tsx gained an elimination control: a per-choice ✗ button (aria-pressed, 'Rule out choice A' / 'Restore choice A'), a matching
Xkey that crosses out the focused choice, strikethrough+dimmed styling, a hint line, reset on question change, andeliminatedfolded into attemptTrace() (:150-200, 249-253, 330-430) — so TutorTra… Shipped in: specs/052-backlog-zero (remediated). - BL-20260429-03 — feature, low — (resolved 2026-09-06): Made the delivered NER capability actually reachable from the sanctioned runtime and put the real model under test. backend/Dockerfile now installs the en_core_web_sm 3.8.0 wheel in its own
pip install --no-depslayer after the editable install (deliberately not folded into the extras list, so dependency resolution is neither re-run nor perturbed and the cached layer survives); I rebuilt the image and verified in i… Shipped in: specs/052-backlog-zero (remediated (register note written by the main loop)). - BL-20260429-04 — infra, med — (resolved 2026-09-06): Turned the dead
mypy law_ai --strict+continue-on-error: trueCI step into a real ratcheted gate, all three phases. Phase 1: addeddjango-stubs>=6.1.0anddjangorestframework-stubs>=3.18.1to backend/pyproject.toml[dev](deliberately NOT the[compatible-mypy]extra, which would pin mypy back from 2.3.1), wiredplugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]plus `[tool.django-stubs] djan… Shipped in: specs/052-backlog-zero (verified). - BL-20260429-06 — test-gap, low — (resolved 2026-09-06): Added backend/tests/ingestion/test_ingest_cli_courtlistener.py: a respx-mocked CourtListener smoke test for
scripts/ingest_sample.py --source courtlistener --dry-run --limit 3asserting rc0,source=courtlistenerin stdout, committed+pending3 and skipped==0, plus a--limit 1case that locks the limit contract and a monkeypatched guard proving the dry-run path never opens a Neo4j driver. Shipped in: specs/052-backlog-zero (verified). - BL-20260429-11 — feature, med — (resolved 2026-09-06): New
densify_backfillDjango management command (backend/law_ai/ingestionapp/management/commands/densify_backfill.py) that walks(:Case)-[:HAS_CITATION]->(:Citation)pairs with no matchingCITESedge, re-resolves each throughresolve_citations(one round-trip per case), and MERGEs the missing edge with the confidence carried by the existing HAS_CITATION edge. Shipped in: specs/052-backlog-zero (verified). - BL-20260429-12 — refactor, low — (resolved 2026-09-06): Added
WITH n, c ORDER BY n, c.idahead of the aggregation inRESOLVE_CITATIONS_CYPHER(backend/law_ai/core/neo4j/citation_resolver.py), sohead(collect(c.id))always yields the lexicographically smallestCase.idwhen two cases share an alias instead of whichever Neo4j scanned first. Shipped in: specs/052-backlog-zero (verified). - BL-20260429-16 — infra, low — (resolved 2026-09-06): Replaced the dashboard's unconditional 5s poll with a push channel. New
OpsDashboardConsumeron/ws/agents/ops(routed before the run pattern, which would otherwise swallow "ops") joins a singleops-dashboardgroup and authenticates through a_TicketAuthbase extracted fromAgentRunConsumer, so the second consumer cannot ship a weaker gate than the first. Shipped in: specs/052-backlog-zero (verified). - BL-20260430-07 — feature, med — (resolved 2026-09-06): The API key is out of the browser. New catch-all route frontend/app/api/backend/[...path]/route.ts forwards method/query/body/headers to BACKEND_INTERNAL_URL and attaches
X-API-Keyfrom a server-onlyAGENT_API_KEY(stripping any the client tried to set, 502 on an unreachable backend); apiFetch carries no credential at all and NEXT_PUBLIC_AGENT_API_KEY is gone from api.ts, .env.example and docs/security.md. Shipped in: specs/052-backlog-zero (verified). - BL-20260430-11 — test-gap, low — (resolved 2026-09-06): All three clauses were real. (1)
/analysisnow visits/analysis?id=an-e2e-demo(the run seeded above), which issues a genuine gatedGET /api/analysis/<id>; and every PAGES entry gained aservedregexp plusexpectReachedItsRouter(), so both postures now assert the page actually got a <400 response from its own router before asserting no 401. Shipped in: specs/052-backlog-zero (remediated). - BL-20260430-12 — infra, low — (resolved 2026-09-06):
warn_if_unprotected()inbackend/law_ai/core/apps.py(where the oldapp/main.pylifespan logic lives) now raisesImproperlyConfiguredwhenENVIRONMENT == 'production'and any feature router is ungated; staging keeps the warning and development is untouched. Shipped in: specs/052-backlog-zero (verified). - BL-20260509-02 — infra, med — (resolved 2026-09-06): New
backend/law_ai/core/neo4j/migrator.py:apply_migrations(driver, dir, dry_run=)sorts*.cypher, strips//comments, splits on;, runs each statement in its own auto-commit transaction, and records the file as(:_Migration {id, applied_at, checksum, statement_count})behind amigration_id_uniqueconstraint — recorded files are skipped. Shipped in: specs/052-backlog-zero (verified). - BL-20260509-03 — test-gap, med — (resolved 2026-09-06): New
backend/tests/db/test_neo4j_migrations_integration.py(markedintegration, session loop scope): applies the whole migration set to the live compose Neo4j via the BL-20260509-02 runner and assertsSHOW CONSTRAINTS YIELD nameandSHOW INDEXES YIELD name, typematch the declarations, with RANGE/FULLTEXT/VECTOR types checked per index. Shipped in: specs/052-backlog-zero (verified). - BL-20260509-05 — feature, med — (resolved 2026-09-06): Denver Municipal Code ingestion — the first writer of the
Ordinance/OrdinanceSectionlabels spec 015 declared and docs listed as "zero MERGE Cypher anywhere". Newcore/schemas/ordinance_extraction.py,services/denver_municipal_code.py(httpx+tenacity client plus a deterministic lxmlparse_chapter_htmlwith all Municode hooks in one constant block, latest-amendment date parsing from the verbatim history note… Shipped in: specs/052-backlog-zero (verified). - BL-20260509-06 — feature, low — (resolved 2026-09-06): Added the PDF fallback:
parse_title_pdfin services/colorado_statutes.py emits the same StatuteExtraction as the HTML parser (identical section ids and citations), extracting page text through a lazily-imported pypdf, stripping repeated page-edge headers and page numbers, and penalising every section by PDF_CONFIDENCE_PENALTY=0.35 so column-interleaved text can never clear the 0.7 HITL gate. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-03 — feature, med — (resolved 2026-09-06): Backend: new backend/law_ai/agentsapi/autonomy_views.py with three read-only
RequireAgent-gated views appended to /api/agents —autonomy/legalbench-history(pivots eval history.jsonl into one series per subset, oldest-first, misaligned runs contributing null),autonomy/lowest-coverage(five worst modules from coverage.xml with severity),autonomy/recent-quarantine(ten newest PendingReview rows). Shipped in: specs/052-backlog-zero (verified). - BL-20260511-04 — infra, med — (resolved 2026-09-06): Promoted autonomy runs to a dedicated Postgres table:
audit.AutonomyRun(cycle_id, kind, source, trace_id, started_at, ended_at, status ok/error/disabled/replayed, duration_ms, error, summary JSON) with migration 0002 and a composite (kind, -started_at) index. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-05 — feature, low — (resolved 2026-09-06): Wired delivery into the scheduled path. /Users/bamr87/github/law-ai/backend/law_ai/core/tasks.py
compose_digest_task._runner— the task the 07:00 UTCautonomy-daily-digestbeat entry runs — now callsautonomy.deliver_digest(digest_path)after composing, putsdigest_deliveredon the cycle context (so it lands on the autonomy_cycle.end audit event next to digest_path) and returns the delivery summary. Shipped in: specs/052-backlog-zero (remediated). - BL-20260511-08 — feature, low — (resolved 2026-09-06): Turned
afetchinto the abstract SourceAdapter primitive and madefetcha concrete sync shim that runs afetch via asyncio.run from a plain thread but raises a pointed RuntimeError from inside a running loop. Renamed all three adapters' private_afetchto publicafetchand dropped their sync overrides. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-09 — test-gap, low — (resolved 2026-09-06): The failing assertion was a real defect in the command, not the test: backend/law_ai/core/management/commands/list_sources.py printed rates with
:.1f, so DenverMunicipalCodeAdapter's 0.25 rps rendered as "0.2" — misinforming the operator and breaking the metadata comparison. Changed to:g, which round-trips every declared rate exactly and keeps the 6-char column. Shipped in: specs/052-backlog-zero (remediated). - BL-20260511-11 — test-gap, low — (resolved 2026-09-06): Added an integration-marked
TestBeatScheduleSmokeclass to backend/tests/core/test_run_autonomy.py that drives EVERYapp.conf.beat_scheduleentry through Celery (app.tasks[entry['task']].apply(kwargs=entry['kwargs'])), asserting the task is registered, the kill-switch short-circuits through Celery's execution path (status='disabled',cycle_type == kwargs['kind']), each scheduled kind is dispatchable from th… Shipped in: specs/052-backlog-zero (verified). - BL-20260511-14 — test-gap, low — (resolved 2026-09-06):
make lint-specsnow runs the tests. The recipe checks for pytest on the host interpreter first and, if it is absent, prints two sentences naming the fix (pip install --user pytest, ormake test-smokein Docker) and exits 1 rather than dying in a traceback; then it runspython3 -m pytest tests/test_evolve_audit.py -q. Shipped in: specs/052-backlog-zero (remediated). - BL-20260511-15 — feature, low — (resolved 2026-09-06): Added
TestEvolveAuditScanLegalbenchto backend/tests/eval/test_coverage_audit.py covering_scan_legalbench: empty dir, a seeded20260901T000000Z.jsonwithdelta.precedent_retrieval.delta_pp = -10.0next to a baseline.json yielding exactly one severity:high / kind:test-gap Candidate naming the subset and '-10.0pp', a positive delta, newest-report-only, and a malformed report. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-17 — test-gap, low — (resolved 2026-09-06): Backend: new read-only
GET /api/agents/proposed-tests(AgentProposedTestsView in agentsapi/urls.py) globs the fixedbackend/tests/autonomy/proposed/*.proposed.pyand returns{count, files:[{name, path (repo-relative), module, size, mtime, skip_marked}], available}; no path parameter is accepted. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-18 — infra, low — (resolved 2026-09-06): Added .actrc (pinned catthehacker/ubuntu:act-22.04, linux/amd64 for Apple silicon, .act-artifacts path), a
make nightly-dry-runtarget that runs the workflow_dispatch dry_run path through act with a guard when act is absent, a.act-artifacts/.gitignore entry, and a!env.ACTguard on nightly-tests.yml's 'Open draft PR' step so a local run can never push a branch. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-19 — feature, low — (resolved 2026-09-06): Added a 'Compose autonomy digest' step to .github/workflows/nightly-tests.yml (
make autonomy-run KIND=digest ARGS=--window-to-now, AUTONOMY_ENABLED=True, continue-on-error, infra still up) followed by a step that appends the digest Markdown (H1 demoted to H3), audit.out and the proposed-test count to$GITHUB_STEP_SUMMARY, plus an artifact upload of the digest. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-21 — test-gap, low — (resolved 2026-09-06): Added a
TestGraphTransitionsclass to backend/tests/agents/graphs/test_topic_frontier.py that asserts the compiled StateGraph's actual edge set (including__start__/__end__), that the two edges out ofprioritizeare a conditional branch, thatprioritize/dispatchcarry a RetryPolicy whilescan_graph/summarizedo not, and — viagraph.astream(stream_mode='updates')— the exact node execution order on b… Shipped in: specs/052-backlog-zero (verified). - BL-20260511-23 — feature, med — (resolved 2026-09-06): Added
compose_digest_taskto backend/law_ai/core/tasks.py:@shared_task(bind=True, autoretry_for=(OperationalError, InterfaceError), retry_backoff=True, retry_jitter=True, max_retries=3), running the cycle throughautonomy.run_cycle('digest', ...)so the kill-switch and paired provenance events still apply. Shipped in: specs/052-backlog-zero (verified). - BL-20260511-29 — feature, med — (resolved 2026-09-06): Implemented
--cycle-ididempotency incore.autonomy.run_cycle:_find_prior_cyclelooks up anautonomy_cycle.endevent byAuditEvent.objects.filter(kind='autonomy_cycle.end', payload__cycle_id=...)(skipped in async context, tolerant of any DB failure) and falls back to scanning the JSONL audit store, and_replayreturns the prior payload withreplayed: Trueplus oneautonomy_cycle.replayedevent inste… Shipped in: specs/052-backlog-zero (verified). - BL-20260511-31 — refactor, low — (resolved 2026-09-06): Realized all three gains the migration was meant to buy in backend/law_ai/agents_runtime/graphs/topic_frontier.py:
TopicFrontier.__init__takes an optionalcheckpointerthat_build_graphcompiles with (mirroring LegalWorkflow),prioritize/dispatchcarryRetryPolicy(max_attempts=3), and_route_after_prioritizeadds a conditional edge that short-circuits tosummarizeon an empty ranking. Shipped in: specs/052-backlog-zero (verified). - BL-20260527-04 — feature, med — (resolved 2026-09-06): New
LSATContentReviewer(backend/law_ai/agents_runtime/crews/lsat_content_reviewer.py) + versioned prompt scores a draft blind (stem + choices, no answer key, no explanation) on clarity, ambiguity (higher = better) and single_best_answer, plusoverall, kebab-caseflagsand a rationale, throughlaw_ai.core.llm.agenerate(json_mode=True)with onelog_agent_callper run. Shipped in: specs/052-backlog-zero (verified). - BL-20260527-05 — feature, med — (resolved 2026-09-06): Added the LsatProposal ORM model (backend/law_ai/lsat/models.py) with a forward-only migration in the new backend/law_ai/lsat/migrations/ package (the app config was already in INSTALLED_APPS, so Django discovers it). Shipped in: specs/052-backlog-zero (verified).
- BL-20260527-06 — feature, med — (resolved 2026-09-06): The item's either/or is not in its text, so I took the branch the verifiers named as sufficient: a real, specific written record of the deliberate substitution, in the doc a reader comparing ask to code would open. docs/legalbench.md gains a new '### Why not
LegalAnalyst? (deliberate substitution, BL-20260527-06)' subsection inside the existing 'LSAT per-item regression' section. Shipped in: specs/052-backlog-zero (remediated). - BL-20260527-07 — feature, low — (resolved 2026-09-06): Added a "Next autonomy target" card to the agent ops dashboard:
fetchLsatGaps(3)joins thePromise.allSettledrefresh block, and the card renders the top gap row (section pill, concept, attempts, accuracy) with the remaining rows behind a<details>disclosure and a link to/lsat?tab=authoring. Shipped in: specs/052-backlog-zero (verified). - BL-20260527-08 — test-gap, med — (resolved 2026-09-06): The test now executes, and can no longer pass against a dead model. /Users/bamr87/github/law-ai/backend/tests/core/test_run_autonomy_integration.py: added
_integration_model()honouring OLLAMA_INTEGRATION_MODEL (mirroring the sibling factory test) and pinned OLLAMA_DEFAULT_MODEL to it in the fixture, so a box that cannot hold the compose-default 7B can still run the test instead of skipping forever; moved the model… Shipped in: specs/052-backlog-zero (remediated). - BL-20260602-01 — test-gap, low — (resolved 2026-09-06): Fixed the blocker first:
IngestionScout._quarantinenow dispatches throughsync_to_async, so the eager Celery task's ORM write no longer raises SynchronousOnlyOperation and silently demotes every async quarantine to the JSONL spool (this was BL-20260510-01). Shipped in: specs/052-backlog-zero (verified). - BL-20260602-02 — doc-gap, low — (resolved 2026-09-06): Documented the SourceAdapter contract in docs/architecture.md: a new '### Source adapter contract' subsection under the Autonomy Loop covering name/jurisdiction/license/requires_human_approval/rate_limit_rps + the optional extractor, the TopicFrontier dispatch passing force_quarantine=True, and the rule that force_quarantine beats force_commit so an approval-required source can never be auto-committed (spec 018 NFR-H… Shipped in: specs/052-backlog-zero (verified).
- BL-20260602-03 — doc-gap, low — (resolved 2026-09-06): The docs/constitution.md → ../AGENTS.md portion was already fixed by commit b5c129f; the residual non-case broken links the verifier found are now fixed: .claude/skills/run-law-ai/SKILL.md:9 and :58 now use ../../../ hrefs, and .github/prompts/ship-open-changes.prompt.md:36 no longer links to the never-existing frontend/README.md (now docs/ui-ux.md). Shipped in: specs/052-backlog-zero (verified).
- BL-20260602-04 — test-gap, med — (resolved 2026-09-06): Converted all 114 dead backend/app/* markdown links into inline code spans (specs/011 spec 55 / plan 16 / tasks 24, docs/adr/0001 15, plus the four singletons in specs/001 spec+tasks, specs/002 plan, specs/003 spec) and added Historical notes to spec 011's three files and ADR 0001 explaining that backend/app/ was deleted by spec 011 T-016 and the paths are now code, not links. Shipped in: specs/052-backlog-zero (verified).
- BL-20260602-07 — refactor, low — (resolved 2026-09-06):
PendingReview.sourcenow names the real adapter: dispatch putssource_nameon the payload andIngestionScout.extractuses it instead of the hardcoded literal (still defaulting to courtlistener), so a quarantined Colorado statute row is findable withPendingReview.objects.filter(source="colorado_statutes"). Shipped in: specs/052-backlog-zero (verified). - BL-20260904-04 — test-gap, high — (resolved 2026-09-06): backend/tests/core/test_xai_oauth.py gained TestCrossProcessRefresh, which spawns two real OS processes (new helper backend/tests/core/_xai_refresh_child.py) against a ThreadingHTTPServer stub token endpoint that sleeps 0.5s inside the winner's lock and returns invalid_grant for anything but the seeded r1. Shipped in: specs/052-backlog-zero (verified).
- BL-20260904-05 — tech-debt, med — (resolved 2026-09-06): xai.list_models() GETs {XAI_BASE_URL}/models with the OAuth bearer and returns sorted data[].id; probe() attaches
available_modelswhen the completion fails with a 404 (best effort via _available_models_quietly, which swallows a 403 on the listing itself); validate_xai gained an 'Available models' step between the chain summary and the probe that prints configured vs available and warns `XAI_MODEL=… Shipped in: specs/052-backlog-zero (verified). - BL-20260904-06 — test-gap, med — (resolved 2026-09-06): TestLoopbackLogin drives loopback_login over a real ephemeral socket: the happy path asserts the token POST carried grant_type=authorization_code, code=abc and the captured PKCE verifier, and that credentials landed at mode 0600; a mismatched state raises 'state mismatch' with zero token POSTs and nothing saved; ?error=access_denied raises 'authorization failed'; a no-callback case exercises the timeout branch. Shipped in: specs/052-backlog-zero (verified).
- BL-20260904-07 — doc-gap, low — (resolved 2026-09-06): Renamed docs/claude-code-dev-llm.md → docs/llm-provider-chain.md, retitled the H1 to 'The LLM provider chain (law_ai.core.llm)' and rewrote the opening so the chain (not the Claude transport) is the subject, with the Claude material now under its own '## The Claude transport' heading. Shipped in: specs/052-backlog-zero (verified).
- BL-20260905-11 — tech-debt, med — (resolved 2026-09-06): Delivered the item's second branch — streaming, so the wait is visible — on the path the item measured, plus the override on the callers it named. Backend: LegalAnalyst gained a delta sink (backend/law_ai/agents_runtime/crews/legal_analyst.py:524-561) that relays generation to the run's WebSocket group as
analysis_tokenevents ({agent, text, chars running total, model}) via the same fire-and-forget emit_stream_even… Shipped in: specs/052-backlog-zero (remediated). - BL-20260905-12 — test-gap, med — (resolved 2026-09-06): Completed by the previous attempt and verified: backend/tests/core/test_llm_chain.py carries a TestPublicSurface class (6 tests) asserting every PROVIDER_REGISTRY class and name-constant is re-exported by law_ai.core.llm.all, that the registry order equals DEFAULT_CHAIN, that the django-environ default for LLM_PROVIDER_CHAIN parses to the same order, that the package docstring names every tier, and that every __a… Shipped in: specs/052-backlog-zero (verified).
- BL-20260905-13 — tech-debt, med — (resolved 2026-09-06): ClaudeCodeExecutor now calls llm.aroute with the chain pinned to the provider its credential implies (claude_code for OAuth, anthropic_api for the API key) and models={provider: tier model}, mapping LLMUnavailableError to ExecutionError and taking model_label from the result — so factory batches finally write the llm_call provenance event (agent=lsat_factory) while keeping reproducible tier routing. Shipped in: specs/052-backlog-zero (verified).
- BL-20260429-25 — feature, med — (resolved 2026-09-06): New
AnalysisRunmodel (backend/law_ai/analysis/models.py+analysis/migrations/0001_initial.py) keyed on the existinganalysis_id, storing request JSON, response JSON, the parent provenancetrace_id,child_trace_ids, engine, confidence, HITL flag,created_byandarchived_at.AnalysisView.postpersists via a best-effort_persist_run()(a DB failure logs and never fails the run). Shipped in: specs/052-backlog-zero (verified). - BL-20260429-26 — feature, low — (resolved 2026-09-06):
ShareLinkmodel (slug PK, CASCADE FK to AnalysisRun,created_by,revoked_at) plus anAnalysisRun.shareableguard inanalysis/migrations/0002_sharelink.py.POST /api/analysis/<id>/sharemints (32-byte random slug or a validated readable slug),GETlists,DELETE /api/analysis/<id>/share/<slug>revokes; all three require a signed-in owner. Shipped in: specs/052-backlog-zero (verified). - BL-20260503-05 — feature, med — (resolved 2026-09-06): New
LsatAttemptmodel (user CASCADE, question/section/difficulty/choice/correct/hints/shuffled/concepts, indexed on (user,-created_at) and (user,question_id)) + migration 0002, andlsat/services/attempts.pywith per-learner totals, per-section buckets, an equal-count accuracy trend, and a Leitner review queue (box = correct streak, due 2^(box-1) days later, a miss is due now). Shipped in: specs/052-backlog-zero (verified). - BL-20260503-13 — feature, med — (resolved 2026-09-06): Implemented the named mechanism rather than recording a divergence (the item offers no either/or branch). New /Users/bamr87/github/law-ai/backend/law_ai/core/jwt_auth.py is an RFC 6749 §4.4 client-credentials grant over
core.ApiToken:mint_access_tokensigns an HS256 JWT with python-jose carrying the issuing token'skey_hashin a privatekhclaim;JwtBearerAuthenticationdecodes it and resolves back to the… Shipped in: specs/052-backlog-zero (remediated). - BL-20260811-04 — refactor, low — (resolved 2026-09-06): Added
PendingReview.reviewer_user(nullable FK, SET_NULL) with migration 0004 and a newlaw_ai/core/reviewer.pythat resolves who is deciding: a signed-in account's username always beats a claimed free-text body field, and the legacy string path survives for CLI/env-key surfaces. Shipped in: specs/052-backlog-zero (verified). - BL-20260810-10 — tech-debt, med — (resolved 2026-09-06): Closed the two clauses a verifier had refuted. (1) 'thread offload' is now implemented — by BL-20260811-07 in the same file, cross-referenced in the docstring. (2) 'surface persistent failure at warning level':
_note_db_result()tracks consecutive DB-leg failures across all three strategies and logs a warning once three in a row fail, while a single transient failure stays at debug because JSONL already holds the e… Shipped in: specs/052-backlog-zero (verified). - BL-20260810-03 — feature, high — (resolved 2026-09-06): Added backend/tests/ingestion/test_hitl_gate_flag.py (6 tests) covering the audited ENABLE_HUMAN_APPROVAL_GATES gate — the one shipped deliverable with no test. Fixtures stub the graph writer (get_neo4j_driver/commit_extraction/densify_*), capture provenance.log_event, and record IngestionScout._quarantine, so nothing touches Neo4j, Celery or the filesystem. Shipped in: specs/052-backlog-zero (remediated).
- BL-20260803-02 — feature, med — (resolved 2026-09-06): Closed the three gaps.
RetrievalCoveragegainsdate_earliest/date_latest, computed inGraphRAGRetriever.__call__from passagedecided_atand rendered innote()(single date reads as a date, not a range).RetrievalStatsgains the same two fields, threaded through the retrieve node'sretrieval_coveragestate and theinvoke()mapping intoIRACOutput.retrieval. Shipped in: specs/052-backlog-zero (verified). - BL-20260903-10 — feature, high — (resolved 2026-09-05): Every part of the ask is shipped by spec 049 (all 13 tasks
[x]in specs/049-lsat-synthesis-engine/tasks.md; commit c293466 #97). (1) Formal skeletons: backend/law_ai/lsat/synth/schemas.py:115Blueprint(premises/choices/space), :335ConditionalChain, :514QuantifierCombination, :576AssumptionSchema, :737SequencingGame, :842GroupingGame, :911CausalSchema, registry `_REGI… Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260903-11 — feature, med — (resolved 2026-09-05): Domain packs with no logic exist and skeletons carry no words. backend/law_ai/lsat/synth/lexicon.py:1-11 module docstring: 'Domain packs — the swappable surface, with no logic in it … contains no premises, no inferences and no answer keys … logic never sees a pack, and a pack never sees a statement'. Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260903-12 — feature, med — (resolved 2026-09-05): The bounded, default-off, audited direct-write path for logically-proved items exists. backend/law_ai/lsat/synth/promote.py:1-25 docstring names the constitution §5 exemption and lists the five gates;
_check_gate:64-92 enforces (1)proof_kind == 'logical'only (:65-70, structural refused), (2)LSAT_SYNTH_AUTOPROMOTEmust be truthy (:71-75), (3) re-verification by regenerating from provenance rather than trusti… Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260903-01 — feature, high — (resolved 2026-09-05): Shipped by spec 048 (specs/048-lsat-knowledge-library/spec.md:4 'Status: shipped', :7 names BL-20260903-01..04). Long-form corpus: 35 markdown articles under backend/law_ai/lsat/services/data/library/ (lsat-exam-architecture.md, lr/lg/rc/writing-section-guide.md, lr-assumption-family.md etc., blind-review-method.md, pacing-and-time-management.md). Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260903-02 — feature, high — (resolved 2026-09-05): Platform reading surface: frontend/components/LsatLibrary.tsx header :7-8 'contents rail (search, filters, tracks, article list), the article, and an on-this-page outline'; search box :567-570 + debounced searchLsatLibrary :277-289; tracks (curated reading order) :134,172-186,358-376; outline :464-487; cross-reference cards (taughtIn/related) :1556-1602,1663-1707; responsive column folding :25,506-519. Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260903-03 — feature, med — (resolved 2026-09-05): Deterministic audit:
library_audit()library.py:1259 with THIN_ARTICLE_WORDS :85 and STALE_AFTER_DAYS :90 thresholds, exposed model-free at GET /api/lsat/library/health (urls.py:522-529, 'No model call'); tests backend/tests/lsat/test_library_audit.py. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260903-04 — feature, med — (resolved 2026-09-05): Article -> concept: Article.concepts frontmatter (library.py:259) validated against load_concepts (:938-943, :1014-1030). Concept -> article (the missing inverse):
articles_teaching(concept_id)library.py:1133, returned astaught_inby GET /api/lsat/concepts/(urls.py:155-161, comment cites 'Spec 048 FR-7: the inverse of Article.concepts'). Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260830-12 — feature, low — (resolved 2026-09-05): Shipped by spec 046 (commit 255777e 'ship the solving aids to the published site'). lsat-static/components/solve/SolveAssist.tsx:81 exports
SolveAssist({questionId, graded})reading guides from the bundle viaguideFor; Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260831-16 — feature, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260829-01, which carries the work. Same ask as the older, still-open BL-20260829-01 (BACKLOG.md:104: wire remaining-question pacing into LSAT Lab's timer via bank size or remaining ungraded RC/LG items); this item says so itself ('carries BL-20260829-01'). Deduped in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260831-17 — feature, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260905-10, which carries the work. Premise still true and blocked on accounts: frontend/lib/settings/catalog.ts:44-49
lsatTimerDockhassettableAt: INSTANCE_ONLY; frontend/lib/settings/define.ts:27 defines onlyINSTANCE_ONLY: ScopeType[] = ['instance']and nouserscope is used anywhere under frontend/lib/settings; catalog.ts:130 states 'Only the instance scope is live (spec 036 NG3)'; Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260830-05 — feature, low — (resolved 2026-09-05 · obsolete): The target is dead code slated for deletion. frontend/components/NavBar.tsx:3-9 carries a
ux-audit: exempt — superseded dead codeheader stating nothing imports it since the spec 040 shell (components/shell/) replaced it; grep confirms zero importers. The brand-mark half of the ask is already fixed: NavBar.tsx:38 rendersLA, notLG. Wontfix (obsolete) in: backlog-zero triage (specs/052-backlog-zero). - BL-20260815-03 — tech-debt, med — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260511-06, which carries the work. Stub is still real:
backend/law_ai/agents_runtime/crews/precedent_hunter.py:53-65returnsprecedents=[],confidence=0.0,degraded=Truewith the comment "Real Cypher + vector search is not implemented yet"; it is still wired into the API atbackend/law_ai/analysis/urls.py:136,175and the registry (agents_runtime/registry.py:30). Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260811-08 — feature, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260810-16, which carries the work. BL-20260810-16 (BACKLOG.md:154, inside the Open section which spans lines 25-277) asks for exactly this: 'render engine state distinctly: use irac.degraded + the [ENGINE UNAVAILABLE] marker to show local LLM offline — start Ollama guidance instead of presenting a degraded refusal like a normal result'. BL-08's own text says it 'pairs with BL-20260810-16'. Deduped in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260810-14 — refactor, med — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260810-05, which carries the work. Same work as BL-20260810-05 (both from the same audit window, both ask to move tutor/LSATContentAuthor/factory executors onto one shared retry-wrapped transport and reconcile with PR #19). Its named target is superseded:
agents_runtime.llm.build_chat_ollama/generate_text_sync(backend/law_ai/agents_runtime/llm.py:69-172) have ZERO production callers (grep over backend/law_ai excluding tests returns nothing; Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260716-12 — test-gap, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260831-18, which carries the work. Same work as BL-20260831-18 (BACKLOG.md:79: 'lsat-static has no test runner at all... Add Vitest + RTL there, starting with the QuestionCard radiogroup keyboard pattern'). Verified still open: lsat-static/package.json has no test script and no vitest/testing-library devDependency;
find lsat-static -name '*.test.*'returns nothing; frontend/vitest.config.* and frontend/package.json do not reference lsat-static; Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260716-01 — refactor, med — (resolved 2026-09-05 · obsolete): PR #19 is CLOSED, not merged (gh pr view 19: state=CLOSED, closedAt 2026-08-15, mergedAt null;
git merge-base --is-ancestor origin/claude/framework-ai-integration-plan-coys8t main-> NOT_MERGED). The closing comment states the branch targetsbackend/lawgraph/…, a package path renamed tolaw_aiin #45, so a rebase would graft an orphan tree. Wontfix (obsolete) in: backlog-zero triage (specs/052-backlog-zero). - BL-20260615-01 — refactor, low — (resolved 2026-09-05 · obsolete): The 'dev-time Claude Code gate' the item wants to generalize no longer exists. docs/claude-code-dev-llm.md:5 'No gate exists anymore … repealed by spec 034'; :57 and :112 'LSAT_LLM_PROVIDER … no code path reads it today … vestigial'. backend/law_ai/core/claude_code.py:126-133
is_selected()is the only reader of LSAT_LLM_PROVIDER and has zero callers (grep of backend/ excluding .venv returns none); Wontfix (obsolete) in: backlog-zero triage (specs/052-backlog-zero). - BL-20260606-03 — feature, low — (resolved 2026-09-05): The bank is far beyond 20 questions. backend/law_ai/lsat/services/data/lr_bank.json has 81 items, rc_bank.json 43, lg_bank.json 24 (148 total; parsed via the 'items' key the loader in backend/law_ai/lsat/services/bank.py reads). passages.json holds 13 passage/game contexts (8 RC passages, 5 LG games); concepts.json holds 52 concepts; plus 35 library articles under backend/law_ai/lsat/services/data/library/. Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260602-05 — feature, low — (resolved 2026-09-05 · obsolete): The premise (agent_step events arrive together after asyncio.gather completes) is no longer true. backend/law_ai/analysis/urls.py:148-171 defines
_run_step, which awaits one agent and emits itsagent_stepevent immediately as that agent finishes, and :173-176 wraps both agents in_run_stepinside the gather; the docstring at :153-156 explicitly says the old batch-after-gather behaviour was replaced. Wontfix (obsolete) in: backlog-zero triage (specs/052-backlog-zero). - BL-20260602-06 — feature, low — (resolved 2026-09-05): Frontend live trace wired to the agent WebSocket is shipped. frontend/lib/agentStream.ts:14 defines the
agent_stepevent type, :53 builds${base}/ws/agents/${streamId}, :71 opens the WebSocket (openAgentStream). frontend/components/AnalysisStudio.tsx:117 holdsliveStepsstate, :127-140 subscribes before POSTing and appends eachagent_stepas it lands, :144-150 passesstream_idto runAnalysis; Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260429-07 — doc-gap, low — (resolved 2026-09-05): docs/api.md was never created; the repo's API reference is docs/api-examples.md, whose
## Healthsection (docs/api-examples.md:8-26) documentsGET /health(no auth, mounted at/healthand/health/, container healthcheck) with the full JSON contract{status, service, version, last_ingest_at}and thelast_ingest_atnull semantics ('null when Neo4j is unreachable or has no ingested nodes yet'). Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260510-01 — test-gap, med — (resolved 2026-09-05): Every part of the ask is now covered by backend/tests/agents/graphs/test_topic_frontier.py:465-520 (
test_requires_human_approval_produces_pending_review_row, added in commit 2345be2, which cites BL-20260510-01 by id at :471 and :495). (1) Integration test:@pytest.mark.integration+@pytest.mark.django_db(transaction=True)at :479-480. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260511-12 — feature, med — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260811-11, which carries the work. backend/law_ai/eval/scoring.py:80-121 score_response() still only does normalised exact match, prefix match, first-word match, and closed-vocab label extraction (_LABEL_VOCAB lines 29-41); no BM25 / recall / entailment code anywhere under backend/law_ai/eval/. The ask is not done. Deduped in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260511-13 — infra, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260811-09, which carries the work. Makefile:173-188 has only test-legalbench, test-legalbench-gate, legalbench-baseline — no legalbench-cache target;
git log -S legalbench-cachereturns nothing beyond the spec-018 commit that wrote the backlog bullet. scripts/ has no fetch_legalbench.py (ls scripts/: backlog_lint.py evolve_audit.py next_backlog_id.py pick_backlog_item.py spec_validator.py ux_audit.py). Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260511-24 — doc-gap, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260811-10, which carries the work.
backend/var/legalbench/baseline.jsondoes not exist (only.gitkeep,LICENSES.md, and an untrackedhistory.jsonl;git ls-files backend/varconfirms).docs/legalbench.md:55-59explicitly says 'There is no static baseline checked in yet — every run today is stub-backed' and names this item together withBL-20260811-10as the tracking items, blocked onBL-20260811-09(cache the real dataset; Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260511-25 — doc-gap, low — (resolved 2026-09-05):
backend/var/legalbench/LICENSES.mdexists and is tracked (git ls-fileslists it; first committed in 7b3a7be 'feat(autonomy): implement spec 018 autonomous framework (T-001–T-012)'). It records the CC BY 4.0 dataset licence + MIT wrapper licence + Guha et al. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260904-08 — feature, low — (resolved 2026-09-05 · consolidated): Duplicate of BL-20260811-20, which carries the work. The gap is real but not xAI-specific: backend/law_ai/core/xai.py:95 and backend/law_ai/core/llm/providers.py:191 both send
"stream": False;grep -rn '_astream\|def .*stream' backend/law_ai/core/llm/ backend/law_ai/core/claude_code.py backend/law_ai/core/xai.pyfinds nothing —ChatProviderChainin backend/law_ai/core/llm/langchain.py has only_agenerate(:137) and_generate(:157). Deduped in: backlog-zero triage (specs/052-backlog-zero). - BL-20260830-10 — feature, high — (resolved 2026-09-05): Spec 045 status 'shipped' (specs/045-lsat-solving-aids/spec.md:4); all 13 tasks [x] in specs/045-lsat-solving-aids/tasks.md; landed in d6d90bf (#91). Progressive hint system: backend/law_ai/lsat/services/guides.py:133 SolveStep (kind orient/inventory/symbolize/diagram/infer/eliminate/answer, spoiler flag) and :147 SolveGuide; Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260817-06 — infra, med — (resolved 2026-09-05): Spec 037 status 'shipped' (specs/037-gitfactory-orchestration/spec.md:4); T-001..T-003 all [x] in specs/037-gitfactory-orchestration/tasks.md; landed in b5fba0b (#83). Three compiled lines exist: .factory/{evolve-pilot,backlog-triage,issue-concierge}.blueprint.json plus operating prompts .factory/prompts/{evolve-pilot,backlog-triage,issue-concierge}.md, and generated workflows .github/workflows/factory--{evolve-pilot… Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260810-02 — feature, med — (resolved 2026-09-05): Coverage envelope: frontend/components/AnalysisStudio.tsx:326-347 renders a 'Corpus coverage' section from result.irac.retrieval (coverage_note or result_count, plus searched queries); typed in frontend/lib/api.ts:33-41 (RetrievalStats incl. coverage_note, jurisdiction_absent) and :62 (irac.retrieval). Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260811-13 — feature, med — (resolved 2026-09-05): frontend/components/AnalysisStudio.tsx:125-140: submit() creates a streamId and awaits openAgentStream(streamId, cb) BEFORE runAnalysis, appending each
agent_stepevent to liveSteps state; a thrown socket error sets socket=null. :143-150 runAnalysis is called regardless and only includesstream_idwhen the socket connected, so the REST response stays authoritative; :155 closes the socket in finally. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260810-09 — infra, med — (resolved 2026-09-05): .devcontainer/devcontainer.json exists and implements the ask: dockerComposeFile ../docker-compose.yml, service 'backend', workspaceFolder /app, overrideCommand true, shutdownAction stopCompose; sanctioned extensions only (python/pylance/debugpy/black/ruff/mypy + copilot + claude-code, matching .vscode/extensions.json's policy); Verified in: backlog-zero triage (specs/052-backlog-zero).
- BL-20260810-12 — infra, low — (resolved 2026-09-05): specs/032-deliverable-agent-streaming/tasks.md: 7/7 tasks [x]. Healthcheck gates on model presence: docker-compose.yml:207-215
test: /scripts/ollama-healthcheck.sh(comment cites BL-20260810-12); backend/scripts/ollama-healthcheck.sh:15-31 checksollama listresponds AND greps the gate model (first entry of $OLLAMA_BOOTSTRAP_MODELS, or its:latestform), else exit 1. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260810-06 — feature, med — (resolved 2026-09-05): specs/032 tasks 7/7 [x]. Client-chosen stream_id: backend/law_ai/analysis/urls.py:49
stream_idrequest field, :146stream_key = req.stream_id or analysis_id; consumer docstring consumers.py:7-9 documents subscribe-then-POST. Steps emitted DURING the run: analysis/urls.py:149-176_run_stepawaits each agent and calls_emit_ws_event(..., type='agent_step')inside theasyncio.gather, not after completion. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260810-11 — feature, med — (resolved 2026-09-05): specs/030-safety-guardrails/tasks.md: 6/6 [x]. Throttle scope configured: backend/law_ai/settings/base.py:335-340 DEFAULT_THROTTLE_RATES
"llm": env("LLM_THROTTLE_RATE", default="20/min")(env-overridable), comment states only thellmscope is applied. Applied to /api/analysis: backend/law_ai/analysis/urls.py:20 import, :259class AnalysisView(APIView), :264-265 `throttle_classes=[ScopedRateThrottle]; Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260810-07 — feature, high — (resolved 2026-09-05): Spec 030 tasks.md T-001..T-006 all [x] (specs/030-safety-guardrails/tasks.md:5-27). Disclaimer component: frontend/components/LegalDisclaimer.tsx:14-37 (LegalDisclaimerBanner, 'Not legal advice' + attorney-client caveat) and :39-62 (LegalDisclaimerFooter). Persistent on every main-app page: frontend/components/shell/AppShell.tsx:3,309 mounts the footer inside
for all routes. Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260810-01 — feature, high — (resolved 2026-09-05): Spec 028 tasks.md T-001..T-007 all [x] (specs/028-real-graphrag-retrieval/tasks.md:5-31). Real retriever: backend/law_ai/agents_runtime/tools/graph_rag.py:229 class GraphRAGRetriever; fulltext over :Case via db.index.fulltext.queryNodes (:45-51, index case_text_fulltext) with jurisdiction filter (:93
$jurisdiction = '' OR toLower(node.jurisdiction_code)=..., :341-348 court prefix for cases); Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260429-09 — feature, med — (resolved 2026-09-05): The ask (periodic CI job running scripts/backlog_lint.py plus an LLM pass flagging stale >60-day items) exists as the GitFactory line .github/workflows/factory--backlog-triage.yml: scheduled monthly (
cron: 0 9 1 * *, :11-12) plus workflow_dispatch with dry-run/apply (:5-9); runspython3 scripts/spec_validator.pyandpython3 scripts/backlog_lint.py(:66-67, also granted in allowedTools :74); Verified in: backlog-zero triage (specs/052-backlog-zero). - BL-20260904-01 — feature, high — (resolved 2026-09-04): The xAI OAuth flow the amendment assumed but could not name turned out to be public — Kilo Code's
packages/opencode/src/plugin/xai.tsimplements it againstauth.x.aiwith the Grok-CLI desktop client. Ported aslaw_ai.core.xai_oauth(RFC 8628 device code primary, loopback PKCE opt-in, flock-guarded rotation) +law_ai.core.xai+XaiProvider. Shipped in: specs/050-xai-oauth-provider. - BL-20260904-02 — infra, med — (resolved 2026-09-04): Default
LLM_PROVIDER_CHAINflipped toclaude_code,anthropic_api,xai,ollamainsettings/base.pyandrouter.DEFAULT_CHAIN, with the chain listings refreshed across README, PRD, AGENTS, CLAUDE, AO-SDLC guide, architecture, security, local-ai and the Copilot instructions. Shipped in: specs/050-xai-oauth-provider. - BL-20260830-11 — feature, med — (resolved 2026-08-30): Batch guide drafting shipped as
manage.py lsat_guide_backfill(spec 045 T-011): iterates guide-less questions minus pending guide proposals, runsLSATSolveGuideAuthorper question into the HITL queue,--section/--limitbudget cap/--dry-run/--include-degraded; hand-authored seed coverage simultaneously raised 9 → 40 guides (all 19 LG, 16 LR, 5 RC). Shipped in: specs/045-lsat-solving-aids. - BL-20260831-04 — feature, low — (resolved 2026-08-31): The static export has a skip link, one
contentinfolandmark, and consumes the shared primitives via the mirroredfrontend/ui/base.css(gated byux_audit.pyR12). The audit now covers both front ends and their stylesheets. Shipped in: specs/044-static-site-ux-parity. - BL-20260830-09 — feature, low — (resolved 2026-08-31): ⌘K command palette over the module catalog and the shell's layout actions, generated from
MODULE_CATALOGwith alias-aware ranking and listbox semantics, so registering a module is the only edit needed to make it reachable. Shipped in: specs/041-shell-navigation-scroll. - BL-20260830-03 — doc-gap, low — (resolved 2026-08-31): Homepage STACK copy now names Django 5 / Next 16 and the Claude→Ollama provider chain, and the hero chip links to the repository instead of github.com. Shipped in: specs/041-shell-navigation-scroll.
- BL-20260830-06 — tech-debt, low — (resolved 2026-08-31): The homepage's marketing footer became a labelled
<nav>and the UPLLegalDisclaimerFootermoved inside the shell's scroll region, so the page renders onecontentinfolandmark instead of two. Shipped in: specs/041-shell-navigation-scroll. - BL-20260702-09 — feature, low — (resolved 2026-08-29): 35-minute section timer with Start/Pause/Reset, per-question elapsed clock, and remaining-time-per-question pacing on the static drill; same timer on LSAT Lab (pacing for Lab remaining-count is BL-20260829-01). Time expiry is announced but does not lock answering. Shipped in: LSAT practice timer (specs/025 NG5).
- BL-20260817-07 — infra, low — (resolved 2026-08-18): gitorio shipped the
checksconfig onagent.claude(each declared command compiles to exactly its ownBash(<cmd>:*)grant + a VERIFY obligation); evolve-pilot and backlog-triage regenerated with the two stdlib validators granted, prompts updated. Shipped in: gitorio specs/003-verification-grant. - BL-20260818-01 — infra, med — (resolved 2026-08-18): gitorio-hardened gates backported — stage-aware spec_validator, CI-effective append-only lint (
BACKLOG_LINT_BASE=HEAD^1), evolve_audit dedup/insert/provenance fixes, evolve.yml pipefail + captured audit output, cwd-safe gate hook, picker/id-minter promoted to main. Shipped in: specs/038-framework-hardening. - BL-20260429-08 — infra, low — (resolved 2026-07-16): Core-dependency move done —
blackstonenow lives in[project.optional-dependencies].nlpinbackend/pyproject.toml, so default CI installs no longer pull it. Feature-flag gating is moot until NER is reintroduced (tracked by BL-20260429-03). Verified in: repo-maintenance triage. Correction (2026-09-06): thenlpextra no longer carriesblackstoneat all — it pinsspacy==2.1.8against this project'sspacy>=3.8, publishes no Python 3.12 wheels, and has been unmaintained upstream since 2024-07, so it was dropped rather than moved. The extra now carries only theen_core_web_smwheel. - BL-20260430-10 — doc-gap, low — (resolved 2026-07-16):
docs/security.mddocuments the API-key model, per-router fallback table, rotation procedure, and theseed_api_keysrunbook. Shipped in: specs/009 / docs/security.md. - BL-20260430-13 — doc-gap, low — (resolved 2026-07-16): Per-router fallback chain (
<ROUTER>_API_KEY→AGENT_API_KEY) documented with a route→settings table indocs/security.md, which states "Closes BL-20260430-13". Shipped in: docs/security.md. - BL-20260502-05 — feature, low — (resolved 2026-07-16):
phoenix_trace_url+langgraph_thread_idare surfaced as UI deep-links inAnalysisStudio.tsx(176-197), typed infrontend/lib/api.ts. Delivered in AnalysisStudio rather than the originally-named AgentTrace.tsx. Shipped in: specs/007-analysis-studio. - BL-20260429-15 — feature, med — (resolved 2026-07-16 · consolidated): Duplicate of BL-20260503-10 (Django admin approve/reject/re-extract actions +
core.tasks), whose text records "Resolves overlap with BL-20260429-15". Tracking consolidated there; both remain unbuilt. Deduped in: repo-maintenance triage. - BL-20260430-09 — feature, med — (resolved 2026-07-16 · consolidated): Duplicate of BL-20260503-12 (
django-ratelimitkeyed onkey_hash), whose text records "Resolves overlap with BL-20260430-09". Tracking consolidated there; both remain unbuilt. Deduped in: repo-maintenance triage. - BL-20260429-17 — infra, low — (resolved 2026-07-16 · obsolete): The target module
app.db.postgreswas removed in the FastAPI→Django migration; HITL writes now go through the Django ORM, so a rawasyncpg.Poolthere no longer applies (the remaining+asyncpgreferences are only SQLAlchemy URL dialect strings). Wontfix (obsolete) in: repo-maintenance triage. - BL-20260503-09 — feature, med — (resolved 2026-06-02): Wired
_emit_ws_eventhelper into_run_analysis; emitsagent_step:LegalAnalyst,agent_step:PrecedentHunter, andcompleteevents to theagent-run-{analysis_id}channel group afterasyncio.gatherreturns. Fire-and-forget: Redis failure is non-fatal. Two new unit tests:test_agent_ws_events_emitted(AC-1) andtest_agent_ws_events_resilient_to_channel_layer_failure(AC-2). Coverage 81.73%, lint clean. Shipped in: specs/022-agent-ws-streaming. - BL-20260429-24 — feature, med — (resolved 2026-06-02): WS-streaming half resolved by BL-20260503-09 / specs/022-agent-ws-streaming. SSE variant remains as a follow-up (see spec 022 §13). Surfaced in: specs/007-analysis-studio.
- BL-20260511-30 — feature, high — (resolved 2026-06-02): Verified and tested
force_quarantine=Truepropagation fromTopicFrontier._node_dispatchthrough_dispatch_targettoIngestionScout.run_and_commit. Implementation confirmed attopic_frontier.py:345andscout.py:134. Two new unit tests added:test_force_quarantine_passed_when_adapter_requires_approval(AC-1) andtest_force_quarantine_routes_high_confidence_to_hitl(AC-2). Follow-ups BL-20260602-01, BL-20260602-02 queued in Open. Shipped in: specs/020-enforce-hitl-quarantine. - BL-20260429-01 — test-gap, med — (resolved 2026-05-08): Shipped via specs/013-ingestion-integration-tests. Added
@pytest.mark.integrationtest suite (tests/ingestion/test_scout_integration.py): 3 tests covering idempotency (AC-3), high-confidence Neo4j commit with CITES edges (AC-4), and low-confidence Postgres quarantine routing (AC-5). Docker health checks added todocker-compose.yml,make test-integrationtarget, and GitHub Actions workflow.github/workflows/integration-tests.ymlwith path-based skip for docs/frontend-only PRs. Surfaced in: specs/001-ingest-courtlistener-opinions. - BL-20260430-08 — feature, high — Extended
require_api_keyinto amake_api_key_dep(*setting_names)factory and gated/api/analysis,/api/graph/*,/api/lsat/*with per-router keys (ANALYSIS_API_KEY,GRAPH_API_KEY,LSAT_API_KEY) that fall back toAGENT_API_KEY. Frontend consolidated ontoapiFetchso a singleNEXT_PUBLIC_AGENT_API_KEYcovers every gated call. 11 new tests, backend coverage 90.55%. Shipped in: specs/009-extend-api-auth. - BL-20260429-13 — feature, high — Added shared API-key auth (
X-API-Key+secrets.compare_digest) gating/api/agents/*. Default-open posture preserved whenAGENT_API_KEYis unset; startup warning logged outsideENVIRONMENT=development. Shipped in: specs/008-agent-api-auth (extended in 009). - BL-20260430-05 — refactor, med — Replaced GraphViewer.tsx Cytoscape stub with a real dynamically-imported Cytoscape canvas wired to
/api/graph/neighborhood. Shipped in: specs/006-knowledge-graph. - BL-20260429-02 — refactor, med — Converted
IngestionScout._quarantineand_quarantine_postgresto native async (no moreasyncio.runinside the async ingestion loop). HITL items now reach Postgres in production; JSONL becomes a true failure-only fallback. scout.py coverage 81.60% → 90.57%. Shipped in: specs/004-async-quarantine-postgres. - BL-20260430-02 — refactor, med — Replaced TODO in backend/law_ai/main.py by mounting the new
/api/agentsrouter (registry, runs, backlog, specs). Shipped in: specs/003-agent-ops-dashboard. - BL-20260429-05 — feature, high — Resolved citations to existing
Casenodes viaapp.db.citation_resolver(spec 002, 6 unit tests, 79.51% coverage). Shipped in: specs/002-resolve-citations-to-cases. - BL-20260509-01 — infra, high — (resolved 2026-05-11): Fixed
backend/scripts/init-db.sh— correctedNEO4J_MIGRATIONSpath fromapp/db/neo4j_migrationstolaw_ai/core/neo4j/migrations; removed deadpsqlPostgres loop; replaced withpython manage.py migrate --noinput; addednullglob-based warning when no Cypher files found. Three new assertions added totests/test_configs.py(syntax check, stale-path absence, Django-delegate presence). Shipped in: specs/017-fix-init-db-sh. - BL-20260511-28 — feature, high — (resolved 2026-05-11): Shipped specs/018-autonomous-framework (T-001–T-012). Delivered: ADR 0003 + constitution §12 (6 invariants I1–I6), LegalBench harness (21 tests), coverage_audit + evolve_audit wiring, TestSynthesizer CrewAI crew, nightly-tests.yml workflow, SOURCE_REGISTRY + 3 adapters, core.autonomy kill-switch, run_autonomy management command + Celery beat, TopicFrontier LangGraph (16 tests), compose_digest daily digest, documentation refresh across 4 docs files. 252 unit tests passing; lint clean. Follow-ups BL-20260511-03 through BL-20260511-27 queued in Open. Claimed from: BL-20260429-09, BL-20260502-04, BL-20260509-04.
-
BL-20260511-32 — doc-gap, low — (resolved 2026-06-02): Renumbered from a duplicate
BL-20260511-01(it collided with the spec-017 follow-up of the same id). The referenced doc was never missing — it exists as lowercasedocs/ao-sdlc.md; the real defect was case-mismatched links (docs/AO-SDLC.md/docs/AO-SDLC-guide.md) that 404 on case-sensitive filesystems (Linux/CI). Fixed all 7 occurrences + the latentdocs/AO-SDLC.mdentry intests/test_docs.py, addedtest_no_case_mismatched_doc_links, and gated the root structural suite in CI. Shipped in: specs/021-fix-ao-sdlc-doc-links. -
BL-20260429-10 — test-gap, med — (resolved 2026-05-26): Shipped via specs/014-densify-extraction-integration-tests. Added
backend/tests/db/test_citation_resolver_integration.pywith three@pytest.mark.integrationtests: alias-match, idempotency, and no-match-returns-None. Reuses spec-013 fixtures (neo4j_integration_driver,clean_neo4j_db). Surfaced in: specs/002-resolve-citations-to-cases. - BL-20260429-21 — test-gap, med —
Docker-backed integration test for(resolved 2026-06-15): addedapp.db.graph_queries.neighborhoodagainst a real Neo4j; mirrors BL-20260429-10.backend/tests/db/test_graph_queries_integration.py— 4@pytest.mark.integrationtests against live Neo4j (full 1-hop neighborhood with edge-direction + node-type assertions, unknown-root→empty, isolated-root→no-edges, and the[0..$limit]slice that the hermeticFakeAsyncSessionunit test can't exercise), mirroring the BL-20260429-10 pattern (neo4j_integration_driver+clean_neo4j_db). The path drifted from the pre-Djangoapp.db.graph_queriestolaw_ai.core.neo4j.graph_queriesin spec 011. Also fixed the integration harness so it runs Docker-first (previouslymake test-integrationerrored in-container):docker_servicesnow no-ops when thedockerCLI is absent (orchestrator owns lifecycle),neo4j_integration_driver/postgres_integration_poolread their endpoints from env, and thetest-integrationmake target passes--no-cov(the subset can't meet the repo-wide 75% floor). All 11-m integrationtests now pass in-container; unblocks BL-20260511-26. Surfaced in: specs/006-knowledge-graph. - BL-20260429-20 — feature, low — (resolved 2026-06-18, triage-verified): Reading Comprehension + Logic Games question types shipped — the
Section/typeenum isLR|RC|LG(bank.py:22,70), withrc_bank.json(9 items) +lg_bank.json(5 items) loaded byload_bank()(bank.py:161), aPassageContextmodel for RC passages / LG setups (bank.py:42-64), per-section serving, and test coverage. Original ask: add RC + LG question types to LSAT Lab. Surfaced in: specs/005-lsat-lab. - BL-20260429-14 — feature, med — (resolved 2026-06-18, triage-verified): Single-run drill-down
/agents/runs/{trace_id}shipped —AgentRunDetailView(agentsapi/urls.py:210-221,360) returns all events for a trace;RunDetailModal(AgentDashboard.tsx:1310-1445) renders full input/output, sources, model, latency, confidence, and per-eventprompt_version. Surfaced in: specs/003-agent-ops-dashboard. - BL-20260503-11 — feature, low — (resolved 2026-06-18, triage-verified — same deliverable as BL-20260429-14): the trace-joined single-run view shipped (
AgentRunDetailView+RunDetailModal). Implementation reads the JSONL audit store (audit_store.by_trace) rather than theaudit.AuditEventORM named in this bullet, but the user-facing view exists. Surfaced in: specs/011-django-backend. - BL-20260503-15 — refactor, low — (resolved 2026-06-18, triage-verified, med-confidence): no raw
asyncpgcalls remain outside the LangGraph checkpointer — scout.py's inline path was removed under BL-20260503-20 and the Django ORM uses the psycopg connection config (settings/base.py:221); the only remainingasyncpgreference is the checkpointer URL, which this item explicitly excludes. Surfaced in: specs/011-django-backend implementation. - BL-20260511-10 — feature, med — (resolved 2026-06-18, triage-verified):
_run_corpus_growthnow wiresrun_autonomy --kind corpus_growthtoTopicFrontier.run()(run_autonomy.py:208-232,asyncio.run(tf.run())); the stub is gone and it's covered bytest_run_autonomy.py:100-124. Surfaced in: specs/018-autonomous-framework. - BL-20260511-20 — feature, med — (resolved 2026-06-18, triage-verified — same work as BL-20260511-10): corpus_growth →
TopicFrontier.run()implemented atrun_autonomy.py:208-232. Surfaced in: specs/018-autonomous-framework. - BL-20260511-27 — feature, med — (resolved 2026-06-18, triage-verified — same work as BL-20260511-10/-20): corpus_growth →
TopicFrontier.run()implemented and tested. Surfaced in: specs/018-autonomous-framework. - BL-20260511-16 — feature, med — (resolved 2026-06-18, triage-verified):
_run_test_pillarinvokesTestSynthesizerfor the under-threshold modules fromcoverage_audit(run_autonomy.py:163-205); the nightly workflow runs it viamake autonomy-run KIND=test_pillar(.github/workflows/nightly-tests.yml:108-110). Stub replaced. Surfaced in: specs/018-autonomous-framework. - BL-20260430-01 — refactor, med — (obsolete 2026-06-18, triage-verified): the referenced file
backend/law_ai/main.py(FastAPI entrypoint) was removed in the spec-011 FastAPI→Django migration;manage.pyis now the entrypoint and the "Initialize Neo4j, Postgres, Redis, Ollama clients" TODO no longer exists anywhere in the tree. Surfaced in: TODO sweep. - BL-20260430-03 — refactor, med — (wontfix 2026-06-18 — superseded by BL-20260511-06): real GraphRAG retrieval + LLM call for LegalAnalyst. The TODO remains at
legal_analyst.py:206(legacy mock path), but the substantive work is consolidated into the actively-tracked BL-20260511-06; this duplicate tracker is retired. Surfaced in: TODO sweep. - BL-20260430-04 — refactor, med — (wontfix 2026-06-18 — superseded by BL-20260511-06): real Cypher + vector search for PrecedentHunter. The TODO remains at
precedent_hunter.py:38(static mock), but the substantive work is consolidated into BL-20260511-06; this duplicate tracker is retired. Surfaced in: TODO sweep. - BL-20260511-22 — feature, low — (wontfix 2026-06-18 — duplicate of still-open BL-20260511-19): post the nightly digest Markdown to
$GITHUB_STEP_SUMMARY. Not yet implemented; tracked solely under BL-20260511-19 to avoid a triple entry. Surfaced in: specs/018-autonomous-framework. - BL-20260511-01 — infra, med — (wontfix 2026-06-18 — duplicate of still-open BL-20260509-02): real Cypher migration runner recording
(:_Migration {id}). Not yet implemented; tracked solely under BL-20260509-02. Surfaced in: specs/017-fix-init-db-sh. - BL-20260511-02 — test-gap, low — (wontfix 2026-06-18 — duplicate of still-open BL-20260509-03): docker-backed integration smoke test for the Cypher migrations. Not yet implemented; tracked solely under BL-20260509-03. Surfaced in: specs/017-fix-init-db-sh.
- BL-20260503-16 — doc-gap, med —
Flesh out(resolved 2026-05-05): shipped via specs/012; see Done section. Surfaced in: specs/011-django-backend.docs/security.mdwith the API-token rotation procedure, scope matrix, andseed_api_keysrunbook. - BL-20260503-18 — doc-gap, low —
Author(resolved 2026-05-05): shipped via specs/012; see Done section. Surfaced in: specs/011-django-backend.docs/django-conventions.mdcapturing settings split,settings_proxyusage,acreatediscipline, Channels routing, and Celery task naming patterns. - BL-20260503-19 — infra, high —
Hand-edit(resolved 2026-05-03): migration now wrapslaw_ai/ingestionapp/migrations/0001_initial.pyto useRunSQLwith verbatim DDL fromapp/db/postgres_migrations/{001_pending_review,002_pg_trgm}.sqland astate_operations/database_operationssplit, so live Postgres rows survive cutover.SeparateDatabaseAndState(state_operations=[CreateModel(PendingReview)], database_operations=[RunPython(_create_pending_review)]); on Postgres the RunPython executes the legacy spec-004 DDL withIF NOT EXISTS+ADD COLUMN IF NOT EXISTS reviewed_at/approved+CREATE EXTENSION IF NOT EXISTS pg_trgmso existing rows are adopted in place; on SQLite (test fixture) it falls back to portable DDL. Lock-in tests inbackend/tests/ingestion/test_initial_migration.py. Surfaced in: specs/011-django-backend implementation. - BL-20260503-20 — refactor, med —
Refactor(resolved 2026-05-03):law_ai/ingestionapp/services/scout.pyto delegate quarantine writes to thequarantine_extractionCelery task (currently still uses inline asyncpg + JSONL)._quarantine_postgres(asyncpg) replaced with_quarantine_via_celerythat builds a payload dict and callsquarantine_extraction.delay(...); the Celery task is now the sole writer forPendingReview+AuditEvent; JSONL fallback preserved when dispatch raises. New teststest_low_confidence_routes_to_postgres_when_available,test_quarantine_via_celery_dispatches_with_expected_payload, andtest_scout_no_longer_uses_inline_asyncpgcover the contract. Closes T-011 of spec 011. Surfaced in: specs/011-django-backend implementation. - BL-20260503-21 — test-gap, high —
Re-establish ≥75% backend coverage on the Django app(resolved 2026-05-03): backend at 84.08% (126 tests). Added unit tests foragentsapi.consumers.AgentRunConsumer(Channels),ingestionapp.tasks.quarantine_extraction(Celery), andseed_api_keys+ensure_checkpointermanagement commands. Surfaced in: specs/011-django-backend implementation. - BL-20260503-22 — test-gap, med —
Triage and fix the pre-existing(resolved 2026-05-03):__tests__/components/LsatLab.test.tsxlong-passage assertion failure carried through the Django refactor sonpm test -- --runis fully green again.npm test -- --runis fully green (5 files / 21 tests, including all 5 LsatLab cases). Surfaced in: specs/011-django-backend implementation. - BL-20260503-24 — infra, med —
Wire Django static files for the dockerized stack(resolved 2026-05-03): addedwhitenoisedep +WhiteNoiseMiddleware+CompressedManifestStaticFilesStorage;collectstatic --noinputnow runs in the backend container start command. Surfaced in: specs/011-django-backend container validation. - BL-20260430-06 — doc-gap, low —
Author missing doc docs/legalbench.md.(resolved 2026-05-05): shipped via specs/012; see Done section. - BL-20260502-04 — feature, med — (wontfix 2026-06-18 — superseded by BL-20260511-06): Backfill
LegalAnalyst+PrecedentHunterontoLegalWorkflowonce parity proven on LegalBench. Was claimed-by specs/018 and re-tracked as BL-20260511-06; this administrative duplicate is retired. Surfaced in: specs/010-local-ai-stack. - BL-20260509-04 — test-gap, med — (wontfix 2026-06-18 — superseded by BL-20260511-07): Live-network nightly smoke test that fetches one real Justia CRS title and re-runs the parser to detect upstream HTML drift. Was claimed-by specs/018 and re-tracked as BL-20260511-07; this administrative duplicate is retired. Surfaced in: specs/016-ingest-colorado-statutes.