senior-dev ends 'unsubmitted' (exit 2) after a passing verification
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
Direção de pesquisa
Start with internal/seniordev/app/solo.go:320-335 and trace how soloCheckUnsubmitted, the nudge cap, verification status, and exit code determine the final outcome. Reproduce with the senior-dev command and the minimal Go repository described in the issue. Done means a passing verification produces exit 0, or a distinct result clearly stating that work passed but was not submitted, with an e2e test covering it.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Seen on: dev 837b2b0.
Behaviour
A headless senior-dev run fixed the code and its verification passed, but the run ended unsubmitted with terminal_trigger: nudge-cap and exit 2. A run whose verification passed on a clean tree should count as done (or say plainly that the model never submitted), not exit as a failure.
Replication
- Build dev 837b2b0 (
git checkout 837b2b0 && make build, binarybin/codeaf), or install the dev build withcurl -fsSL https://agentfield.ai/get/devaf | bash. - Use an isolated profile:
export HOME=$(mktemp -d), exportOPENROUTER_API_KEY, and keep the default model (~deepseek/deepseek-v4-flash-latest, crew on auto). - On a busy machine set
task.max_loadto0(/settings, Tasks) so the busy-machine gate does not hold tasks. - Make a small repo with a failing test:
R=$(mktemp -d) && cd "$R" && git init -q && printf 'package main\n\nfunc main() {}\n' > main.go && printf 'module demo\n\ngo 1.22\n' > go.mod && git add -A && git commit -qm init, add a failing_test.go, commit. codeaf senior-dev --json "make go test ./... pass"; echo exit=$?.- Read the last JSON record:
terminal_trigger, the verification result, exit code.
Evidence
- Last record: verification passed,
unsubmitted,terminal_trigger: "nudge-cap", exit 2. internal/seniordev/app/solo.go:320-335: aftersoloMaxNudgesthe outcome isnudge-capand stageunsubmitted, even whensoloCheckUnsubmittedreturned a passing verification.
Guessed cause
A guess from reading the code, not a confirmed diagnosis. The worker model (a qwen / deepseek mix) never called submit within the nudge cap; a passing verification with a clean tree is not treated as a submission.
Acceptance
- e2e: a senior-dev run whose verification passes ends with exit 0 (or a distinct exit and a line that says the work passed but was not submitted).
Found while writing the public docs; manual text differences are in #1545.
🤖 Generated with Claude Code
- Linguagem predominante
- Go
- Estrelas
- 115
- Forks
- 14
- Merge médio
- 9h 15min
- PRs com merge (30d)
- 467
Preparar o ambiente
Ainda não verificamos os arquivos de configuração deste projeto. Comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Agent-Field/CodeAF
-
area:session bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Agent-Field/CodeAF#1779 ·
Mantenedores costumam responder em até 1 dia
-
tasks: a stopped task's commit is signed with the chat model, not the model that did the workAbertaarea:session bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Agent-Field/CodeAF#1768 ·
Mantenedores costumam responder em até 1 dia
-
area:chat bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Agent-Field/CodeAF#1742 ·
Mantenedores costumam responder em até 1 dia
-
area:build bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1679 ·
Mantenedores costumam responder em até 1 dia
-
area:session bug sev:serious
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Agent-Field/CodeAF#1678 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Agent-Field/CodeAF
Issues semelhantes
-
duplication
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
openvibely/openvibely#1443 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
keyxmakerx/Chronicle#1179 ·
Mantenedores costumam responder em até 1 dia
-
raised-by:worker
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
medici-finance/assay#2486 ·
Mantenedores costumam responder em até 1 dia
-
area/testing kind/bug triage/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
cozystack/cozystack#4841 · 1 reação ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
openimsdk/openim-sdk-core#1127 ·