Repository navigation
Conversation
…tier template tool Plan docs/plans/2026-11-28-review-loops.md. Found by the first live tier run (living-syllabus shakedown la-brief, 2026-11-28). - Review loop: at supervised/autonomous, frame and write alternate an Opus proposer and an Opus reviewer session (stages review-frame, review-write, skill rf-review). The reviewer records one verdict per round (review_record: accept, or revise with blocking/minor findings); the proposer revises and answers each blocking finding (review_reply). Rounds, finding ids and output fingerprints are computed. Escapes: accept, 5 rounds, no progress, repeated output, budget. An escape with open findings continues at brief/deep (listed in the level statement) and pauses elsewhere (review-disputed) until a human runs 'factory conductor release-review'. A reviewer with no verdict pauses (review-missing). Events review.verdict_recorded, review.reply_recorded, review.released, conductor.review_ended; no table. - Conducted frame: skill rf-frame-conducted (no interview; goal verbatim, seeds only as named), new tool protocol_from_template (tier template, its source and per-source caps enforced, creator as reviewer of record, draft only). - Brief and deep: the frame step's protocol gates do not bind the conductor (TIER_UNBOUND_GATES), as rf-brief and the plan state. - Prompt: a refused read is noted and the run goes on. - STAGE_KEY_RE accepts the reviewer stages (a live start would fail). - Backlog IDEA-145 to 147; MAP regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ep pauses Shakedown la-brief-2 finished all 8 steps with no screened, extracted or written output: - screening was refused (R-16: protocol not ready) because protocol_from_template recorded a draft and nobody can make it ready in a conducted brief. At brief and deep (frame gates unbound) it now records the protocol ready; a later call is an amendment with a reason naming the findings and an effect per changed criterion (semantic is computed). Other tiers still record a draft. - the conductor took a queue step whose runs worked off no unit as done, so every later step completed empty. A queue step that never made progress and has units pending now pauses 'blocked'; --retry runs it again. A run that stops making progress after an earlier one did is still a stopping rule. - rf-review: a source without a query, a goal concept missing from the queries, a missing output and an unsupported sentence are always blocking. rf-frame-conducted: a query on every template source; revisions amend the ready protocol. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er with no search Shakedown la-brief-3: frame amended the arXiv query with from_date (arXiv takes only listed_since); gather's search_run was refused, the session stopped, and the conductor took gather as done, so every later step closed empty. protocol_from_template now runs search.query_issues on each planned query; a gather step that left no search run of purpose 'search' in the conductor run pauses 'blocked'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…OpenAlex filter keys checked Shakedown la-brief-4: the brief screened 390 records against a cap of 40 and spent its 20 runs on screening. _served_works counted only claimed batch tasks; a completed batch fell out, so screen_cap_reached stayed false. It now counts claimed and completed batches. The planned OpenAlex query carried from_year, which OpenAlex answers with 400; search.query_issues now refuses an OpenAlex filter key outside a documented set, naming the accepted keys, so frame fixes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er advance Shakedown la-brief-5 spent its 60-minute budget mostly idle: each conductor advance took 12-19 minutes on a 13k-work corpus. pending_units ran dedup_current, whose title stage compared every pair in a year window in Python (119M pairs, 100-130 s per call), and advance read the pending units several times outside a memo scope. - dedup: titles get their tokens sorted once; rapidfuzz process.extract with fuzz.ratio and the threshold as cutoff returns only the pairs that can merge, visited in the old order. Same merges on the la-brief-5 corpus (1,104), 6 s instead of 100 s. - conductor: advance and conductor_status run inside call_memo.entering; a recorded event drops the memo, so no read is stale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er table name rule) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y brief; dated frame Shakedown la-brief-6 screened the 40 records first in work-id order (year, then title) of a 13k corpus: no ranking ran, so none of the 10 check-set papers in the corpus was screened. - services/lexical_rank: a TF-IDF ranker (standard library), the slot of an embedder in ranking.compute_ranking; the ranking records its model id. - conductor: before the first title/abstract screening run the system ranks the queue once (SPECTER2 when FACTORY_RANKER_MODEL is set, the lexical ranker otherwise); ranked serving and the stopping rule use it. - brief template: arXiv only (OpenAlex keyword search brought 10,990 of 13,719 records, mostly conference applications). - rf-frame-conducted: a goal's start date goes on each arXiv query as listed_since, with the reason in the rationale; when a goal compares primitives, papers that only apply one are excluded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the prompt Shakedown la-brief-8: the write proposer of round 2 never called review_view, found no slot left and stopped, so the loop ended on an unchanged draft. The conductor now passes a revision brief (round, verdict summary, each finding's id, severity, target and text, and that an empty queue does not end the run) through start_run into the built prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sults in the prompt Shakedown la-brief-8: uncapped, the brief extractor copied whole results tables (11 to over 184 rows a work, about 35 minutes for 20 works). extract max_rows_per_work is now an enforced tier cap: a new row past it is rejected with tier-cap-reached, a correction is not a new row. The extract prompt states the cap and asks for the main method against its strongest baseline on its main benchmarks, main results table first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shakedown la-brief-8: the top 40 by seed similarity were 55% includes, so the flat cap of 40 ended screening while check-set works sat at ranks 100-960. The brief now screens in ranked order until 20 consecutive excludes (a ranked batch of 20 with no include), at most 100; acquire takes up to 30 included works (the plan's max_papers); the run budget is 30. A brief ranks with the lexical scorer even when SPECTER2 weights are configured: it put the same check-set works in the top 40 in seconds instead of 10 minutes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…writer and reviewer Adopted from the deep-research comparison (academic-research-skills seed recall and skew check, GPT-Researcher's reviser). The limits section offers stat:prisma:screened, pending and included, so a note can say how much of the search was screened (la-brief-9: the writer could not write '100 of 1811' for want of a stat). rf-write: the limits name every family, setting or seed the question names that has no included work; a revision run works from review_view even when no slot is served. rf-review: at write, a named seed, family or setting neither covered nor named in the limits, or limits silent on screening coverage, is blocking; a skew to one family must be stated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing order Shakedown la-brief-9: the include rate stayed near 50% to rank 100, so no yield rule fired and the ceiling decided coverage while check-set works sat at ranks 203-1,406. A brief now screens every record at title and abstract (no screening cap, no stopping rule), 100 records a run (screen cap units_per_run, enforced through the run's unit cap), within 180 minutes and 60 runs. Acquire's default selection follows the ranking, so a capped fetch reads the best-ranked includes, not the alphabetically first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Stacked on #80. Plan:
docs/plans/2026-11-28-review-loops.md.Why
The first live tier run (shakedown
la-brief, brief, autonomous) stopped in its first step:frameran the interactiverf-frame(interview, quote-back) in a conducted run where nobody answers; its allow-list also lacked the reads the skill calls.ProtocolTemplate.instantiatewas used only in tests).protocol.readyandprotocol.press_confirm(the latter declared by no module, so it never closes), althoughrf-briefand the plan say no protocol gate binds.The researcher also asked for judged outputs to be reviewed in a loop with escapes.
What
review_record(accept / revise with findings),review_reply(addressed / declined per blocking finding),review_view. Platform-numbered rounds and findings; platform fingerprint of the output.review-disputeduntilfactory conductor release-review(a human act). No verdict: pausereview-missing,--retryreruns the reviewer.rf-frame-conducted+protocol_from_template(template sources and per-source caps enforced, creator as reviewer of record, draft only).TIER_UNBOUND_GATES); stated in the level statement.STAGE_KEY_REacceptsreview-frame/review-write(the fake runner hid this).brief newautonomy flag, reviewer of another model family); MAP regenerated.Not in scope: moving the develop step's lead/drafter/critic sessions onto this loop (follow-up); screen/extract keep sampled second passes.
Tests
New:
test_review_loop.py(21),test_tier_protocol.py(4). Updated expectations that encoded the old behaviour:test_conductor.py(frame gate mechanics now exercised with the tier unbinding off; gate examples moved fromwritetogather; Opus for judged stages),test_tiers_walking_skeleton.py(the brief's first human wait is gather's). Locally green: conductor, conductor access, runner, tiers, walking skeleton, tier caps, MCP server/conventions/protocol, skill tool checks, module contract, CLI modules. mypy clean onsrc; ruff clean. Full suite left to CI.🤖 Generated with Claude Code