compound-engineering-plugin icon indicating copy to clipboard operation
compound-engineering-plugin copied to clipboard

feat(ce-work,ce-security-audit): add ruflo integration and trajectory capture

Open rtorino opened this issue 6 months ago • 1 comments

Summary

  • Add optional ruflo-agentdb memory integration for semantic session recall (graceful fallback to SESSION_STATE.md when ruflo isn't installed)
  • Add CE-native trajectory capture for documenting non-obvious execution paths as human-readable markdown in docs/solutions/
  • Add 6-signal model selection scoring table to subagent templates for confidence-based Haiku/Sonnet/Opus routing
  • Add optional ruflo CVE scanning step to /ce-security-audit (skipped when ruflo isn't installed)

Changes

File Type What
skills/ce-work/references/ruflo-memory-integration.md New Optional agentdb integration — semantic recall + task completion storage
skills/ce-work/references/trajectory-capture.md New CE-native execution trajectory capture as markdown
skills/ce-work/references/subagent-templates.md Modified (+15) Model selection scoring table
skills/ce-security-audit/SKILL.md Modified (+8) Optional ruflo CVE scanning step
skills/ce-work/SKILL.md Modified (+3) Phase 0 ruflo check + Phase 3-4 trajectory prompt

Design decisions

  • Zero hard dependencies on ruflo — every ruflo feature checks tool availability first, skips gracefully
  • Structural isolation — new reference docs over inline SKILL.md changes, preserving upstream mergeability
  • Trajectory capture is CE-native — writes to docs/solutions/ as markdown searchable by ce-learnings-researcher, no ruflo needed

Test plan

  • [ ] Run bun test — 1252 tests pass (verified)
  • [ ] Test /ce-work with SESSION_STATE.md present, ruflo NOT installed — should resume from state, skip ruflo silently
  • [ ] Test /ce-work with ruflo-agentdb installed — should query agentdb for related past patterns after session state check
  • [ ] Test /ce-security-audit diff without ruflo — should run CE agents, skip CVE step
  • [ ] Test /ce-security-audit diff with ruflo — should run CE agents + ruflo CVE scan, merge findings
  • [ ] Test subagent dispatch on multi-unit plan — model tier should vary based on scoring signals
  • [ ] Test trajectory capture after shipping non-routine work — should prompt to write trajectory doc

🤖 Generated with Claude Code

rtorino avatar May 05 '26 02:05 rtorino

I realize that this has a graceful fallback for ruflo-agentdb but i'm hesitant to add something like this where most are not using it. I would like that separated out.

tmchow avatar May 05 '26 17:05 tmchow