Repository navigation
feat(aidd-refine): check the persisted brainstorm brief and link each action to the next - #1336
Draft
blafourcade wants to merge 8 commits into
Draft
blafourcade wants to merge 8 commits into
blafourcade wants to merge 8 commits into
Conversation
… action to the next (#1084) The brief written to aidd_docs/**/brainstorm.md is checked against assets/discovery-brief.md through a contract: sections Clear, Assumed and Open, each optional and in order, status: approved in the front matter, no comment or slot left. The template gains that front matter, which persistence already required. The turn-end hook judges a written brief on every host, and conclude runs validate-brainstorm.cjs when the user keeps the brief in a file. Capture links to explore and explore to conclude, never back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tor's format (#1084) The router keeps only the diagram, its boxes the action paths, and the transversal rules. Explore and capture end on the step that links the next action, a case is a sub-item, and the stop rule names the conclude file. The baseline drops the five brainstorm entries this fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er report checks do (#1084) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ring form (#1084) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RY5w5YEbGF6DpKkbU9uyJS
…the diagram already draws (#1084) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RY5w5YEbGF6DpKkbU9uyJS
…1084) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RY5w5YEbGF6DpKkbU9uyJS
…lies it on every turn (#1084) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RY5w5YEbGF6DpKkbU9uyJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
The brief
aidd-refine:01-brainstormkeeps in a file is now checked against its template, and each action links the next one, so a model that reads only what a link points to still reaches the template.🛠️ How it works
scripts/contract.jsonholds one rule,BRAINSTORM-01, the engine'stemplateop onassets/discovery-brief.md:{{…}}slot left.aidd_docs/**/brainstorm.md, as02-challengeis: the turn-end artifact hook aidd-refine already ships judges a written brief.concludealso runsvalidate-brainstorm.cjswhen the user keeps the brief in a file, so a host without the hook still checks it.validate-skill.cjsgoes from 11 findings to 0, and the baseline drops the five brainstorm entries.🧪 How to verify
node --test scripts/__tests__/check/brainstorm-contract.test.js: a good brief passes with LF and CRLF; an unknown or reordered section, a comment or a slot left are each refused byBRAINSTORM-01only.node plugins/aidd-context/skills/04-skill-generate/scripts/validate-skill.cjs plugins/aidd-refine/skills/01-brainstormexits 0.stop, approve and keep in a file):stophaiku, plugin loadedgpt-6-luna× 3###headingsdeepseek-v4.1-flash-freehaikuin tmux, plugin loaded: one question per turn, each with a leaning and its tradeoff;stopproduced the brief; "File." wrote it and ran the check. Asked to add a## Riskssection, the model wrote it, the Stop hook refused it onBRAINSTORM-01, and the model moved the line under Open.mistral-medium-2604was not run: it is not offered to the account used.mistral-small-2603answersstopwith one word and writes the brief inside the skill folder, the small-model limit refactor(aidd-refine): lean the brainstorm skill for small models #1072 already records.stopwith one sentence; a transversal rule is what changed. Codexgpt-6-luna, 3 runs each, the brief onstop: 0/3 with the stop case only in the diagram and in explore's loop, 3/3 with the rule "When the user says stop or asks for a summary, produce the brief in the chat." Without it Luna readsstopas quitting.🔗 Linked issue
Closes #1084
✅ I certify
🤖 Generated with Claude Code