Repository navigation
refactor(harness): U5 o Assistente na ficha (G4) - #1279
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Nov 23, 2026
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.
Why
G4 do cartão
docs/steps/uma-ficha-por-agente.md: a U5, o Assistente nasce da ficha e da montagem do kit (mountAgent). Nada muda para quem usa; o pedido ao modelo fica igual byte a byte (critérios 11, 4, 17).What changed
assistant.ts:assistantAgente ocontrollerOfviramassistantSpec;new Agent(econtrollerOf(somem do arquivo.instructions.ts: saiassistantInstructions; ficamFIXED,MODEL_BLOCKS,ASSISTANT_OBSERVER. A recusaPROMPT_WITHOUT_CONVERSATIONagora vem antes de ler as ligações e o que a pessoa pode (item 5 da issue 753, como o cartão pede).turn.ts:assistantTurnsviraassistantTurn, oturnda ficha.BY_MODEL,processors {beforePick, afterPick}esubagents(spec.ts,mount.ts,agentDefaults); saem das exportaçõesfixedSystemesessionTurns(knip).Scope
Só
B/assistant/eB/controller-kit/. Um arquivo que o cartão não nomeia:B/assistant/available-tools.ts(AVAILABLE_TOOLS), porqueassistant.tspassava de 300 linhas de código (biomenoExcessiveLinesPerFile). Nenhuma rota, tabela, migração nem tela.Tradeoffs
A mutação à mão do cartão ("
machineUploadsantes da escolha da conta deixafiles.test.tsvermelho") sobrevive, na ficha e na base24b68137: 12 testes passam emfiles.test.ts+request.test.ts, efiles-machine,files-journey,file,file-media,machinetambém (29 passam; a única falha é a de root já na base). Linha de equivalência (decisão do firstmate): a ordem demachineUploadssó mudaprocessInput/processInputStep(a marca da estimativa) eprocessLLMRequest, que roda depois de toda a escolha; nenhum retrato nem teste a observa;spec.test.tsprovabeforePick/afterPickem volta da conta. A frase do cartão se corrige no fechamento (U8), não aqui.Blast Radius
Só o Assistente (e as automações, que são ele): reverter este PR devolve só ele. O critério 4 (
git diff 24b68137 -- builder/*/requests) e o 17 (hub-api,web, migrações, grants, lista de migração) saem vazios.Verification
B/assistant,B/automations,B/controller-kit: 291 de 293 (1 pulado;files-machine"a gravação recusada" falha igual na base, root).npm run check: tudo verde, menoscheck:workflows, que pede Docker (sem daemon aqui; nenhum workflow mudou).subagentsno mount, 11 de 11 vermelhos; semresearchOnly, 6 vermelhos; semBY_MODEL, 3 vermelhos. Evidência:spec.test.ts(BY_MODEL, processors).Generated by Claude Code