Repository navigation
feat(orchestrator): renew in the same thread from GitHub and the T3 thread list - #336
bfcarrasco wants to merge 1 commit into
Conversation
…hread list The orchestrator throws its context away after each finished goal and after a compaction (T3 fresh session, or a successor thread where T3 refuses it), then rebuilds its picture from `tracker.mjs board` and `lane.mjs lanes`, which reads its lanes from the T3 thread list by parent and `<owner/repo>#<n>` title. Owner questions live on their issue as a comment plus `ready-for-human`, so a renewal does not ask them again.
|
bstack-judge: UNPROVEN tier=1 missing=T3 Code tools (t3_thread_send with freshContext, t3_thread_list, delegate_task) sha=016544bc10629f27a95701473ea02739ca1f97f2 Owner: the proof could not be run here: T3 Code tools (t3_thread_send with freshContext, t3_thread_list, delegate_task); run the judge on a machine that has it, or give the owner's OK line as the whole PR comment: bstack-user-ok sha=016544bc10629f27a95701473ea02739ca1f97f2. Nothing is asked of the builder. PR 336, head 016544b. Verdict: UNPROVEN. I found no defect, but the T3 behaviour in four criteria could not be run here. Criteria and proof
Tests
Findings
Dropped hypotheses
{"findings":[{"id":"F1","title":"Finished-status set in lane.mjs is unverified; unknown statuses report running:true","reproduction":"echo '{\"currentThreadId\":\"o\",\"threads\":[{\"threadId\":\"a\",\"title\":\"o/r#7 x\",\"status\":\"ready\",\"parentThreadId\":\"o\"}]}' | node plugins/bstack/scripts/lane.mjs lanes","base":"not run","head":"pass","blocks":"no","files":["plugins/bstack/scripts/lane.mjs"]}],"missing":"T3 Code tools (t3_thread_send with freshContext, t3_thread_list, delegate_task) and a live renewal mid-queue with token counts"} |
|
Status: head 016544b. CI is green. The judge returned UNPROVEN only because it has no T3 Code tools. It found no defect; F1 does not block, and its status set matches the |
|
bstack-user-ok sha=016544bc10629f27a95701473ea02739ca1f97f2 |
Request
Closes #326 (spec #318, behaviour 11).
Acceptance criteria:
tracker.mjs boardand the T3 thread list alone.Change
skills/orchestrator/SKILL.md: a Renewal section. The thread sends itself a message witht3_thread_sendandfreshContext: true(T3: "Start a new provider session without the thread's earlier context, like /clear"), carrying no state; a successor thread only where T3 refuses that. After a renewal it readst3_thread_list(settled: false, all projects, subagents) throughlane.mjs lanes, thentracker.mjs boardfor those repos.<owner/repo>#<n> <title>, so a renewal maps a lane to its repo and ticket; a ticket that is claimed or has a running lane gets no second lane.ready-for-human), so the board'sreadyForHumanshows what was asked. Finished lanes nothing waits on are settled, which keeps the thread list small (settled: falsereturned 9 of 2053 threads here).scripts/lane.mjs lanes [<earlier orchestrator thread id>...]: readst3_thread_listpages, keeps threads whose parent is this orchestrator (or the one it replaced), and prints repo, ticket, thread, status,running, the repos and the board's-Rarguments.Proof
node --test "tests/*.test.mjs"andnode tools/check-plugin.mjspass locally;tests/lane.test.mjscovers parent filtering, title parsing, the successor case over several pages, and the CLI.lanesreads (currentThreadId,parentThreadId,status) and thesettledfilter were read from a livet3_thread_listin T3 Code.