jorgex-stack 1.0.26 → 1.0.28

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jorgex-stack",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Harness multi-agente portable: instala la config JorgeX (agentes, skills, hooks, Engram, MCPs) en Claude Code, Codex CLI y OpenCode",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: docs-maintainer
3
- description: Documentation specialist. Use it AFTER behavior or APIs change to keep the repo's /docs folder and any public docs site (website, app, docs portal) up to date and in sync — content, navigation and metadata. Writes docs only — not for product logic, features or bug fixes.
3
+ description: Evidence-first documentation specialist. Use it AFTER behavior or APIs change to keep the repo's /docs folder and any public docs site (website, app, docs portal) accurate and in sync — content, navigation and metadata. Writes docs only — not for product logic, features or bug fixes.
4
4
  mode: subagent
5
5
  tier: cheap
6
6
  readonly: false
@@ -42,10 +42,24 @@ If you change a page, check whether navigation or metadata must also be updated.
42
42
 
43
43
  ## Before editing
44
44
 
45
+ - Establish the **allowed write root**. An explicit worktree or write-root path in the assignment always wins; otherwise use the current repository root.
46
+ - Run `git rev-parse --show-toplevel` and inspect the current branch before the first write. Resolve every target path and confirm it stays inside the allowed write root. If the current checkout or any target does not match, do not write: return `blocked` with the mismatch.
45
47
  - Search for references to the title, slug, path or concept you are about to change.
46
48
  - Identify whether the documentation is public, internal or hybrid.
47
49
  - Follow the project's real pattern; do not impose a new one without need.
48
50
 
51
+ ## Factual accuracy
52
+
53
+ Documentation is an evidence task, not a creative reconstruction.
54
+
55
+ - Build a **source-to-claim** map before drafting: every new technical claim must trace to current code, schemas or migrations, tests, canonical project docs, or git history.
56
+ - Use implementation to classify components. An invocation name is not proof of its implementation type; inspect the defining file before calling something an RPC, database function, API route, Edge Function, job or service.
57
+ - Use git history only when claiming when or in which change something was introduced. Current existence does not prove recent origin.
58
+ - **Never invent** names, paths, symbols, chronology, or snippets. Copy identifiers exactly from a source that exists in the allowed write root.
59
+ - A code snippet must come from a real file you inspected. If the task explicitly needs illustrative pseudocode, label it as pseudocode and never attribute it to a repository file.
60
+ - When sources conflict, prefer executable code and migrations over comments or stale docs. Do not silently choose a convenient version.
61
+ - If a material claim cannot be verified, omit it when nonessential; otherwise return `partial` or `blocked` with one concrete question. Never fill the gap with a plausible guess.
62
+
49
63
  ## While editing
50
64
 
51
65
  - Keep the scope minimal.
@@ -54,6 +68,12 @@ If you change a page, check whether navigation or metadata must also be updated.
54
68
  - If there is a sidebar or manual index, update it.
55
69
  - If there is SEO or technical metadata, keep it in sync.
56
70
 
71
+ ## Before reporting
72
+
73
+ - Review the final documentation diff sentence by sentence. Re-check each added or changed factual claim against its source and confirm every mentioned file exists.
74
+ - Re-run the location check and confirm all changed files are inside the allowed write root.
75
+ - Remove unsupported claims instead of weakening them with vague language.
76
+
57
77
  ## Rules
58
78
 
59
79
  - Scope your work to the affected documentation.
@@ -67,6 +87,8 @@ If you change a page, check whether navigation or metadata must also be updated.
67
87
  - [ ] Metadata updated if applicable
68
88
  - [ ] Internal links valid
69
89
  - [ ] Tone consistent with the rest of the docs
90
+ - [ ] Every factual claim and snippet verified against a real source
91
+ - [ ] All writes confined to the allowed write root
70
92
 
71
93
  ## Report format
72
94
 
@@ -77,6 +99,7 @@ If you change a page, check whether navigation or metadata must also be updated.
77
99
  **Content:** [what changed]
78
100
  **Navigation:** [if applicable]
79
101
  **Metadata:** [if applicable]
