@guiho/runx 0.4.1 → 0.5.2
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/CHANGELOG.md +56 -0
- package/DOCS.md +27 -5
- package/README.md +6 -1
- package/devops/build-binaries.ts +3 -3
- package/devops/devops.xdocs.md +9 -6
- package/devops/extract-release-notes.spec.ts +54 -0
- package/devops/extract-release-notes.ts +40 -0
- package/devops/install.ps1 +29 -6
- package/devops/install.sh +61 -22
- package/devops/installers.spec.ts +162 -5
- package/devops/verify-release-assets.ts +14 -0
- package/docs/architecture/architecture.xdocs.md +2 -1
- package/docs/architecture/cli-architecture.md +18 -9
- package/docs/decisions/decisions.xdocs.md +4 -0
- package/docs/decisions/markdown-release-assets-and-version-scoped-notes.md +84 -0
- package/docs/plans/automatic-agent-maintenance.md +120 -0
- package/docs/plans/linux-installer-latest-release.md +43 -0
- package/docs/plans/plans.xdocs.md +6 -0
- package/docs/plans/platform-aware-startup-greeting.md +43 -0
- package/docs/plans/rfc-0034-cli-compliance-migration.md +17 -8
- package/docs/plans/upgrade-reliability-implementation.md +1 -1
- package/docs/reviews/implementation/automatic-agent-maintenance-review.md +63 -0
- package/docs/reviews/implementation/bash-installer-review.md +42 -0
- package/docs/reviews/implementation/implementation.xdocs.md +14 -0
- package/docs/reviews/implementation/linux-installer-latest-release-review.md +49 -0
- package/docs/reviews/implementation/platform-aware-startup-greeting-review.md +51 -0
- package/docs/reviews/implementation/rfc-0034-cli-compliance-migration-review.md +5 -2
- package/docs/reviews/implementation/unicode-help-tree-review.md +41 -0
- package/docs/reviews/implementation/upgrade-reliability-issue-12-review.md +62 -0
- package/docs/reviews/implementation/upgrade-reliability-issue-13-review.md +63 -0
- package/docs/reviews/plans/automatic-agent-maintenance-review.md +56 -0
- package/docs/reviews/plans/plans.xdocs.md +2 -0
- package/docs/superpowers/specs/2026-07-15-upgrade-reliability-design.md +1 -1
- package/docs/todo/automatic-agent-maintenance-implementation.md +55 -0
- package/docs/todo/automatic-agent-maintenance.md +86 -0
- package/docs/todo/bash-installer.md +45 -0
- package/docs/todo/linux-installer-latest-release.md +47 -0
- package/docs/todo/platform-aware-startup-greeting.md +41 -0
- package/docs/todo/rfc-0034-cli-compliance-migration-implementation.md +7 -2
- package/docs/todo/rfc-0034-cli-compliance-migration.md +7 -3
- package/docs/todo/todo.xdocs.md +14 -0
- package/docs/todo/unicode-help-tree.md +44 -0
- package/docs/todo/upgrade-reliability.md +51 -0
- package/docs/validation/automatic-agent-maintenance.md +63 -0
- package/docs/validation/bash-installer.md +55 -0
- package/docs/validation/linux-installer-latest-release.md +50 -0
- package/docs/validation/platform-aware-startup-greeting.md +50 -0
- package/docs/validation/rfc-0034-cli-compliance-migration.md +10 -4
- package/docs/validation/unicode-help-tree.md +43 -0
- package/docs/validation/upgrade-reliability-issue-12.md +74 -0
- package/docs/validation/upgrade-reliability-issue-13.md +72 -0
- package/docs/validation/upgrade-reliability.md +38 -99
- package/docs/validation/validation.xdocs.md +16 -2
- package/library/agent-maintenance.d.ts +19 -0
- package/library/agent-maintenance.d.ts.map +1 -0
- package/library/agent-maintenance.js +49 -0
- package/library/agents.d.ts +6 -1
- package/library/agents.d.ts.map +1 -1
- package/library/agents.js +58 -11
- package/library/cli.d.ts +2 -1
- package/library/cli.d.ts.map +1 -1
- package/library/cli.js +34 -9
- package/library/recovery.js +1 -1
- package/library/release-catalog.d.ts +2 -1
- package/library/release-catalog.d.ts.map +1 -1
- package/library/release-catalog.js +9 -1
- package/library/storage.d.ts +2 -1
- package/library/storage.d.ts.map +1 -1
- package/library/storage.js +13 -1
- package/package.json +1 -1
- package/skills/guiho-s-runx/SKILL.md +11 -0
- package/skills/guiho-s-runx/guiho-s-runx.xdocs.md +4 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX Automatic Agent Maintenance Implementation Review
|
|
3
|
+
purpose: Review the delivered GitHub issue 11 behavior against every accepted criterion.
|
|
4
|
+
description: Findings-first review of atomic reconciliation, nearest instructions, worker isolation, tests, docs, and release boundaries.
|
|
5
|
+
created: 2026-07-19
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- cli
|
|
11
|
+
- agents
|
|
12
|
+
keywords:
|
|
13
|
+
- RunX
|
|
14
|
+
- issue 11
|
|
15
|
+
- implementation review
|
|
16
|
+
owner: runx-implementation-reviews
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# RunX Automatic Agent Maintenance Implementation Review
|
|
20
|
+
|
|
21
|
+
## Verdict
|
|
22
|
+
|
|
23
|
+
Accepted.
|
|
24
|
+
|
|
25
|
+
## Findings
|
|
26
|
+
|
|
27
|
+
No blocker, high, medium, or low finding remains.
|
|
28
|
+
|
|
29
|
+
Review identified one boundary worth making explicit: automatic maintenance
|
|
30
|
+
must never reverse a deliberate `runx agent ... remove|uninstall` or
|
|
31
|
+
`runx uninstall` action. The final CLI test executes both explicit agent
|
|
32
|
+
removals with maintenance enabled, waits beyond worker startup, and proves the
|
|
33
|
+
resources remain absent.
|
|
34
|
+
|
|
35
|
+
## Acceptance Criteria Check
|
|
36
|
+
|
|
37
|
+
- Missing and stale skills in both global locations: accepted.
|
|
38
|
+
- Current skills are compared and not rewritten: accepted.
|
|
39
|
+
- Nearest ancestor `AGENTS.md` selection and cwd fallback: accepted.
|
|
40
|
+
- Current and legacy block convergence with user-content preservation:
|
|
41
|
+
accepted.
|
|
42
|
+
- Same-directory temporary writes and failed-write cleanup: accepted.
|
|
43
|
+
- Concurrent-worker convergence: accepted.
|
|
44
|
+
- Hidden exact worker route and TypeBox input decoding: accepted.
|
|
45
|
+
- Detached ignored streams, recursion prevention, and spawn isolation:
|
|
46
|
+
accepted.
|
|
47
|
+
- Citty-decoded effective cwd: accepted.
|
|
48
|
+
- Text, JSON, help, version, and exit behavior stability: accepted.
|
|
49
|
+
- Explicit agent-resource and executable removal boundaries: accepted.
|
|
50
|
+
- Documentation, XDocs, native builds, and exact assets: accepted.
|
|
51
|
+
|
|
52
|
+
## Residual Risk
|
|
53
|
+
|
|
54
|
+
The worker intentionally reports no foreground failure. Filesystem permission
|
|
55
|
+
errors therefore remain silent and are retried by a later ordinary invocation.
|
|
56
|
+
This is the required failure-isolation contract, not an unresolved finding.
|
|
57
|
+
|
|
58
|
+
## References
|
|
59
|
+
|
|
60
|
+
- [Implementation plan](../../plans/automatic-agent-maintenance.md)
|
|
61
|
+
- [Implementation notes](../../todo/automatic-agent-maintenance-implementation.md)
|
|
62
|
+
- [Validation](../../validation/automatic-agent-maintenance.md)
|
|
63
|
+
- [GitHub issue #11](https://github.com/CGuiho/runx/issues/11)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX Bash Installer Implementation Review
|
|
3
|
+
purpose: Review the GitHub issue 15 Bash conversion against all invocation and test surfaces.
|
|
4
|
+
description: Findings-first review of shebang, strict mode, recovery commands, docs, source-only piping, exact versions, and executable verification.
|
|
5
|
+
created: 2026-07-19
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- installer
|
|
11
|
+
- bash
|
|
12
|
+
keywords:
|
|
13
|
+
- RunX
|
|
14
|
+
- issue 15
|
|
15
|
+
- install.sh
|
|
16
|
+
owner: runx-implementation-reviews
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# RunX Bash Installer Implementation Review
|
|
20
|
+
|
|
21
|
+
## Verdict
|
|
22
|
+
|
|
23
|
+
Accepted.
|
|
24
|
+
|
|
25
|
+
## Findings
|
|
26
|
+
|
|
27
|
+
The current installer no longer contained the historical invalid
|
|
28
|
+
`set -o pipefail` under `sh`, but the public shebang, README command, and
|
|
29
|
+
recovery generator still selected `sh`. That did not satisfy the issue title.
|
|
30
|
+
|
|
31
|
+
All canonical surfaces now select Bash. Strict mode is enabled, unset `SHELL`
|
|
32
|
+
is handled safely, and a real Bash runtime validates syntax, piped source-only
|
|
33
|
+
startup, exact stable/prerelease normalization, and executable version
|
|
34
|
+
verification.
|
|
35
|
+
|
|
36
|
+
No blocker, high, medium, or low finding remains.
|
|
37
|
+
|
|
38
|
+
## References
|
|
39
|
+
|
|
40
|
+
- [Task specification](../../todo/bash-installer.md)
|
|
41
|
+
- [Validation](../../validation/bash-installer.md)
|
|
42
|
+
- [GitHub issue #15](https://github.com/CGuiho/runx/issues/15)
|
|
@@ -4,15 +4,29 @@ description: Delivery-readiness reviews of implemented RunX plans and behavior c
|
|
|
4
4
|
parent: runx-reviews
|
|
5
5
|
children: []
|
|
6
6
|
files:
|
|
7
|
+
bash-installer-review.md: Accepts the canonical Bash shebang, strict mode, recovery invocation, and executable shell tests for GitHub issue 15.
|
|
7
8
|
citty-cli-migration-review.md: Reviews the implemented Citty command tree, compatibility adapter, tests, documentation, packaging, and release readiness.
|
|
8
9
|
interactive-init-manifest-review.md: Reviews the implemented RunX initializer, strict manifest contract, tests, documentation, and delivery readiness.
|
|
10
|
+
linux-installer-latest-release-review.md: Accepts latest-download alias resolution, exact-version preservation, transactional safeguards, tests, and GitHub issue 20 release readiness.
|
|
11
|
+
platform-aware-startup-greeting-review.md: Accepts centralized Windows, Linux, and macOS startup labels, deterministic tests, documentation, and GitHub issue 21 release readiness.
|
|
9
12
|
windows-self-upgrade-review.md: Reviews synchronous Windows replacement, rollback, cleanup, tests, CI coverage, and release readiness.
|
|
10
13
|
rfc-0034-cli-compliance-migration-review.md: Accepts the RFC 0034 migration after independent upgrade-routing, cached-notice, prompt-output, asset, and release-readiness corrections.
|
|
14
|
+
automatic-agent-maintenance-review.md: Accepts atomic global skill and nearest AGENTS.md reconciliation, detached failure isolation, command boundaries, and regression evidence.
|
|
15
|
+
upgrade-reliability-issue-12-review.md: Accepts synchronous verified replacement and the corrected complete, single-document release listing for GitHub issue 12.
|
|
16
|
+
upgrade-reliability-issue-13-review.md: Accepts exact recovery across all outcomes and executable direct-installer version verification for GitHub issue 13.
|
|
17
|
+
unicode-help-tree-review.md: Accepts the Unicode nested and aligned help tree plus explicit legacy ASCII regression coverage for GitHub issue 17.
|
|
11
18
|
documents:
|
|
19
|
+
bash-installer-review.md: Accepted implementation review for the RunX Bash installer.
|
|
12
20
|
citty-cli-migration-review.md: Accepted implementation review for the full Citty CLI migration.
|
|
13
21
|
interactive-init-manifest-review.md: Accepted implementation review for the RunX interactive init manifest feature.
|
|
22
|
+
linux-installer-latest-release-review.md: Accepted implementation review for GitHub issue 20.
|
|
23
|
+
platform-aware-startup-greeting-review.md: Accepted implementation review for GitHub issue 21.
|
|
14
24
|
windows-self-upgrade-review.md: Accepted implementation review for the Windows native self-upgrade fix.
|
|
15
25
|
rfc-0034-cli-compliance-migration-review.md: Accepted implementation and independent correction review for RX-01 through RX-16.
|
|
26
|
+
automatic-agent-maintenance-review.md: Accepted implementation review for GitHub issue 11 automatic agent maintenance.
|
|
27
|
+
upgrade-reliability-issue-12-review.md: Accepted implementation review for GitHub issue 12 upgrade reliability.
|
|
28
|
+
upgrade-reliability-issue-13-review.md: Accepted implementation review for GitHub issue 13 recovery reliability.
|
|
29
|
+
unicode-help-tree-review.md: Accepted implementation review for the RunX Unicode help tree.
|
|
16
30
|
tags:
|
|
17
31
|
- reviews
|
|
18
32
|
- implementation
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Latest RunX Bash Installer Implementation Review
|
|
3
|
+
purpose: Review the GitHub issue 20 installer correction against its approved plan and acceptance signals.
|
|
4
|
+
description: Confirms latest-download URL resolution, exact version preservation, transactional safeguards, tests, and release readiness.
|
|
5
|
+
created: 2026-07-20
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- installer
|
|
11
|
+
keywords:
|
|
12
|
+
- issue 20
|
|
13
|
+
- latest release
|
|
14
|
+
- install.sh
|
|
15
|
+
owner: runx-implementation-reviews
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Latest RunX Bash Installer Implementation Review
|
|
19
|
+
|
|
20
|
+
## Verdict
|
|
21
|
+
|
|
22
|
+
Accepted for patch release.
|
|
23
|
+
|
|
24
|
+
## Findings
|
|
25
|
+
|
|
26
|
+
No blocking findings.
|
|
27
|
+
|
|
28
|
+
## Acceptance Criteria Check
|
|
29
|
+
|
|
30
|
+
- Latest binaries and Markdown assets use
|
|
31
|
+
`releases/latest/download/<asset>`.
|
|
32
|
+
- Explicit stable and prerelease versions retain encoded RunX tag URLs.
|
|
33
|
+
- Redirect `url_effective` parsing was removed.
|
|
34
|
+
- Transactional replacement, rollback, native validation, Markdown validation,
|
|
35
|
+
dual skill installation, instruction reconciliation, PATH setup, and final
|
|
36
|
+
executable verification remain present.
|
|
37
|
+
- Focused and full regression suites pass.
|
|
38
|
+
|
|
39
|
+
## Residual Risk
|
|
40
|
+
|
|
41
|
+
The Windows host cannot execute the Linux binary locally. Public Linux
|
|
42
|
+
installation and greeting behavior must be verified after the patch assets are
|
|
43
|
+
published.
|
|
44
|
+
|
|
45
|
+
## References
|
|
46
|
+
|
|
47
|
+
- [Task specification](../../todo/linux-installer-latest-release.md)
|
|
48
|
+
- [Implementation plan](../../plans/linux-installer-latest-release.md)
|
|
49
|
+
- [GitHub issue 20](https://github.com/CGuiho/runx/issues/20)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Platform-Aware RunX Greeting Implementation Review
|
|
3
|
+
purpose: Review the GitHub issue 21 greeting correction against its approved plan and acceptance signals.
|
|
4
|
+
description: Confirms centralized platform labels, deterministic coverage, update-notice ordering, and release readiness.
|
|
5
|
+
created: 2026-07-20
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- cli
|
|
11
|
+
keywords:
|
|
12
|
+
- issue 21
|
|
13
|
+
- platform greeting
|
|
14
|
+
- startup
|
|
15
|
+
owner: runx-implementation-reviews
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Platform-Aware RunX Greeting Implementation Review
|
|
19
|
+
|
|
20
|
+
## Verdict
|
|
21
|
+
|
|
22
|
+
Accepted for patch release.
|
|
23
|
+
|
|
24
|
+
## Findings
|
|
25
|
+
|
|
26
|
+
No blocking findings.
|
|
27
|
+
|
|
28
|
+
## Acceptance Criteria Check
|
|
29
|
+
|
|
30
|
+
- One pure renderer maps Windows, Linux, and macOS deterministically.
|
|
31
|
+
- The no-argument Citty route uses the renderer.
|
|
32
|
+
- Cached update notices remain before the greeting.
|
|
33
|
+
- Version, help, routing, diagnostics, and exit behavior are unchanged.
|
|
34
|
+
- Tests assert all three supported operating-system labels and runtime
|
|
35
|
+
child-process behavior.
|
|
36
|
+
- Repository instructions and CLI documentation describe the new contract.
|
|
37
|
+
|
|
38
|
+
## Deviation
|
|
39
|
+
|
|
40
|
+
The historical RFC 0034 literal-Windows banner is intentionally superseded by
|
|
41
|
+
the developer-approved platform-aware contract.
|
|
42
|
+
|
|
43
|
+
## Residual Risk
|
|
44
|
+
|
|
45
|
+
The released Linux binary must be smoke-tested after publication.
|
|
46
|
+
|
|
47
|
+
## References
|
|
48
|
+
|
|
49
|
+
- [Task specification](../../todo/platform-aware-startup-greeting.md)
|
|
50
|
+
- [Implementation plan](../../plans/platform-aware-startup-greeting.md)
|
|
51
|
+
- [GitHub issue 21](https://github.com/CGuiho/runx/issues/21)
|
|
@@ -51,8 +51,11 @@ cover each path.
|
|
|
51
51
|
- Output/exit codes and delegated exit preservation: accepted.
|
|
52
52
|
- Upgrade selection, catalog, replacement, rollback, and reconciliation:
|
|
53
53
|
accepted.
|
|
54
|
-
- Direct installers
|
|
55
|
-
-
|
|
54
|
+
- Direct installers, including downloaded Markdown identity/binary validation,
|
|
55
|
+
and Node-only npm bootstrap: accepted.
|
|
56
|
+
- Twelve native binaries plus `guiho-s-runx.md` and `guiho-i-runx.md`: accepted.
|
|
57
|
+
- Exact-version GitHub Release note extraction and idempotent note refresh:
|
|
58
|
+
accepted.
|
|
56
59
|
- Docs, TODO, xdocs, tests, and build evidence: accepted.
|
|
57
60
|
|
|
58
61
|
## Residual Risk
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX Unicode Help Tree Implementation Review
|
|
3
|
+
purpose: Review current help rendering against GitHub issue 17.
|
|
4
|
+
description: Findings-first review of Unicode branches, nesting, alignment, descriptions, depth, hidden routes, and regression coverage.
|
|
5
|
+
created: 2026-07-19
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- cli
|
|
11
|
+
- help
|
|
12
|
+
keywords:
|
|
13
|
+
- RunX
|
|
14
|
+
- issue 17
|
|
15
|
+
- help tree
|
|
16
|
+
owner: runx-implementation-reviews
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# RunX Unicode Help Tree Implementation Review
|
|
20
|
+
|
|
21
|
+
## Verdict
|
|
22
|
+
|
|
23
|
+
Accepted.
|
|
24
|
+
|
|
25
|
+
## Findings
|
|
26
|
+
|
|
27
|
+
The current Citty-based renderer already implemented the requested visual
|
|
28
|
+
behavior. The remaining gap was explicit regression coverage: the broad help
|
|
29
|
+
test checked only the header and one depth-limited branch.
|
|
30
|
+
|
|
31
|
+
The strengthened CLI test now asserts both branch endings, a nested vertical
|
|
32
|
+
guide, description alignment, and absence of the legacy ASCII `|-` form. No
|
|
33
|
+
renderer change was required.
|
|
34
|
+
|
|
35
|
+
No blocker, high, medium, or low finding remains.
|
|
36
|
+
|
|
37
|
+
## References
|
|
38
|
+
|
|
39
|
+
- [Task specification](../../todo/unicode-help-tree.md)
|
|
40
|
+
- [Validation](../../validation/unicode-help-tree.md)
|
|
41
|
+
- [GitHub issue #17](https://github.com/CGuiho/runx/issues/17)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX Upgrade Reliability Issue 12 Implementation Review
|
|
3
|
+
purpose: Review current-main self-upgrade and complete release listing behavior against GitHub issue 12.
|
|
4
|
+
description: Findings-first review of synchronous replacement, rollback, output ordering, complete catalog routing, JSON, tests, and delivery readiness.
|
|
5
|
+
created: 2026-07-19
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- cli
|
|
11
|
+
- reliability
|
|
12
|
+
keywords:
|
|
13
|
+
- RunX
|
|
14
|
+
- issue 12
|
|
15
|
+
- upgrade list
|
|
16
|
+
- transactional replacement
|
|
17
|
+
owner: runx-implementation-reviews
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# RunX Upgrade Reliability Issue 12 Implementation Review
|
|
21
|
+
|
|
22
|
+
## Verdict
|
|
23
|
+
|
|
24
|
+
Accepted after correction.
|
|
25
|
+
|
|
26
|
+
## Findings
|
|
27
|
+
|
|
28
|
+
Two public-list findings were corrected before acceptance:
|
|
29
|
+
|
|
30
|
+
- the default view truncated the complete release catalog to twenty entries and
|
|
31
|
+
hid prereleases unless `--pre-releases` was supplied;
|
|
32
|
+
- Citty executed the selected `upgrade list` leaf and then also executed the
|
|
33
|
+
parent `upgrade` action, appending a second JSON document and failure result.
|
|
34
|
+
|
|
35
|
+
The default list now returns every normalized published release, including
|
|
36
|
+
labeled prereleases. Pagination occurs only when the user explicitly supplies
|
|
37
|
+
`--page` or `--per-page`. The parent action checks the resolved Citty command
|
|
38
|
+
identity and does not execute after `upgrade list` or `upgrade check`.
|
|
39
|
+
|
|
40
|
+
No blocker, high, medium, or low finding remains.
|
|
41
|
+
|
|
42
|
+
## Acceptance Criteria Check
|
|
43
|
+
|
|
44
|
+
- Immediate canonical replacement before success: accepted.
|
|
45
|
+
- Exact canonical `--version` verification: accepted.
|
|
46
|
+
- Backup rollback on replacement or verification failure: accepted.
|
|
47
|
+
- Mapped Windows executable replacement and deferred cleanup only: accepted.
|
|
48
|
+
- Visible plan and ordered download/validate/replace/verify phases: accepted.
|
|
49
|
+
- Every GitHub release page, SemVer order, channels, dates, current/latest, and
|
|
50
|
+
missing compatible assets: accepted.
|
|
51
|
+
- Complete prerelease-inclusive default list: accepted after correction.
|
|
52
|
+
- One parseable JSON document with equivalent metadata: accepted after
|
|
53
|
+
correction.
|
|
54
|
+
- Windows swap, permission/rename failure, rollback, version mismatch,
|
|
55
|
+
pagination, labels, and missing-asset regressions: accepted.
|
|
56
|
+
|
|
57
|
+
## References
|
|
58
|
+
|
|
59
|
+
- [Approved design](../../superpowers/specs/2026-07-15-upgrade-reliability-design.md)
|
|
60
|
+
- [Implementation plan](../../plans/upgrade-reliability-implementation.md)
|
|
61
|
+
- [Validation](../../validation/upgrade-reliability-issue-12.md)
|
|
62
|
+
- [GitHub issue #12](https://github.com/CGuiho/runx/issues/12)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX Upgrade Reliability Issue 13 Implementation Review
|
|
3
|
+
purpose: Review exact-version recovery and installer behavior against GitHub issue 13.
|
|
4
|
+
description: Findings-first review of recovery coverage, target pinning, separate stop commands, installer version verification, JSON, and delivery readiness.
|
|
5
|
+
created: 2026-07-19
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- cli
|
|
11
|
+
- reliability
|
|
12
|
+
keywords:
|
|
13
|
+
- RunX
|
|
14
|
+
- issue 13
|
|
15
|
+
- recovery install
|
|
16
|
+
- exact version
|
|
17
|
+
owner: runx-implementation-reviews
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# RunX Upgrade Reliability Issue 13 Implementation Review
|
|
21
|
+
|
|
22
|
+
## Verdict
|
|
23
|
+
|
|
24
|
+
Accepted.
|
|
25
|
+
|
|
26
|
+
## Findings
|
|
27
|
+
|
|
28
|
+
No blocker, high, medium, or low implementation finding remains.
|
|
29
|
+
|
|
30
|
+
The implementation already generated recovery from the resolved plan before
|
|
31
|
+
mutation and retained it through failure envelopes. This audit strengthened
|
|
32
|
+
the release gate with an explicit matrix for all five terminal outcomes and an
|
|
33
|
+
executable PowerShell installer test for stable/prerelease normalization,
|
|
34
|
+
successful `--version` verification, and mismatch rejection.
|
|
35
|
+
|
|
36
|
+
## Acceptance Criteria Check
|
|
37
|
+
|
|
38
|
+
- Recovery after success, failure, already current, dry run, and rollback:
|
|
39
|
+
accepted.
|
|
40
|
+
- Exact stable and prerelease target preservation: accepted.
|
|
41
|
+
- Copyable installer command generated from supported installer flags:
|
|
42
|
+
accepted.
|
|
43
|
+
- Separate Windows and POSIX process-stop commands: accepted.
|
|
44
|
+
- Fallback-current repair when discovery cannot resolve a target: accepted.
|
|
45
|
+
- Text ordering and JSON recovery parity: accepted.
|
|
46
|
+
- Direct installer version arguments, canonical verification, and nonzero
|
|
47
|
+
mismatch behavior: accepted.
|
|
48
|
+
- Download, replacement, verification, and already-current regressions:
|
|
49
|
+
accepted.
|
|
50
|
+
|
|
51
|
+
## Platform Note
|
|
52
|
+
|
|
53
|
+
The current Windows gate executes PowerShell normalization and version
|
|
54
|
+
verification directly. Git for Windows Bash executes the Linux/macOS installer
|
|
55
|
+
syntax, piped startup, exact-version normalization, and executable verification
|
|
56
|
+
locally; Ubuntu CI remains the native Linux gate.
|
|
57
|
+
|
|
58
|
+
## References
|
|
59
|
+
|
|
60
|
+
- [Approved design](../../superpowers/specs/2026-07-15-upgrade-reliability-design.md)
|
|
61
|
+
- [Implementation plan](../../plans/upgrade-reliability-implementation.md)
|
|
62
|
+
- [Validation](../../validation/upgrade-reliability-issue-13.md)
|
|
63
|
+
- [GitHub issue #13](https://github.com/CGuiho/runx/issues/13)
|
|
@@ -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 |
|
|
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)
|