Problem
aidd-dev:01-plan identifies project rules that apply to a planned file projection, and aidd-dev:05-review can cite a rule when it finds a violation. Neither provides an observable trace from a rule that materially influenced a development decision to the affected artifact.
When generated code is undesirable, a maintainer cannot reliably distinguish a bad implementation decision from an ambiguous, conflicting, or unsuitable project rule. Listing every rule available in context would not answer that question.
Scope
- Report a rule influence trace only when a project rule materially influences a development decision.
- For each reported entry, identify the rule, the decision, and the affected artifact or file where meaningful.
- Make the output explicit about its reliability: captured or observed influence where the workflow can support it; otherwise model-reported influence, never guaranteed provenance or hidden reasoning.
- Start from the existing rule-selection seam in planning; let the implementation decide whether the report belongs in plan output, implementation output, a shared AIDD-owned artifact, or a compatible extension of review reporting.
- Preserve a useful no-influence result when no project-specific rule materially affects the change.
- Keep generated application source free of provenance-only comments.
Acceptance criteria
Prior art in this repo
01-plan/02-explore already selects applicable project rules and justifies them. This is the strongest initial integration seam, but applicability is not material influence.
02-implement owns code transformation against an existing plan.
05-review/03-review-relevancy discovers declared rules and can cite a violated rule, but does not report influences that led to compliant decisions.
docs/ARCHITECTURE.md assigns code transformation to aidd-dev; therefore this concern belongs there rather than in aidd-context.
Related, complementary issues:
I checked open and closed issues, merged/open PRs, Discussions, and the current main contracts. No proposal covers Rule -> materially influenced decision -> artifact. PR #795 concerns session telemetry, not rule-to-decision traceability.
Out of scope
Problem
aidd-dev:01-planidentifies project rules that apply to a planned file projection, andaidd-dev:05-reviewcan cite a rule when it finds a violation. Neither provides an observable trace from a rule that materially influenced a development decision to the affected artifact.When generated code is undesirable, a maintainer cannot reliably distinguish a bad implementation decision from an ambiguous, conflicting, or unsuitable project rule. Listing every rule available in context would not answer that question.
Scope
Acceptance criteria
Prior art in this repo
01-plan/02-explorealready selects applicable project rules and justifies them. This is the strongest initial integration seam, but applicability is not material influence.02-implementowns code transformation against an existing plan.05-review/03-review-relevancydiscovers declared rules and can cite a violated rule, but does not report influences that led to compliant decisions.docs/ARCHITECTURE.mdassigns code transformation toaidd-dev; therefore this concern belongs there rather than inaidd-context.Related, complementary issues:
I checked open and closed issues, merged/open PRs, Discussions, and the current
maincontracts. No proposal coversRule -> materially influenced decision -> artifact. PR #795 concerns session telemetry, not rule-to-decision traceability.Out of scope