Files
Open_Ultra_SAST/docs
Marius Ciepluch dbcbbd7f27 docs(contributor-scan): the documented build commands carry the base pin (item 5a)
Three documented build commands would have failed. README.md told the reader to build
plane/Dockerfile.engine-task with docker buildx and Dockerfile with docker build,
without TASK_BASE_TAG and TASK_BASE_DIGEST. Both Dockerfiles default the tag to
base-unpublished and give the digest no default. Measured on 2026-11-27 from a clean
copy of the tree, with the push and the published tags taken out so nothing could be
published: each failed in one to two seconds with `failed to parse stage name
"ghcr.io/norandom/ousast-task-base:base-unpublished@": invalid reference format`.

Both lines now pass the tag and the digest of `base` in plane/task-base.digest, and a
sentence after the block names the file. With those arguments the main Dockerfile
builds (exit 0 in two seconds; the image was removed afterwards). docs/scanning.md
says `docker compose build`, which pins the base and tags openultrasast:dev (the
defaults are guarded by tests/test_task_images.py), and says to run it in a checkout
of this repository.

Found while measuring, and not fixed:
- README.md's buildx line still does not run to the end on this tree. It builds the
  last stage, `replay`, and plane/Dockerfile.engine-task:47 copies
  benchmarks/unseen/replay_entry.py, which .dockerignore:32 has excluded since
  9017038 (2026-11-24). With the arguments the base resolves and the build stops at
  that COPY (`not found`). By the reviewer's reading, which was not run: of the
  Engine image workflow only its `replay` job reaches that line, so that job fails on
  the next push and on the next tag, and the `engine` job and the release image do
  not. tests/test_task_images.py forbids a negation pattern for the reserved
  populations.
- The README's copy of the pin is kept by hand and no test reads it. When the pin
  changes, both builds still succeed on the old base until that base is deleted.

The nine test files that reference README.md or docs/scanning.md pass (190 tests),
`mkdocs build --strict` exits 0, ruff, mypy, the three gates and compileall pass, and
the gates print what they printed before. An independent reviewer approved the change
in one round; its remark that docs/scanning.md did not say where to run the build is
applied.
2026-11-27 10:21:17 +01:00
..