Skip to content

Carry namespace setup details across the fork to the parent - #83

Merged
jhuntwork merged 1 commit into
mainfrom
carry-namespace-details-across-fork
Nov 3, 2026
Merged

jhuntwork merged 1 commit into
mainfrom
carry-namespace-details-across-fork

Conversation

@jhuntwork

Copy link
Copy Markdown
Owner

forkAndEnterEnv runs namespace setup in a forked child and sent the
parent only the error name over the setup pipe. The subject and details
the setup code now sets on the Context stayed in the child, so mere dev
build and generation realizers reported "failed to fork and enter env:
UnshareError" with no operation, path or cause.

The child now clears the diagnostics it inherited, then sends the error
name, subject and details, cut to fit a 2048 byte report. The parent
decodes the report and restores the subject and details on its Context.
The build orchestrator and the generation realizer keep those details and
fall back to the error name only when setup reported nothing.

Fixes #66

forkAndEnterEnv runs namespace setup in a forked child and sent the
parent only the error name over the setup pipe. The subject and details
the setup code now sets on the Context stayed in the child, so mere dev
build and generation realizers reported "failed to fork and enter env:
UnshareError" with no operation, path or cause.

The child now clears the diagnostics it inherited, then sends the error
name, subject and details, cut to fit a 2048 byte report. The parent
decodes the report and restores the subject and details on its Context.
The build orchestrator and the generation realizer keep those details and
fall back to the error name only when setup reported nothing.

Fixes #66
@jhuntwork
jhuntwork merged commit 9a2db3b into main Nov 3, 2026
2 checks passed
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.

Explain namespace permission failures when entering a profile

1 participant