docs(contributor-scan): the citations in detection-techniques.md name the instruction (item 5a)

docs/detection-techniques.md pointed into Dockerfile and docker-compose.yml by line
number, and every one of those citations was off. Its three doc regions were written on
2026-10-02. Then 1b9d1ca (2026-10-05) moved the base image and php-cli out of the root
Dockerfile and into the task base (plane/Dockerfile.base), and 9d53c32 moved the Joern
build argument of docker-compose.yml from line 15 to line 16. Before this commit, lines
171 and 299 cited Dockerfile:14, Dockerfile:12 and docker-compose.yml:30-31, none of
them the instruction meant, and docker-compose.yml:15 no longer held the pin.

The maintainer's decision of 2026-11-26 (menu item 8): "Name instructions", so that the
next edit does not stale them. What the four citations name now:
- Dockerfile: the ARG JOERN_VERSION line (line 7 at HEAD).
- docker-compose.yml: the JOERN_VERSION build argument (line 16 at HEAD).
- docker-compose.yml: the comment above mem_limit (lines 49-51 at HEAD). The quotation
  is unchanged.
- The Java the engine runs on: the FROM eclipse-temurin:21-jdk-jammy AS jdk line of
  plane/Dockerfile.base (line 5 at HEAD).

Two positions are this session's, not the maintainer's decision; both are open to a
correction:
- A fifth citation of the same kind. The decision names four. The PHP row of the
  frontend table (line 158) cited Dockerfile:17-21 for the php-cli install. It was exact
  when written and went stale in 1b9d1ca with the others. It now names the apt-get
  install line of the base stage in plane/Dockerfile.base (lines 20-21 at HEAD; the file
  has a second apt-get install line, in its base-browser stage), and says the base image
  installs php-cli, since the root Dockerfile no longer does.
- A fact changed, not only a citation. The sentence said the image is on
  eclipse-temurin:21-jre-noble (Dockerfile:12). That FROM left the root Dockerfile in
  1b9d1ca, so no instruction could be named for it. The sentence now says the engine
  runs on Temurin 21, taken from eclipse-temurin:21-jdk-jammy: the jdk stage of
  plane/Dockerfile.base, copied into its base stage (line 11), which the task-base-image
  workflow publishes (target: base) and Dockerfile builds on (line 5).

Measured on 2026-11-27 in openultrasast:dev (3f959b31f2f2, built from 88ea171): Debian
13 (trixie), OpenJDK Runtime Environment Temurin-21.0.12.1+1, PHP 8.4.26 (cli), uid
1000; exit 0. No file that enters the image changed, so it was not rebuilt.

Left alone, and reported:
- .kiro/specs/plane-on-kubernetes/design.md:252 cites Dockerfile:1-7 for the argument
  against sibling services. That header left the root Dockerfile in 1b9d1ca too. It is
  a spec's design record, not a site page. By the reviewer's reading, two more are stale
  in the same spec (design.md:248 and tasks.md:180, both Dockerfile.runner:25-29).
- The citations into the Python source by line number, in the same page, are not
  touched: the decision is about the Dockerfile and compose citations.
After this commit no site page (docs/, README.md, ops/README.md) cites a Dockerfile or
a compose file by line number.

`mkdocs build --strict` exits 0, tests/test_docs_site.py and
tests/test_removed_plane_references.py pass (8 tests), 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 the root Dockerfile no longer installs
php-cli is applied.
This commit is contained in:
Marius Ciepluch
2026-11-27 10:43:13 +01:00
parent dbcbbd7f27
commit 6e4a62edd4
+8 -7
View File
@@ -155,7 +155,7 @@ A frontend is the Joern parser that turns one language into a CPG.
| Language | Frontend (`cpg/backend.py:73-81`) | Notes |
| --- | --- | --- |
| PHP | `php2cpg` | Built directly, not through `joern-parse` (`backend.py:97, 607-628`). On one WordPress slice `joern-parse` produced 5 usable builds of 8 and reported success on empty graphs; `php2cpg` produced 11 of 12 and names the files it dropped (`backend.py:85-90`). Files with a `global` inside a closure are excluded for php2cpg before 4.0.625 (`backend.py:124-149`); joernio/joern#6281 is the graph bug fixed in 4.0.625 (`2026-09-20-php-runtime-after-graph-fix.json`, `.the_graph_bug_is_fixed`). The frontend needs a PHP interpreter; the image installs `php-cli` (`Dockerfile:17-21`). |
| PHP | `php2cpg` | Built directly, not through `joern-parse` (`backend.py:97, 607-628`). On one WordPress slice `joern-parse` produced 5 usable builds of 8 and reported success on empty graphs; `php2cpg` produced 11 of 12 and names the files it dropped (`backend.py:85-90`). Files with a `global` inside a closure are excluded for php2cpg before 4.0.625 (`backend.py:124-149`); joernio/joern#6281 is the graph bug fixed in 4.0.625 (`2026-09-20-php-runtime-after-graph-fix.json`, `.the_graph_bug_is_fixed`). The frontend needs a PHP interpreter; the base image installs `php-cli` (the `apt-get install` line of the `base` stage in `plane/Dockerfile.base`). |
| Python | `pysrc2cpg` | |
| JavaScript, TypeScript | `jssrc2cpg` | Called directly, skipping `joern-parse` (`backend.py:629-637`). TypeScript adds the boundary `typescript_property_support_unvalidated` (`model/partitions.py`). |
| Java | `javasrc2cpg` | |
@@ -168,10 +168,11 @@ names, and makes no claim about arithmetic overflows: an index, a pointer offset
2026-11-24: of the 176 pairs in the real-world `vfc` slice, none is labelled as going through a
string API the family models, and 129 carry no sink label.
Joern is pinned at `v4.0.625` in the image (`Dockerfile:14`, `docker-compose.yml:15`,
`ops/joern.py`), on `eclipse-temurin:21-jre-noble` (`Dockerfile:12`). The pin stayed there after
the graph fix. That decision is recorded in `2026-09-20-php-runtime-after-graph-fix.json`
(`.on_the_engine_pin.decision`).
Joern is pinned at `v4.0.625` in the image (the `ARG JOERN_VERSION` line of `Dockerfile`, the
`JOERN_VERSION` build argument of `docker-compose.yml`, `ops/joern.py`), on Temurin 21 (the
`FROM eclipse-temurin:21-jdk-jammy AS jdk` line of `plane/Dockerfile.base`). The pin stayed
there after the graph fix. That decision is recorded in
`2026-09-20-php-runtime-after-graph-fix.json` (`.on_the_engine_pin.decision`).
### Our approach
@@ -296,8 +297,8 @@ clean (`scan.py:716-729`).
**Operating the engine.** The engine runs inside the `openultrasast:dev` image with
`--network none --memory 3g`, one container at a time (`engine_alerts.py:43-44, 128-136`;
`evaluate.py:82-93`). `docker-compose.yml:30-31` gives the reason: "two Joern JVMs at once is
what triggered an out-of-memory kill on a 7.7 GB machine".
`evaluate.py:82-93`). The comment above `mem_limit` in `docker-compose.yml` gives the reason:
"two Joern JVMs at once is what triggered an out-of-memory kill on a 7.7 GB machine".
The source mounted into the container is a frozen export of a commit, never the live tree
(`engine_alerts.py:102-110`). This is because a five-hour replay was once confounded by edits