Skip to content

Document the compute job environment in help - #2113

Merged
neuromechanist merged 3 commits into
feature/issue-2021-epic-compute-usersfrom
feature/issue-2092-job-environment
Nov 10, 2026
Merged

neuromechanist merged 3 commits into
feature/issue-2021-epic-compute-usersfrom
feature/issue-2092-job-environment

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Part of #2092. Owner ruling 2026-11-09: freeze /data/<id>, /work, /work/outputs, /code and NEMAR_OUT as the public contract; do not expose include to users yet; publish the docs now with an under-development banner and keep them updated.

What

  • New src/lib/compute/job-environment.ts declares the paths, the output variable and the not-promised list once. The settable variable names come from the contract's own JOB_ENV_ALLOWLIST and the output variable from LAUNCHER_ENV.OUT, so they cannot drift.
  • nemar compute submit --help-all gets 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).
  • results help says only regular files under $NEMAR_OUT come back; logs help says the log is standard output and error, not the files.
  • The human dry run prints a Paths: line. The --json answer is unchanged.

The public page cli/guides/compute-job-environment in the docs repo follows in a separate pull request and is linked from the help.

Tested

  • New test/compute-job-environment.unit.test.ts (facts against the real contract) and three CLI tests in test/compute-submit-cli.test.ts (help, results and logs help, dry run human and JSON).
  • All test/compute-*.test.ts: 1,027 pass, 0 fail, 4 skipped.
  • tsc clean. Biome is clean for the touched files; the errors it reports elsewhere in test/ are in files this change does not touch.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2113

Version: 0.10.28-PR2113.c06abad
Commit: c06abad


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 3454987 into feature/issue-2021-epic-compute-users Nov 10, 2026
47 of 53 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-2092-job-environment branch November 10, 2026 00:56

This branch was previously deployed

1 inactive deployment
npm — c06abadc Deployed Nov 10, 2026 by neuromechanist via publish #4371
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