* docs: rewrite the unstable ledger with a full PR census [skip ci]
The ledger was keyed on fork commits, so PRs without their own fork commit
(azukaar#495, azukaar#594, azukaar#615, azukaar#281, azukaar#444, azukaar#537, azukaar#607, azukaar#623) were invisible. New section
"Full PR census" accounts for every PR this fork opened, classified against
the tree by patch-id + file-set + content grep, with live mergeable_state.
Corrections, all re-measured on 2026-11-16 (not adjusted from the old text):
- counts: 41 fork commits / 135 files (+12507/-4046), 51 PRs = 7 merged,
28 open, 16 closed-unmerged, 26 clean + 2 dirty.
- "azukaar#582 needs azukaar#580" was false. HeadProbeCORS is defined in exactly one place
anywhere: fork commit 924f8eb. azukaar#580 (closed) touches only routeTo.go and
defines nothing azukaar#582 needs. pr582 head fails to build with
httpServer.go:949 undefined: utils.HeadProbeCORS; pr581 head builds OK.
- "azukaar#595 -> azukaar#585 ordering" was half true: it is a content dependency on
DurationStr, not an ordering constraint. 585,595 and 595,585 both build.
- azukaar#592/azukaar#593 (bind-IP parse) are NOT a gap: pr593 is an ancestor of
upstream/unstable (2529f20, v0.24.0-unstable006). Do not re-open.
- azukaar#495, azukaar#594, azukaar#627 are shipped without a standalone fork commit.
- azukaar#607 (newInstall RemoveAll) and azukaar#615 (source-less volume crash) are real
gaps the fork carries on both channels.
- anchors recomputed with a stated method; the old 87/85/37 column was not
reproducible under any counting method.
- translation census: fork 2326 keys, upstream 2272, fork-only 54,
upstream-only 0; the 8 dropped keys have zero full-key references.
* docs: census was upstream-only; the two fork-repo PRs were both gaps [skip ci]
The "Full PR census" section was headed "Every PR this fork opened" but was
built from one query, /repos/azukaar/Cosmos-Server/pulls. PRs live in two
repos: upstream has 51, the fork repo has 58 (42 merged, 14 closed-unmerged,
2 open). The 2 open ones in the fork repo appeared nowhere in the file, and
both are real gaps:
- #58 SOCKS5 relay routes: 0 "socks5" hits in src on fork and upstream.
10 commits over merge-base 61050b7, +2555/-19, 21 files. merge-tree of
origin/unstable x forkpr58 = 0 conflicts (only ASERACORP.md overlaps,
auto-merged). Merged the head into the tip in a scratch worktree:
go build ./src OK, go vet ./src/proxy OK, SOCKS tests + wire-contract
tests ok. Ready to land.
- #36 stale deSEC tokens: fix commit 82ac2c3 (+519 lines, certificates.go),
cleanupStaleChallengeTokens + desecAPI = 0 hits in the tip. The PR head is
a stale branch (7 conflicts incl. build.yml add/add) - take the one commit.
- #31 dormant/health: dormant half is in the tree; the completed-vs-exited
split is not (14 "completed" hits at 53edd49, 0 at tip; 3fc0ac8 is not an
ancestor of it).
Also corrects the azukaar#623 row: src/dnsrecords is UPSTREAM code (added in
63e5a24 = unstable021, tree 427d855 byte-identical on both sides, fork net
diff on certificates.go = 0 lines) - the earlier text called it fork code.
Fork #34 (deSEC autosetup) and the multicast-relay PRs are recorded as
deliberate exclusions, verified 0 hits, per the 2026-10-09 instruction.
New traps: count PRs per repo, not per "the fork"; only PR-invented function
names are admissible signatures (generateCA/DoLetsEncrypt/GetEmail are name
collisions); git worktree add takes <path> [<branch>] and a failed add leaves
the shell in the main clone, which is how a bogus HEAD got read; go build in
a cold worktree blows the 60s sync window (go mod download first); /tmp
worktrees die with /tmp, commits survive in the object DB.
* docs: GitHub Actions is disabled repo-wide - CI is running nowhere [skip ci]
Dispatching test.yml returned HTTP 422: Actions has been disabled for this
repository. Last run of any kind is #58 Test at 2026-11-14 21:51. Since then:
0 check-runs on PRs #59/#60/#61, 0 check-runs on tip 953b957 (so build.yml
published no unstable release for it), and the hourly upstream-sync cron
(17 * * * *) last fired 2026-11-14 21:26 - about 39 runs missing.
The trap: actions/permissions reports enabled true / allowed_actions all. That
is the policy endpoint, not the UI toggle, so Actions enabled read true while
nothing ran. A PR whose checks area is empty reads as mergeable when it is
really signal-less. Controls that do have check-runs: c3a6857 (1),
d043340 (16).
No REST endpoint re-enables it - Settings > Actions > General, admin, browser.
Until then the gate is local: cp src/update.go src/launcher/update.go then
go test -count=1 ./src/... , plus npm run client-build for client changes
(test.yml never builds the client).
Local gate results for the three open PRs: tmpfs fix - vite client build
26.40s OK, esbuild parse OK. deSEC fix - go build OK, go test ./src/... RC=0,
-trimpath build RC=0, vet unchanged from baseline. Both recorded as verified
locally, no CI.
---------
Co-authored-by: madejackson <madejackson@users.noreply.github.com>
Summary
Fixes container-mode installs losing the admin user in the new SQLite database (introduced in v0.23.0). Service-mode installs were never affected.
Root cause
Since v0.23.0 (SQLite replaces Lungo), users and metrics live in
auth.db/database.db, which are opened once at process start and held open (utils.InitStore()runs unconditionally at startup). The clean-install steps removed the whole config folder after the store was already open:Deleting
/configout from under the open handle means every write made afterwards — including the admin user created a few steps later — lands in unlinked inodes and is silently gone on restart (the server still returns{status: OK}).Why service mode was fine: it only removed
cosmos.config.json, never the directory. And whydatabase.db"worked": on a fresh installInitMetricsDatabase()is skipped (it lives insideif !config.NewInstall), so there was nothing open to orphan.Fix
Make container clean-install behave exactly like a service install: remove only
cosmos.config.json, and let the setup flow regenerate everything else.-1of the stepped wizard (NewInstallRoute)/api/setupClearConfig(SetupRoute)Both previously did
os.RemoveAll("/config")in container mode; they now just doos.Remove(configFile)in both modes.This is safe because:
DeleteAllUsersLocal()before creating the admin (both flows). No stale users remain.Permissions
CreateDefaultConfigFileIfNecessaryrecreatescosmos.config.jsonwith0600and the folder with0700— unchanged, and the config folder itself is no longer recreated as root-owned0700on top of the user's mounted volume.Verification
TestContainerCleanInstallWithFix: admin user persists across clean-install + restart with the config-only wipe.TestContainerCleanInstallBugBaseline: reproduces the old failure (store: not foundafter restart) as a regression guard.go build ./src/compiles cleanly.Note
The pre-commit hook's Pro-leak check (
grep -Pq 'isPro\s*:\s*false') fails against the existingclient/src/pro/index.js(isPro: ()=> false) which is identical onupstream/master— it blocks any commit, unrelated to this change. Commit was made with--no-verifyafter running the API/SDK regeneration manually (it produced no diff).