fix: agents-pointer-migrate.py imports the retired flat module path, breaking ward exec agents-pointer-migrate #423
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/infrastructure#423
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
scripts/agents-pointer-migrate.py(the one-time AGENTS.md pointer rollout,ward exec agents-pointer-migrate) importsfrom agentic_os.generate_agents_pointer import ...(line 60). agentic-os moved that module into thegenerators/subpackage, so it now lives atagentic_os.generators.generate_agents_pointer.load_appliertherefore hitsModuleNotFoundError, falls into itsexcept, andsys.exits with "cannot import agentic_os". The rollout cannot run at all today.This is the blocker behind coilyco-flight-deck/agentic-os#206 ask 1 (execute the migration across the 10 managed repos that still carry a dangling
../AGENTS.mdintro). The migration mechanism is this infra script, and it is broken, which is why the sweep has not landed.Fix: update the import to
Then re-run
ward exec agents-pointer-migrate(dry-run first, thenexecute=1) to land the managed block on each managed repo's canonical Forgejomain.Also note: agentic-os#206 ask 2 (the ansible
agents-pointerrole's stale hint pointing at a non-existentagentic-os/scripts/agents-pointer-migrate.py) is already resolved - the role was retired in infrastructure#362 and the rollout now rides this script underward exec agents-pointer-migrate. No hint left to fix.Origin: agentic-os#206, filed from the agentic-os container run (which could not reach this repo to push the fix itself).
🔒 Reserved by
ward agent --driver claude— containerengineer-claude-infrastructure-423on hostkais-macbook-pro-2.localis carrying this issue (reserved 2026-07-02T07:22:51Z). Concurrentward agentruns are blocked until it finishes or the reservation goes stale (2h0m0s TTL);--forceoverrides.— Claude (she/her), via
ward agentWARD-OUTCOME: done - fixed the generators/ import path so
ward exec agents-pointer-migrateloads and runs again; landed on canonical main.The core fix was exactly the one-liner the issue diagnosed:
generate_agents_pointermoved intoagentic_os.generators, whileagentic_os.configstayed put, so only that one import needed repointing. I verified against the/substrate/agentic-oscheckout that all three functions live at the new path, then ran the script's dry-run and confirmed it now executes its planning logic instead ofsys.exit-ing with "cannot import agentic_os".What fought back was the pre-commit gate, not the fix. Two unrelated walls: pylint's
uvwanted to download Python 3.13 into a root-owned/opt/uv/python(solved by pointingUV_PYTHON_INSTALL_DIRat a writable dir - pylint then scored 10.00/10), and a pre-existing over-length YAML comment in the forgejo-creds ansible role that the repo-widecode-commentshook flagged on every commit. I removed that redundant comment as a small separatechoreso the import fix could land clean without--no-verify.Confidence is high: the change is a mechanical import correction, CI's lint job runs the identical pylint I passed locally, and the full hook suite is green. One rough edge worth flagging: I did not run the actual
execute=1migration across the 10 managed repos (agentic-os#206 ask 1). Those repos aren't in this container's granted set, and the in-container dry-run reported0 managed repos in scopesince it can't reach the operator's tree anyway. That sweep needs a run explicitly granted those repos - worth a follow-up so ask 1 doesn't sit assumed-done.