fix(sessions): preserve workspace bindings across frozen clones - #32
Merged
phodal merged 1 commit intoJul 31, 2026
Merged
Conversation
Preserve non-enumerable workspace CWD candidates when freezing shared Session populations and when the lead clones that population. This keeps Codex and Qoder workspace qualification stable without exposing private metadata in serialized output. Add regression coverage for frozen privacy and lead inventory reuse, plus a maintenance spec documenting the validation. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
chengfushi
marked this pull request as ready for review
July 31, 2026 03:26
chengfushi
marked this pull request as draft
July 31, 2026 03:31
chengfushi
marked this pull request as ready for review
July 31, 2026 03:31
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.
Summary
Root cause
Workspace CWD candidates are stored on Session objects as a non-enumerable
Symbol property.
structuredCloneand the Qoder preprocessing object spreaddropped that property. The frozen population still expected one eligible
Session, while the Session facts or lead lane re-qualified the cloned inventory
as zero eligible Sessions, causing
SESSION_POPULATION_BINDING_MISMATCH.Impact
Codex and Qoder evidence bundles now reuse one workspace-qualified frozen
population across Session facts and lead analysis. The private workspace
binding remains absent from
Object.keys, object spread, and JSON output.Validation
node --test test/session-population.test.mjs test/task-loop-source.test.mjs test/better-harness-evidence-bundle.test.mjs— 55 passednpm test— 1019 passednpm run pack:verify— passedcomplete; Session and lead lanesavailable; population bindingbound; counts1/1