You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. For affected production integration/call paths, interfaces/contracts, data structures/state, and data ownership/flow, obtain the user's confirmation or explicit delegation. Repository evidence constrains a proposal but does not replace that choice.
28
28
7. For every affected architecture, data structure, or data flow, distinguish inspected current-state evidence from target proposals. Put target trees/flow trees and illustrative code under the recommended or alternative option that they describe. After selection, write only the selected artifacts into Design. Keep uniquely determined or reversible detail to the shortest wording that preserves the decision; give irreversible boundaries, contracts, ownership, and flow the required artifacts.
29
29
8. After each resolution, update the selected final Design section. Do not preserve internal IDs, question history, discarded approaches, user-authorization state, or a duplicate execution record.
30
+
9. After the selected architecture, integration, interfaces, data structures, and flow are coherent, run one evidence-grounded failure-first review before the Ready gate. Inspect the real project areas most likely to fail, choices likely to accumulate technical debt, contracts that must remain stable, internals that must remain replaceable, implementation principles needed to preserve the design, and tempting shortcuts that must be prohibited. For each material conclusion establish `project evidence -> causal failure mechanism -> consequence -> preventive design constraint`. Do not invent generic risks or create headings merely to complete a checklist. If prevention requires a non-unique choice, use one normal decision card; otherwise integrate only the selected constraint or guardrail into its relevant Design section. Do not retain the raw pre-mortem, rejected shortcuts, or resolved speculation.
30
31
31
32
Design decisions include architecture, components, production wiring, interfaces, data structures, state transitions, ownership, data flow, failure behavior, compatibility, and validation. Act may choose only mechanical execution order. Reject unrelated refactors and speculative requirements. For a visual question, follow [references/visual-companion.md](references/visual-companion.md) and obtain consent before starting it.
32
33
33
34
## Ready gate
34
35
35
-
Run the Design contract. Do not become Ready while a material decision is awaiting the user, a repository fact needed to evaluate a material decision is missing, or an implementation-shaping question remains. Do not fill gaps with assumptions.
36
+
Run the Design contract. Do not become Ready while a material decision is awaiting the user, a repository fact needed to evaluate a material decision is missing, an implementation-shaping question remains, or a project-grounded failure/debt risk lacks a selected prevention. Do not fill gaps with assumptions.
Copy file name to clipboardExpand all lines: .agents/skills/design/assets/design.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@
6
6
7
7
<!-- State the problem, observable success criteria, included work, and non-goals. -->
8
8
9
-
## Constraints
9
+
## Constraints and Implementation Guardrails
10
+
11
+
<!-- Keep only applicable, project-evidence-backed constraints: contracts that must remain stable, internals that must remain replaceable, implementation principles, and prohibited shortcuts. State the failure mechanism when a guardrail would otherwise appear arbitrary. -->
Copy file name to clipboardExpand all lines: .agents/skills/design/references/design-contract.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,14 @@ Keep:
6
6
7
7
- problem, success criteria, scope, non-goals, and constraints;
8
8
- the selected architecture, boundaries, components, integration path, interfaces, data structures, data flow, failure/compatibility behavior, and validation that actually apply;
9
+
- project-evidence-backed implementation principles and prohibited shortcuts that materially protect the selected design, with a compact failure mechanism where the guardrail would otherwise appear arbitrary;
9
10
- required selected trees, flow trees, and illustrative code;
10
11
- a compact rationale only where the selected choice would otherwise be surprising or hard to reverse.
11
12
12
13
For each new or materially changed component, make its boundary inspectable: purpose, consumers, owned data/state, dependency direction, stable contract, and which internals may change without breaking consumers. Scale each affected section to decision impact: write uniquely determined or reversible detail in the shortest sufficient form, while retaining required trees, flow trees, and illustrative code for architecture, data structures, and data flow.
13
14
15
+
Before readiness, review the coherent selected design from the failure side. Ground every material conclusion in the current project's production paths, ownership, lifecycle, compatibility, resource, migration, or other relevant evidence. Trace `evidence -> causal failure mechanism -> consequence -> prevention`; then keep only the prevention that shapes the final design. Do not preserve a generic risk checklist, speculative hazards, or rejected shortcuts.
16
+
14
17
Do not keep empty or `N/A` headings, internal IDs, question history, coverage/impact tables, raw research notes, authorization state, amendments, or discarded approaches. A rejected option belongs only in an ADR when its rejected rationale is durable context under the project's ADR rules.
15
18
16
19
## Readiness check
@@ -19,6 +22,7 @@ Design is ready for user review only when:
19
22
20
23
- it describes one coherent selected design with no implementation-shaping ambiguity;
21
24
- every affected architecture, data structure, and data flow is inspectable through the required selected artifacts;
25
+
- material project-grounded failure and debt risks have selected prevention, with stable contracts distinguished from deliberately replaceable internals;
22
26
- success criteria and validation evidence are observable;
23
27
- all headings carry final, relevant content; and
24
28
- it contains no placeholder, contradictory statement, process ledger, or discarded option.
0 commit comments