Repository navigation
Document the compute job environment in help - #2113
Merged
neuromechanist merged 3 commits intoNov 10, 2026
Merged
neuromechanist merged 3 commits into
neuromechanist merged 3 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2113Version: 🤖 Updated on each push. |
…st no first-party flags
neuromechanist
merged commit Nov 10, 2026
3454987
into
feature/issue-2021-epic-compute-users
47 of 53 checks passed
2 tasks
This branch was previously deployed
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.
Part of #2092. Owner ruling 2026-11-09: freeze
/data/<id>,/work,/work/outputs,/codeandNEMAR_OUTas the public contract; do not exposeincludeto users yet; publish the docs now with an under-development banner and keep them updated.What
src/lib/compute/job-environment.tsdeclares the paths, the output variable and the not-promised list once. The settable variable names come from the contract's ownJOB_ENV_ALLOWLISTand the output variable fromLAUNCHER_ENV.OUT, so they cannot drift.nemar compute submit --help-allgets a "Job environment" block: working directory, read-only code, read-only/data/<id>with no version in the path, results only under$NEMAR_OUT(/work/outputs), what is discarded, the six settable names, and what is not promised (network,HOME/PATH/LANG, disk space, more than one node).resultshelp says only regular files under$NEMAR_OUTcome back;logshelp says the log is standard output and error, not the files.Paths:line. The--jsonanswer is unchanged.The public page
cli/guides/compute-job-environmentin the docs repo follows in a separate pull request and is linked from the help.Tested
test/compute-job-environment.unit.test.ts(facts against the real contract) and three CLI tests intest/compute-submit-cli.test.ts(help, results and logs help, dry run human and JSON).test/compute-*.test.ts: 1,027 pass, 0 fail, 4 skipped.tscclean. Biome is clean for the touched files; the errors it reports elsewhere intest/are in files this change does not touch.