@guiho/runx 0.2.6 → 0.4.0

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 (92) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/DOCS.md +128 -109
  3. package/README.md +58 -58
  4. package/devops/build-binaries.ts +44 -62
  5. package/devops/devops.xdocs.md +8 -5
  6. package/devops/install.ps1 +182 -152
  7. package/devops/install.sh +197 -262
  8. package/devops/installers.spec.ts +31 -0
  9. package/devops/verify-release-assets.ts +17 -0
  10. package/docs/decisions/decisions.xdocs.md +4 -0
  11. package/docs/decisions/interactive-init-manifest.md +187 -0
  12. package/docs/docs.xdocs.md +3 -1
  13. package/docs/plans/interactive-init-manifest.md +177 -0
  14. package/docs/plans/plans.xdocs.md +11 -0
  15. package/docs/plans/rfc-0034-cli-compliance-migration.md +586 -0
  16. package/docs/plans/upgrade-reliability-implementation.md +95 -0
  17. package/docs/reviews/implementation/implementation.xdocs.md +6 -0
  18. package/docs/reviews/implementation/interactive-init-manifest-review.md +69 -0
  19. package/docs/reviews/implementation/rfc-0034-cli-compliance-migration-review.md +59 -0
  20. package/docs/reviews/plans/interactive-init-manifest-review.md +82 -0
  21. package/docs/reviews/plans/plans.xdocs.md +10 -0
  22. package/docs/reviews/plans/rfc-0034-cli-compliance-migration-review.md +80 -0
  23. package/docs/reviews/plans/upgrade-reliability-implementation-review.md +65 -0
  24. package/docs/superpowers/specs/2026-07-15-upgrade-reliability-design.md +662 -0
  25. package/docs/superpowers/specs/specs.xdocs.md +24 -0
  26. package/docs/superpowers/superpowers.xdocs.md +21 -0
  27. package/docs/todo/rfc-0034-cli-compliance-migration-implementation.md +58 -0
  28. package/docs/todo/rfc-0034-cli-compliance-migration.md +151 -0
  29. package/docs/todo/todo.xdocs.md +6 -2
  30. package/docs/validation/interactive-init-manifest.md +79 -0
  31. package/docs/validation/rfc-0034-cli-compliance-migration.md +67 -0
  32. package/docs/validation/upgrade-reliability.md +124 -0
  33. package/docs/validation/validation.xdocs.md +9 -0
  34. package/library/agents.d.ts +28 -4
  35. package/library/agents.d.ts.map +1 -1
  36. package/library/agents.js +143 -41
  37. package/library/cli.d.ts.map +1 -1
  38. package/library/cli.js +297 -317
  39. package/library/configuration.d.ts +57 -0
  40. package/library/configuration.d.ts.map +1 -0
  41. package/library/configuration.js +111 -0
  42. package/library/embedded-resources.d.ts +6 -1
  43. package/library/embedded-resources.d.ts.map +1 -1
  44. package/library/embedded-resources.js +10 -4
  45. package/library/executor.d.ts +5 -1
  46. package/library/executor.d.ts.map +1 -1
  47. package/library/executor.js +10 -10
  48. package/library/help.d.ts +8 -4
  49. package/library/help.d.ts.map +1 -1
  50. package/library/help.js +70 -42
  51. package/library/init.d.ts +18 -0
  52. package/library/init.d.ts.map +1 -0
  53. package/library/init.js +43 -0
  54. package/library/manifest.d.ts +4 -40
  55. package/library/manifest.d.ts.map +1 -1
  56. package/library/manifest.js +4 -112
  57. package/library/path-utils.d.ts +13 -0
  58. package/library/path-utils.d.ts.map +1 -0
  59. package/library/path-utils.js +82 -0
  60. package/library/recovery.d.ts +7 -0
  61. package/library/recovery.d.ts.map +1 -0
  62. package/library/recovery.js +23 -0
  63. package/library/release-catalog.d.ts +32 -0
  64. package/library/release-catalog.d.ts.map +1 -0
  65. package/library/release-catalog.js +124 -0
  66. package/library/self-management.d.ts +24 -4
  67. package/library/self-management.d.ts.map +1 -1
  68. package/library/self-management.js +279 -99
  69. package/library/storage.d.ts +13 -0
  70. package/library/storage.d.ts.map +1 -0
  71. package/library/storage.js +38 -0
  72. package/library/types.d.ts +11 -16
  73. package/library/types.d.ts.map +1 -1
  74. package/library/types.js +3 -0
  75. package/library/update-cache.d.ts +21 -0
  76. package/library/update-cache.d.ts.map +1 -0
  77. package/library/update-cache.js +68 -0
  78. package/library/upgrade-reporting.d.ts +11 -0
  79. package/library/upgrade-reporting.d.ts.map +1 -0
  80. package/library/upgrade-reporting.js +67 -0
  81. package/library/upgrade-types.d.ts +72 -0
  82. package/library/upgrade-types.d.ts.map +1 -0
  83. package/library/upgrade-types.js +3 -0
  84. package/package.json +6 -3
  85. package/scripts/runx-bin.mjs +49 -0
  86. package/scripts/runx-bin.spec.ts +62 -0
  87. package/scripts/scripts.xdocs.md +3 -3
  88. package/skills/guiho-s-runx/SKILL.md +64 -59
  89. package/skills/guiho-s-runx/guiho-s-runx.xdocs.md +7 -4
  90. package/skills/skills.xdocs.md +1 -1
  91. package/docs/todo/implement-runx-alpha.md +0 -36
  92. package/scripts/runx-bin.ts +0 -24
