RFC.plan.md: master context document for future sessions - 5 root causes, 3 critical bugs, key decisions, what NOT to do - Session context that won't survive compact - Cross-references to existing RFCs that solve problems RFC.plan.1.md: first session priorities - Fix 3 critical bugs (one-line changes) - AX-7 rename for core/go - Start Registry[T] RFC.plan.2.md: subsequent session goals - Registry + migration - Action system - core/agent cascade fix - c.Process() + go-process v0.7.0 Future sessions: read RFC.plan.md first, then the numbered plan for that session's scope. Co-Authored-By: Virgil <virgil@lethean.io>
1.4 KiB
1.4 KiB
RFC Plan 2 — Registry + Actions Sessions
After Plan 1 bugs are fixed and AX-7 rename is done.
Session Goal: Registry[T] + First Migration
- Build
registry.gowith full AX-7 tests - Migrate
serviceRegistry→ServiceRegistryembeddingRegistry[*Service] - Verify all existing tests still pass
- Commit + push
Session Goal: Action System
- Rename
task.go→action.go - Move
RegisterAction/RegisterActions/RegisterTasktoipc.go - Build
ActionDeftype withRun(),Exists(),Def() - Wire
c.Action("name")dual-purpose accessor - Full AX-7 tests
- Commit + push
Session Goal: Migrate core/agent Handlers
- Register named Actions in
agentic.Register() - Replace nested
c.ACTION()cascade with Task pipeline - Test that queue drains properly after agent completion
- This is the P6-1 fix — the queue starvation bug
Session Goal: c.Process() + go-process v0.7.0
- Update go-process factory to return
core.Result - Add
process.Registerdirect factory - Remove
agentic.ProcessRegisterbridge - Add
Processprimitive to core/go (sugar over Actions) - Migrate core/agent
proc.go→s.core.Process()calls - Delete
proc.goandensureProcess()
Between Sessions
Each session should produce:
- Working code (all tests pass)
- A commit with conventional message
- Updated coverage numbers
- Any new findings added to RFC.md passes