Skip to content

org: full-suite reds on org/main, test races, a knowledge opt-in race, and image gates on pull requests - #2907

Merged
AbirAbbas merged 12 commits into
org/mainfrom
org/fullsuite-fixes
Nov 25, 2026
Merged

AbirAbbas merged 12 commits into
org/mainfrom
org/fullsuite-fixes

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

The full suite (ci-full.yml, run 45528811025) found two reds on org/main. The touched legs did not run either package.

  • internal/config TestRegistryCoversEveryUserFacingEnvironmentPin: the hosted-chat variables (sessionhost, the org server's hosted side, each chat engine's launch environment, CODEAF_ORG_TOKEN) were never registered. They are now in OperatorEnvPins as read-only plumbing.
  • internal/cellstore/celltest TestEngineCleanupUsesEngineDir: internal/cellsync/read_real_test.go registered StopSpawned by hand. It now takes its home from storetest.EngineDir.

Both packages pass locally.

🤖 Generated with Claude Code

AbirAbbas and others added 12 commits November 24, 2026 21:39
The org server, sessionhost and each hosted chat's engine read a dozen
CODEAF_* variables an operator or a launcher sets. None were in
OperatorEnvPins, so the full suite's environment registry test failed on
org/main. They are deployment credentials, endpoints and launch plumbing,
never a person's preference, so they are listed read-only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ineDir

The guard in cellstore/celltest refuses a test that registers StopSpawned
by hand. EngineDir registers it after the folder, so engines stop before
their home is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…a window would have shown

TestL4HostedRemovedComputerQuitsQuietlyAndKeepsLocalHistory failed about one
run in four, on the base commit ca8e437 as well as on org/main (7 of 30
there, 7 of 30 here; dev's nightly of 2026-11-22 failed it with the same
text). The hold's heartbeat can reach the relay in the millisecond between
the revoke and this computer's own removal marker, and the drive then raises
"this device was removed ..." while the fixture has no window open. The engine
keeps such a sentence for the closing report on purpose
(Agent.TakeSavingNotices claims live sentences the window has not displayed),
so the quit printed it.

Product behaviour is unchanged and right: a person who quits before reading
the sentence is told once, and a window that was open has already shown it.
The fixture opens its window only at quit, so it now takes what the engine
raised meanwhile, the way a window shows it, and fails on any other pending
notice. The quit itself must still print nothing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…between them admits nothing

TestKnowledgeCapturesSavedTurnsOnlyAfterOptIn failed on the full suite with
"wanted two completed sources, got Phase:building ... Pending:4": the turn
written before the opt-in had been captured as well as the one after it.

StartBuild is two writes, the profile switch and the vault's record of when
Memory began. It wrote the switch first. The capture scanner looks on its own
clock, a second after the chat's last write, and a look between the two found
Memory on with no record, which consent reads as on since the beginning of
time; it admitted every turn the chat had already finished. On a slow machine
the scanner's look lands in that gap often enough to show. The code is the same
on dev, so it is not the org line's.

The record now commits first and the switch second. A look in between finds
Memory off, and a look after finds the record and its time. A failure between
the two leaves Memory off with an opt-in time a retry keeps (INSERT OR IGNORE).

The new test holds StartBuild at its first use of the vault's database until
the scanner has looked once, then expects nothing captured. It fails on the
old order (Pending:2) and passes on the new.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…complete

The cut-after-open test returned as soon as the workspace tree matched, but the
restarted stage still runs its hooks (the vault pull and the index rebuild open
the vault lock and the chat's stores) and its look at the folder for a second or
more after that. The temporary-directory cleanup raced that writer and failed
with 'directory not empty': 7 of 80 focused runs at the org/main tip, 2 of 80 at
the dev base, 0 of 100 with the wait.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… is complete

The test returned on the 'part of its state could not be updated yet' notice,
which is said from the middle of the restarted stage. Same shape as the live
transfer C13A test: the rest of the hooks kept writing into folders the
temporary-directory cleanup was removing. It failed that way on the full suite;
it does not reproduce locally, so this is the same fix on the same mechanism, 60
of 60 clean.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…from org/main

The workflow named dev and the deleted w24/org-images branch, so the two
gate steps added since never ran in CI. A pull request into org/main that
touches the stack now builds and scans every image, and never publishes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 74d8306573ce26831c57e6165cf16d3901a9952c)
@AbirAbbas AbirAbbas changed the title org: two full-suite reds on org/main (environment registry, engine cleanup guard) org: full-suite reds on org/main, test races, a knowledge opt-in race, and image gates on pull requests Nov 25, 2026
@AbirAbbas
AbirAbbas merged commit e9361d7 into org/main Nov 25, 2026
24 checks passed
@AbirAbbas
AbirAbbas deleted the org/fullsuite-fixes branch November 25, 2026 06:08
AbirAbbas added a commit that referenced this pull request Nov 25, 2026
…ack (#2903)

The hosted organisation line: a team-mode org server deciding every request through one access model (verbs, roles, grants and policy in SQLite), hosted chats run by the sessionhost under a per-chat uid inside a Landlock fence with minted model bearers, sealed keys and a git helper, shared chats acting through verbs, bots owned by their creator, the Hosting and chats policy settings, and a self-hosting stack (deploy/org Docker Compose, published images behind a leak gate, a Railway path).

Consolidates #2894 #2895 #2896 #2898 #2899 #2900 and the follow-ups #2904 #2905 #2907 #2908 #2910 #2911 #2912 #2913 #2915 #2916 #2918 #2927 #2936 #2944. Proven by the full suite, a keyless Compose smoke, a hostile wire client, sandbox escape probes, a real-model run and a production-style install from the published images.

Co-Authored-By: Santosh kumar <[email protected]>
Co-Authored-By: ZeroPoint95 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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