ramdisk: headless planning, staging, mounts, recovery + tokenized CLI (PR2 of #377 split) - #821
Open
BColsey wants to merge 7 commits into
Open
ramdisk: headless planning, staging, mounts, recovery + tokenized CLI (PR2 of #377 split)#821BColsey wants to merge 7 commits into
BColsey wants to merge 7 commits into
Conversation
This was referenced Aug 4, 2026
BColsey
force-pushed
the
successor/pr2-headless
branch
from
August 9, 2026 12:08
ea0e0cb to
16ec02a
Compare
BColsey
force-pushed
the
successor/pr2-headless
branch
from
August 9, 2026 12:49
16ec02a to
ed66cf9
Compare
Author
|
@JustVugg, this PR is ready for review. The current CI workflow and check workflow are both |
BColsey
marked this pull request as ready for review
August 9, 2026 13:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft successor — supersedes #377. One of three dependent PRs reconstructed from the frozen green donor
5f6f31a. Do not merge #377.docs/superpowers/specs/2026-08-01-pr-377-stabilization-design.md(PR2, L82-87)docs/superpowers/specs/2026-08-02-pr-377-successor-reconstruction.mdScope
Headless planning/discovery, platform ops, durable state, safe mount recovery, the reduced facade + tokenized CLI, packaging, and portable tests. No frontend/TUI; managed
start/stopdeferred to PR3.Control plane:
c/ramdisk.py,c/__init__.py,c/ramdisk_support/{__init__,accelerator,cli,common,discovery,lifecycle,linux_ops,model,mounts,planning,platform_ops,presentation,presets,processes,state}.py. Packaging:c/coli,c/tools/clean.py,pyproject.toml,flake.nix. Portable tests (state_lifecycle, processes, mounts, planning, platform, packaging, CLI/JSON smoke, facade, …) + docs/CI.Reconstruction work (drafts may not build in isolation until these land)
plan/stage --plan-token/ read-onlyverify/status/destroy --deployment-token, all--json; versioned result/error schemas.preparestays an alias; managedstart/stopstay deferred to PR3.presentation.pyimportsramdisk_uiat module top level — relocate the data contracts + token builders into a headlessramdisk_supportmodule so PR2 builds withramdisk_ui/ramdisk_textual/curses_uiphysically absent.textualas a hardpyproject.tomldep (→tuiextra); stopc/coliandflake.nixfrom requiring/bundling UI files; updatetest_ramdisk_packaging.pybundle assertions.Dependency
Depends on PR1 (#820):
c/coliimportsresource_plan.py(PR1). PR3 (#822) depends on this PR's durable state + recovery.Build verification (subagent worktree)
lifecycle/state/processesimport cleanly. 233 passed / 36 failed — every failure traces to the intentionally-excluded UI/benchmark/curses bundle (no unexpected defect).presentation.py:10importingramdisk_ui— thecolilauncher top-level bundle self-check (_complete_support, c/coli:67-162) hard-aborts withSystemExit("coli: incomplete colocated support bundle …")whenramdisk_ui.py/ramdisk_textual.py/benchmark.py/curses_ui.py/runtime_monitor.pyare absent, killing the unittest runner. PR2 must make that self-check absence-tolerant (and have the lazyimportlibaccessors treat a missing optional module as "feature unavailable", not a hard abort).Reconstruction update
PR2 reconstruction landed (commit b7a6df4): builds and tests UI-free. Absence-tolerant
colibundle self-check (no SystemExit); new headlessramdisk_support/contracts.py(contracts relocated out of the excludedramdisk_ui);presentation.pyimports from.contracts;textualmoved to an optionaltuiextra; lazy accessors raise only on use. Green: 705 passed / 0 failed (3.10 + Win32 matrix). Still TODO: tokenized JSON CLI (stage/verify/destroy).Update — 2026-08-07: forward-merged
upstream/dev(two forward-only merge commits; reconstruct history preserved). Conflicts resolved against the green donor3658a5d; merged dev @aa46e7bthen @8d06bd1(dev advanced mid-work). Linux-green: python suite 809 OK (incl. dev's newtest_launcher_dispatch),make portableclean,test_uring/test_serve_sentinelpass, headless/UI-free build confirmed. GitHub reports this branch MERGEABLE intodev.