@@ -0,0 +1,21 @@
1
+ ---
2
+ subject: runx-superpowers
3
+ description: Approved design specifications produced before RunX implementation planning and code changes.
4
+ parent: runx-docs
5
+ children:
6
+ - runx-superpowers-specs
7
+ files: {}
8
+ documents: {}
9
+ tags:
10
+ - documentation
11
+ - design
12
+ keywords:
13
+ - runx
14
+ - superpowers
15
+ - specifications
16
+ flags: []
17
+ status: stable
18
+ ---
19
+
20
+ This module groups approved RunX design specifications that define behavior,
21
+ interfaces, ownership, validation, and release gates before implementation.
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: RunX RFC 0034 CLI Compliance Migration Implementation
3
+ purpose: Preserve the executed RX-01 through RX-16 implementation record.
4
+ description: Records the delivered module changes, breaking-contract decisions, test-hang diagnosis, and validation handoff for the RunX RFC migration.
5
+ created: 2026-07-18
6
+ flags:
7
+ - completed
8
+ tags:
9
+ - implementation
10
+ - cli
11
+ keywords:
12
+ - RFC 0034
13
+ - RX-01
14
+ - RX-16
15
+ - RunX
16
+ owner: runx-todo
17
+ ---
18
+
19
+ # RunX RFC 0034 CLI Compliance Migration Implementation
20
+
21
+ ## Summary
22
+
23
+ RX-01 through RX-16 were implemented as one breaking pre-1.0 migration. RunX
24
+ now has one Citty tree, Bun-only core modules, TypeBox-decoded configuration,
25
+ cache and release boundaries, complete Developer Context help, the singular
26
+ agent namespace, transactional upgrades, complete installers, a Node-compatible
27
+ npm bootstrap, and the exact fourteen release assets.
28
+
29
+ ## Implementation Map
30
+
31
+ - RX-02-RX-05: `path-utils.ts`, `storage.ts`, `configuration.ts`,
32
+ `update-cache.ts`, release schemas, and shared types establish Bun-first I/O
33
+ and TypeBox boundaries.
34
+ - RX-06-RX-08: `cli.ts` and `help.ts` own the exact Citty tree, exit mapping,
35
+ startup lifecycle, Unicode tree help, depth validation, and Markdown help.
36
+ - RX-09: `agents.ts`, embedded resources, the bundled skill, and
37
+ `prompts/guiho-i-runx.md` implement dual-tool skills, instruction blocks, and
38
+ prompt discovery.
39
+ - RX-10-RX-11: CLI output, release pagination, upgrade selection, replacement,
40
+ rollback, reconciliation, and cache behavior use stable contracts.
41
+ - 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.
44
+ - RX-15-RX-16: canonical docs, TODO, xdocs, review, validation, tests, builds,
45
+ and release preparation were aligned to the executable.
46
+
47
+ ## Test-Hang Diagnosis
48
+
49
+ The original unbounded suite hung in legacy process-oriented tests. The
50
+ individual CLI baseline passed 10/10, proving the CLI was not persistently
51
+ stuck. The obsolete tests were replaced or bounded; the final complete suite
52
+ runs 38 tests and exits normally in about 28 seconds.
53
+
54
+ ## References
55
+
56
+ - [Plan](../plans/rfc-0034-cli-compliance-migration.md)
57
+ - [Implementation review](../reviews/implementation/rfc-0034-cli-compliance-migration-review.md)
58
+ - [Validation](../validation/rfc-0034-cli-compliance-migration.md)
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: Migrate RunX To Full RFC 0034 Compliance
3
+ purpose: Define the required outcome, scope, constraints, and completion signals for the RunX RFC 0034 migration task.
4
+ description: Captures what must be true after RunX adopts the complete GUIHO CLI contract and links the executable migration plan.
5
+ created: 2026-07-18
6
+ flags:
7
+ - approved
8
+ - breaking-change
9
+ - completed
10
+ tags:
11
+ - todo
12
+ - cli
13
+ - migration
14
+ keywords:
15
+ - runx
16
+ - RFC 0034
17
+ - guiho-s-0034-cli-engineer
18
+ - agent namespace
19
+ - fourteen release assets
20
+ owner: runx-todo
21
+ ---
22
+
23
+ # Migrate RunX To Full RFC 0034 Compliance
24
+
25
+ ## Summary
26
+
27
+ Bring RunX into complete compliance with GUIHO RFC 0034. This is an approved
28
+ breaking migration for a pre-1.0 CLI. Compatibility with `runx r`, root selector
29
+ shorthand, `--file`, upward manifest discovery, `runx agents`, `--tool`, old
30
+ markers, `macos` asset names, and the Bun-dependent npm launcher is not required.
31
+
32
+ ## Todo Index
33
+
34
+ - Task: `1. Migrate RunX To Full RFC 0034 Compliance`
35
+ - Status: completed
36
+ - Index: [TODO.md](../../TODO.md)
37
+
38
+ ## Outcome
39
+
40
+ RunX uses the mandatory Bun/TypeScript/Citty/TypeBox stack, has a Bun-only core,
41
+ implements the exact startup/configuration/help/agent/upgrade/installer/output
42
+ contracts, ships a Node-compatible npm bootstrap, and publishes exactly twelve
43
+ RFC-named binaries plus `guiho-s-runx` and `guiho-i-runx`.
44
+
45
+ ## Scope
46
+
47
+ ### In scope
48
+
49
+ - Core CLI source, entrypoints, command tree, domain adapters, and errors.
50
+ - `runx.yaml` resolution and TypeBox decoding.
51
+ - update cache and background worker under `~/.guiho/runx/`.
52
+ - all Developer Context help modes at every scope.
53
+ - complete singular `agent skill`, `agent instruction`, and `agent prompt`
54
+ namespaces.
55
+ - transactional upgrade, catalog pagination, and post-upgrade reconciliation.
56
+ - PowerShell and POSIX installers.
57
+ - Node-compatible npm bootstrap.
58
+ - exact fourteen-asset build and release enforcement.
59
+ - tests, CI, README, DOCS, bundled skill, TODO, changelog, decisions, and xdocs.
60
+
61
+ ### Out of scope
62
+
63
+ - Workflow dependency graphs or a proprietary task language.
64
+ - Remote command execution.
65
+ - Secret management.
66
+ - Publishing, version bumping, tagging, or live installation without separate
67
+ authorization.
68
+
69
+ ## Acceptance Signals
70
+
71
+ - No prohibited Node built-ins exist in core CLI source.
72
+ - No arguments prints exactly `Hello Windows - runx v<version>`.
73
+ - `runx.yaml` resolves only by `--config`, effective cwd, then the standardized
74
+ global path, and prints its absolute loaded path.
75
+ - TypeBox decodes configuration, cache, remote releases, structured flags, and
76
+ stable output objects before use.
77
+ - Only `-h` and root `-v` short aliases exist.
78
+ - Every command scope supports standard help, tree help, positive tree depth,
79
+ and redirect-safe Markdown help.
80
+ - The final command catalog in the plan is the only public catalog.
81
+ - Agent skill actions target both agent-tool directories; instruction actions
82
+ handle zero, one, or both instruction files idempotently; prompt output obeys
83
+ raw/names-only rules.
84
+ - Upgrade, list pagination, pre-release filtering, installers, and the npm
85
+ wrapper pass isolated tests.
86
+ - Release verification finds exactly fourteen correctly named assets and no
87
+ `macos` names.
88
+ - Typecheck, tests, safe builds, xdocs validation, implementation review, and
89
+ validation reporting complete successfully.
90
+
91
+ ## Dependencies And Context
92
+
93
+ - [Executable migration plan](../plans/rfc-0034-cli-compliance-migration.md)
94
+ - `guiho-a-0001-swe` is the coordinating Software Engineer/SWE agent.
95
+ - `guiho-s-0034-cli-engineer` is the mandatory specialist skill.
96
+ - The current Citty migration, upgrade work, and bundled RunX skill are inputs,
97
+ not constraints that override RFC 0034.
98
+
99
+ ## Watch-outs
100
+
101
+ - Inspection and dry-run commands must never spawn a manifest command.
102
+ - JSON stdout must remain one parseable document.
103
+ - The foreground startup path must never await a network request.
104
+ - Tests must isolate home directories, skill installation, instruction files,
105
+ update caches, executable replacement, and release hosting.
106
+ - Generated `library/`, `bin/`, `bundle/`, and `vendor/` outputs remain
107
+ unedited.
108
+ - Breaking changes are approved, but unrelated RunX domain behavior must not be
109
+ removed accidentally.
110
+
111
+ ## Before Starting
112
+
113
+ - Read the repository and parent instructions, this spec, and the full plan.
114
+ - Load the SWE agent and every skill named in the plan.
115
+ - Confirm the live branch, clean/understood worktree, and baseline checks.
116
+ - Inventory current agent behavior and prohibited imports again because source
117
+ may have changed after this plan was written.
118
+
119
+ ## While Working
120
+
121
+ - Execute one numbered plan unit at a time with `guiho-s-0023-plan-executor`.
122
+ - Update implementation notes, TODO state, docs, tests, and xdocs in the same
123
+ unit.
124
+ - Do not preserve an obsolete interface merely to avoid a breaking change.
125
+ - Stop on unapproved publishing, tagging, pushing, or real global installation.
126
+
127
+ ## After Finishing
128
+
129
+ - Run implementation review and validation reporting.
130
+ - Record every passed, failed, and skipped check.
131
+ - Keep the TODO in `testing` until all local acceptance signals are proven.
132
+ - Request separate authorization before Mirror versioning or release actions.
133
+
134
+ ## Related Files
135
+
136
+ - [Implementation plan](../plans/rfc-0034-cli-compliance-migration.md) -
137
+ Ordered file-level execution units and validation gates.
138
+ - [CLI architecture](../architecture/cli-architecture.md) - Current architecture
139
+ that the migration must revise where it conflicts with RFC 0034.
140
+ - [Previous Citty decision](../decisions/citty-cli-migration.md) - Earlier
141
+ compatibility contract that must be superseded where it conflicts.
142
+ - [Plan review](../reviews/plans/rfc-0034-cli-compliance-migration-review.md) -
143
+ Ready-for-execution review of sequencing, coverage, and approval gates.
144
+
145
+ ## References
146
+
147
+ - [TODO.md](../../TODO.md)
148
+ - [AGENTS.md](../../AGENTS.md)
149
+ - [Implementation notes](./rfc-0034-cli-compliance-migration-implementation.md)
150
+ - [Implementation review](../reviews/implementation/rfc-0034-cli-compliance-migration-review.md)
151
+ - [Validation report](../validation/rfc-0034-cli-compliance-migration.md)
@@ -4,15 +4,19 @@ description: Linked task specifications for the RunX TODO index.
4
4
  parent: runx-docs
