Problem\nmain.go contains the stageBus contract and fetch-handle-ack loop, obscuring startup composition.\n\n## Scope\nMove stageBus and runMainLoop into a stage-loop concern file without changing ack, nak, retry, cancellation, or shutdown semantics.\n\n## Acceptance\n- stage loop is outside main.go\n- all error and cancellation paths remain covered\n- focused tests and task check pass
Acceptance criteria
Stage loop is outside main.go with ack/nak/cancellation behavior preserved; tests and task check pass
Notes
Implementation and validation are complete in /tmp/archie-core-agent-cleanup on branch refactor/archie-agent-main-cleanup, but delivery is pending: changes are uncommitted, not integrated into the target branch, and not pushed. Do not close until those delivery steps are complete.
Validation completed: stage-loop path tests, race tests, lint, task check, and fresh review clean.
Delivered on review branch refactor/archie-agent-main-cleanup at de242f8; pending PR review/merge.
Close reason
Merged to main in PR #480 at 52738f5; implementation commit de242f8 passed task check, race tests, lint, and independent review
Imported from beads archie-core-tje.2 · GitHub #472 · type task · priority P2 · created 2026-08-13 · closed 2026-08-14
## Problem\nmain.go contains the stageBus contract and fetch-handle-ack loop, obscuring startup composition.\n\n## Scope\nMove stageBus and runMainLoop into a stage-loop concern file without changing ack, nak, retry, cancellation, or shutdown semantics.\n\n## Acceptance\n- stage loop is outside main.go\n- all error and cancellation paths remain covered\n- focused tests and task check pass
### Acceptance criteria
Stage loop is outside main.go with ack/nak/cancellation behavior preserved; tests and task check pass
### Notes
Implementation and validation are complete in /tmp/archie-core-agent-cleanup on branch refactor/archie-agent-main-cleanup, but delivery is pending: changes are uncommitted, not integrated into the target branch, and not pushed. Do not close until those delivery steps are complete.
Validation completed: stage-loop path tests, race tests, lint, task check, and fresh review clean.
Delivered on review branch refactor/archie-agent-main-cleanup at de242f8; pending PR review/merge.
### Close reason
Merged to main in PR #480 at 52738f5; implementation commit de242f8 passed task check, race tests, lint, and independent review
---
_Imported from beads `archie-core-tje.2` · GitHub #472 · type task · priority P2 · created 2026-08-13 · closed 2026-08-14_
sam
added the mediumtask labels 2026-10-27 13:36:29 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem\nmain.go contains the stageBus contract and fetch-handle-ack loop, obscuring startup composition.\n\n## Scope\nMove stageBus and runMainLoop into a stage-loop concern file without changing ack, nak, retry, cancellation, or shutdown semantics.\n\n## Acceptance\n- stage loop is outside main.go\n- all error and cancellation paths remain covered\n- focused tests and task check pass
Acceptance criteria
Stage loop is outside main.go with ack/nak/cancellation behavior preserved; tests and task check pass
Notes
Implementation and validation are complete in /tmp/archie-core-agent-cleanup on branch refactor/archie-agent-main-cleanup, but delivery is pending: changes are uncommitted, not integrated into the target branch, and not pushed. Do not close until those delivery steps are complete.
Validation completed: stage-loop path tests, race tests, lint, task check, and fresh review clean.
Delivered on review branch refactor/archie-agent-main-cleanup at de242f8; pending PR review/merge.
Close reason
Merged to main in PR #480 at 52738f5; implementation commit de242f8 passed task check, race tests, lint, and independent review
Imported from beads
archie-core-tje.2· GitHub #472 · type task · priority P2 · created 2026-08-13 · closed 2026-08-14