diff --git a/.beads/formulas/rule-of-five.formula.json b/.beads/formulas/rule-of-five.formula.json index 240500b8..eccf7ac3 100644 --- a/.beads/formulas/rule-of-five.formula.json +++ b/.beads/formulas/rule-of-five.formula.json @@ -6,25 +6,30 @@ "template": [ { "id": "{target}.draft", + "title": "Draft: {target.title}", "description": "Initial attempt at: {target.description}. Don't aim for perfection. Get the shape right. Breadth over depth." }, { "id": "{target}.refine-1", + "title": "Refine 1: Correctness", "description": "First refinement pass. Focus: CORRECTNESS. Fix errors, bugs, mistakes. Is the logic sound?", "needs": ["{target}.draft"] }, { "id": "{target}.refine-2", + "title": "Refine 2: Clarity", "description": "Second refinement pass. Focus: CLARITY. Can someone else understand this? Simplify. Remove jargon.", "needs": ["{target}.refine-1"] }, { "id": "{target}.refine-3", + "title": "Refine 3: Edge Cases", "description": "Third refinement pass. Focus: EDGE CASES. What could go wrong? What's missing? Handle the unusual.", "needs": ["{target}.refine-2"] }, { "id": "{target}.refine-4", + "title": "Refine 4: Excellence", "description": "Final polish. Focus: EXCELLENCE. This is the last pass. Make it shine. Is this something you'd be proud to ship?", "needs": ["{target}.refine-3"] } diff --git a/.beads/formulas/shiny-enterprise.formula.json b/.beads/formulas/shiny-enterprise.formula.json index 10ce4c68..63dc85e3 100644 --- a/.beads/formulas/shiny-enterprise.formula.json +++ b/.beads/formulas/shiny-enterprise.formula.json @@ -1,68 +1,12 @@ { "formula": "shiny-enterprise", - "extends": "shiny", - "description": "Enterprise-grade engineering workflow. Shiny + Rule of Five + Security + Performance Testing + Review Loop.", + "type": "workflow", + "extends": ["shiny"], + "description": "Enterprise-grade engineering workflow. Shiny + Rule of Five expansion on implement step.", "version": 1, - "compose": [ - { - "expand": { - "target": "implement", - "with": "rule-of-five" - } - }, - { - "aspect": { - "pointcut": "implement.*", - "with": "security-audit" - } - }, - { - "gate": { - "before": "submit", - "condition": "security-postscan.approved == true", - "message": "Cannot submit without security approval" - } - }, - { - "branch": { - "from": "implement.refine-4", - "steps": [ - { - "id": "perf-test", - "description": "Run performance benchmarks" - }, - { - "id": "load-test", - "description": "Run load/stress tests" - }, - { - "id": "chaos-test", - "description": "Run chaos engineering tests" - } - ], - "join": "review" - } - }, - { - "loop": { - "step": "review", - "until": "review.output.approved == true", - "max": 3, - "on-max": "escalate" - } - }, - { - "advice": { - "target": "*", - "before": { - "id": "log-start", - "description": "Log: Starting {step.id}" - }, - "after": { - "id": "log-end", - "description": "Log: Completed {step.id}" - } - } - } - ] + "compose": { + "expand": [ + {"target": "implement", "with": "rule-of-five"} + ] + } } diff --git a/.beads/formulas/shiny.formula.json b/.beads/formulas/shiny.formula.json index 691482c9..17233641 100644 --- a/.beads/formulas/shiny.formula.json +++ b/.beads/formulas/shiny.formula.json @@ -1,5 +1,6 @@ { "formula": "shiny", + "type": "workflow", "description": "Engineer in a Box - the canonical right way. Design before you code. Review before you ship. Test before you submit.", "version": 1, "vars": { @@ -14,25 +15,30 @@ "steps": [ { "id": "design", + "title": "Design {{feature}}", "description": "Think carefully about architecture before writing code. Consider: How does this fit into the existing system? What are the edge cases? What could go wrong? Is there a simpler approach?" }, { "id": "implement", + "title": "Implement {{feature}}", "description": "Write the code for {{feature}}. Follow the design. Keep it simple. Don't gold-plate.", "needs": ["design"] }, { "id": "review", + "title": "Review implementation", "description": "Review the implementation. Check for: Does it match the design? Are there obvious bugs? Is it readable and maintainable? Are there security concerns?", "needs": ["implement"] }, { "id": "test", + "title": "Test {{feature}}", "description": "Write and run tests. Unit tests for new code, integration tests if needed, run the full test suite, fix any regressions.", "needs": ["review"] }, { "id": "submit", + "title": "Submit for merge", "description": "Submit for merge. Final check: git status, git diff. Commit with clear message. Push and create PR.", "needs": ["test"] }