Skip to content

feat(aidd-dev): record plan-time rule influence in the Decisions table - #1379

Draft
Kiddo4993 wants to merge 1 commit into
ai-driven-dev:mainfrom
Kiddo4993:fix/issue-796
Draft

Kiddo4993 wants to merge 1 commit into
ai-driven-dev:mainfrom
Kiddo4993:fix/issue-796

Conversation

@Kiddo4993

Copy link
Copy Markdown

Resolves #796, following the maintainer's 2026-09-24 decision to keep this focused on plan-time Rule influence and to use Decision | Why | Rule reference.

What changed

  • 01-plan/assets/plan-template.md: ## Decisions gets a third column, Rule reference. It holds a stable logical identifier such as architecture/ports, optionally with the decisive instruction, or none for architecture-only decisions. The template comment now lists a second reason to add a row: a project rule chose this decision over a meaningful alternative. It also says affected files stay in the phase projection. A fixed line under the table says these references are model-reported when the plan is written and are not proof of the model's reasoning. Unlike the template comments, which are deleted, this line stays in the plan.
  • 01-plan/references/findings.md: new Rule influence finding. It only applies when a rule picks a decision over an alternative, not when the rule merely applies. The existing Project rules finding is unchanged.
  • 01-plan/actions/03-conclude.md: each rule influence from the findings becomes a ## Decisions row. When there is none, no row is written.
  • 02-implement/SKILL.md: new transversal rule. Rule influence is read from the plan's ## Decisions only. It is never inferred afterwards and never written as comments in application source.
  • 05-review/references/axis-relevancy.md: the conform lens also flags a change that contradicts a plan ## Decisions row, and must never infer rule influence the plan does not record.
  • Tests (scripts/__tests__/validate-plan.test.js): two new cases. A Decisions table without the new column is refused. A plan with no ## Decisions section, meaning no rule influence, is still valid.

No separate trace store was added, and the validator script is unchanged: it already enforces template table headers.

Compatibility

The validator enforces template table headers. An existing plan whose ## Decisions table has only the old two columns will be reported as "table header differs" if it is validated again. Plans without a ## Decisions section are unaffected, since the section is optional. I left the pinned cli/tests/fixtures/framework-real snapshot alone on purpose.

I couldn't run the tests in this environment. I checked the new cases by reading them against the test's fill/mutate helpers.

Fixes #796


Happy to adjust anything or close it if it isn't a fit.

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.

feat(aidd-dev): report rule influence on development decisions

1 participant