5
5
  children: []
6
6
  files:
7
- implement-runx-alpha.md: Defines the completion signals and constraints for the alpha task.
8
7
  protect-branches-and-tag-creation.md: Records the verified active GitHub branch and release-tag rulesets for RunX.
8
+ rfc-0034-cli-compliance-migration.md: Defines the required breaking migration outcome, scope, constraints, and completion signals for full RFC 0034 compliance.
9
+ rfc-0034-cli-compliance-migration-implementation.md: Records the delivered RX units, implementation map, and test-hang diagnosis.
9
10
  documents:
10
- implement-runx-alpha.md: Task specification for implementing RunX alpha.
11
11
  protect-branches-and-tag-creation.md: Completed task specification with active RunX ruleset IDs, protected patterns, and verification evidence.
12
+ rfc-0034-cli-compliance-migration.md: Task specification linked from TODO task 1 for the full RunX CLI contract migration.
13
+ rfc-0034-cli-compliance-migration-implementation.md: Completed implementation and validation handoff for TODO task 1.
12
14
  tags:
13
15
  - todo
14
16
  keywords:
15
17
  - runx
18
+ - RFC 0034
19
+ - CLI migration
16
20
  - tasks
17
21
  flags: []
18
22
  status: stable
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: RunX Interactive Init Manifest Validation
3
+ purpose: Record executable verification evidence for the RunX initializer and strict manifest contract.
4
+ description: Captures typecheck, tests, library and native builds, compiled CLI smoke checks, and XDocs validation for runx init.
5
+ created: 2026-07-14
6
+ flags:
7
+ - passed
8
+ tags:
9
+ - validation
10
+ - cli
11
+ - manifest
12
+ keywords:
13
+ - runx init
14
+ - runx.yaml
15
+ - bun test
16
+ - native binary
17
+ - xdocs
18
+ owner: runx-validation
19
+ ---
20
+
21
+ # RunX Interactive Init Manifest Validation
22
+
23
+ ## Summary
24
+
25
+ The interactive initializer and strict manifest contract passed all applicable
26
+ local validation gates. No release, version, tag, package publication, cloud,
27
+ or secret operation was performed.
28
+
29
+ ## Scope
30
+
31
+ - Citty registration and help surfaces for `runx init`.
32
+ - SemVer `1.x`, scripts-directory, `public` group, and empty-command manifest
33
+ validation.
34
+ - Prompt cancellation, overwrite confirmation, exact generated YAML, atomic
35
+ write validation, and non-interactive error behavior.
36
+ - User documentation and XDocs metadata.
37
+
38
+ ## Commands Run
39
+
40
+ | Command | Result | Evidence |
41
+ | --- | --- | --- |
42
+ | `bun run typecheck` | Passed | Strict TypeScript compilation completed without diagnostics. |
43
+ | `bun test` | Passed | 22 tests and 180 assertions passed across CLI, manifest, initializer, and self-management suites. |
44
+ | `bun run build` | Passed | Library output compiled successfully. |
45
+ | `bun run binary` | Passed | Native Windows executable compiled to `bin/runx.exe`. |
46
+ | `bin/runx.exe --help-tree` | Passed | The compiled command tree includes `init`. |
47
+ | `xdocs meta source --strict --format json` | Passed | The new initializer and test files are fully described. |
48
+ | `xdocs meta docs\\plans --documents --strict --format json` | Passed | The plan and companion metadata validate. |
49
+ | `xdocs meta docs\\reviews\\plans --documents --strict --format json` | Passed | The plan review and companion metadata validate. |
50
+ | `xdocs tree` | Passed | The RunX documentation hierarchy is intact. |
51
+ | `git diff --check` | Passed | No whitespace errors were reported before delivery records were added. |
52
+
53
+ ## Manual Checks
54
+
55
+ - The generated empty manifest has the required version, project, scripts,
56
+ `public` group, and `commands: []` shape.
57
+ - No empty `scripts/` directory is created by initialization.
58
+ - `runx init --file ...` and `runx init --format json` return explicit errors
59
+ without creating a manifest.
60
+
61
+ ## Skipped Checks
62
+
63
+ A person-driven interactive terminal session could not be run in this automated
64
+ non-TTY environment. The initializer’s prompt sequence is covered through its
65
+ injected prompt adapter; the compiled executable was smoke-tested for command
66
+ registration.
67
+
68
+ ## Readiness
69
+
70
+ Ready for code review and a draft pull request. The bundled agent-skill
71
+ automation remains intentionally outside this change and is tracked by issue
72
+ #11.
73
+
74
+ ## References
75
+
76
+ - [Decision](../decisions/interactive-init-manifest.md)
77
+ - [Plan](../plans/interactive-init-manifest.md)
78
+ - [Implementation Review](../reviews/implementation/interactive-init-manifest-review.md)
79
+ - GitHub issue [#10](https://github.com/CGuiho/runx/issues/10)
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: RunX RFC 0034 CLI Compliance Migration Validation
3
+ purpose: Record direct verification evidence for every migration completion gate.
4
+ description: Command results for typecheck, tests, builds, CLI contracts, npm bootstrap, installers, release assets, imports, xdocs, and Git integrity.
5
+ created: 2026-07-18
6
+ flags:
7
+ - validated
8
+ tags:
9
+ - validation
10
+ - cli
11
+ keywords:
12
+ - RFC 0034
13
+ - 38 tests
14
+ - 14 assets
15
+ - RunX
16
+ owner: runx-validation
17
+ ---
18
+
19
+ # RunX RFC 0034 CLI Compliance Migration Validation
20
+
21
+ ## Summary
22
+
23
+ All local RFC completion gates passed. No validation blocker remains.
24
+
25
+ ## Commands Run
26
+
27
+ | Command or check | Result |
28
+ | --- | --- |
29
+ | `bun run typecheck` | Passed |
30
+ | `bun test --timeout 30000` | Passed: 38 tests, 262 assertions |
31
+ | `bun run build` | Passed |
32
+ | `bun run binary` | Passed |
33
+ | `bun run binaries` | Passed: twelve native targets |
34
+ | `bun run verify-assets` | Passed: exactly fourteen unique assets |
35
+ | `node --check scripts/runx-bin.mjs` | Passed |
36
+ | packed npm bootstrap local-server smoke | Passed with Node and Bun removed from PATH |
37
+ | prohibited core Node-import scan | Passed: zero matches |
38
+ | CLI banner/help/config/agent/output/exit smoke tests | Passed in CLI suite |
39
+ | PowerShell and POSIX installer contract tests | Passed |
40
+ | `xdocs doctor --warnings-as-errors` | Passed: zero errors and zero warnings |
41
+ | `git diff --check` | Passed |
42
+
43
+ ## Exact Release Asset Evidence
44
+
45
+ The verifier observed twelve `runx-*` assets using Linux, Darwin, and Windows
46
+ names plus `guiho-s-runx` and `guiho-i-runx`. It found no duplicate, extra,
47
+ missing, or legacy platform name.
48
+
49
+ ## Skipped Checks
50
+
51
+ - No npm publication.
52
+ - No GitHub Release creation.
53
+ - No live global RunX replacement or global agent installation.
54
+ - No production deployment.
55
+
56
+ These are release mutations rather than local validation requirements.
57
+
58
+ ## Readiness
59
+
60
+ Ready for the authorized Mirror minor version application, one-file commits,
61
+ main push, and Mirror-managed tag/ref push. Package publication and GitHub
62
+ Release creation remain intentionally unperformed.
63
+
64
+ ## References
65
+
66
+ - [Implementation review](../reviews/implementation/rfc-0034-cli-compliance-migration-review.md)
67
+ - [Implementation notes](../todo/rfc-0034-cli-compliance-migration-implementation.md)
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: RunX Upgrade Reliability Validation
3
+ purpose: Record release-ready verification evidence for GitHub issues 12 and 13.
4
+ description: Results for release pagination, progress reporting, transactional replacement, rollback, recovery commands, direct installers, native builds, live release smokes, and XDocs integrity.
5
+ created: 2026-07-15
6
+ flags:
7
+ - superseded
8
+ - needs-revalidation
9
+ tags:
10
+ - validation
11
+ - cli
12
+ - reliability
13
+ keywords:
14
+ - runx upgrade
15
+ - upgrade list
16
+ - windows replacement
17
+ - recovery install
18
+ - issue 12
19
+ - issue 13
20
+ owner: runx-validation
21
+ ---
22
+
23
+ # RunX Upgrade Reliability Validation
24
+
25
+ ## Current Status
26
+
27
+ The first validation pass below is superseded by independent review findings.
28
+ The implementation has since been corrected for exact JSON envelope fidelity,
29
+ post-backup rename/rollback state, downgrade prevention, installer failure
30
+ classification, Ubuntu portability, and executable controlled installer tests.
31
+ Candidate verification now has a bounded ten-second timeout in the CLI and both
32
+ direct installers. Those corrections still require the complete release gate
33
+ to be rerun before this document or the TODO task can return to
34
+ `validated`/`completed`.
35
+
36
+ No package publication, version apply, or tag operation was performed.
37
+
38
+ ## Superseded Automated Gate
39
+
40
+ | Command | Result |
41
+ | --- | --- |
42
+ | `bun run typecheck` | Passed. |
43
+ | `bun test` | Passed: 37 tests, 0 failures, 245 assertions across 8 files. |
44
+ | `bun run build` | Passed; TypeScript library output compiled. |
45
+ | `bun run binary` | Passed; local native executable compiled. |
46
+ | `bun run binaries` | Passed; all 12 Linux, macOS, and Windows release assets compiled and were non-empty. |
47
+ | `bun test devops/installers.spec.ts` | Superseded: the earlier suite relied partly on source-pattern checks. The replacement suite executes controlled native installer and recovery scenarios and awaits revalidation. |
48
+
49
+ Generated `library/` and `bin/` outputs remain ignored and are not part of the
50
+ committed change.
51
+
52
+ ## Superseded Behavior Evidence
53
+
54
+ - Release-catalog tests follow `Link: rel="next"`, reject malformed/non-2xx
55
+ responses, apply SemVer prerelease precedence, retain invalid tags last, and
56
+ enforce baseline/default/modern asset candidates.
57
+ - Reporting tests prove the complete plan precedes `Downloading`, which
58
+ precedes the download body and then `Validating`, `Replacing`, and
59
+ `Verifying`.
60
+ - The Windows test runs a copied executable, keeps it mapped in a live process,
61
+ renames it, installs the new canonical executable immediately, verifies the
62
+ exact version, and allows only old-image cleanup to be deferred.
63
+ - Failure tests reject non-native downloads before mutation and restore the
64
+ original executable after target verification failure.
65
+ - Bun-launcher failure returns a recovery command pinned to the resolved target
66
+ instead of losing recovery at the generic CLI error boundary.
67
+ - Installer tests enforce unique temporary paths, exact target versions,
68
+ canonical verification, rollback language/behavior, and separate stop
69
+ commands.
70
+
71
+ ## Superseded Compiled Binary Smoke
72
+
73
+ The compiled `runx-windows-x64-baseline.exe` reported version `0.2.7`.
74
+ `upgrade --dry-run` queried live GitHub release metadata and printed the full
75
+ plan before any mutation, followed by the pinned `0.2.7` PowerShell recovery
76
+ command and the separate safe stop command. `upgrade list --format json`
77
+ returned one valid schema-versioned document containing all eight currently
78
+ published releases from `0.2.7` through `0.2.0`, newest first, with current,
79
+ latest-stable, publication, channel, and compatible-asset data.
80
+
81
+ The first smoke command targeted `bin/runx.exe` after the complete matrix build
82
+ had replaced the local single-binary output with named assets. It failed only
83
+ because that path no longer existed; the smoke was immediately rerun against
84
+ the actual baseline matrix asset and passed.
85
+
86
+ ## Superseded XDocs Gate
87
+
88
+ Using an equivalent validation-only XDocs configuration with agent file writes
89
+ disabled:
90
+
91
+ - strict metadata passed for `docs/plans`, `docs/reviews/plans`, `docs/todo`,
92
+ `source`, `devops`, and `skills/guiho-s-runx`;
93
+ - `xdocs doctor --warnings-as-errors --format json` returned `valid: true`,
94
+ zero errors, and zero warnings; and
95
+ - `xdocs tree` returned one connected RunX tree without duplicate subjects or
96
+ orphans.
97
+
98
+ ## Release Boundary
99
+
100
+ The branch preserves package version `0.2.7`. A future merge/release owner must
101
+ use Mirror to plan and apply any requested patch release; this implementation
102
+ does not publish or tag automatically.
103
+
104
+ ## Required Revalidation
105
+
106
+ - `bun run typecheck`
107
+ - `bun test`, including the controlled installer/recovery suite on Ubuntu and Windows
108
+ - `bun run build`, `bun run binary`, and `bun run binaries`
109
+ - compiled CLI text/JSON smokes, including failed and rolled-back envelopes
110
+ - strict XDocs metadata, doctor warnings-as-errors, and tree validation
111
+
112
+ The current isolated Windows worktree could not begin that rerun because
113
+ `bun install --frozen-lockfile` was denied while opening `bun.lock` with
114
+ `EPERM`. This is an environment validation blocker, not a passing result.
115
+
116
+ ## Review-Correction Checks
117
+
118
+ | Command | Result |
119
+ | --- | --- |
120
+ | Cached TypeScript 6 compiler, `-p . --noEmit` | Passed after the review corrections. |
121
+ | PowerShell parser for `devops/install.ps1` | Passed. |
122
+ | Git Bash `bash -n devops/install.sh` | Passed. |
123
+ | `git diff --check` | Passed. |
124
+ | Focused Bun tests | Blocked before test execution by `EPERM` reading the isolated worktree and `tsconfig.json`; zero tests passed in that attempt. |
@@ -6,20 +6,29 @@ children: []
6
6
  files:
7
7
  alpha-implementation-summary.md: Records the completed alpha implementation, checks, and release boundaries.
8
8
  citty-cli-migration.md: Records the complete local validation gate for the Citty command-tree migration.
9
+ interactive-init-manifest.md: Records validation evidence for the interactive initializer and strict manifest contract.
9
10
  windows-self-upgrade.md: Records Windows replacement, rollback, cleanup, native build, CI, and XDocs validation evidence.
11
+ upgrade-reliability.md: Tracks the superseded first pass and required revalidation after independent upgrade reliability review corrections.
12
+ rfc-0034-cli-compliance-migration.md: Records passing RFC tests, builds, bootstrap, installer, import, and fourteen-asset evidence.
10
13
  documents:
11
14
  alpha-implementation-summary.md: Validation summary for the first RunX implementation.
12
15
  citty-cli-migration.md: Validation evidence for TypeScript, tests, native assets, npm packaging, CLI behavior, and XDocs.
16
+ interactive-init-manifest.md: Validation evidence for the RunX interactive init manifest feature.
13
17
  npm-trusted-publishing-0.2.2.md: Validation evidence for the blocked 0.2.2 npm trusted-publishing retry.
14
18
  windows-self-upgrade.md: Validation evidence for GitHub issues #9 and #1 and the Windows self-upgrade patch.
19
+ upgrade-reliability.md: Revalidation record for GitHub issues 12 and 13; currently marked needs-revalidation.
20
+ rfc-0034-cli-compliance-migration.md: Complete RFC 0034 validation and readiness report.
15
21
  tags:
16
22
  - validation
17
23
  keywords:
18
24
  - runx
19
25
  - citty
26
+ - runx init
27
+ - scripts directory
20
28
  - tests
21
29
  - summary
22
30
  - windows self-upgrade
31
+ - upgrade reliability
23
32
  flags: []
24
33
  status: stable
25
34
  ---
@@ -1,11 +1,35 @@
1
- import type { AgentScope, AgentTool } from './types.js';
1
+ /**
2
+ * @copyright Copyright © 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
3
+ */
4
+ import type { AgentScope } from './types.js';
5
+ export { applyAgentInstructions, installAgentSkill, listAgentPrompts, listAgentSkills, removeAgentInstructions, showAgentInstructions, showAgentPrompt, showAgentSkill, uninstallAgentSkill, updateAgentInstructions, updateAgentSkill, };
2
6
  type EmbeddedResources = {
3
7
  skill: string;
8
+ prompt: string;
4
9
  } | undefined;
5
10
  declare global {
6
11
  var __RUNX_EMBEDDED_RESOURCES__: EmbeddedResources;
7
12
  }
8
- export declare const installAgentSkill: (scope: AgentScope, tool: AgentTool, cwd: string) => Promise<string[]>;
9
- export declare const installAgentInstructions: (cwd: string) => Promise<string>;
10
- export {};
13
+ declare function installAgentSkill(scope: AgentScope, cwd: string): Promise<string[]>;
14
+ declare function updateAgentSkill(scope: AgentScope, cwd: string): Promise<string[]>;
15
+ declare function uninstallAgentSkill(scope: AgentScope, cwd: string): Promise<string[]>;
16
+ declare function listAgentSkills(filter?: string): Array<{
17
+ id: string;
18
+ description: string;
19
+ }>;
20
+ declare function showAgentSkill(id: string): Promise<{
21
+ id: string;
22
+ path: string;
23
+ description: string;
24
+ metadata: Record<string, string>;
25
+ }>;
26
+ declare function applyAgentInstructions(cwd: string): Promise<string[]>;
27
+ declare function updateAgentInstructions(cwd: string): Promise<string[]>;
28
+ declare function removeAgentInstructions(cwd: string): Promise<string[]>;
29
+ declare function showAgentInstructions(): Promise<string>;
30
+ declare function listAgentPrompts(namesOnly?: boolean): string[] | Array<{
31
+ id: string;
32
+ description: string;
33
+ }>;
34
+ declare function showAgentPrompt(id: string): Promise<string>;
11
35
  //# sourceMappingURL=agents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../source/agents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAA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