102
+ **Evidence:** [source paths and, for chronology claims, commits used]
80
103
  ```
81
104
 
82
105
  ## Result contract
@@ -48,12 +48,10 @@ Once a task crosses any of these thresholds, delegating stops being optional:
48
48
  | Trigger | Expected behavior |
49
49
  | --- | --- |
50
50
  | Reading 4+ files just to understand a flow | Delegate exploration to the matching analyst. |
51
- | Touching 2+ non-trivial files | One writer (`implementer`) per scope; fresh `code-reviewer` pass before closing. |
52
- | Commit, push or PR after code changes | Run `code-reviewer` on the diff unless it is trivial docs/text. |
53
51
  | Wrong cwd, git/worktree accident, confusing test or env failure | Stop; re-explore with fresh context before continuing. |
54
52
  | Long session with accumulating complexity | Pause and re-plan or delegate — or state explicitly why not. |
55
53
 
56
- The goal is not ceremony: it is one responsible coordinator, one writer per scope, and fresh eyes before anything ships.
54
+ The goal is not ceremony: it is one responsible coordinator, one writer per scope, deterministic feedback while the diff is evolving, and fresh eyes at the PR boundary.
57
55
 
58
56
  ## 3. SPEC
59
57
 
@@ -109,6 +107,7 @@ Load the `agent-delegation` skill: it defines the available subagents, the scope
109
107
  Every subagent ends with a **Result contract** (Status / Delegations / Risks). Process it:
110
108
 
111
109
  - For each `→ [agent]: ...` line, launch the corresponding specialist.
110
+ - A delegation is unfinished work in another scope, not a request to append a generic quality pipeline. Normal handoffs between `implementer` and `tester` do not by themselves justify reviewers or analyzers.
112
111
  - If a subagent reports `partial`, keep the safe work and relaunch only what still needs guidance.
113
112
  - If a subagent reports `blocked` with one concrete uncertainty question, answer it from existing context when possible; if it still cannot be resolved, ask the user only if genuinely necessary, then relaunch the original or a suitable specialist with explicit guidance.
114
113
  - Don't declare a phase done while a delegation line remains unprocessed.
@@ -152,9 +151,19 @@ implementer (direct change)
152
151
 
153
152
  ### Verification cadence
154
153
 
155
- Verify by bounded, coherent sections (e.g. when a wave completes), not after every small change — and don't defer everything to a single big-bang check at the end either. Launch a verification subagent only when its trigger area actually changed in that section.
154
+ Deterministic checks are the routine feedback loop while implementation is in progress: run the relevant tests, lint and typecheck/build checks at the cheapest seam that can catch the section's regressions. Verify by bounded, coherent sections (e.g. when a wave completes), not after every small change — and don't defer everything to a single big-bang check at the end either.
156
155
 
157
- In parallel waves, each writer's minimum verification is its own bounded area (e.g. its test file) PLUS the project's global typecheck when one exists typecheck is cheap, global, and catches cross-file breakage that per-area runs miss. The full suite runs once per wave, by the orchestrator, when the wave closes never concurrently by several writers.
156
+ Each writer verifies its own bounded area (e.g. its test file). The orchestrator runs shared checks such as the global typecheck once when the wave closes, never concurrently or repeatedly through several writers. Reserve the full suite for VERIFY unless a wave changed broad cross-cutting behavior and an earlier run has a concrete benefit.
157
+
158
+ ### Early-review budget
159
+
160
+ An early review during EXECUTE is an **exception**, not a default phase. Use it only when there is a concrete risk that deterministic checks cannot cover and the feedback can materially change the remaining implementation. Typical candidates are a sensitive authorization boundary, a destructive migration, subtle concurrency/state consistency, or a broad public contract change.
161
+
162
+ - State the exact risk and the bounded diff section to inspect before launching anyone.
163
+ - Use the single most relevant specialist. Do not run `/xreview` or a generic multi-agent panel during EXECUTE.
164
+ - Run at most one early review per bounded critical section, after that section is coherent rather than after each task inside it.
165
+ - Do not launch `code-reviewer`, `code-simplifier`, `test-analyzer` or `silent-failure-hunter` merely because a writer finished, a test task completed, several files changed or a commit is due.
166
+ - File count, writer completion, commit, push, or PR creation are not early-review triggers. PR creation has its own single review boundary in SHIP.
158
167
 
159
168
  ## 6. VERIFY
160
169
 
@@ -168,14 +177,14 @@ In parallel waves, each writer's minimum verification is its own bounded area (e
168
177
 
169
178
  When the plan is fully applied and VERIFY passes:
170
179
 
171
- 1. Push the work branch (commits already exist per task from EXECUTE) and create the PR (`gh pr create`) against its real base — no permission needed for either. The post-PR hook fires the conditional multi-agent review automatically let it run and wait for the unified report. If the hook does NOT fire (no review instruction arrives after the PR is created), don't skip the review: launch `/xreview` yourself against the PR's base, with the same scope the hook would have used.
180
+ 1. Push the work branch (commits already exist per task from EXECUTE) and create the PR (`gh pr create`) against its real base — no permission needed for either. This is the one multi-agent review per PR: the post-PR hook fires it automatically, so let it run and wait for the unified report. If the hook does NOT fire (no review instruction arrives after the PR is created), launch `/xreview` yourself against the PR's base with the same scope; never run both.
172
181
  2. Process the report by its three levels:
173
182
  - **Critical Issues (must fix)**: apply ALL of them — the PR must not reach merge with these open.
174
183
  - **Important Improvements (should fix)**: apply the ones worth doing now, at your judgment.
175
184
  - **Suggestions (nice to have)**: apply only if trivial and safe.
176
185
  3. Every finding you decide NOT to apply now goes to the project's `work/backlog` single topic_key — one line each: what + why deferred. Apply the safe serialized backlog protocol above; subagents only return candidate lines.
177
186
  4. For what you DO apply: add the new tasks to plan.md and one `mem_save` per task spec, execute them as in EXECUTE, re-verify, and push the fixes to the PR branch.
178
- 5. The review fires once per PR creation — pushing fixes does not re-trigger it. Re-run `/xreview` only if the fixes were large.
187
+ 5. The review fires once per PR creation — pushing fixes does not re-trigger it. Re-run `/xreview` only if the fixes materially changed the reviewed diff or introduced a materially different risk; ordinary finding fixes need deterministic re-verification, not another panel.
179
188
 
180
189
  ## 8. CLOSE
181
190