jorgex-stack 1.9.72 → 1.9.74

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.
@@ -23,7 +23,7 @@ Spend disproportionate effort here. **Be aggressive. Be creative. Refuse to give
23
23
 
24
24
  ### Ways to construct one — try them in roughly this order
25
25
 
26
- Inspect the project's existing runner, fixtures, helpers and diagnostic commands first. Reuse the closest suitable harness; the options below are not an instruction to build a second testing stack. Apply `lean-code`'s diagnostic tooling policy before adding or retaining tooling.
26
+ Inspect the project's existing runner, fixtures, helpers and diagnostic commands first. Reuse the closest suitable harness; the options below are not an instruction to build a second testing stack. Apply [Lean Code's diagnostic tooling policy](../lean-code/SKILL.md#diagnostic-tooling) before adding or retaining tooling.
27
27
 
28
28
  1. **Failing test** at whatever seam reaches the bug — unit, integration, e2e.
29
29
  2. **Curl / HTTP script** against a running dev server.
@@ -62,7 +62,7 @@ Prefer the narrowest change that solves the real need.
62
62
 
63
63
  ### Diagnostic tooling
64
64
 
65
- Reuse the project's runner, fixtures, helpers and existing diagnostic commands before building a harness. New probes, replay scripts and diagnostic harnesses are temporary by default, with explicit resource ownership and automatic teardown arranged before execution. Keep tooling only for a concrete recurring need: identify its consumer, why the existing harness cannot cover it, and who maintains it in the current task or PR. A successful one-off investigation alone does not justify a permanent command, framework or dependency. Preserve the authoritative regression test and compact reproduction evidence, not the disposable environment.
65
+ Reuse the project's runner, fixtures, helpers and existing diagnostic commands before building a harness. New probes, replay scripts and diagnostic harnesses are temporary by default, with explicit resource ownership and automatic teardown arranged before execution. Keep tooling only for a concrete recurring need within the approved scope: identify its consumer, why the existing harness cannot cover it, and who maintains it in the current task or PR. Seek approval if retaining it expands the scope. A successful one-off investigation alone does not justify a permanent command, framework or dependency. Preserve the authoritative regression test and compact reproduction evidence, not the disposable environment; do not remove meaningful permission, concurrency or deletion protection just to shrink the diff.
66
66
 
67
67
  ### Review / simplification
68
68
 
@@ -29,7 +29,7 @@ The solution to the problem, from the user's perspective.
29
29
 
30
30
  ## User Stories
31
31
 
32
- A LONG, numbered list of user stories. Each user story should be in the format of:
32
+ A numbered list of user stories proportional to the approved scope. Each user story should be in the format of:
33
33
 
34
34
  1. As an <actor>, I want a <feature>, so that <benefit>
35
35
 
@@ -37,7 +37,7 @@ A LONG, numbered list of user stories. Each user story should be in the format o
37
37
  1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
38
38
  </user-story-example>
39
39
 
40
- This list of user stories should be extremely extensive and cover all aspects of the feature.
40
+ Include only the actors, behaviors and relevant boundary cases supported by the context. Do not invent speculative requirements or pad the list to meet a length target. A small feature may need only one story.
41
41
 
42
42
  ## Clarifications
43
43
 
@@ -33,7 +33,7 @@ Check:
33
33
  3. Every SC is verifiable and has task coverage in the plan table.
34
34
  4. Every formal task resolves and verifies its declared `Spec` reference, task identity and access before execution. An identity mismatch, missing source or absent access is a blocking `gaps` verdict; never reconstruct a missing spec from the PRD.
35
35
  5. Every task references known SCs and has one agent, one bounded scope, affected files, dependencies and a wave consistent with those dependencies.
36
- 6. Each behavior-changing task has a complete testing decision: risk, existing protection, new behavior, chosen seam and action.
36
+ 6. Each behavior-changing task has a complete testing decision: risk, existing protection, new behavior, chosen seam and action. Apply the testing value check below to the proposed protection.
37
37
  7. PR scopes, bases and ordering are compatible with the task dependencies.
38
38
  8. PRD, plan and task specs do not contradict each other or duplicate status/evidence into a second home.
39
39
 
@@ -53,7 +53,7 @@ Check:
53
53
  3. Every in-scope SC has concrete evidence in its canonical checkpoint: command/setup, scope, result and relevant limits.
54
54
  4. The implementation diff and observed behavior stay within the approved PRD, plan and task scopes.
55
55
  - POST cannot legitimize scope changes retroactively. For intentional material contract changes, send scope drift to SPEC through change-first. Defects or bugfixes restoring the approved contract return to EXECUTE.
56
- 5. Tests, typecheck/build, manual checks and external gates are not over-claimed; missing or incomplete execution remains explicit.
56
+ 5. Tests, typecheck/build, manual checks and external gates are not over-claimed; missing or incomplete execution remains explicit. Apply the testing value check below to the implemented protection and actual evidence.
57
57
  6. No accepted requirement, edge case, testing decision, documentation change or cross-repo contract assigned to the current checkpoint is left without implementation or evidence. Future checkpoints remain out of scope.
58
58
 
59
59
  POST verdicts:
@@ -61,6 +61,16 @@ POST verdicts:
61
61
  - `converged` — the available evidence satisfies the approved contract. This does not replace tests, human review, configured Quality Gates or manual validation when applicable.
62
62
  - `gaps` — return actionable findings to the orchestrator and route each to its owning phase; never send every gap unconditionally to EXECUTE. Rerun POST after the fix.
63
63
 
64
+ ## Testing value check — PRE and POST
65
+
66
+ For each added or strengthened test, ask: "What concrete regression does this test detect that existing coverage does not?" PRE checks the proposed answer; POST checks that the actual assertions and evidence support it. Another layer must protect a distinct contract, not repeat the same behavior.
67
+
68
+ For a mechanical test update, `reuse` or `no new test`, check the identified existing protection or other verification and why it is sufficient. Do not demand a new test, extra coverage or a manufactured RED when the risk is already covered.
69
+
70
+ A RED for behavioral protection must fail because the asserted behavior is wrong or missing, not merely because a source string is absent. Structural assertions are valid when structure is itself the contract, such as triggers, permissions, secret handling or suite registration; distinguish that guarantee from runtime behavior and avoid freezing an incidental command recipe, internal ordering or full implementation.
71
+
72
+ Keep this check within the checkpoint's changed behavior and relevant coverage; do not turn it into a suite-wide audit.
73
+
64
74
  ## Read-only boundary
65
75
 
66
76
  - Do not write, edit or modify the PRD, plan, task specs, memory, code, tests, checkboxes or PR state.
@@ -76,7 +76,8 @@ Every formal task has exactly one recoverable `Spec` reference in the plan table
76
76
  | 03 | 02 | [agent] | [bounded scope] | [one declared source] | [descriptive name] | [one-line description] | SC-01 | ⬜ | 2 | 01 |
77
77
  | 04 | 02 | [agent] | [bounded scope] | [one declared source] | [descriptive name] | [one-line description] | SC-02 | ⬜ | 2 | 01, 02 |
78
78
 
79
- **Statuses**: ⬜ Pending → 🔴 RED → 🟢 GREEN → 🔍 Review → ✅ Done
79
+ **Statuses**: ⬜ Pending → In progress → Verified → 🔍 Review → ✅ Done
80
+ For test-first work that adds or strengthens protection, use 🔴 RED → 🟢 GREEN within In progress. Tasks using `reuse` or `no new test` proceed with their chosen verification; do not require a new failing test to advance.
80
81
  ```
81
82
 
82
83
  ---
@@ -111,7 +112,7 @@ Use this adaptable content in the one source declared by the plan's `Spec` colum
111
112
  - **Existing protection**: [specific existing test/evidence, or none]
112
113
  - **New behavior**: [behavior needing new protection, or none]
113
114
  - **Chosen seam**: [closest authoritative seam and why]
114
- - **Action**: [add | update | reuse | no new test] — [concrete reason]
115
+ - **Action**: [add | update | reuse | no new test] — [for new or stronger protection, the concrete regression existing coverage misses; for a mechanical test update, reuse or no new test, why existing protection or other verification is sufficient]
115
116
  ```
116
117
 
117
118
  Use only the headings and fields that are pertinent, except retain the complete testing decision when the task changes behavior. Do not require literal code, input/output blocks or empty heading, section or field. Existing Engram task observations remain compatible; adapt this template only for newly created or materially revised specs.
@@ -137,11 +138,11 @@ Mutation is serialized: the coordinator is the single writer, reads the exact ob
137
138
 
138
139
  ### Atomicity
139
140
 
140
- - **Max ~5 implementation steps** per task. If more → split into two tasks.
141
+ - Bound each task by an independently verifiable behavior or contract and its concrete regression risk. Keep the layers needed for that outcome together; split when outcomes can be verified independently or coupling and risk warrant it, not at a fixed step count.
141
142
 
142
143
  ### Structure
143
144
 
144
- - **Natural order**: data layer → generated types → services/hooks → components/UI.
145
+ - **Vertical slices**: organize tasks by behavior and risk, not by technical layer. Sequence implementation within a task by its real dependencies; data, types, services and UI are not mandatory separate tasks.
145
146
  - **Numbering**: `01`, `02`, `03`... (two digits) — shared by the plan table row and the topic_key.
146
147
 
147
148
  ### Context
@@ -154,7 +155,7 @@ Mutation is serialized: the coordinator is the single writer, reads the exact ob
154
155
 
155
156
  - **VERIFIABLE**: "the type includes X", not "the type is correct".
156
157
  - **SPECIFIC**: no copy-paste of generic criteria.
157
- - **COMPLETE**: cover happy path, edge cases and errors.
158
+ - **COMPLETE**: cover the relevant happy path, boundary cases and errors for the approved contract and concrete risk; do not manufacture speculative scenarios.
158
159
 
159
160
  ### Constraints
160
161