@guiho/runx 0.4.1 → 0.5.1

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 (63) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/DOCS.md +24 -4
  3. package/README.md +6 -1
  4. package/devops/build-binaries.ts +3 -3
  5. package/devops/devops.xdocs.md +9 -6
  6. package/devops/extract-release-notes.spec.ts +54 -0
  7. package/devops/extract-release-notes.ts +40 -0
  8. package/devops/install.ps1 +29 -6
  9. package/devops/install.sh +36 -11
  10. package/devops/installers.spec.ts +152 -5
  11. package/devops/verify-release-assets.ts +14 -0
  12. package/docs/architecture/architecture.xdocs.md +2 -1
  13. package/docs/architecture/cli-architecture.md +18 -9
  14. package/docs/decisions/decisions.xdocs.md +4 -0
  15. package/docs/decisions/markdown-release-assets-and-version-scoped-notes.md +84 -0
  16. package/docs/plans/automatic-agent-maintenance.md +120 -0
  17. package/docs/plans/plans.xdocs.md +2 -0
  18. package/docs/plans/rfc-0034-cli-compliance-migration.md +17 -8
  19. package/docs/plans/upgrade-reliability-implementation.md +1 -1
  20. package/docs/reviews/implementation/automatic-agent-maintenance-review.md +63 -0
  21. package/docs/reviews/implementation/bash-installer-review.md +42 -0
  22. package/docs/reviews/implementation/implementation.xdocs.md +10 -0
  23. package/docs/reviews/implementation/rfc-0034-cli-compliance-migration-review.md +5 -2
  24. package/docs/reviews/implementation/unicode-help-tree-review.md +41 -0
  25. package/docs/reviews/implementation/upgrade-reliability-issue-12-review.md +62 -0
  26. package/docs/reviews/implementation/upgrade-reliability-issue-13-review.md +63 -0
  27. package/docs/reviews/plans/automatic-agent-maintenance-review.md +56 -0
  28. package/docs/reviews/plans/plans.xdocs.md +2 -0
  29. package/docs/superpowers/specs/2026-07-15-upgrade-reliability-design.md +1 -1
  30. package/docs/todo/automatic-agent-maintenance-implementation.md +55 -0
  31. package/docs/todo/automatic-agent-maintenance.md +86 -0
  32. package/docs/todo/bash-installer.md +45 -0
  33. package/docs/todo/rfc-0034-cli-compliance-migration-implementation.md +7 -2
  34. package/docs/todo/rfc-0034-cli-compliance-migration.md +7 -3
  35. package/docs/todo/todo.xdocs.md +10 -0
  36. package/docs/todo/unicode-help-tree.md +44 -0
  37. package/docs/todo/upgrade-reliability.md +51 -0
  38. package/docs/validation/automatic-agent-maintenance.md +63 -0
  39. package/docs/validation/bash-installer.md +55 -0
  40. package/docs/validation/rfc-0034-cli-compliance-migration.md +10 -4
  41. package/docs/validation/unicode-help-tree.md +43 -0
  42. package/docs/validation/upgrade-reliability-issue-12.md +74 -0
  43. package/docs/validation/upgrade-reliability-issue-13.md +72 -0
  44. package/docs/validation/upgrade-reliability.md +38 -99
  45. package/docs/validation/validation.xdocs.md +12 -2
  46. package/library/agent-maintenance.d.ts +19 -0
  47. package/library/agent-maintenance.d.ts.map +1 -0
  48. package/library/agent-maintenance.js +49 -0
  49. package/library/agents.d.ts +6 -1
  50. package/library/agents.d.ts.map +1 -1
  51. package/library/agents.js +58 -11
  52. package/library/cli.d.ts.map +1 -1
  53. package/library/cli.js +24 -7
  54. package/library/recovery.js +1 -1
  55. package/library/release-catalog.d.ts +2 -1
  56. package/library/release-catalog.d.ts.map +1 -1
  57. package/library/release-catalog.js +9 -1
  58. package/library/storage.d.ts +2 -1
  59. package/library/storage.d.ts.map +1 -1
  60. package/library/storage.js +13 -1
  61. package/package.json +1 -1
  62. package/skills/guiho-s-runx/SKILL.md +11 -0
  63. package/skills/guiho-s-runx/guiho-s-runx.xdocs.md +4 -1
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: RunX Automatic Agent Maintenance Plan Review
3
+ purpose: Verify the issue 11 implementation plan is safe, sequenced, and testable.
4
+ description: Reviews atomic reconciliation, hidden-worker scheduling, explicit-command boundaries, test isolation, documentation, and delivery gates.
5
+ created: 2026-07-19
6
+ flags:
7
+ - approved
8
+ - ready-for-execution
9
+ - executed
10
+ tags:
11
+ - review
12
+ - plan
13
+ - cli
14
+ keywords:
15
+ - RunX
16
+ - issue 11
17
+ - plan review
18
+ owner: runx-plan-reviews
19
+ ---
20
+
21
+ # RunX Automatic Agent Maintenance Plan Review
22
+
23
+ ## Verdict
24
+
25
+ Ready for execution.
26
+
27
+ ## Findings
28
+
29
+ No blocker or high-severity finding remains.
30
+
31
+ - Resolved: automatic writes follow atomic primitives and content comparison.
32
+ - Resolved: effective cwd comes from Citty state after routing.
33
+ - Resolved: explicit agent/uninstall operations are excluded so removal is not
34
+ immediately reversed.
35
+ - Resolved: temporary homes and injected spawn behavior protect real installs.
36
+
37
+ ## Sequencing Risks
38
+
39
+ Worker wiring must not precede atomic reconciliation. Output-isolation and
40
+ concurrency tests must pass before documentation claims completion.
41
+
42
+ ## TODO Alignment
43
+
44
+ RunX TODO task `2` owns the issue. The implementation and local validation are
45
+ complete; pushed evidence and issue closure are the final external delivery
46
+ steps.
47
+
48
+ ## First Executable Unit
49
+
50
+ AM-01: atomic text replacement and idempotent global/nearest reconciliation.
51
+
52
+ ## References
53
+
54
+ - [Plan](../../plans/automatic-agent-maintenance.md)
55
+ - [Task specification](../../todo/automatic-agent-maintenance.md)
56
+ - [GitHub issue #11](https://github.com/CGuiho/runx/issues/11)
@@ -4,6 +4,7 @@ description: Execution-readiness reviews for RunX implementation and release pla
4
4
  parent: runx-reviews
5
5
  children: []
6
6
  files:
7
+ automatic-agent-maintenance-review.md: Reviews the issue 11 automatic agent-maintenance plan for safe execution.
7
8
  citty-cli-migration-review.md: Reviews completeness, compatibility, safety invariants, native packaging, and release sequencing for the Citty migration.
8
9
  interactive-init-manifest-review.md: Reviews the RunX init manifest schema, terminal workflow, tests, XDocs, and pull-request delivery.
9
10
  mirror-automatic-push-review.md: Reviews synchronized-main safeguards, read-only validation, protected delivery, and release side effects.
@@ -12,6 +13,7 @@ files:
12
13
  windows-self-upgrade-review.md: Reviews synchronous replacement, rollback, regression coverage, issue closure, and patch delivery.
13
14
  upgrade-reliability-implementation-review.md: Reviews execution readiness for complete release discovery, transactional upgrades, recovery, installers, and validation.
14
15
  documents:
16
+ automatic-agent-maintenance-review.md: Ready-for-execution review for automatic agent maintenance.
15
17
  citty-cli-migration-review.md: Ready-for-execution review of the full Citty CLI migration plan.
16
18
  interactive-init-manifest-review.md: Ready-for-execution review of the RunX interactive init manifest plan.
17
19
  mirror-automatic-push-review.md: Ready-for-execution review of the Mirror automatic-push configuration plan.
@@ -464,7 +464,7 @@ powershell.exe -NoProfile -Command "Get-Process runx -ErrorAction SilentlyContin
464
464
  Linux and macOS use the supported shell installer with an explicit version:
465
465
 
466
466
  ```text
467
- curl -fsSL https://raw.githubusercontent.com/CGuiho/runx/main/devops/install.sh | sh -s -- --version '0.2.7'
467
+ curl -fsSL https://raw.githubusercontent.com/CGuiho/runx/main/devops/install.sh | bash -s -- --version '0.2.7'
468
468
  ```
469
469
 
470
470
  Their separate stop command is:
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: RunX Automatic Agent Maintenance Implementation
3
+ purpose: Preserve the implemented GitHub issue 11 automatic agent-resource maintenance record.
4
+ description: Records the atomic reconciler, hidden detached worker, command boundaries, regression coverage, and delivery handoff.
5
+ created: 2026-07-19
6
+ flags:
7
+ - completed
8
+ tags:
9
+ - implementation
10
+ - cli
11
+ - agents
12
+ keywords:
13
+ - RunX
14
+ - issue 11
15
+ - guiho-s-runx
16
+ - AGENTS.md
17
+ owner: runx-todo
18
+ ---
19
+
20
+ # RunX Automatic Agent Maintenance Implementation
21
+
22
+ ## Summary
23
+
24
+ Ordinary RunX invocations now schedule a silent detached worker that compares
25
+ the bundled `guiho-s-runx` skill with both global tool installations and
26
+ reconciles one nearest applicable `AGENTS.md`. Foreground command output, JSON,
27
+ help, delegated exit behavior, and startup latency remain independent of the
28
+ maintenance result.
29
+
30
+ ## Implementation Map
31
+
32
+ - `source/storage.ts` provides same-directory temporary writes followed by
33
+ replacement and cleanup on failure.
34
+ - `source/agents.ts` compares current skill bytes, repairs missing or stale
35
+ global skills, finds the nearest ancestor `AGENTS.md`, migrates legacy
36
+ markers, preserves user content, and emits exactly one current managed block.
37
+ - `source/agent-maintenance.ts` TypeBox-decodes the hidden worker invocation,
38
+ disables recursion, detaches standard streams, and isolates spawn failures.
39
+ - `source/cli.ts` schedules maintenance after Citty execution with its decoded
40
+ effective cwd while excluding explicit `agent` and `uninstall` operations.
41
+ - `source/agent-maintenance.spec.ts` and `source/cli.spec.ts` cover missing,
42
+ current, stale, legacy, concurrent, hidden, failure, output, cwd, and explicit
43
+ removal behavior without touching real user locations.
44
+
45
+ ## Delivery Boundary
46
+
47
+ This implementation completes GitHub issue #11. Versioning remains deferred to
48
+ the single final Mirror minor release after the complete open-issue sequence.
49
+
50
+ ## References
51
+
52
+ - [Task specification](./automatic-agent-maintenance.md)
53
+ - [Implementation plan](../plans/automatic-agent-maintenance.md)
54
+ - [Implementation review](../reviews/implementation/automatic-agent-maintenance-review.md)
55
+ - [Validation](../validation/automatic-agent-maintenance.md)
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: Add Automatic RunX Agent Maintenance
3
+ purpose: Define the outcome and acceptance signals for RunX GitHub issue 11.
4
+ description: Tracks non-blocking global skill repair, nearest AGENTS.md reconciliation, atomicity, isolation, tests, and delivery evidence.
5
+ created: 2026-07-19
6
+ flags:
7
+ - approved
8
+ - completed
9
+ tags:
10
+ - todo
11
+ - cli
12
+ - agents
13
+ keywords:
14
+ - RunX
15
+ - GitHub issue 11
16
+ - guiho-s-runx
17
+ - AGENTS.md
18
+ owner: runx-todo
19
+ ---
20
+
21
+ # Add Automatic RunX Agent Maintenance
22
+
23
+ ## Todo Index
24
+
25
+ - Task: `2. Add Automatic RunX Agent Maintenance`
26
+ - Status: completed
27
+ - Index: [TODO.md](../../TODO.md)
28
+ - External: [CGuiho/runx issue #11](https://github.com/CGuiho/runx/issues/11)
29
+
30
+ ## Outcome
31
+
32
+ Ordinary RunX commands automatically and silently converge the bundled global
33
+ skill and nearest project instruction block without delaying, polluting, or
34
+ failing the requested command.
35
+
36
+ ## Scope
37
+
38
+ ### In scope
39
+
40
+ - Both global RunX skill targets.
41
+ - Nearest applicable `AGENTS.md`.
42
+ - Current and legacy managed blocks.
43
+ - Atomic, idempotent, concurrent-safe writes.
44
+ - Hidden detached worker startup and failure isolation.
45
+ - Text/JSON/help/version/exit-code stability.
46
+ - Tests, docs, xdocs, review, validation, push, comment, and closure.
47
+
48
+ ### Out of scope
49
+
50
+ - Reintroducing plural `runx agents` compatibility.
51
+ - Network-based skill discovery.
52
+ - Implicit XDocs or other CLI resource mutations.
53
+ - Versioning before the complete open-issue sequence finishes.
54
+
55
+ ## Acceptance Signals
56
+
57
+ - Plain RunX schedules the hidden worker.
58
+ - Missing/stale global skills are repaired; current skills are not rewritten.
59
+ - The nearest `AGENTS.md` contains exactly one compact current RunX block.
60
+ - User-authored content remains unchanged outside managed markers.
61
+ - Worker scheduling and reconciliation failures cannot fail the foreground.
62
+ - Concurrent workers converge safely.
63
+ - Public help contains no hidden worker route.
64
+ - Text and JSON output remain deterministic.
65
+ - Tests cover every state named by issue #11.
66
+ - Pushed evidence precedes the resolution comment and closure.
67
+
68
+ ## Watch-outs
69
+
70
+ - Explicit skill uninstall and RunX uninstall must not trigger reinstallation.
71
+ - Tests must use temporary HOME/USERPROFILE paths and never mutate real global
72
+ skills or repository instructions.
73
+ - The worker must use Citty-decoded `--cwd`, not a second public flag parser.
74
+
75
+ ## Related Files
76
+
77
+ - [Implementation plan](../plans/automatic-agent-maintenance.md)
78
+ - [Implementation notes](./automatic-agent-maintenance-implementation.md)
79
+ - [Implementation review](../reviews/implementation/automatic-agent-maintenance-review.md)
80
+ - [Validation](../validation/automatic-agent-maintenance.md)
81
+ - [CLI architecture](../architecture/cli-architecture.md)
82
+
83
+ ## References
84
+
85
+ - [TODO.md](../../TODO.md)
86
+ - [GitHub issue #11](https://github.com/CGuiho/runx/issues/11)
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: Use Bash For The RunX Installer
3
+ purpose: Track the canonical shell correction requested by GitHub issue 15.
4
+ description: Records Bash shebang, strict mode, documented invocation, recovery generation, executable tests, and delivery evidence.
5
+ created: 2026-07-19
6
+ flags:
7
+ - completed
8
+ tags:
9
+ - todo
10
+ - installer
11
+ - bash
12
+ keywords:
13
+ - RunX
14
+ - issue 15
15
+ - install.sh
16
+ - pipefail
17
+ owner: runx-todo
18
+ ---
19
+
20
+ # Use Bash For The RunX Installer
21
+
22
+ ## Todo Index
23
+
24
+ - Task: `4. Use Bash For The RunX Installer`
25
+ - Status: completed
26
+ - Index: [TODO.md](../../TODO.md)
27
+ - External: [CGuiho/runx issue #15](https://github.com/CGuiho/runx/issues/15)
28
+
29
+ ## Outcome
30
+
31
+ RunX declares and invokes the Linux/macOS installer as Bash everywhere. The
32
+ installer uses Bash strict mode and passes syntax, piped startup, exact-version,
33
+ and executable-version checks under a real Bash runtime.
34
+
35
+ ## Completion Signals
36
+
37
+ - No canonical installer or recovery command pipes `install.sh` to `sh`.
38
+ - The script starts with `#!/usr/bin/env bash` and `set -euo pipefail`.
39
+ - Shell-profile detection remains safe when `SHELL` is unset.
40
+ - Git Bash and Ubuntu-compatible tests exercise the script, not only its text.
41
+
42
+ ## References
43
+
44
+ - [Implementation review](../reviews/implementation/bash-installer-review.md)
45
+ - [Validation](../validation/bash-installer.md)
@@ -26,6 +26,11 @@ cache and release boundaries, complete Developer Context help, the singular
26
26
  agent namespace, transactional upgrades, complete installers, a Node-compatible
27
27
  npm bootstrap, and the exact fourteen release assets.
28
28
 
29
+ The final release contract intentionally overrides the original RFC asset
30
+ spelling: the two public Markdown artifacts are `guiho-s-runx.md` and
31
+ `guiho-i-runx.md`. The publish workflow extracts the exact version section from
32
+ the changelog and creates or updates GitHub Release notes idempotently.
33
+
29
34
  ## Implementation Map
30
35
 
31
36
  - RX-02-RX-05: `path-utils.ts`, `storage.ts`, `configuration.ts`,
@@ -39,8 +44,8 @@ npm bootstrap, and the exact fourteen release assets.
39
44
  - RX-10-RX-11: CLI output, release pagination, upgrade selection, replacement,
40
45
  rollback, reconciliation, and cache behavior use stable contracts.
41
46
  - RX-12-RX-14: both installers, `scripts/runx-bin.mjs`, the binary builder,
42
- asset verifier, and GitHub workflows enforce the installation and fourteen
43
- asset contracts.
47
+ asset verifier, exact-version release-note extractor, and GitHub workflows
48
+ enforce the installation, release-description, and fourteen-asset contracts.
44
49
  - RX-15-RX-16: canonical docs, TODO, xdocs, review, validation, tests, builds,
45
50
  and release preparation were aligned to the executable.
46
51
 
@@ -40,7 +40,7 @@ markers, `macos` asset names, and the Bun-dependent npm launcher is not required
40
40
  RunX uses the mandatory Bun/TypeScript/Citty/TypeBox stack, has a Bun-only core,
41
41
  implements the exact startup/configuration/help/agent/upgrade/installer/output
42
42
  contracts, ships a Node-compatible npm bootstrap, and publishes exactly twelve
43
- RFC-named binaries plus `guiho-s-runx` and `guiho-i-runx`.
43
+ RFC-named binaries plus `guiho-s-runx.md` and `guiho-i-runx.md`.
44
44
 
45
45
  ## Scope
46
46
 
@@ -84,8 +84,12 @@ RFC-named binaries plus `guiho-s-runx` and `guiho-i-runx`.
84
84
  raw/names-only rules.
85
85
  - Upgrade, list pagination, pre-release filtering, installers, and the npm
86
86
  wrapper pass isolated tests.
87
- - Release verification finds exactly fourteen correctly named assets and no
88
- `macos` names.
87
+ - Release verification finds exactly fourteen correctly named assets, including
88
+ both `.md` agent artifacts, and no `macos` names.
89
+ - GitHub Release notes contain only the exact matching changelog version section,
90
+ including when an existing release is rerun.
91
+ - Direct installers reject empty, executable, binary, invalid UTF-8, and
92
+ misidentified downloaded agent Markdown before writing installation targets.
89
93
  - Typecheck, tests, safe builds, xdocs validation, implementation review, and
90
94
  validation reporting complete successfully.
91
95
 
@@ -4,13 +4,23 @@ description: Linked task specifications for the RunX TODO index.
4
4
  parent: runx-docs
5
5
  children: []
6
6
  files:
7
+ bash-installer.md: Completes the GitHub issue 15 Bash shebang, invocation, strict-mode, and executable test contract.
8
+ automatic-agent-maintenance.md: Defines issue 11 automatic agent-resource maintenance outcomes and acceptance signals.
9
+ automatic-agent-maintenance-implementation.md: Records the delivered issue 11 reconciler, hidden worker, command boundaries, tests, and release handoff.
7
10
  protect-branches-and-tag-creation.md: Records the verified active GitHub branch and release-tag rulesets for RunX.
8
11
  rfc-0034-cli-compliance-migration.md: Defines the required breaking migration outcome, scope, constraints, and completion signals for full RFC 0034 compliance.
9
12
  rfc-0034-cli-compliance-migration-implementation.md: Records the delivered RX units, implementation map, test-hang diagnosis, and independent audit corrections.
13
+ upgrade-reliability.md: Completes GitHub issues 12 and 13 for verified replacement, complete listing, exact recovery, and direct installers.
14
+ unicode-help-tree.md: Completes GitHub issue 17 with Unicode branches, nested guides, aligned descriptions, and legacy ASCII rejection.
10
15
  documents:
16
+ bash-installer.md: Completed task specification for the canonical RunX Bash installer.
17
+ automatic-agent-maintenance.md: Task specification for automatic RunX skill and AGENTS.md maintenance.
18
+ automatic-agent-maintenance-implementation.md: Completed implementation record for automatic RunX agent maintenance.
11
19
  protect-branches-and-tag-creation.md: Completed task specification with active RunX ruleset IDs, protected patterns, and verification evidence.
12
20
  rfc-0034-cli-compliance-migration.md: Task specification linked from TODO task 1 for the full RunX CLI contract migration.
13
21
  rfc-0034-cli-compliance-migration-implementation.md: Completed implementation, independent correction, and validation handoff for TODO task 1.
22
+ upgrade-reliability.md: Completed task specification for RunX upgrade reliability.
23
+ unicode-help-tree.md: Completed task specification for the RunX Unicode help tree.
14
24
  tags:
15
25
  - todo
16
26
  keywords:
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: Preserve The RunX Unicode Help Tree
3
+ purpose: Track the human-readable tree contract requested by GitHub issue 17.
4
+ description: Records Unicode branches, nested guides, aligned descriptions, legacy ASCII rejection, tests, and delivery evidence.
5
+ created: 2026-07-19
6
+ flags:
7
+ - completed
8
+ tags:
9
+ - todo
10
+ - cli
11
+ - help
12
+ keywords:
13
+ - RunX
14
+ - issue 17
15
+ - help tree
16
+ - Unicode
17
+ owner: runx-todo
18
+ ---
19
+
20
+ # Preserve The RunX Unicode Help Tree
21
+
22
+ ## Todo Index
23
+
24
+ - Task: `5. Preserve The RunX Unicode Help Tree`
25
+ - Status: completed
26
+ - Index: [TODO.md](../../TODO.md)
27
+ - External: [CGuiho/runx issue #17](https://github.com/CGuiho/runx/issues/17)
28
+
29
+ ## Outcome
30
+
31
+ `runx --help-tree` renders a `COMMAND TREE` with Unicode branch glyphs, nested
32
+ vertical guides, aligned descriptions, commands, and flags. The legacy ASCII
33
+ `|-` tree cannot regress unnoticed.
34
+
35
+ ## Completion Signals
36
+
37
+ - Root and every public scope render from the real Citty definitions.
38
+ - Tests assert `├──`, `└──`, `│`, aligned descriptions, and no `|-`.
39
+ - Depth limiting and hidden-command exclusion remain intact.
40
+
41
+ ## References
42
+
43
+ - [Implementation review](../reviews/implementation/unicode-help-tree-review.md)
44
+ - [Validation](../validation/unicode-help-tree.md)
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: Complete RunX Upgrade Reliability
3
+ purpose: Track the accepted outcomes for GitHub issues 12 and 13.
4
+ description: Records immediate verified replacement, complete listing, exact recovery, direct installers, reviews, validation, and delivery evidence.
5
+ created: 2026-07-15
6
+ updated: 2026-07-19
7
+ flags:
8
+ - completed
9
+ tags:
10
+ - todo
11
+ - cli
12
+ - reliability
13
+ keywords:
14
+ - RunX
15
+ - issue 12
16
+ - issue 13
17
+ - self-upgrade
18
+ owner: runx-todo
19
+ ---
20
+
21
+ # Complete RunX Upgrade Reliability
22
+
23
+ ## Todo Index
24
+
25
+ - Task: `3. Complete RunX Upgrade Reliability`
26
+ - Status: completed
27
+ - Index: [TODO.md](../../TODO.md)
28
+ - External: [issue #12](https://github.com/CGuiho/runx/issues/12) and
29
+ [issue #13](https://github.com/CGuiho/runx/issues/13)
30
+
31
+ ## Outcome
32
+
33
+ RunX replaces and verifies the canonical executable before success, lists the
34
+ complete published catalog, and exposes exact-version recovery instructions
35
+ after every upgrade outcome in text and JSON.
36
+
37
+ ## Completion Signals
38
+
39
+ - Transactional Windows replacement and rollback are tested.
40
+ - Catalog pagination, sorting, channels, assets, and single-leaf routing are
41
+ tested.
42
+ - Every terminal outcome includes a pinned installer and separate stop command.
43
+ - Direct installers normalize exact stable/prerelease versions and reject
44
+ installed-version mismatches.
45
+ - Current-main reviews and validation contain pushed evidence for both issues.
46
+
47
+ ## References
48
+
49
+ - [Approved design](../superpowers/specs/2026-07-15-upgrade-reliability-design.md)
50
+ - [Implementation plan](../plans/upgrade-reliability-implementation.md)
51
+ - [Umbrella validation](../validation/upgrade-reliability.md)
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: RunX Automatic Agent Maintenance Validation
3
+ purpose: Record direct verification evidence for GitHub issue 11.
4
+ description: Captures focused and full tests, builds, native matrix, exact assets, import scan, XDocs, and Git integrity results.
5
+ created: 2026-07-19
6
+ flags:
7
+ - validated
8
+ tags:
9
+ - validation
10
+ - cli
11
+ - agents
12
+ keywords:
13
+ - RunX
14
+ - issue 11
15
+ - 48 tests
16
+ - 14 assets
17
+ owner: runx-validation
18
+ ---
19
+
20
+ # RunX Automatic Agent Maintenance Validation
21
+
22
+ ## Summary
23
+
24
+ All local completion gates for GitHub issue #11 passed. No validation blocker
25
+ remains.
26
+
27
+ ## Commands Run
28
+
29
+ | Command or check | Result |
30
+ | --- | --- |
31
+ | `bun run typecheck` | Passed |
32
+ | focused maintenance and CLI tests | Passed: 13 tests, 156 assertions |
33
+ | `bun test --timeout 30000` | Passed: 48 tests, 332 assertions |
34
+ | `bun run build` | Passed |
35
+ | `bun run binary` | Passed |
36
+ | `bun run binaries` | Passed: twelve native targets |
37
+ | `bun run verify-assets` | Passed: exactly fourteen unique assets |
38
+ | Windows x64 `--version` smoke | Passed: `0.4.1` |
39
+ | Windows x64 `--help-tree-depth 2` smoke | Passed; hidden worker absent |
40
+ | prohibited core import scan | Passed: zero matches |
41
+ | strict XDocs metadata for source, docs, and bundled skill | Passed |
42
+ | XDocs doctor for source, docs, and bundled skill | Passed: zero errors and zero warnings |
43
+ | `git diff --check` | Passed |
44
+
45
+ ## Behavioral Evidence
46
+
47
+ - Plain invocation retained its exact banner while both global skills and the
48
+ nearest project instructions appeared asynchronously.
49
+ - Catalog JSON remained parseable and diagnostics stayed on stderr.
50
+ - Missing, current, stale, legacy, and concurrent states converged as designed.
51
+ - Spawn and worker filesystem failures did not affect foreground output.
52
+ - Explicit skill uninstall and instruction removal stayed removed.
53
+
54
+ ## Skipped Checks
55
+
56
+ - No global user skill or real repository instruction was mutated by tests.
57
+ - No package publication or GitHub Release creation was performed.
58
+ - No Mirror version application occurred during this issue unit.
59
+
60
+ ## References
61
+
62
+ - [Implementation review](../reviews/implementation/automatic-agent-maintenance-review.md)
63
+ - [Implementation notes](../todo/automatic-agent-maintenance-implementation.md)
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: RunX Bash Installer Validation
3
+ purpose: Record direct verification evidence for GitHub issue 15.
4
+ description: Captures Bash syntax, piped startup, exact versions, recovery, executable verification, full suite, native assets, XDocs, and Git checks.
5
+ created: 2026-07-19
6
+ flags:
7
+ - validated
8
+ tags:
9
+ - validation
10
+ - installer
11
+ - bash
12
+ keywords:
13
+ - RunX
14
+ - issue 15
15
+ - bash -n
16
+ - 14 assets
17
+ owner: runx-validation
18
+ ---
19
+
20
+ # RunX Bash Installer Validation
21
+
22
+ ## Summary
23
+
24
+ The canonical RunX Linux/macOS installer and recovery command use Bash. No
25
+ validation blocker remains.
26
+
27
+ ## Commands Run
28
+
29
+ | Command or check | Result |
30
+ | --- | --- |
31
+ | `bun run typecheck` | Passed |
32
+ | focused recovery and installer tests | Passed: 7 tests, 45 assertions |
33
+ | Git Bash `bash -n devops/install.sh` | Passed |
34
+ | piped source-only Bash fixture | Passed with exit 0 and empty stderr |
35
+ | exact stable/prerelease normalization fixture | Passed |
36
+ | Bash executable-version verification fixture | Passed |
37
+ | `bun test --timeout 30000` | Passed: 53 tests, 363 assertions |
38
+ | build, native matrix, exact assets | Passed: library, single binary, twelve native targets, exactly fourteen assets |
39
+ | canonical `sh` reference scan | Passed: zero matches |
40
+ | strict XDocs metadata and doctor | Passed for source, devops, and docs: zero errors and zero warnings |
41
+ | `git diff --check` | Passed |
42
+
43
+ ## Contract Evidence
44
+
45
+ - The script declares `#!/usr/bin/env bash` and `set -euo pipefail`.
46
+ - README and generated recovery commands pipe to `bash`, never `sh`.
47
+ - Tests run with Git for Windows Bash locally and resolve the ordinary Bash
48
+ executable on Linux/macOS CI.
49
+ - The Bash function fixture verifies full prerelease identifiers and executes
50
+ the installed-version check against a real executable.
51
+
52
+ ## References
53
+
54
+ - [Implementation review](../reviews/implementation/bash-installer-review.md)
55
+ - [Task specification](../todo/bash-installer.md)
@@ -10,7 +10,7 @@ tags:
10
10
  - cli
11
11
  keywords:
12
12
  - RFC 0034
13
- - 40 tests
13
+ - 44 tests
14
14
  - 14 assets
15
15
  - RunX
16
16
  owner: runx-validation
@@ -29,17 +29,19 @@ validation blocker remains.
29
29
  | Command or check | Result |
30
30
  | --- | --- |
31
31
  | `bun run typecheck` | Passed |
32
- | `bun test --timeout 30000` | Passed: 40 tests, 272 assertions |
32
+ | `bun test --timeout 30000` | Passed: 44 tests, 288 assertions |
33
33
  | `bun run build` | Passed |
34
34
  | `bun run binary` | Passed |
35
35
  | `bun run binaries` | Passed: twelve native targets |
36
36
  | `bun run verify-assets` | Passed: exactly fourteen unique assets |
37
+ | `bun test devops/extract-release-notes.spec.ts` | Passed: exact heading boundaries, missing-section failure, and frontmatter/older-section exclusion |
37
38
  | `node --check scripts/runx-bin.mjs` | Passed |
38
39
  | packed npm bootstrap local-server smoke | Passed with Node and Bun removed from PATH |
39
40
  | prohibited core Node-import scan | Passed: zero matches |
40
41
  | CLI banner/help/config/agent/output/exit smoke tests | Passed in CLI suite |
41
42
  | live `upgrade --help`, prompt names, source banner, and compiled version smokes | Passed |
42
43
  | PowerShell and POSIX installer contract tests | Passed |
44
+ | disguised-PE Markdown installer regression | Passed: installer rejected `MZ` payload before any resource write |
43
45
  | `xdocs doctor --warnings-as-errors` | Passed: zero errors and zero warnings |
44
46
  | `git diff --check` | Passed |
45
47
 
@@ -59,8 +61,12 @@ validation blocker remains.
59
61
  ## Exact Release Asset Evidence
60
62
 
61
63
  The verifier observed twelve `runx-*` assets using Linux, Darwin, and Windows
62
- names plus `guiho-s-runx` and `guiho-i-runx`. It found no duplicate, extra,
63
- missing, or legacy platform name.
64
+ names plus `guiho-s-runx.md` and `guiho-i-runx.md`. It found no duplicate,
65
+ extra, missing, or legacy platform name.
66
+
67
+ The publish workflow writes a temporary notes file containing only the exact
68
+ version section from `CHANGELOG.md`. Existing releases receive the same notes
69
+ through `gh release edit` before their asset set is refreshed.
64
70
 
65
71
  ## Skipped Checks
66
72
 
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: RunX Unicode Help Tree Validation
3
+ purpose: Record direct verification evidence for GitHub issue 17.
4
+ description: Captures focused and full help tests, native tree smoke, builds, exact assets, XDocs, and Git integrity.
5
+ created: 2026-07-19
6
+ flags:
7
+ - validated
8
+ tags:
9
+ - validation
10
+ - cli
11
+ - help
12
+ keywords:
13
+ - RunX
14
+ - issue 17
15
+ - Unicode tree
16
+ - aligned descriptions
17
+ owner: runx-validation
18
+ ---
19
+
20
+ # RunX Unicode Help Tree Validation
21
+
22
+ ## Summary
23
+
24
+ The RunX help tree matches the requested readable Unicode hierarchy. No
25
+ validation blocker remains.
26
+
27
+ ## Commands Run
28
+
29
+ | Command or check | Result |
30
+ | --- | --- |
31
+ | `bun run typecheck` | Passed |
32
+ | focused CLI tests | Passed: 11 tests, 140 assertions |
33
+ | explicit root tree assertions | Passed: `├──`, `└──`, `│`, aligned list description, no `|-` |
34
+ | `bun test --timeout 30000` | Passed: 53 tests, 368 assertions |
35
+ | build, native matrix, exact assets | Passed: library, single binary, twelve native targets, exactly fourteen assets |
36
+ | native Windows x64 `--help-tree-depth 2` | Passed: Unicode nesting and aligned descriptions; no `|-` |
37
+ | strict XDocs metadata and doctor | Passed for source and docs: zero errors and zero warnings |
38
+ | `git diff --check` | Passed |
39
+
40
+ ## References
41
+
42
+ - [Implementation review](../reviews/implementation/unicode-help-tree-review.md)
43
+ - [Task specification](../todo/unicode-help-tree.md)