Path 2: vibe-reengineering.mmd. Router: vibe-orchestrator-agent.md.
Contents
- Constraints • Quick start • Workflow • Verification • References
Constraints
- Truth order:
specs/REQS.md>tests/characterization/>/domain> derived specs > prototype code (rules). A conflict isHUMAN_REQUIRED. - Never autonomously rewrite auth, billing, cryptography or compliance logging; they need a hash-bound
human-approval.json. - Characterization tests assert legacy behavior verbatim; fixtures contain no absolute paths or secrets.
- Only the four independent agents decide:
domain-purity-auditor,semantic-drift-auditor,certification-verifier(sole authority forslice-certified) andbusiness-rule-audit-agent. After two rejections for the same issue, escalate to the user. - Do destructive work in an isolated workspace (
os-control-worktreeskill). Register the task throughos-control-intakeonly when the user runs a control plane. - Ask the five architecture questions one at a time. Pick runtime and model through the
cli-agentskill.
Quick start
test -f exploration/captures/DISCOVERY_REPORT.md || echo "start at phase 1"
ls specs/REQS.md tests/characterization 2>/dev/null
Workflow
Seven phases (guide): browser audit, safety net, five questions, REQS and risk gate (full architecture package optional), domain extraction with purity audit, target scaffolding (ADR, ports, session memory), slice migration with drift audit and certification. Finish by handing to handing-off-to-engineering.
Verification
Run the characterization suite (100 percent parity), the purity and drift reports, and the certification report in temp/.
Acceptance criteria: acceptance-criteria.md.
References
- Absorbed skills: vibe-reengineer.md • vibe-browser-audit.md • vibe-behavioral-test-capture.md • vibe-domain-extractor.md • vibe-slice-migrator.md • vibe-spec-packager.md • vibe-togaf-architect.md (full spec package) • vibe-to-engineering-handoff.md (10-step pipeline) • runtime-observer-agent.md (telemetry, fixture portability)
- Criteria: reengineer • audit • tests • domain • migrator • packager • togaf
- Templates: domain classification • session memory • ADR