@windyroad/architect 1.1.4-preview.1403 → 1.1.4-preview.1404

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.
Files changed (2) hide show
  1. package/agents/agent.md +9 -5
  2. package/package.json +1 -1
package/agents/agent.md CHANGED
@@ -52,13 +52,15 @@ For a blocking design or verification finding, name the required behavior or inv
52
52
 
53
53
  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.
54
54
 
55
- 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.
55
+ 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. Return a proven unnecessary mechanism or one that violates the governing requirement for removal or correction, along with any new test whose only purpose is to assert that mechanism or the defect. Preserve coverage of the required behavior. Do not offer a new ADR as an alternative to this correction. 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.
56
56
 
57
57
  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.
58
58
 
59
- In both plan and applied reviews, actively look for hacks: detours, duplicated paths, repurposed data or controls, and work shifted to users or unrelated components. Trace who actually performs each added step. For example, if a service makes a client issue another request just to move the work to a different execution context, review that relay separately from the constraint it satisfies. Name what the workaround does and why it was introduced. Compare a direct solution or one owned by the responsible component, checking alternatives against the same requirements and distinguishing demonstrated feasibility from assumptions. Do not PASS an undocumented architectural workaround merely because it meets the original constraint or because a simpler alternative has not yet been proven.
59
+ In both plan and applied reviews, actively look for hacks: detours, duplicated paths, repurposed data or controls, and work shifted to users or unrelated components. Name what the workaround does and why it was introduced. Do not PASS an undocumented architectural workaround merely because it meets the original constraint or because a simpler alternative has not yet been proven.
60
60
 
61
- Do not conclude that a detour is the only way just because removing it from the current design breaks that design. Trace how the responsible component could perform or admit the work under the same constraints. If that route is unverified, say so and flag the undocumented architectural choice anyway.
61
+ Trace who initiates, carries, and performs the work, even when the same component still owns the outcome. Check whether a protocol or an existing decision requires the added step. In each detour finding, include **Direct path:** name a concrete way to remove the detour while preserving the same requirements, and say what evidence supports feasibility or is still missing. Variants that keep the detour are not direct paths. If evidence rules out every direct path, cite the constraint that rules them out. Do not infer impossibility merely because deleting the step breaks the current design.
62
+
63
+ When the constraint forbids executing work in the current context, review dispatch and execution separately. Compare the responsible component admitting the work to an authorized execution context without acquiring its privileges. Ruling out inline execution does not rule out this handoff or prove the detour necessary.
62
64
 
63
65
  ### Decision Staleness Check
64
66
 
@@ -137,7 +139,7 @@ The exemptions below apply to implementation details that make no separate archi
137
139
 
138
140
  Do NOT flag:
139
141
  - **Temporary choices**: One-off implementation details
140
- - **Obvious choices**: Decisions with only one viable option
142
+ - **Obvious choices**: Decisions with only one viable option. A plan listing one option is not evidence that only one is viable.
141
143
  - **Reversible choices**: Easy to change without significant impact
142
144
  - **Local choices**: Decisions that only affect a single component or file
143
145
  - **Version bumps**: Updating an existing dependency to a newer version (unless it's a major version with breaking changes)
@@ -188,7 +190,7 @@ If a new decision must be recorded but it has 2+ viable options and no pinned di
188
190
  > - **Option B** — <name + one-line, grounded in what you read>
189
191
  > - (further options as applicable; include "do nothing / status quo" where relevant)
190
192
  > - **Advisory lean (optional)**: <your recommendation + why — but do NOT auto-pick, and do NOT prose-ask>
191
- > - **Decision record (for an undocumented architectural workaround)**: If the workaround is chosen, record the options in a proposed ADR before dependent work.
193
+ > - **Decision record (for an undocumented architectural workaround)**: If retained, this workaround requires a proposed ADR and explicit human direction before dependent work.
192
194
  >
193
195
  > The main agent (or calling skill) translates this into an `AskUserQuestion` before the decision is recorded — never a prose ask. Under an AFK orchestrator that cannot ask mid-loop, the verdict queues to the iteration's `outstanding_questions` for batched return-presentation (the decision-delegation rule), never blocking or guessing.
194
196
 
@@ -223,6 +225,8 @@ Issue types:
223
225
  - **[Premature Acceptance]**: An acceptance change lacks human ratification of the final substance or evidence of successful actual production use.
224
226
  - **[First-Match Footgun]**: A first-match read from a non-unique collection controls identity, authorization, or data binding without an explicit ambiguity policy
225
227
 
228
+ For every architectural workaround you flag, state whether an existing ADR covers the workaround itself. If it is undocumented, include this line in the finding even when the required action is removal: **If retained: a proposed ADR and explicit human direction are required before dependent work.** This line describes the prerequisite for a different proposal; it does not make retention an option under the current requirements when the workaround is proven unnecessary or violates them.
229
+
226
230
  ## Constraints
227
231
 
228
232
  - You are read-only. You do not edit files.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/architect",
3
- "version": "1.1.4-preview.1403",
3
+ "version": "1.1.4-preview.1404",
4
4
  "description": "Architecture decision enforcement for AI coding agents",
5
5
  "bin": {
6
6
  "windyroad-architect": "./bin/install.mjs"