Skip to content

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

Draft
rtorino wants to merge 2 commits into
EveryInc:mainfrom
rtorino:feat/ruflo-integration-enhancements
Draft

feat(ce-work,ce-security-audit): add ruflo integration and trajectory capture#774
rtorino wants to merge 2 commits into
EveryInc:mainfrom
rtorino:feat/ruflo-integration-enhancements

Conversation

@rtorino

@rtorino rtorino commented May 5, 2026

Copy link
Copy Markdown

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

@tmchow

tmchow commented May 5, 2026

Copy link
Copy Markdown
Collaborator

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.

Raymond Torino and others added 2 commits August 27, 2026 15:58
…zations onto upstream restructure

Re-applies this fork's customizations on top of the upstream agent-native
restructure (plugins/compound-engineering/* flattened to repo root; agents
migrated to local persona/prompt assets under skills/*/references/).

- ce-work: session-state resume check (Phase 0), per-task review pipeline
  (spec-compliance then code-quality reviewers), TDD guardrails,
  testing-anti-patterns, verification-discipline, and subagent-templates,
  woven into the new modular reference files (input-triage, execution-strategy,
  implementation-loop, shipping-workflow) to keep SKILL.md under the Codex
  8000-byte budget.
- Review agents converted from typed-agent dispatch to local prompt assets
  (skills/ce-work/references/agents/, skills/ce-security-audit/references/agents/)
  and dispatched as generic subagents, per the new architecture.
- ce-security-audit: re-homed as a self-contained skill (duplicates the
  security-reviewer persona locally); registered in README + count guards.
- ce-test-browser: single-spa and Element UI reference guides.
- ce-debug: revert-and-verify-failure step in the fix loop.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tory capture

Re-applies the fork's ruflo-agentdb integration onto the new agent-native
structure, on top of the re-ported base customizations on main.

- ce-work: optional ruflo memory enrichment at session start (input-triage)
  and conditional trajectory capture after shipping (shipping-workflow),
  both woven into reference files so the kernel SKILL.md stays under the
  Codex 8000-byte budget; new ruflo-memory-integration.md and
  trajectory-capture.md references; model-selection scoring table added to
  subagent-templates.
- ce-security-audit: optional ruflo security_scan step for CVE / shell-injection
  / secrets-at-rest coverage, merged and deduplicated with the CE persona findings.
- trajectory-capture writes under the configurable CE artifact root's solutions/
  tree (no hardcoded docs/ path) and references the learnings-researcher persona.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rtorino
rtorino force-pushed the feat/ruflo-integration-enhancements branch from 92c7b68 to 9f9f2eb Compare August 27, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants