8000 refactor(sandbox,settings): drop dead options; one inspect for drift state by geminixiang · Pull Request #200 · geminixiang/mikan · GitHub
[go: up one dir, main page]

Skip to content

refactor(sandbox,settings): drop dead options; one inspect for drift state - #200

Merged
geminixiang merged 4 commits into
mainfrom
refactor/simplify-sandbox-settings
Oct 26, 2026
Merged

geminixiang merged 4 commits into
mainfrom
refactor/simplify-sandbox-settings

Conversation

@geminixiang
Copy link
Copy Markdown
Owner

Stage 4 of docs/research/simplify-modules-2026-10.md (#196). 17 files, +159 / −265.

Change Note
Drop ProvisionOptions.containerName, ContainerState.containerName, getContainerName, and the resolver's actual-vs-expected check The only caller passed the default name
Remove test-only linkAbortSignal, VaultManager.list() (and RESERVED_VAULT_DIRS, then unused) No production callers
One rewriteSettingsFile for the three settings writers; noPlatformsMessage reuses envSummaryLines Duplicate steps
recordDiagnosticEvent takes a DiagnosticBreadcrumb; Slack names move to update-diagnostics.ts Its "diagnostic" default was unreachable
Drift state from one tab-separated inspect template Same fields as before

Inspect calls per provision, measured against real Docker with a scratch driver (6/6 cases pass on main and branch):

Case main branch
Running, no drift 4 1
Stopped 5 1
Bind or mount-content drift 3–4 1

Verification

Check main branch
npm run typecheck pass pass
npm test 2033 passed 2028 passed (tests of removed code deleted)
npm run duplication 1 clone 1 clone (unchanged)

Pending: the combined inspect template is verified on Docker only; run it on nerdctl and Podman before merge. Sandbox provisioning is on the run path, so slack-e2e.yml too. Draft until then.

@geminixiang
geminixiang marked this pull request as ready for review October 26, 2026 10:24
@geminixiang
Copy link
Copy Markdown
Owner Author

Slack E2E: see the runs below. S-023 failures before #202 were the model handing the busy run to start_task (reply in the task thread); with #202's prompt applied on a temporary branch this PR passes 26/26.

…y linkAbortSignal and VaultManager.list

ProvisionOptions.containerName had one caller, which passed the default
name, so the resolver's returned-name check could never fail.
…iters

noPlatformsMessage now reuses envSummaryLines.
provision read status, binds, and each label with separate inspect calls
(up to five per run). One template returns them all, so a steady-state
provision costs one inspect instead of four, and a stopped one one
instead of five. The fake engine now evaluates templates field by field.
@geminixiang
geminixiang force-pushed the refactor/simplify-sandbox-settings branch from 5f23f00 to 49d09f5 Compare October 26, 2026 10:58
@geminixiang
geminixiang merged commit 016f78f into main Oct 26, 2026
6 checks passed
@geminixiang
geminixiang deleted the refactor/simplify-sandbox-settings branch October 26, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0