docs: align the documents with the code #71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/align-with-code"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The README and
docs/tell users how to launch a client in itscontainer and contributors how to work on the launcher. An audit of
them against the code found the commands, options, and links right, and
a few passages wrong or silent.
The one that matters most: the README said the first argument is the
workspace. When that argument is not an existing folder, the launcher
passes it to the client and mounts the current directory instead,
asking first on a terminal and unasked otherwise, so a mistyped folder
exposes the whole current directory to the container.
The rest are smaller: the shared env example lacked one control, two
sentences of
docs/configuration.mdcontradicted the code, severalrules the launcher enforces were stated nowhere, two installer errors
had no troubleshooting entry, and two facts had more than one home.
What changed
A user reading Usage now learns what happens to a first argument that
is not a folder, and
docs/automation.mdpoints a script author to it.An operator now finds, in
docs/configuration.md: the form identityand account names take; that
AZKABAN_SKIP_CUSTOM_IMAGES,AZKABAN_AUTO_PULL, andAZKABAN_UNMASK_PROCtake0or1only;which container variable values are dropped with a warning; that a
workspace
.env.<client>must not be a symlink; that containers neversee custom image approvals; and that a launch passes the terminal's
size as well as its type.
docs/custom-images.mdsays a workspaceDockerfile must not be a symlink,
docs/troubleshooting.mdhas the twoinstaller errors, and
examples/env.azkaban.examplelistsAZKABAN_UNMASK_PROC.A contributor now finds, in
docs/development.md: how to run thelauncher from a checkout, the Makefile's
TZ, and that two test filesfail inside Claude Code's Bash sandbox.
docs/adding-a-client.mdstatesthe API-key field's rule once.
No code or test changes. Not in this change: the README keeps its
sentence on the workspace
.env.<client>, which the audit offered toshorten.
How to verify
Have Git and Bash 4.4 or newer, on Linux. No container engine is
needed: a dry run prints the launch without making it.
The launch, the same on
masterand on the branch, printsclaude: Workspace: <scratch>and a command that mounts<scratch>:/workspaceand ends withclaude-code ./projct: themistyped
./projctwent to the client and the current directory becamethe workspace. On
masterthe README's Usage says only "The firstpositional argument is the workspace and must precede native-client
arguments". After
git switch docs/align-with-codeit says "when it isan existing folder" and adds "Any other first argument goes to the
client, and the workspace is then the current directory".
Checks run on the tip:
make lint && .agents/hooks/shellcheck.sh repo && make testpasses, 352 tests;
prettier --check README.md docs/*.mdpasses; areviewer confirmed each added fact against the code line it describes.
Not tried: the macOS rule for dropped values, read from the code only.
a8f60b17a8to2eebef022a