Repository navigation
fix: safely retire runtimes and retain unverified processes - #178
Merged
Merged
Conversation
This was referenced Sep 16, 2026
ElbertePlinio
marked this pull request as ready for review
September 16, 2026 12:35
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.
Current candidate: 8a8d3ba, tree 1f6d36a8a6b7050d5b92345b8f2f7f06e3ed1a23. Four files change: desktop runtime source/tests and core containment source/tests. This combines safe owned symlink-leaf cleanup, validated runtime-root identity retention and the distinct #180 unverifiable-process retention fix.
CI35062515630 and Candidate smokes35062515767 are green, ten checks total. The tested merge c422bc6 has the same tree. Full tests and coverage each passed 1,943 with eight documented CI skips. Parent checked source identities/modes and real installed-artifact Writer cleanup, including the original retained failure, without bypassing ownership guards.
Final source verification is complete on this exact candidate. Independent Astra and Fable source reviews are accepted for both runtime and containment, and both managed repair tasks are verified with all requirements and checks satisfied. The earlier quota failures remain preserved; resumed Fable reviews executed successfully. The nonblocking cleanup-reason wording follow-up is #181. Existing bounded regression diagnostics are retained. Independent image assessment and candidate native evidence do not qualify published npm0.5.0; #156 stays open. No new release is authorized. Historical #179 remains unexplained and is not closed by this PR.
Historical checkpoints follow. Their pending states and counts refer to earlier revisions, not current approval.
Fixes native-app teardown blocked by ordinary Fontconfig compatibility symlinks in a private runtime. The change permits an owned leaf to pass through the existing descriptor-pinned identity check and unlink path. It does not follow link targets or relax runtime-root, foreign-owner or replacement checks.
Tests cover sibling cache links, dangling/self/cyclic links, outside file/directory targets with unchanged identity and contents, foreign ownership and replaced leaves/directories. Only runtime.ts and runtime.test.ts change.
Parent verification matched all 374 source identities and modes, ran typecheck/build/lint and 246 focused tests, and verified source-matched worker full-suite and coverage reports: 1,938 passed and four documented local skips each. Controller complexity passed with 11 checked. Original red regression and environmental validation failures are retained privately.
This is a draft CI candidate. Both independent safety reviews and real repaired-artifact Writer cleanup remain required before merge. The workflow requires candidate CI before review admission, so neither initial reviewer invocation executed. No release or published-package qualification is claimed. #156 remains incomplete.
Closes #177.
Retained earlier #179 diagnostic head:
5bdd984616daa49fb15f31b42c53f26c95dea545. Production bytes remain unchanged from the prior candidate. The marker escapee test now collects bounded, sanitized failure-only traces and runs 50 fixed independent samples with all original assertions and deadlines intact. This is evidence gathering, not a repair, CI acceptance or merge approval. Local Node 20.19.0/Bun 1.3.12 validation passed 90 containment and 47 ownership tests with no skips; original CI failure and its unknown cause remain open. Final source reviews and real Writer teardown remain required.Prior stat-retention candidate:
c315958b744b7694766b765322c8948b1ee2a2b9, tree10c8114c94b32f1882667491aaaf099acede91f6. Closes #180. Controlled stat-read EACCES proved a distinct false-confirmation defect; the fix retains unverifiable established identities without signaling them, while preserving gone/zombie/reuse handling. The original strict escapee test is restored and temporary diagnostics removed from this candidate. Historical #179 CI causality remains unknown and that issue stays open. Parent verified 374 source identities, ran fresh typecheck/build/lint and 172 focused tests, and checked saved current-source full/coverage reports (1,942 passed, four explicit skips each). New exact CI and two independent safety reviews are pending. No merge or real Writer acceptance is claimed.Current root-identity repair candidate:
8a8d3ba0e35bb6d866cb91260d8baa8b45157460, tree1f6d36a8a6b7050d5b92345b8f2f7f06e3ed1a23. Addresses the independently found blocking runtime-root replacement race. Three deterministic red cases are retained; root removal now checks its validated directory identity and does not adopt a root arriving after an absence observation. Approved core bytes remain unchanged. Parent verified 374 source identities/modes and fresh typecheck/build/lint plus 87 focused tests; saved current-source full/coverage each passed 1,947 with four explicit local skips. New exact CI and two scoped runtime re-reviews remain pending. Real Writer and #156 acceptance are not claimed.