@windyroad/architect 1.1.1-preview.1387 → 1.1.2-preview.1389

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,5 +123,5 @@
123
123
  }
124
124
  },
125
125
  "name": "wr-architect",
126
- "version": "1.1.1"
126
+ "version": "1.1.2"
127
127
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wr-architect",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Architecture decision enforcement for AI coding agents",
5
5
  "author": {
6
6
  "name": "Windy Road Technology",
package/agents/agent.md CHANGED
@@ -46,6 +46,14 @@ In pre-edit mode:
46
46
 
47
47
  ## What You Check
48
48
 
49
+ ### Smallest design and verification
50
+
51
+ For an executable plan, identify the exact plan revision and sketch the simplest design that meets its acceptance criteria and constraints. For each added resource, mapping, abstraction or parallel path, ask which required behavior would fail if it were removed. Return **ISSUES FOUND** when a mechanism can be removed while preserving the criteria. Name the mechanism and the simpler design.
52
+
53
+ For an applied-change review, inspect the actual scoped diff, the reviewed design when one exists, and the verification. Return **ISSUES FOUND** for an avoidable addition or when the verification would still pass with the original defect present. Name what to remove or the behavior the check misses. Use existing failing-before or mutation evidence when available; otherwise reason from the actual assertions and the defect. A green run alone does not answer the counterfactual.
54
+
55
+ Identify the reviewed plan revision or exact diff in the report. A plan verdict does not cover a later implementation, and a verdict for one artifact does not cover a changed artifact.
56
+
49
57
  ### Decision Staleness Check
50
58
 
51
59
  For each `accepted` decision in `docs/decisions/`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/architect",
3
- "version": "1.1.1-preview.1387",
3
+ "version": "1.1.2-preview.1389",
4
4
  "description": "Architecture decision enforcement for AI coding agents",
5
5
  "bin": {
6
6
  "windyroad-architect": "./bin/install.mjs"
@@ -93,9 +93,12 @@ Do not ask if there is an obvious set of changed files.
93
93
 
94
94
  Build a self-contained prompt for the architect subagent that includes:
95
95
  - The list of changed/staged files
96
- - The git diff summary (stat output)
96
+ - For an applied review, the actual scoped patch or read-only access to it. Identify the checkout and selected commit base/head, or HEAD and a digest of the exact staged patch (for example, `git diff --cached --no-ext-diff --binary | git hash-object --stdin`, without writing an object). A diffstat alone is insufficient.
97
+ - The reviewed plan revision if applicable, acceptance criteria, original defect if any, and the actual verification and results
97
98
  - Any explicit scope from the user
98
- - The request: "Review these proposed changes against the project's ADRs. Flag any violations, gaps that need a new ADR, or compliance questions."
99
+ - Label the request `PLAN REVIEW` for a proposed plan or `APPLIED DIFF REVIEW` for changes on disk. Request review against the project's ADRs and ask for any violations, gaps that need a new ADR, or compliance questions.
100
+
101
+ For an applied review, also request the simplest-design comparison and original-defect verification check. Ask which additions can be removed and whether the actual verification would pass with the original defect present. For a plan review, give the exact plan revision and ask the architect to sketch the simplest design that meets its acceptance criteria and constraints. In either mode, require the report to name the artifact it reviewed.
99
102
 
100
103
  The architect permits implementation against documented proposals without prior ratification. It flags **[Premature Acceptance]** when acceptance lacks either final human ratification or successful actual production-use evidence. Apply this distinction to plans and edits alike; missing ratification alone does not block building.
101
104
 
@@ -121,6 +124,8 @@ The Codex installer generates `.codex/agents/wr-architect-agent.toml` from the i
121
124
 
122
125
  Wait for the agent to complete.
123
126
 
127
+ Match the verdict to the requested artifact and confirm that the selected patch or plan revision is still current before using it. A changed artifact needs a fresh applicable review. A missing mechanical receipt after a completed applicable review follows the existing fail-open policy; it does not erase a substantive finding or supply an absent review.
128
+
124
129
  ### 6. Present results
125
130
 
126
131
  Present the full compliance report to the user. The architect subagent will report:
@@ -128,7 +133,9 @@ Present the full compliance report to the user. The architect subagent will repo
128
133
  - FLAGGED: specific violations or compliance questions with ADR references
129
134
  - NEW ADR NEEDED: decisions that should be recorded before proceeding
130
135
 
131
- If violations are flagged, use the runtime's structured question mechanism to ask how the user wants to proceed:
136
+ Return avoidable mechanisms and missed-defect verification to the author for revision and recheck the revised artifact. No new approval is needed to make those corrections within the reviewed scope and existing authority.
137
+
138
+ If a substantive architecture decision or exception needs human direction, use the runtime's structured question mechanism to ask how the user wants to proceed:
132
139
  - (a) Address the violations before continuing
133
140
  - (b) Proceed with a documented exception
134
141
  - (c) Draft a new ADR that supersedes the ratified decision, or edit the existing ADR only when it is still unratified