You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
T095, AT-R1's HTTP half: an acceptance harness in its own CI job, with no database service (plan 034) - #75
Plan 034, task T095, slice acceptance (AT-R1, the HTTP half), phase 3. The plan is specs/034-opendox-standalone-operation/tasks.md at opensoft/openxFactory main596a9a90, § "Acceptance: AT-R1", as T007 batch N (bdd0f586) amends it. It realizes FR-011's HTTP half.
5961364221 item 2: T095 is drafted now, and does not go READY before T063 lands.
5850003126: R1Q10 (a), R1Q12 (a), R1Q13 (a) with (c), R1Q15 (b), and R1Q16 (iii) and (iv).
5963851934: the console token travels in the opened URL, and the harness reads the private copy.
5973854291, F1 (i): the chat rail reads a thread only with a branch session (openDox-code#85).
State: DRAFT. Its After line is T089, T076, T104 and T007 batch N. Batch N (openxFactory bdd0f586), T104 (openDox-code#84, 32943cbf) and T076 (openDox#17, 504324de) have landed. Its READY waits only on T089, lane openXfactory-3's phase-3 checkpoint. The holder posts READY and the landers merge; this writer does neither.
Release 1, for T096's evidence:
P = dede32b4b6f3d0f147d599776f83628c5af8ff3d, the openDox-code commit T087 pins in the openDox root (e1e3a3c3).
X = this PR's landing commit, RELEASE1_TIP, which lane openXfactory-3's T096 evidence fills in.
Build inputs: this PR changes none; it changes only CI and tests. It touches .github/workflows/validate.yml, acceptance/at_r1_http.py, tests/test_at_r1_http_harness.py and tests_runtime/test_deploy_shape.py. It does not touch pyproject.toml or anything under src/. To check, both distributions were built locally the way release.yml builds them: the hash-locked release tools, python -m build --no-isolation, and SOURCE_DATE_EPOCH set to the commit's time. That was done at P and at d29e68ca. The two wheels hold the same 129 files, each with the same bytes. Built at P's SOURCE_DATE_EPOCH, d29e68ca's wheel is byte-identical to P's (sha256 8ecea00d…). With each commit's own time they differ only in the archive's timestamps. The sdist at d29e68ca holds one file more, tests/test_at_r1_http_harness.py, because setuptools' default sdist takes tests/test*.py; its SOURCES.txt lists that file. So what installs at X is what installs at P, and the source archive differs by that one test file.
Convergence: the lexer's and the resolver's residual misreadings are accepted limits of the harness, under the holder's ruling. They are listed, with the checks showing that no shipped file uses them, in "Accepted limits" below.
On this PR, acceptance and validate are both green
The stack the harness drives has landed. maindede32b4 (2026-10-05), which is P, carries:
The harness reads the console token the way T104 delivers it (step 6 below). Until T104 landed, this PR's acceptance job failed by design, at [a.capabilities carries no console token]. This branch now merges maindede32b4 (P), so its own job runs the harness against the delivery it was written for, #86's trust store included. At this head d29e68ca it printed AT-R1 HTTP half: PASS (314 assertions held) (run 37316440405, job 111784259300). The validate job runs the whole suite and is green: triple: selected=5379 passed=5368 skipped=11 failures=0 errors=0 (run 37316440405, job 111784258794).
Making acceptance a required check is a ruleset change for the repository's owner (docs/branch-protection.md). This PR does not touch the ruleset.
What changes (four files, nothing else)
file
change
acceptance/at_r1_http.py
NEW. The harness. Standard library only. Not a pytest module: it sits outside tests/ and tests_runtime/, so testpaths never collects it and #1144's F9.1 is unchanged (FR-006's "no exclusion" holds).
.github/workflows/validate.yml
A new acceptance job, appended after the last line. It has no services, runs no pytest and installs nothing itself: one step, python3 acceptance/at_r1_http.py. The validate job and its triple are untouched. T082 (#76) re-pinned the triple's floors on main (3977 / 3966), and T100 (#82) changed only the validate job's comments; this PR merged both cleanly.
tests_runtime/test_deploy_shape.py
Required, because test_the_workflow_declares_the_required_job_and_its_steps pinned sorted(jobs) == ["validate"]. It now admits ["acceptance", "validate"]. A new case holds acceptance to no service or container, no pytest run, no pip install step, and one harness step outside testpaths. And test_every_install_of_this_package_reads_one_dependency_lock now also requires that the harness passes the lock to pip.
tests/test_at_r1_http_harness.py
NEW. It tests the harness's DECISIONS in process, as tests/test_smoke_signals.py tests the browser half's oracle: it loads the harness from its file, against an in-process loopback server, so nothing is installed or started. 564 cases. Every decision below has its cases, and 221 mutants of those decisions are each killed (below).
The two test changes add cases to SELECTED and PASSED, and none skips; the floors permit a rise, and no floor is edited.
The documented command, and how the harness runs it
The command the root's README.md documents is the standalone install and its one start: pip install "opendox[local]", then opendox generate-and-open --local …. The flag selects the local mode explicitly (13.4 as this batch amends it), and the local extra carries the bundled server that mode starts (13.1 as this batch amends it). After the install, that start is the single command requirement 10's second scenario has a user run. The entry point is still the code leg's console script, and no Makefile target is added, for the reason above. Carried out by T070 and T076.
The harness holds both lines as constants (DOCUMENTED_INSTALL, DOCUMENTED_START, the … being U+2026 after one space). Compared mechanically with T076's README (opensoft/openDox#17 at 7eef03b4):
The start line. The harness runs opendox generate-and-open --local --repo-root <repo> --repository fixture --no-open --port <free port>. That is quickstart.md § 3's filled form, with --port given a port found free at run time and checked free on 127.0.0.1 and ::1 just before the start. Before it starts anything, it asserts that its argv begins with exactly the tokens of DOCUMENTED_START before the … (start.documented-command). The … is the verb's own arguments, as the README says, and every flag above is one the README names. opendox is the fresh venv's console script, resolved on the child's PATH and asserted to lie inside that venv; argv[0] stays the literal opendox.
The install line. No release of opendox is published (PyPI answers 404 for opendox; the release-channel question is with Brett). So the harness installs the same distribution with the same extra from the checkout: pip install "<checkout>[local]", from a copy of this checkout's tracked files. That is exactly the substitution the README makes for its first line (pip install "./code[local]", run from the root). It installs through constraints-cpython312-linux.txt where the lock's own interpreter runs it (CPython 3.12 on Linux, as in the job). The lock pins versions and adds no package, so the install is still opendox[local] and nothing else (AT-R1 step 2).
What the harness asserts, in order (AT-R1 steps 1-4, and the route answers behind 5-8)
Each assertion has an id. The run stops at the first that fails and prints AT-R1 HTTP half: FAIL [<id>]: <why>, then exits 1. --keep-going reports every failure instead, and still exits 1. A harness that breaks before a verdict exits 2, never 0.
Install. A fresh venv, then opendox[local] (R1Q16 (iii)). Then install declares the local extra, read from the installed distribution's metadata.
The clean machine, ASSERTED (clean.*), in a fresh OPENDOX_STATE_DIR created empty for the run:
none of openxdox, ideation_dashboard, doc_health and corpus_adapter_openxfactory is importable in the venv (python -I, from an empty directory);
omp is not on the PATH, nor is the product's own doxbench_bridge.HARNESS_COMMAND;
no identity broker (openprofiler-broker) is on the PATH, and no issuer setting is set;
nothing listens on 127.0.0.1:5432 or [::1]:5432;
no PostgreSQL Unix socket answers in a shared directory. The harness reads every listening .s.PGSQL.* socket the kernel lists in /proc/net/unix, plus the distribution sockets as a fallback;
no DSN or PG* setting reaches a child;
neither repository holds a binding at the product's own doxbench_binding.DEFAULT_BINDINGS_RELPATH;
no bundled-server process exists before the start.
Every child runs with GIT_*, XF_*, OPENDOX_*, PG*, DATABASE_URL and PYTHONPATH dropped, a fresh HOME, and TMPDIR inside the scratch directory. Before anything is installed, the harness also refuses a TMPDIR that another user could change (exit 2, by T104's own rules for the state tree; step 6), so its verdict on that tree judges what the product made of it.
Two plain repositories, each a fresh git init (spec.md AT-R1 step 3): (a) tests/fixtures/plain-documents, and (b) quickstart.md § 2's three notes, byte for byte, with no front matter. Each gets git config user.name/user.email, which the served actor is read from.
The documented start, once per repository (start.*): the port is free, the argv matches, the console script lies in the venv, the server is ready within 120 s, and the process that answered is still the one it launched.
Fetches.
/ must be HTML by its type's essence (text/html, parameters aside), with an <html> element. It must also be UTF-8, as the harness reads it: a UTF-16 BOM, or a charset naming anything but a UTF-8 label, in its Content-Type or anywhere in the page, fails [x.http / is UTF-8].
/snapshot.json must be a JSON object, non-empty, every document an object with a non-empty string path, and neutral per F5.3: none of #1144's fourteen declared words (5.5's falsifier list, verbatim) in any string value.
The grouping station, named by /capabilities' own display facet, must hold a tile with an id and a member document, so a grouping tile can open the chat pane (R1Q13 (a) with (c); this fails, and does not skip).
/capabilities must give install.mode == "local". As quickstart § 3 asserts it (T007 batch N), its raw payload carries the console token by name nowhere: console_token is in neither the raw text nor any key of the parsed payload, however deep or however escaped ([x.capabilities carries no console token]). The by-VALUE half runs once step 6 has the token.
The console token, as the user's browser is handed it (T104). The start prints console <file URL>, the PATH of a private opener, and never the token. The harness reads that opener itself, with the standard library, and imports nothing from the product. The checks:
the start printed the opener, at <OPENDOX_STATE_DIR>/console/<port>.html, outside the served repository;
it is private: this user's regular file, mode exactly 0600, one link, in console/ of mode exactly 0700 (as quickstart § 3 checks it). Its whole path is judged by T104's own rules for that tree: the state directory is this user's, and no one else can write it; every directory above it, as written and as resolved, is this user's or root's, and sticky where others can write it; every symbolic link on the way is this user's or root's;
it is opened with O_NOFOLLOW | O_NONBLOCK, read only if fstat calls it a regular file, and read WHOLE: a file past 64 KiB is refused by name, never judged by a truncated prefix;
it is a page the harness reads as the browser does: UTF-8 by the same rule as /, and holding no SVG, MathML, frameset, or refresh or script inside a select. Otherwise it forwards nothing, by name;
it has exactly one LIVE meta-refresh, as a browser that runs scripts parses the page. None inside a <template>, a <noscript>, a raw-text or escapable raw-text element, a select, or after a frameset counts. The first of a repeated attribute is read, http-equiv is refresh exactly, and /> closes only a void element. A tag that holds a named character reference with no ; is not followed: html.unescape decodes it, and a browser's attribute rule does not;
that refresh is one a browser follows (the HTML standard's declarative refresh steps). It goes to this plane's console page (/ or /index.html), on a loopback host the launched plane answers on, with no backslash, whitespace, control character or user information. #console_token=<token> is in the FRAGMENT, and never in the query or the path, raw or in any percent-decoding;
that token is one the page accepts: [A-Za-z0-9_-]{16,512}, read as T104's takeDeliveredConsoleToken reads it (URLSearchParams over the fragment);
its JSON record (<script type="application/json" id="opendox-console">, kind opendox-console-access v1, live, parsed as JSON.parse parses it) describes that same forward: its port, its token, its opened_url and its page_url;
the PAGE that forward opens is asked as the browser asks it: of the forward's own host (in Host, which the plane's loopback gate reads), with its path and query, and without its fragment. It must answer 200 as HTML ([x.console page is HTML]) and be UTF-8 ([x.console page is UTF-8]). Steps 7 and 8 read that page and its origin, never / in its place. T104's forward is /index.html on 127.0.0.1;
and, BY VALUE (T007 batch N): the token is nowhere in /capabilities' raw payload, nor in any key or string value of the parsed one, under whatever name ([x.capabilities carries the opener's token nowhere]).
The model catalog./workbench/model-catalog must refuse a caller with no token (4xx). With the opener's token in X-XF-Console-Token, it must answer 200 in the envelope the chat rail adopts (views/doxbench-chat-model.js, adoptCatalog):
schema_version is any JSON number equal to 1, never true and never "1";
kind is workbench-model-catalog;
models is an array with no entry the rail would offer: none whose available is exactly true, as the rail reads it (16.4).
The harness also asserts that the served bundle names both this route and this kind, so neither constant can drift from the bundle.
Every route the panes can request, asked at the console page's origin, answers, and none answers 5xx or drops the connection (derivation below). And the chat rail reads no thread: it reads /workbench/thread only through a branch-session column (gate.workbench.session, openDox-code#85), and the plane must contribute none ([x.chat rail reads no thread (no branch session)]).
Stop and look. SIGTERM to the entry point alone, as kill would, and a wait of up to 90 s. Then:
the entry point must exit 0;
no live process whose executable lies in the venv's pixeltable_pgserver package, or whose command line names the fresh state directory (R1Q16 (iv)), checked at the operating system;
the opener must be gone;
the token must appear nowhere in either output stream of the whole serve.
Cleanup runs however the run ends, but only AFTER the verdict is taken, so a leftover still fails the run.
No line the harness prints quotes a console token. Every token the run has seen is blanked out of every id, reason, note and the report (Verdict.redact), as it is and inside any run of %XX escapes that decodes to it, partly encoded or encoded twice: the tokens the opener carries, delivered or refused, and its record's; and one /capabilities publishes, under its name at any depth. serve_one reads the opener's tokens as soon as the start answers, before step 5 quotes anything (T104 writes the opener before it serves). No reason quotes the server's own bytes either: not the entry point's output, a /capabilities payload, a catalog body or its envelope's values or an available entry's id, the snapshot's documents or its grouping field, the opener record's values, a <base href>, a peer's error text, a printed opener path other than the expected one, or a Content-Type that is not a plain MIME type. Every printed line escapes what is not printable (a control, a newline, a bidirectional override, a lone surrogate), so no text a server sends can forge a line of the log or break one.
Every parser reads as the browser reads, or refuses by name what it does not model:
JSON is parsed as response.json() parses it: a BOM dropped, an invalid byte read as U+FFFD, and NaN and Infinity refused. A body nested past the parser's depth is a named failure, never exit 2.
JavaScript is lexed by its own whitespace (U+FEFF and every space separator) and line terminators, a hashbang line is a comment, and its strings are decoded with its escapes. An escape a module refuses is a named failure.
URLs are resolved against the running server's origin. A reference a browser reads differently is refused by name: a backslash, a tab or newline, whitespace or a control at an end, user information, or a percent-encoded dot segment. So are a <base> other than / and an import map.
A string from JavaScript or JSON is read in Unicode scalar values, as a browser reads a URL from it: a surrogate pair joined, and a lone surrogate read as U+FFFD.
Request targets are percent-encoded as a browser encodes them. A Content-Type is parsed as the MIME Sniffing standard parses it, and one with more than one value is refused by name. A redirect is refused by name, because a browser follows it.
How the route list is derived (from the served JS, not by hand)
derive_bundle reads the bundle from the running server, resolving against its origin (http://127.0.0.1:<port>):
It fetches /, then follows the page's LIVE module scripts (<script type="module" src>, type and language read as the HTML standard reads them) and rel~=stylesheet links. Both resolve against the page's base URL: its <base href>, which must be /, or the page's own. A view module /capabilities declares is walked too, but it is no entry:
a page with no live module script is [bundle.entry];
a classic script, by src or inline, is [bundle.classic-script <src>], unless it is marked nomodule;
an inline module script is [bundle.inline-module];
markup the harness does not model is [bundle.unmodeled].
In every module, a small JS lexer strips comments and regular-expression literals, decodes JavaScript's string escapes, and yields each string literal, in Unicode scalar values, with the code before it. Every run of JavaScript whitespace, and every comment, reads as one space there, so no run is too long. A template's ${…} is read as code, starting an expression, so an import or a route inside one is found. A / divides after an operand (a name, a literal, a call, a group, a postfix ++ or --), and opens a regular expression after a prefix operator or the ) of an if, while, for or with condition. After a } it does either, by whether the } ends a block or an expression, which a lexer cannot tell: a module with a / right after a } is [bundle.ambiguous-slash <path>]. A keyword is read as one only where it is no member's name (obj.return, obj?.of) and no part of a longer or a private name (ñreturn, this.#if); after a spread's ... or a decimal point (1. in) it still is. of is a keyword only as a for head's separator, after its binding or target (for await ( opens a head too), and a name elsewhere, a classic loop's initializer, condition and update included; a / after a spread's ..., a division's own /, export default, extends, or break, continue or debugger and a line break opens a regular expression. So does one after a line break that ends a statement by automatic semicolon insertion: before a ++ or -- (then a prefix), and after a labelled break or continue, a declaration's lone binding, or a static import's specifier. That code tells an import … from "x", an export … from "x" or an import "x" from an ordinary string, and from a method named import (loader.import("x")). A module holding an escape a module refuses (a legacy octal escape, \8, \9, or a malformed \x or \u, outside a tagged template) is [bundle.syntax <path>].
It follows every static specifier, every literal dynamic import("x"), and every view-binding module /capabilities declares, transitively. Each module is fetched once, and judged once per way it is imported:
A static import must answer 200, even of a path another module imports dynamically. A failed one is a module-load pageerror, which AT-R1 step 8 forbids.
A dynamic import may be refused, but not with a 5xx. Standalone, /views/intent-feed.js answers 404 (10.2a, not owed), and its importer degrades.
A served module must be JavaScript by its type's essence, and a linked stylesheet text/css. A redirect is refused by name, never judged by its status.
A BARE specifier is [bundle.bare <specifier>]. A module or stylesheet from another origin (another host, port or scheme, data:) is [bundle.external <url>], and is never fetched from loopback by its path. A same-origin absolute URL (http://127.0.0.1:<port>/x.js) is a path of this plane.
In every module of that graph, every string literal that is a same-origin path (/ or ./ followed by a letter, not a .js/.css path) is a route the bundle can request. At the integration below, that is 38 modules and 18 routes.
A static read cannot tell a load-time request from an on-click one, so the harness requests ALL of them, a superset of the wheel's, the lens's and the chat rail's load-time reads. T096's browser run observes the load-time set itself. The nine /actions/… routes get a GET too; a GET there finds no handler (404), so it never executes an action.
A prefix ending in / (/source/) is completed with each document the snapshot lists, plain and keyed by the workbench's key (/source/fixture%40main/<doc>), as the panes complete it.
The thread read (/workbench/thread) is asked as its bare literal only, as every literal is. Since openDox-code#85, a standalone plane's rail sends no thread read at all, and the harness no longer completes it with the query it once claimed the rail sends (the holder's T096 dry run, F4).
Every request carries the console token the opener delivered, as the doxBench transports do, so a guarded read answers from its handler and not from the console check.
Accepted limits (the holder's convergence ruling)
The harness reads the bundle with a lexer, not a parser. The holder ruled, under the rule of openxFactory#656 comment 5988818366 (written for #86 and applied to this PR), that misreadings only a parser could fix are recorded as accepted limits of the acceptance harness, not chased round after round. A form is fixed now only if a shipped openDox web file contains it, or if the fix is one line with a test. The limits are recorded in JsStrings's docstring and in _resolve's.
The lexer (JsStrings):
A / right after a } divides after an expression's } and opens a regular expression after a block's. Such a module is refused by name ([bundle.ambiguous-slash <path>]).
In one form, the / is read wrongly. After a declaration list's last binding with no initializer, then a line break (let x, y [line break] /re/), automatic semicolon insertion ends the declaration, so the / opens a regular expression. The lexer reads a division, and an import after it on that line can be missed. Telling that comma from an expression's comma takes knowing that it lies in a declaration.
URL resolution (_resolve). urllib.parse reads a few references differently from the URL standard, and these are not refused:
///a.js and http:///127.0.0.1:<port>/a.js;
an empty path segment (.//a.js);
a dot segment or an empty path in an absolute same-origin URL;
an unencoded ^;
a loopback host that the URL standard rewrites (127.1, 0x7f.0.0.1, 2130706433, 127.0.0.1.), which is judged an external host.
No shipped file uses any of them. These checks ran locally at d29e68ca over the 42 files the build packages (web/**, web/**/.*): 39 modules, the page, its sheet and vendor/.gitkeep.
The lexer against acorn 8.18's exact token stream (a full module parse): they agree on all 205 / decisions, 132 regular expressions and 73 divisions. They agree on all 82 static imports and export-froms. No module is ambiguous or malformed. No regular expression follows a name, a literal, a ), a ] or a } (3 follow return), so the residual form, which needs a binding name and then a line break before the /, occurs nowhere.
The resolution against node's WHATWG URL: all 84 of the shipped modules' import specifiers, static and dynamic, resolve alike.
How the limits were found. A differential check of the lexer against node's own module parser, the static module requests of a vm.SourceTextModule. It covers 196 contexts, each a regular expression or a division before a static import, with five kinds of separator: 1960 snippets, 978 of them valid modules. In those, the lexer hid the import in 195 at ff04e015, in 85 at 09d9d632, and now in the 10 of the residual form. It has no false failure at any of these heads, and refuses the same 10 by name at each. A second check, of 81 contrived references against node's WHATWG URL, finds 13 differences: the 12 that the URL list above records, and //a.js, which is an external URL either way. The overview at e4f81d48 named identifier-parsing errors; that class was a one-line fix with a test, so it is fixed in d698c6ea.
Falsifier: the harness itself
At this branch, main32943cbf plus the harness (what this PR's own acceptance job runs): PASS
The job at d29e68ca (run 37316440405, job 111784259300):
AT-R1 HTTP half: PASS (314 assertions held)
Locally, the same tree, run as that job runs it (python3 acceptance/at_r1_http.py from the checkout's root, with no database service; r83, at d29e68ca, which merges maindede32b4):
AT-R1 HTTP half: PASS (314 assertions held)
Its log is line for line the same as r82's (d698c6ea, before dede32b4) and r76's (ff04e015, the first head with main32943cbf), apart from ports, process ids and scratch paths. That includes [a.capabilities carries no console token] and every console-opener check.
The validate job's suite, run locally at d29e68ca with the job's install line and a PostgreSQL 16 standing in for its service, printed triple: selected=5379 passed=5368 skipped=11 failures=0 errors=0. So no change since then moved a module, a route or an assertion. Neither log holds a token-shaped run.
The first green acceptance job ran at d50e8cef, once #84 had landed. Its merge ref with main32943cbf (ff68275a) gave PASS (314 assertions held), and so did r75, locally, on a merge of the same two commits whose tree is identical to CI's.
Before T104 landed: FAIL, named
At main38d3350e plus the harness (d50e8cef, r74, --keep-going), the harness failed only where T104 was missing, in both repositories. In CI it stopped at the first of these: 1 failed, 34 held.
== r74-r27-pr-tree-keepgoing rc=1 held=282
AT-R1 HTTP half: FAIL [a.capabilities carries no console token]: …
also FAIL [a.console opener printed]: the start printed no `console <file URL>` line naming the opener, …
also FAIL [a.catalog answers]: /workbench/model-catalog with no console token to present (step 6 found none) answers HTTP 403 (its body is not quoted)
also FAIL [b.capabilities carries no console token]: …
also FAIL [b.console opener printed]: …
also FAIL [b.catalog answers]: …
6 failed, 282 held
No token-shaped string appears anywhere in that log, though that tree's /capabilities published the token.
The expected red moved as the stack landed:
at main047bb4fa and 66ff7257, it was [install declares the local extra];
Against T104 before it landed (local integrations, never pushed): PASS
#84fb8a1cc4 with main38d3350e merged in (fc9b39b5, local only). #84 already merges mainca9e1bd5. The merge's one conflict was the web census's class-A total, resolved as base plus both deltas (18486 + 40 + 95 = 18621). With b7b9b843's harness, --keep-going (r71):
Verdict at main32943cbf with this branch: AT-R1's HTTP half passes, with 314 assertions held. That covers:
the install, the clean machine and both repositories;
the documented start: ready, with the process the harness launched;
/ as HTML, and UTF-8;
the neutral, non-empty snapshot with a grouping tile: repository (a) has 8 documents, and repository (b), with no front matter, has 3;
install.mode == local, and the token on /capabilities neither by name nor by value;
the opener: printed, at <OPENDOX_STATE_DIR>/console/<port>.html, private down its whole path, a page the harness reads as the browser does, forwarding with the token in its fragment, and with a record that agrees;
the page it opens, /index.html on 127.0.0.1: 200, HTML and UTF-8, and the page whose bundle, routes and catalog the rest of the run reads;
the catalog: it refuses a caller with no token, and with the token answers in the envelope the chat rail adopts, with no available entry;
one live module script as the entry, and 38 modules, none bare, divergent, malformed or from outside the plane, every one served as JavaScript and every static import 200; /views/intent-feed.js refused as 10.2a's not-owed dynamic import; /styles.css served as text/css; no <base>, no import map, no classic or inline script, and nothing unmodeled;
all 18 derived routes and every document's /source/ form below 500, none a redirect, and no branch-session column, so no thread read;
the stop: exit status 0 within the bound, no bundled PostgreSQL process left, the opener removed, and the token in neither output stream.
Before T084: two product gaps, both T084's, both removed by #77
The same harness against the integration without #77 (e7187f06: main + #69f66e5f82, #721b0c3a63, #7371d24af6, #7183213eb2, #749061b22a, #65c0a97648) held 198 and failed 4. The 4 were these two gaps, each hit in both repositories:
== r6-integ-keepgoing rc=1 held=198
AT-R1 HTTP half: FAIL [a.route /project-register.json]: GET /project-register.json answers no answer (RemoteDisconnected: ...)
also FAIL [a.route /workbench/thread?repository=fixture&ref=main&tile_kind=cluster&tile_id=grouping-compost-corner&document=grouping-compost-corner.md]: ... no answer (RemoteDisconnected: ...)
also FAIL [b.route /project-register.json]: ... no answer (RemoteDisconnected: ...)
also FAIL [b.route /workbench/thread?repository=fixture&ref=main&tile_kind=cluster&tile_id=budget-roadmap&document=budget.md]: ... no answer (RemoteDisconnected: ...)
4 failed, 198 held
GET /project-register.json dropped the connection.src/opendox/serve_project.py:271 (at main047bb4fa) did from openxdox.gate_console import DEFAULT_RECORDS_DIR (and :272, from openxdox.kickoff import …), so it raised ModuleNotFoundError: No module named 'openxdox'. The page requests this route on every load (app.js:1004 → views/repo-selector.js:138-139). It is batch L's named crash site (5920216845). Removed by T084, 4.3: the last deferred reaches through declared seams; consumer_reach retired (plan 034) #77. The handler now reads column_seams.gate and column_seams.kickoff. openDox's default discovers no register, so the route answers the existing structured 404 "no project register", and the picker hides.
The chat rail's thread read dropped the connection.src/opendox/serve_workbench.py:560 at the pre-T084 integration (:548 at main) did from openxdox import doxbench_scope, which is reached once the five query fields are present. The rail requests it when it opens on a document (views/staging-workbench.js:2925). It was not among batch L's three named crash sites; the holder relayed it to T084's writer. Removed by T084, 4.3: the last deferred reaches through declared seams; consumer_reach retired (plan 034) #77. The handler now uses openDox's own scope type. With no live session on that scope, it answers 403 with the no-live-session absence body.
No from openxdox import is left in either file at d05c266e, now that #77 has landed on main, and the runs with #77 found no new gap.
The assertions bite: twelve product mutants, four workflow mutants and 221 decision mutants, all killed
Product mutants, each run through the full harness: m1, m2, m4 and m5 at b4fc637f, and m3 again at b440d12b. The only harness change since b4fc637f is main()'s handling of an error while preparing. m1 and m2 were merged from main when #69 was at fedfa75d and #72 at 20032d02. m3 to m5 are working-tree edits of the integration as it was then, 8e4203d8 (before T084):
[a.capabilities install.mode == local]: "the served install block is None"
m3, the server is never stopped
bundle.BundledServer.stop() returns at once, and no parent-death signal
[a.stop leaves no bundled PostgreSQL process]: "still running after the entry point stopped: pid 599656: …/pixeltable_pgserver/pginstall/bin/postgres -D …" (and the harness's cleanup then removed it)
m4, a governance word in the fixture
title: A slow leak at the rain barrel, ratified
[a.snapshot neutral (F5.3)]: "openxFactory's vocabulary leaked into the neutral snapshot: ['ratified']"
m5, a missing module
src/opendox/web/views/lens-model.js deleted
[a.bundle.module /views/lens-model.js]: "imported statically by /app.js, answers HTTP 404"
T104's delivery, each a working-tree edit of the integration WITH #84, a945ef01, run through the full harness at d53a7378 (r33):
mutant
edit
killed at
m6, a readable opener
console_access.PRIVATE_MODE = 0o644
[a.console opener is private]: "… has mode 644, not 600"
m7, the token in the query
opened_url joins with ? instead of #
[a.console opener forwards with the token in its fragment]: "the opener's forward carries the token in its QUERY …"
m8, the opener outlives the server
remove_private_copy returns at once
[a.stop removes the console opener]: "… is still there after the server stopped …"
m9, the token back on /capabilities
build_server publishes it on every plane
[a.capabilities carries no console token]
m10, the token printed
generate-and-open prints token <token>
[a.console token never printed]
m11, an unguarded catalog
the catalog's console check removed
[a.catalog refuses a caller without the console token]: "… answers HTTP 200 …"
m12, the token on /capabilities under another name
build_server adds capabilities["session_hint"] = console_token, at #84d4b99436 (r51)
[a.capabilities carries the opener's token nowhere], and no token in the log
The harness's own decisions: 221 mutants, each a one-line edit of acceptance/at_r1_http.py at this head, run against tests/test_at_r1_http_harness.py. All 221 are killed, each at a named case. By family:
the inert content of a page (lv1-lv9);
the state tree's rules and the TMPDIR refusal (tr1-tr8), and console/ at 0700 exactly (dm1);
the redaction (rd1-rd9), the published token at any depth (nv1), the payloads never quoted (fo1, im1), and the tokens learned before step 5 (pk1);
the raw payload by name and by value (rp1-rp6), and the by-value check run (rw1);
the chat rail's thread read (th1-th3);
the opener read whole (ol1, ol2), the bodies and peer text never quoted (cb1, cb2, en1), and the Content-Type shown only as a plain type (ct1);
the plane's own origin (og1-og5);
JSON as the browser parses it (js1, jc1, bj1, bj2);
divergent references (dv1-dv4, ui1), and encoded dot segments only (ed1-ed5); JavaScript escapes (le1-le4), line comments and a hashbang (le5, le6), and escapes a module refuses (ms1-ms8); the page's links (ht1, il1, il2, bs1, im2); encoded targets (bt1); unterminated references (ur1); and availability as the rail reads it (av1);
only a live module script is an entry (sr1-sr10), and markup the harness does not model refused (um1-um6, um6 an attribute's unterminated reference);
the page walked is the one the opener opens, asked of its own host with its query, as HTML and UTF-8, with its modules, sheets, routes and catalog at its origin (cp1-cp12), an IPv6 host bracketed (og6), and the page's links resolved against its base URL (bd1, bd2);
Unicode scalar values (su1-su4), and every printed line escaped (pr1-pr5);
JavaScript's whitespace, collapsed, and a method named import (ws1-ws4, ff1); a template's ${…} read as code, starting an expression (tp1-tp3); a / read as division or a regular expression by what ends before it (rg1-rg6), and one right after a } refused (am1, am2); a member's name never a keyword (km1-km4), a spread's and a decimal literal's . no member access, and a name read whole, a private one with its # (km5-km16); every keyword read by where it stands, of only in a for head, for await ( a condition, a spread before an expression (kw1-kw15), and of the separator only after a for head's binding or target (os1-os10); a regular expression after a division's / (pu1) and after a line break that ends a statement (lb1-lb12); and every character of a name read as the name's (id1);
a redirect refused (rx1, rx2), a repeated header joined (hj1), and Content-Type parsed as a browser parses it (mt1-mt3);
UTF-8 pages (cs1-cs7);
redaction through percent-encoding (re1, re2), and no reason quoting a value the catalog, the snapshot, the record or / sent (cq1, cq2, sq1, gq1, rq1, rq2, bq1).
Earlier heads' decision mutants (64, from d53a7378 to 64dc06f5) were each killed at their own head; their decisions stand, and their cases still pass.
Workflow mutants, against the three affected cases of tests_runtime/test_deploy_shape.py:
Restored: 3 passed. Locally, tests_runtime/test_deploy_shape.py and tests/test_triple_pin.py give 115 passed.
How the harness is run, and where the bundled server's state lives
The harness takes no path and no port (only --keep and --keep-going). It installs the checkout its own file is in, and its scratch and OPENDOX_STATE_DIR are fresh tempfile directories under TMPDIR. To measure an integration or a product mutant, this writer copied the harness, untracked, into that tree's acceptance/ and ran it there.
In CI, they sit in the runner's temporary directory, /tmp, which is sticky and root's.
The socket path is capped. The bundled server's socket is <OPENDOX_STATE_DIR>/postgres/run/.s.PGSQL.5432, and Linux takes at most 107 bytes. A run whose socket could not fit is refused with exit 2, before anything is installed.
The local runs above used TMPDIR=~/.local/state/t095-tmp, a 0700 directory whose every ancestor is this user's or root's. It was empty after every run, and no bundled PostgreSQL started by these runs was left running.
Review rounds
SonarCloud (advisory; the gate failed at 1c064bb3 on Security Rating D, and at 0717f72f on Security Rating B, and passes at every other head since bbdeb9ec). At 0717f72f, four python:S5332 at plane_origin, which built an http:// literal around the forward's host: fixed in b7b9b843, which builds the origin with urlunsplit. Fixed in bbdeb9ec:
pythonsecurity:S8703, S8705, S8707: the --port, --scratch, --state-base and --checkout options flowed into a socket, the server's argv and the filesystem. They are gone.
python:S5443: the /tmp/.s.PGSQL.5432 probe is replaced by the distribution sockets.
python:S3776: the lexer is a class, and the long functions are split one per step.
python:S9073: the acceptance job's two assertions are split.
Copilot, 32 rounds. Every finding was real and was fixed with evidence, a case and a mutant; every thread is answered and resolved. Three overviews named a class with no finding: the line comments' (fixed), the identifiers' (fixed) and the URL resolution's (an accepted limit, see "Accepted limits").
At 1c064bb3, fixed in 32ef3e8c:
r4170450448: a module refused as a dynamic import hid a later static import of the same path.
r4170450491: a malformed 200 catalog raised a harness error instead of a named failure.
At bbdeb9ec: r4170537382, the same static-after-dynamic case. Already covered by 32ef3e8c, and answered there.
At 32ef3e8c, fixed in b4fc637f:
r4170537350: a server on /tmp's socket alone, with TCP off, passed the fixed socket list.
r4170567257: a non-list documents value passed as "non-empty".
A "previously missed" item: a grouping value with no tile holding an id and a member document passed, and silently dropped the rail's thread read.
At b4fc637f, "Needs a closer look" with no new finding. It noted that the PR needs integrated verification with the dependent product changes: that is the integration above, now including T084. Its "previously missed" item, fixed in b440d12b: an OSError in prepare() escaped main() with exit 1. This head returns 2; at b4fc637f, an ENOSPC from tempfile.mkdtemp escaped.
At b440d12b, "Needs a closer look" with no findings. Its "previously missed" item, fixed in f0e0ffe1: the module-graph verdict had no collected regression test, and on this branch the acceptance job stops before derive_bundle. The new tests/test_at_r1_http_harness.py above answers it.
At f0e0ffe1, "Needs a closer look" with no findings. Its "previously missed" item, fixed in 4dcb4221: a 200 catalog of {"models": []} passed, though adoptCatalog adopts only schema_version === 1 and kind === "workbench-model-catalog", and shows any other catalog as unreadable. The envelope is now a named check, and the served bundle must name the kind. Seven refused envelopes are tested, and relaxing the int check fails the true case.
At 4dcb4221, "Needs a closer look" with no findings.
At 1c0ff975, fixed in f29b4ddd: r4173473346, the envelope check refused "schema_version": 1.0 and 1e0, which JavaScript's === 1 adopts. It now admits any JSON number equal to 1, and never true or "1".
At f29b4ddd ("Changes recommended"), fixed in de8b2274:
r4173769822: a module served 200 as text/plain or text/html passed;
r4173769844: so did a stylesheet.
Both now require their type.
At d53a7378 ("Changes recommended"), fixed in 5636eb8d:
r4173842763: a forward holding a backslash or user information passed, though a browser opens another host;
r4173842794: a refused destination's message quoted a URL that could hold the token;
r4173842805 and r4173842811: an unparseable printed location or refresh URL raised a harness error instead of a named failure.
At 5636eb8d ("Changes recommended"), fixed in 486e426e:
r4173894317: a refresh whose delay a browser aborts (invalid;url=, -1;url=) still yielded a token;
r4173894352: a token that takeDeliveredConsoleToken discards (short) passed.
At 486e426e, "Needs a closer look" with no findings. Its "previously missed" item, fixed in 142d1352: with an agreeing record, a forward to /missing.html or /snapshot.json passed. The forward must now open / or /index.html.
At 142d1352 ("Changes recommended"), fixed in 27479495:
r4174355680: a percent-encoded copy of the token in the query passed;
previously missed: a forward to [::1] passed, though the plane listens on 127.0.0.1 alone;
previously missed: an import from https://… was fetched as its local path and passed;
previously missed: any stop exit status passed.
At 27479495 ("Changes recommended"), fixed in 64dc06f5:
r4174411680: a bare specifier (import "child.js") passed when /child.js was served;
previously missed: a FIFO opener hung the harness under --keep-going.
At 33841d4a ("Changes recommended"), fixed in 4809b3d2:
r4174621486: a start or route failure quoted the tail of the entry point's output, which may hold the token;
r4174621535: documents: [{}] passed, while every document's source reads were skipped.
At 4809b3d2 ("Changes recommended"), fixed in 32fbb6dc:
r4174671390: a refresh inside <template> or <noscript> counted as the opener's forward. Only a live refresh counts now, as a browser that runs scripts parses the page;
r4174671426: the privacy check stopped at console/. The opener's whole path is now judged by T104's own rules, and prepare() refuses an unsafe TMPDIR;
and, from the holder's brief, no line the harness prints quotes a token (Verdict.redact).
At ec95f451 ("Changes recommended"), fixed in 4d0e6d10:
r4175016672: a token nested in /capabilities was echoed by the install-mode reason. No step-5 reason quotes a payload now, a published token is kept secret at any depth, and the opener's tokens are learned before step 5;
r4175016692: a body nested past the JSON parser's depth was a harness ERROR (exit 2). It is a named failure now.
At 82869769 ("Changes recommended"), fixed in 2dcb98d3:
r4177924060: an opener past 64 KiB was judged by its truncated prefix. It is read whole or refused;
r4177924097: the catalog's reasons quoted its body, where a \u-escaped token passed the literal redaction. No reason quotes the server's bytes now;
r4177924129: same-origin was http://loopback, so an absolute same-origin import was refused. It is the running server's origin now.
At 2dcb98d3 ("Changes recommended"), fixed in 4bdb41fb:
r4178069345: json.loads admitted NaN and Infinity, which response.json() refuses;
r4178069374: a backslash URL resolved to a local file, where a browser goes elsewhere;
and, on the holder's word, one adversarial pass over every parser, closing the class: JSON decoding, JavaScript escapes, the page's links, <base> and import maps, user information, encoded dot segments, request-target encoding, unterminated character references, and availability as the rail reads it.
At 4bdb41fb ("Changes recommended"), fixed in ba216f84:
r4178395669: every <script src> was a module root, whatever its type, and inside a <template> too. Only a live module script is an entry now; a classic or inline script is refused by name, and a page with no entry fails;
r4178395690: \uD83D\uDE00 left two surrogates that no codec encodes. Every string from JavaScript or JSON is read in Unicode scalar values now;
and the pass that closed each class: markup the harness does not model, non-UTF-8 pages, escapes a module refuses, redirects, Content-Type parsing, and printed lines a server could forge.
At ba216f84 ("Changes recommended"), fixed in 9229c659:
r4178913887: U+FEFF after import hid the import, as Python's \s lacks it. The lexer reads JavaScript's own whitespace now, and every run as one space, so no run or comment hides an import either;
r4178913911: the catalog's reasons quoted its envelope values and available ids, where a percent-encoded token passed the redaction. No reason quotes a value the product sent now, and the redaction sees through percent-encoding;
r4178913926: an encoded dot inside a file name (child%2Ejs) was refused as a dot segment. Only a whole segment is one now.
At 9229c659, "Needs a closer look" with no findings. Its overview, fixed in 3392f934: a line comment ended only at LF, so one ended by CR, U+2028 or U+2029 hid the next line's import. A hashbang line is read as a comment too.
At 3392f934 ("Changes recommended"), fixed in 0717f72f:
r4179115282: a template's ${…} was skipped by counting braces, so an import or a route inside one was never seen. It is read as code now;
r4179115311: only / was checked and walked, though the opener opens /index.html. The page the forward opens is asked of the forward's own host, with its query, must be HTML and UTF-8, and is the page whose bundle, routes and catalog are read.
At 0717f72f ("Changes recommended"), fixed in b7b9b843:
r4179220628: a ${ left the lexer after an expression, so a / opening a regular expression read as division, and the expression's } closed the interpolation early. An interpolation starts an expression now;
At b7b9b843 ("Changes recommended"), fixed in d50e8cef:
r4179348386: after a postfix ++ or -- (n++ / 2), a / was read as a regular expression, which swallowed the next import. The lexer now reads what ends before a /: a postfix operator, a call or a group divides, and a prefix operator or the ) of an if, while, for or with condition opens a regular expression;
r4179348414: an accepted <base href="/"> was ignored, so src="?m=1" on /index.html was asked as /index.html?m=1, not /?m=1. The page's scripts and stylesheets resolve against its base URL now.
At d50e8cef ("Changes recommended"), fixed in 04579fcd: r4180454790, a / after a } that ends an expression ({} / 2, a function or class expression) divides, and was read as a regular expression. A lexer cannot tell such a } from a block's, so a module with a / right after a } is refused by name now ([bundle.ambiguous-slash <path>]). The real bundle has none (the lexer decides 213 / there, none after a }). ff04e015 then merged main32943cbf (T104).
At ff04e015 ("Changes recommended"), fixed in 1d581541: r4180554323, a member named as a keyword (obj.return / 2, obj.if(1) / 2, obj.of++ / 2) was read as the keyword, so each / hid the import after it. A member's name is never a keyword now. The self-pass after it, in ea4f7838: the last . of a spread ([...typeof /re/]) and a decimal literal's own point (1. in /re/) are no member access, so the keyword after either is still one; and the last name is read whole, so ñreturn and this.#return are names.
At ea4f7838, "Needs a closer look" with no findings. Its overview named "a verified lexer error" that "can hide missing static dependencies". The pass that followed, in bd50f405 (with a case in 234229d7 for a mutant that survived), found four, each hiding an import: of read as a keyword outside a for head (const of = 4; of / 2); no condition opened by for await (; a regular expression after a spread's ... read as a division; and default, extends, and break, continue and debugger before a line break, after which an expression or a statement starts.
At 234229d7 ("Changes recommended"), fixed in 09d9d632: r4180899047, of was a keyword anywhere in a for head, so in a classic loop's initializer, condition or update (let of = 4; for (; of / 2; ) break;) the / opened a regular expression that swallowed the import after it. of is a keyword only as the head's separator now, right after its binding or target. The self-pass after it, in e4f81d48, is a differential check of the lexer against node's own module parser, run locally (the static module requests of a vm.SourceTextModule). It covers 196 contexts, each a regular expression or a division before a static import, with five kinds of separator. Node accepts 978 of the snippets as modules. The lexer hid the import in 195 of them at ff04e015, and in 85 at 09d9d632. It now hides it in 10, all one form: a declaration list's last binding with no initializer, then a line break and a regular expression (let x, y [line break] /re/), which would take a parser. It has no false failure, and the same 10 are refused by name throughout. The 85 were a regular expression after a division's own /, and after a line break that ends a statement by automatic semicolon insertion: before a ++ or --, after a labelled break or continue, a declaration's lone binding, or a static import's specifier.
At e4f81d48, "Needs a closer look" with no findings. Its overview named "URL-resolution and identifier-parsing errors". Under the holder's convergence ruling (see "Accepted limits"), the identifier class was a one-line fix with a test, made in d698c6ea: a ZWNJ, a ZWJ, a combining mark or another name character that Python's \w lacks split a name. The URL class is an accepted limit: it appears in contrived references only, and all 84 shipped specifiers resolve as the URL standard resolves them.
At d698c6ea, "Needs a closer look" with no findings. The overview says the harness's "custom browser parsing and database-process lifecycle checks warrant final integrated human verification", and names no form. It was the last push of the review rounds.
d29e68ca merges maindede32b4 for the T095 refresh. The merge is clean (main and this branch share no file) and changes nothing of this PR's own. At d29e68ca: "Needs a closer look" with no findings and no thread. Its overview repeats d698c6ea's: the browser modeling and the database-process lifecycle checks "warrant human sign-off despite reported green CI". It names no form, so there is nothing to classify.
Plan changes this PR carries
T007 batch N (openxFactory bdd0f586, RULED 5963851934): the raw /capabilities payload carries the console token neither by name, at any depth, nor by value, as quickstart § 3 asserts it; console/ is 0700 exactly (eb81b3d8). The id CI's by-design failure names, [a.capabilities carries no console token], is the by-name check. Product mutant m12 (the token under another key) is killed by the by-value check.
The holder's T096 dry run, F4, after openDox-code#85 (the T102 follow-on, holder ruling F1 (i)): a standalone plane's rail sends no thread read, so the harness asks none with a query, and asserts the condition, no branch-session column (4d0e6d10).
Not done here
No ruleset change: making acceptance required is the owner's.
No fix to any other writer's PR; gaps found are reported.
No README edit: the openDox root's README is T076's (openDox#17).
…n 034)
acceptance/at_r1_http.py is release 1's acceptance test, the HTTP half
(FR-011; spec.md section AT-R1, steps 1-4 and the route answers behind
steps 5-8). It is not a pytest module and sits outside tests/ and
tests_runtime/, so testpaths and F9.1 are unchanged. It:
- installs openDox alone into a fresh venv as opendox[local] (R1Q16 (iii)),
from a copy of this checkout's tracked files, through the dependency lock;
- asserts the clean machine in a fresh, short OPENDOX_STATE_DIR: the four
siblings not importable, no omp, no identity broker, no database on the
default port or socket and no DSN, and no model binding;
- copies both plain repositories into fresh git inits with a git identity;
- runs the documented opendox generate-and-open --local ... (T007 batch H's
10.3 addendum, as the openDox root README documents it) on loopback,
checking its argv against that line;
- fetches /, /snapshot.json (non-empty, neutral per F5.3, a grouping tile)
and /capabilities (install.mode == local);
- fetches the model catalog with the console token: no available entry;
- fetches every route the served bundle names, derived from the running
server's module graph, and none may answer 5xx or drop the connection;
- stops the entry point with SIGTERM and asserts no bundled PostgreSQL
process is left (R1Q16 (iv)).
It exits 1 on the first failed assertion, naming it, and 2 on a harness
error.
.github/workflows/validate.yml gains the acceptance job, which has no
database service, because the harness asserts a clean machine. It runs
no pytest and installs nothing itself. Making it a required check is a
ruleset change for the repository's owner.
tests_runtime/test_deploy_shape.py admits that one other job, holds it to
no service, no pytest and no pip step, and extends the one-lock rule to
the harness's install.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Introduces a dedicated, intentionally database-free CI acceptance job backed by a comprehensive standard-library AT-R1 HTTP harness, while extending workflow-shape tests to enforce its isolation, execution contract, and dependency-lock usage; the existing validate suite remains unchanged.
Sequence diagram for the AT-R1 HTTP acceptance harness
sequenceDiagram
participant CI as acceptance job
participant H as at_r1_http.py
participant V as Fresh venv
participant O as opendox
participant R as Plain Git repository
participant S as HTTP server
CI->>H: Run python3 acceptance/at_r1_http.py
H->>V: Create venv and install checkout[local] with lock
H->>H: Assert clean machine and no database service
H->>R: Create fresh repository and commit documents
H->>O: Start opendox generate-and-open --local
O-->>S: Serve repository
H->>S: Fetch /, /snapshot.json, /capabilities
H->>S: Fetch model catalog and derived bundle routes
H->>O: Send SIGTERM
H->>H: Assert no bundled PostgreSQL process remains
alt Assertion fails
H-->>CI: Exit 1 with named failure
else All assertions hold
H-->>CI: Exit 0
end
Loading
Flow diagram for AT-R1 harness assertions
flowchart TD
START["Start harness"] --> INSTALL["Install opendox[local] in fresh venv"]
INSTALL --> CLEAN["Assert clean machine: no sibling tools, broker, DB, or bindings"]
CLEAN --> REPOS["Create two plain Git repositories"]
REPOS --> STARTAPP["Run documented local start"]
STARTAPP --> CORE["Check HTML, neutral snapshot, grouping station, and local mode"]
CORE --> CATALOG["Check model catalog has no available model"]
CATALOG --> DERIVE["Derive module graph and request bundle routes"]
DERIVE --> STOP["SIGTERM entry point and scan for leftover bundled PostgreSQL"]
STOP --> RESULT{Assertions pass?}
RESULT -->|Yes| PASS["PASS"]
RESULT -->|No| FAIL["FAIL with assertion id"]
Loading
File-Level Changes
Change
Details
Files
Add a standalone AT-R1 HTTP acceptance harness that installs and exercises openDox on a clean Linux environment.
Build a tracked checkout into a fresh virtual environment and install the local extra through the CPython 3.12 dependency lock.
Assert isolation from sibling packages, external harnesses, identity services, database services, inherited environment settings, and model bindings.
Create two plain Git repositories and run the documented local server command against each.
Validate HTML, snapshot neutrality and grouping data, local install capabilities, no-model catalog behavior, derived frontend module and route availability, and clean shutdown without bundled PostgreSQL leftovers.
Provide fail-fast or keep-going diagnostics, Linux/process checks, cleanup, and explicit exit codes.
acceptance/at_r1_http.py
Run the HTTP acceptance harness in a dedicated CI job isolated from the database-backed validation job.
Add an Ubuntu Python 3.12 acceptance job with checkout and setup steps.
Run only the standard-library harness command, with no services, container, pytest invocation, or job-level package installation.
Leave the existing validate job and its required-check behavior unchanged.
.github/workflows/validate.yml
Pin the new workflow shape and dependency-lock usage in deployment-shape tests.
Allow exactly validate and acceptance workflow jobs.
Verify acceptance has no database service or container, does not run pytest or pip install, and invokes the harness once outside pytest testpaths.
Verify the harness installation references and passes the CPython 3.12 Linux constraints file.
tests_runtime/test_deploy_shape.py
Tips and commands
Interacting with Sourcery
Trigger a new review: Comment @sourcery-ai review on the pull request.
Continue discussions: Reply directly to Sourcery's review comments.
Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with @sourcery-ai issue to create an issue from it.
Generate a pull request title: Write @sourcery-ai anywhere in the pull
request title to generate a title at any time. You can also comment @sourcery-ai title on the pull request to (re-)generate the title at any time.
Generate a pull request summary: Write @sourcery-ai summary anywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment @sourcery-ai summary on the pull request to
(re-)generate the summary at any time.
Generate reviewer's guide: Comment @sourcery-ai guide on the pull
request to (re-)generate the reviewer's guide at any time.
Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore.
Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment @sourcery-ai review to trigger a new review!
Adds the HTTP half of standalone openDox acceptance testing, separate from the existing validation suite. Acceptance is intentionally expected to fail until dependent features land.
Changes:
Adds a clean-install harness covering HTTP responses and shutdown.
Runs acceptance in a separate CI job without database services.
Extends workflow-shape tests to enforce isolation and dependency-lock usage.
File
Description
tests_runtime/test_deploy_shape.py
Enforces acceptance-job configuration and lock usage.
… (SonarCloud)
SonarCloud's quality gate on openDox-code#75 failed on Security Rating D
for four findings in acceptance/at_r1_http.py, and flagged five
cognitive-complexity smells and one composite assertion.
- pythonsecurity:S8703, S8705, S8707: --port, --scratch, --state-base and
--checkout flowed into a socket, the server's argv and the filesystem.
The harness now takes no path and no port: it installs the checkout its
own file is in (copy it into another tree to measure that tree), its
scratch and state directories are fresh tempfile directories (TMPDIR
chooses where), and the port is a free one found at run time. Only
--keep and --keep-going remain.
- python:S5443: the /tmp/.s.PGSQL.5432 probe is gone. The clean-machine
check probes the distribution sockets (/var/run/postgresql and
/run/postgresql) beside TCP 5432 on both stacks; the bundled server
never listens in either place.
- python:S3776: js_strings becomes the JsStrings lexer class, and
serve_one, main and derive_bundle are split into one function per step.
Behaviour is unchanged: the same 89 and 198 assertions hold at the
local integration, the same falsifier fires at main, and the same five
product mutants are killed.
- python:S9073: the acceptance job's service and container assertions
are separate in tests_runtime/test_deploy_shape.py.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…usal, and a malformed catalog is a named failure (Copilot)
Copilot's review of openDox-code#75 at 1c064bb:
- r4170450448: a module first reached by a dynamic import and refused
was marked seen, so a later STATIC import of the same path was never
judged, and a page that cannot load passed. derive_bundle now fetches
and scans each path once but judges every (path, static) pair, so the
static import must still answer 200. Proved over a crafted bundle
(app.js imports missing.js dynamically, child.js statically): the
reviewed head reports no failure; this head reports
[t.bundle.module /missing.js].
- r4170450491: a 200 catalog of [], null or {"models": 1} raised inside
the harness (exit 2) instead of failing a named check. Every nested
read of the product's JSON (the catalog, /capabilities' install, display
and views blocks, the snapshot's documents and groups) now goes through
as_object / as_list, so each such answer fails [catalog is a catalog]
or its own check, with no exception.
The local integration's verdict is unchanged: 89 held fail-fast, and
198 held with 4 failed under --keep-going, all at T084's two crash sites.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Accepts invalid grouping without required document
acceptance/at_r1_http.py:1038
This truthiness check accepts both a non-list grouping value and a list such as [{"id":"topic","document_edges":[]}]. In either case, thread_query() returns None, so requests_for() silently omits the parameterized thread read. The query-less request stops at parameter validation and cannot expose the handler failure this harness is intended to catch. Require a grouping tile with an id and a member document before accepting this check.
… of documents, a grouping tile with a member (Copilot)
Copilot's review of openDox-code#75 at 32ef3e8:
- r4170537350: a server listening only on /tmp's socket, with TCP off,
passed the clean-machine check's fixed list of directories. The check
now reads every listening `.s.PGSQL.*` socket from /proc/net/unix,
wherever it lies, and requires that none answers in a directory other
users can traverse, as every libpq default can (/tmp,
/var/run/postgresql). A socket in a private (0700) directory is another
install's own, reachable only through an explicit setting that no child
inherits, so it is noted, not failed. No directory is hardcoded, so
SonarCloud's S5443 stays clear. Proved with a listening fake socket: a
shared directory fails [clean.database socket ...] here and passed at
32ef3e8; a 0700 directory is noted.
- r4170567257: a truthy non-list documents value passed [snapshot
non-empty]; it must now be a non-empty list.
- previously missed: [snapshot fills the grouping station] accepted a
grouping value with no tile holding an id and a member document, which
silently dropped the rail's parameterized thread read. It now requires
exactly what that read is built from.
The local integration's verdict is unchanged: 89 held fail-fast, and
198 held with 4 failed under --keep-going, all at T084's two crash sites.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Handle preparation errors with documented ERROR status 2
acceptance/at_r1_http.py:1283
Filesystem errors from prepare() bypass this handler. For example, tempfile.mkdtemp() raising OSError(ENOSPC) escapes main() and exits with status 1, instead of the documented harness ERROR and status 2. This makes an infrastructure failure look like a product acceptance failure. Catch unexpected preparation exceptions and report status 2, as the later execution block does.
…t 2 (Copilot)
Copilot's review of openDox-code#75 at b4fc637 ("previously missed"):
an OSError from prepare(), such as ENOSPC under tempfile.mkdtemp,
escaped main() and exited 1, so an infrastructure failure read as a
product acceptance failure. main() now catches any unexpected exception
from prepare() and reports `AT-R1 HTTP half: ERROR` with exit 2, as the
execution block already does. Proved with mkdtemp patched to raise
ENOSPC: this head returns 2, while at b4fc637 the OSError escapes
main().
At the local integration with T084 (openDox-code#77 at b1db196) merged
in, the harness now PASSES: 202 assertions held, fail-fast and
--keep-going alike.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🔵 Needs a closer look
The substantial harness lacks automated graph-verdict regression coverage and a passing end-to-end result against the complete feature stack.
Review effort: Balanced Findings: None
Previously missed (1)
In code that hasn't changed since last review
Add behavioral regression tests for module-graph verdict
acceptance/at_r1_http.py:661
The module-graph verdict has no automated behavioral regression tests. The new deployment tests inspect configuration and source text, while this branch's acceptance run stops at the missing local extra before reaching derive_bundle. Add collected, in-process tests for traversal cycles, route extraction, and the already-fixed case where a dynamic 404 precedes a static import of the same URL. Mocking get would exercise these decisions without installing or starting the product, while keeping the harness itself outside pytest collection. tests/test_smoke_signals.py provides a similar pattern for testing acceptance decision logic.
…s tests (Copilot)
Copilot's review of openDox-code#75 at b440d12 ("previously missed"):
the module-graph verdict had no collected regression test, and on this
branch the acceptance job stops at the missing `local` extra, before
derive_bundle ever runs.
tests/test_at_r1_http_harness.py loads acceptance/at_r1_http.py from its
file and tests its decisions in process, as tests/test_smoke_signals.py
tests the browser half's oracle. An in-process loopback server stands in
for the product (the pattern test_model_provider_broker.py uses), so
nothing is installed or started. 13 cases:
- the lexer skips comments and regular expressions;
- an import specifier is told from a route literal, and a route resolves
against the page;
- the module graph terminates on a cycle and counts each module once;
- a dynamic refusal does not hide a static import of the same path
(r4170450448), and a dynamic refusal alone is not a failure (10.2a);
- a malformed 200 catalog is a named failure, never an exception
(r4170450491), in seven shapes;
- the documented start is the README line less its ellipsis.
Four mutants of the harness, each killed by its case: a path judged once
by path alone, every `/` read as a division, the catalog read without a
shape check, and a stylesheet path taken for a route. The harness stays
outside testpaths, so F9.1 is unchanged. tests/: 2450 passed, 11
skipped, locally.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🔵 Needs a closer look
The catalog check accepts envelopes the chat rail rejects, allowing a false acceptance result.
Review effort: Balanced Findings: None
Previously missed (1)
In code that hasn't changed since last review
HTTP check accepts catalogs with invalid envelope metadata
acceptance/at_r1_http.py:1106
An HTTP 200 response containing {"models": []} passes every catalog check, even if kind and schema_version are missing or incorrect. However, adoptCatalog requires schema_version === 1 and kind === "workbench-model-catalog" (src/opendox/web/views/doxbench-chat-model.js:228–235); the chat rail treats a rejected envelope as unreadable. This lets the HTTP acceptance check pass a catalog the UI cannot use. Require both envelope fields in this named check, update the successful catalog fixtures to use valid envelopes, and add missing/wrong kind and version cases.
…dopts (Copilot)
Copilot's review of openDox-code#75 at f0e0ffe ("previously missed"):
a 200 catalog of {"models": []} passed every catalog check, though the
chat rail's adoptCatalog (views/doxbench-chat-model.js) adopts only
schema_version === 1 and kind === "workbench-model-catalog", and shows
any other catalog as unreadable, never as its no-model state.
- A named check, [catalog envelope is the one the chat rail adopts],
requires schema_version to be the integer 1 (as JavaScript's === 1,
so no true and no "1") and kind == "workbench-model-catalog".
- So that constant cannot drift from the bundle, the module-graph walk
also collects every string literal, and [bundle names the catalog kind]
requires the served bundle to name it, as [bundle names the catalog
route] already does for the route.
- tests/test_at_r1_http_harness.py: the passing catalogs carry a valid
envelope, and seven envelopes adoptCatalog refuses are added: missing
kind, missing version, version 2, true, "1", and a different kind.
Relaxing the int check fails the `true` case.
At the local integration with T084 (#77 at b1db196), the product's real
catalog passes: 206 assertions held, PASS.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot's review at ff04e01 (r4180554323): three lexer checks read the
last name before a `/`, a `(` or a `++`/`--` without asking whether it is
a member's. So `obj.return / 2` opened a regular expression, `obj.if(1) / 2`
was read as a condition's `)`, and `obj.of++ / 2` as a prefix `++`. Each
hid the import after it.
One helper, `_ends_with_keyword`, now makes all three decisions, and a
name after `.` or `?.` (spaced or not) is never a keyword there.
`test_a_member_named_as_a_keyword_is_an_operand` covers the three forms
and their spaced, optional and method-call variants.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The self-pass after Copilot's r4180554323. The fix in the commit before
this read any `.` before a keyword as a member access. Two are not: the
last `.` of a spread (`[...typeof /re/]`) and a decimal literal's own point
(`1. in /re/`). After either, the keyword is one, and the `/` after it
opens a regular expression. That `.` is now told apart from the one that
follows a number (`1..x`, `1 .x`, `1.5.x`, `1e5.x`), which is a member
access.
The last name is now read whole. `ñreturn` is a name, never `return`
after an `ñ`, and a private name keeps its `#`, so `this.#return / 2`
divides. `_REGEX_AFTER_PUNCTUATION` moves back beside the keyword set
that its comment continues.
New cases: `test_a_keyword_after_a_spread_or_a_decimal_point_is_still_one`
(5) and `test_a_longer_or_private_name_is_no_keyword` (9).
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot's review overview at ea4f783 named "a verified lexer error"
that "can hide missing static dependencies" and posted no finding. The
pass that followed found four such errors, each hiding an import:
- `of` was a keyword everywhere, so `const of = 4; of / 2` opened a
regular expression. It is the keyword only in a `for` head now;
- `for await (` opened no condition, so a regular expression after its
`)` was read as a division. Its `(` opens the `for` head now;
- a regular expression after a spread's `...` was read as a division;
- `default`, `extends`, and `break`, `continue` and `debugger` before a
line break come before an expression or a statement, so a `/` after
them opens a regular expression too.
`parens` records which keyword opened each condition, and `_keywords`
picks the words by whether the innermost `(` is a `for` head.
New cases: `test_a_slash_where_an_expression_starts_opens_a_regular_expression`
(11) and `test_a_slash_after_an_operand_divides` (6).
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…lan 034)
A mutant that read every `await (` as a `for` head survived the cases of
the commit before this: in `f(await (x)) / 2`, the call's own `)` hid
the misreading. `await (x) / 2` holds it now, where the `/` comes right
after that `)`.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot's review at 234229d (r4180899047): `of` was a keyword anywhere in
a `for` head, so in a classic loop's initializer, condition or update
(`let of = 4; for (; of / 2; ) break;`) the `/` opened a regular
expression that swallowed the import after it.
`of` is the separator only after the head's binding or target: after a
name, a `)`, a `]` or a `}`, and never after a declaration's keyword, an
operator, a `;` or another keyword. After another bare `of`, it is the
separator only where that one is not (`for (const of of xs)`, but
`for (x of of / 2)`).
`test_of_is_a_keyword_only_as_a_for_head_s_separator` holds Copilot's
example and five more uses of `of` as a name, and six for-of heads (array
and object patterns, member, parenthesized and `of`-named targets, a
binding named `of`), each with a regular expression after the separator.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hat ends a statement (plan 034)
The self-pass after r4180899047 ran a differential check of the lexer
against node's own module parser (the static module requests of a
`vm.SourceTextModule`). It covers 196 contexts. Each holds a regular
expression or a division before a static import, with five kinds of
separator. Node accepts 978 of the 1960 snippets as modules. In 85 of
those, across 17 contexts, the lexer at `09d9d632` hid the import:
- after a division's own `/` (`a / /re/.lastIndex`). `/` was missing
from the punctuation a regular expression may follow;
- after a line break that ends a statement by automatic semicolon
insertion. Before a `++` or `--`, the line break makes the operator a
prefix (`a` [line break] `++/re/.lastIndex`). It also ends a labelled
`break` or `continue`, a declaration's lone binding (`let x`, `var x`),
and a static import or export-from (`import "./b.js"`,
`export * from "./b.js"`), a comment holding a line break included.
The lexer now records where each line break stands, and where the last
static import's specifier ended. Of the 978, it hides the import in one
form only, in 10 snippets: a declaration list's last binding with no
initializer (`let x, y` [line break] `/re/`). Telling that comma from an
expression's would take a parser. At `ff04e015`, before this round, the
same check finds 195 hidden. Neither head has a false failure, and both
refuse the same 10 by name.
New cases: `after-a-division` in
`test_a_slash_where_an_expression_starts_opens_a_regular_expression`, and
`test_a_line_break_that_ends_a_statement_opens_a_regular_expression` (11,
4 of them guards where the `/` still divides).
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…limits recorded (plan 034)
Copilot's review overview at e4f81d4 named "identifier-parsing errors",
with no finding. A ZWNJ, a ZWJ, a combining mark, a connector such as
U+203F, `℘` or `·` stands in a JavaScript name, but Python's `\w` lacks
it. So the name was split there, and a keyword at its end was read as the
keyword. Every character past ASCII that stands in code belongs to a name,
since the lexer has already read JavaScript's whitespace as a space, so
`_LAST_NAME` takes them all now. One line, with
`test_every_character_of_a_name_is_read_as_the_name_s` (6).
The holder's convergence ruling: the lexer is a heuristic, and its
residual misreadings need a parser, so they are recorded as accepted
limits, not chased. They are now in `JsStrings`'s docstring and
`_resolve`'s:
- the lexer: a `/` right after a `}` (refused by name), and a
declaration list's last binding with no initializer, then a line break
and a regular expression (read as a division). No shipped web module
holds either. Across all 39, the lexer and acorn's token stream agree
on every `/` (205), and on every static import (82). No regular
expression in them follows a name, a literal, a `)`, a `]` or a `}`;
- the URL resolution: the overview's "URL-resolution errors". A check
against node's WHATWG `URL` found them in contrived references only:
`///a.js`, `.//a.js`, a dot segment or an empty path in an absolute
same-origin URL, an unencoded `^`, and a loopback host the URL
standard rewrites (`127.1`). All 84 specifiers the shipped modules
hold resolve alike.
It also corrects four citations of Copilot's review at `3392f934`,
written `3392f93a`, which names no commit.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Brings in #86 (T100 follow-on, the trust store's review findings), #78
(T099, the release workflow) and #79 (version 0.1.0). Main and this
branch touch no file in common, so the merge is clean. dede32b is the
commit that T087 pins in the openDox root (P).
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
changed the title
DRAFT (phase 3, after T063): T095, AT-R1's HTTP half: an acceptance harness in its own CI job, with no database service (plan 034)
T095, AT-R1's HTTP half: an acceptance harness in its own CI job, with no database service (plan 034)
Oct 5, 2026
READY at d29e68c — Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Holder: T095, AT-R1's HTTP half in CI. It is an arc landing. This landing's commit is X, RELEASE1_TIP, which lane openXfactory-3's T096 records beside P = dede32b4.
The order. T089, phase 3's checkpoint, has landed, and so has T076 (openDox#17 → 504324de). That meets T095's After set.
The head. It merges openDox-code maindede32b4 (P) into the harness branch, with no rebase and no force-push.
The build inputs are unchanged between P and this head. Only CI and tests change: .github/workflows/validate.yml, acceptance/at_r1_http.py, tests/test_at_r1_http_harness.py and tests_runtime/test_deploy_shape.py.
The wheel built at this head with P's SOURCE_DATE_EPOCH is byte-identical to P's.
The sdist gains only tests/test_at_r1_http_harness.py. That is setuptools' default tests/test*.py, which T099's ruled P-against-X list omits; the holder ruled it informational.
Gates (run 37316440405).
acceptance: PASS, 314 assertions held, with no database service;
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
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.
Plan 034, task T095, slice
acceptance(AT-R1, the HTTP half), phase 3. The plan isspecs/034-opendox-standalone-operation/tasks.mdat opensoft/openxFactorymain596a9a90, § "Acceptance: AT-R1", as T007 batch N (bdd0f586) amends it. It realizes FR-011's HTTP half.Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
5961416730.5961364221item 2: T095 is drafted now, and does not go READY before T063 lands.5850003126: R1Q10 (a), R1Q12 (a), R1Q13 (a) with (c), R1Q15 (b), and R1Q16 (iii) and (iv).5963851934: the console token travels in the opened URL, and the harness reads the private copy.5973854291, F1 (i): the chat rail reads a thread only with a branch session (openDox-code#85).Afterline is T089, T076, T104 and T007 batch N. Batch N (openxFactorybdd0f586), T104 (openDox-code#84,32943cbf) and T076 (openDox#17,504324de) have landed. Its READY waits only on T089, lane openXfactory-3's phase-3 checkpoint. The holder posts READY and the landers merge; this writer does neither.dede32b4b6f3d0f147d599776f83628c5af8ff3d, the openDox-code commit T087 pins in the openDox root (e1e3a3c3)..github/workflows/validate.yml,acceptance/at_r1_http.py,tests/test_at_r1_http_harness.pyandtests_runtime/test_deploy_shape.py. It does not touchpyproject.tomlor anything undersrc/. To check, both distributions were built locally the wayrelease.ymlbuilds them: the hash-locked release tools,python -m build --no-isolation, andSOURCE_DATE_EPOCHset to the commit's time. That was done at P and atd29e68ca. The two wheels hold the same 129 files, each with the same bytes. Built at P'sSOURCE_DATE_EPOCH,d29e68ca's wheel is byte-identical to P's (sha256 8ecea00d…). With each commit's own time they differ only in the archive's timestamps. The sdist atd29e68caholds one file more,tests/test_at_r1_http_harness.py, because setuptools' default sdist takestests/test*.py; itsSOURCES.txtlists that file. So what installs at X is what installs at P, and the source archive differs by that one test file.On this PR,
acceptanceandvalidateare both greenThe stack the harness drives has landed.
maindede32b4(2026-10-05), which is P, carries:localextra);The harness reads the console token the way T104 delivers it (step 6 below). Until T104 landed, this PR's
acceptancejob failed by design, at[a.capabilities carries no console token]. This branch now mergesmaindede32b4(P), so its own job runs the harness against the delivery it was written for, #86's trust store included. At this headd29e68cait printedAT-R1 HTTP half: PASS (314 assertions held)(run 37316440405, job 111784259300). Thevalidatejob runs the whole suite and is green:triple: selected=5379 passed=5368 skipped=11 failures=0 errors=0(run 37316440405, job 111784258794).Making
acceptancea required check is a ruleset change for the repository's owner (docs/branch-protection.md). This PR does not touch the ruleset.What changes (four files, nothing else)
acceptance/at_r1_http.pytests/andtests_runtime/, sotestpathsnever collects it and #1144's F9.1 is unchanged (FR-006's "no exclusion" holds)..github/workflows/validate.ymlacceptancejob, appended after the last line. It has no services, runs no pytest and installs nothing itself: one step,python3 acceptance/at_r1_http.py. Thevalidatejob and its triple are untouched. T082 (#76) re-pinned the triple's floors onmain(3977 / 3966), and T100 (#82) changed only thevalidatejob's comments; this PR merged both cleanly.tests_runtime/test_deploy_shape.pytest_the_workflow_declares_the_required_job_and_its_stepspinnedsorted(jobs) == ["validate"]. It now admits["acceptance", "validate"]. A new case holdsacceptanceto no service or container, no pytest run, nopip installstep, and one harness step outsidetestpaths. Andtest_every_install_of_this_package_reads_one_dependency_locknow also requires that the harness passes the lock to pip.tests/test_at_r1_http_harness.pytests/test_smoke_signals.pytests the browser half's oracle: it loads the harness from its file, against an in-process loopback server, so nothing is installed or started. 564 cases. Every decision below has its cases, and 221 mutants of those decisions are each killed (below).The two test changes add cases to SELECTED and PASSED, and none skips; the floors permit a rise, and no floor is edited.
The documented command, and how the harness runs it
T007 batch H's 10.3 addendum (
openspec/changes/add-neutral-product-standalone-operability/tasks.md, 10.3, "AMENDED — T007 Batch H (5850003126; Ruled R1Q15 (b), R1Q16 (iii))"), verbatim:The harness holds both lines as constants (
DOCUMENTED_INSTALL,DOCUMENTED_START, the…being U+2026 after one space). Compared mechanically with T076's README (opensoft/openDox#17 at7eef03b4):opendox generate-and-open --local --repo-root <repo> --repository fixture --no-open --port <free port>. That is quickstart.md § 3's filled form, with--portgiven a port found free at run time and checked free on 127.0.0.1 and ::1 just before the start. Before it starts anything, it asserts that its argv begins with exactly the tokens ofDOCUMENTED_STARTbefore the…(start.documented-command). The…is the verb's own arguments, as the README says, and every flag above is one the README names.opendoxis the fresh venv's console script, resolved on the child's PATH and asserted to lie inside that venv; argv[0] stays the literalopendox.opendoxis published (PyPI answers 404 foropendox; the release-channel question is with Brett). So the harness installs the same distribution with the same extra from the checkout:pip install "<checkout>[local]", from a copy of this checkout's tracked files. That is exactly the substitution the README makes for its first line (pip install "./code[local]", run from the root). It installs throughconstraints-cpython312-linux.txtwhere the lock's own interpreter runs it (CPython 3.12 on Linux, as in the job). The lock pins versions and adds no package, so the install is stillopendox[local]and nothing else (AT-R1 step 2).What the harness asserts, in order (AT-R1 steps 1-4, and the route answers behind 5-8)
Each assertion has an id. The run stops at the first that fails and prints
AT-R1 HTTP half: FAIL [<id>]: <why>, then exits 1.--keep-goingreports every failure instead, and still exits 1. A harness that breaks before a verdict exits 2, never 0.Install. A fresh venv, then
opendox[local](R1Q16 (iii)). Theninstall declares the local extra, read from the installed distribution's metadata.The clean machine, ASSERTED (
clean.*), in a freshOPENDOX_STATE_DIRcreated empty for the run:openxdox,ideation_dashboard,doc_healthandcorpus_adapter_openxfactoryis importable in the venv (python -I, from an empty directory);ompis not on the PATH, nor is the product's owndoxbench_bridge.HARNESS_COMMAND;openprofiler-broker) is on the PATH, and no issuer setting is set;.s.PGSQL.*socket the kernel lists in/proc/net/unix, plus the distribution sockets as a fallback;PG*setting reaches a child;doxbench_binding.DEFAULT_BINDINGS_RELPATH;Every child runs with
GIT_*,XF_*,OPENDOX_*,PG*,DATABASE_URLandPYTHONPATHdropped, a freshHOME, andTMPDIRinside the scratch directory. Before anything is installed, the harness also refuses aTMPDIRthat another user could change (exit 2, by T104's own rules for the state tree; step 6), so its verdict on that tree judges what the product made of it.Two plain repositories, each a fresh
git init(spec.md AT-R1 step 3): (a)tests/fixtures/plain-documents, and (b) quickstart.md § 2's three notes, byte for byte, with no front matter. Each getsgit config user.name/user.email, which the served actor is read from.The documented start, once per repository (
start.*): the port is free, the argv matches, the console script lies in the venv, the server is ready within 120 s, and the process that answered is still the one it launched.Fetches.
/must be HTML by its type's essence (text/html, parameters aside), with an<html>element. It must also be UTF-8, as the harness reads it: a UTF-16 BOM, or acharsetnaming anything but a UTF-8 label, in itsContent-Typeor anywhere in the page, fails[x.http / is UTF-8]./snapshot.jsonmust be a JSON object, non-empty, every document an object with a non-empty stringpath, and neutral per F5.3: none of #1144's fourteen declared words (5.5's falsifier list, verbatim) in any string value./capabilities' own display facet, must hold a tile with an id and a member document, so a grouping tile can open the chat pane (R1Q13 (a) with (c); this fails, and does not skip)./capabilitiesmust giveinstall.mode == "local". As quickstart § 3 asserts it (T007 batch N), its raw payload carries the console token by name nowhere:console_tokenis in neither the raw text nor any key of the parsed payload, however deep or however escaped ([x.capabilities carries no console token]). The by-VALUE half runs once step 6 has the token.The console token, as the user's browser is handed it (T104). The start prints
console <file URL>, the PATH of a private opener, and never the token. The harness reads that opener itself, with the standard library, and imports nothing from the product. The checks:<OPENDOX_STATE_DIR>/console/<port>.html, outside the served repository;console/of mode exactly 0700 (as quickstart § 3 checks it). Its whole path is judged by T104's own rules for that tree: the state directory is this user's, and no one else can write it; every directory above it, as written and as resolved, is this user's or root's, and sticky where others can write it; every symbolic link on the way is this user's or root's;O_NOFOLLOW | O_NONBLOCK, read only iffstatcalls it a regular file, and read WHOLE: a file past 64 KiB is refused by name, never judged by a truncated prefix;/, and holding no SVG, MathML,frameset, or refresh or script inside aselect. Otherwise it forwards nothing, by name;<template>, a<noscript>, a raw-text or escapable raw-text element, aselect, or after aframesetcounts. The first of a repeated attribute is read,http-equivisrefreshexactly, and/>closes only a void element. A tag that holds a named character reference with no;is not followed:html.unescapedecodes it, and a browser's attribute rule does not;/or/index.html), on a loopback host the launched plane answers on, with no backslash, whitespace, control character or user information.#console_token=<token>is in the FRAGMENT, and never in the query or the path, raw or in any percent-decoding;[A-Za-z0-9_-]{16,512}, read as T104'stakeDeliveredConsoleTokenreads it (URLSearchParamsover the fragment);<script type="application/json" id="opendox-console">, kindopendox-console-accessv1, live, parsed asJSON.parseparses it) describes that same forward: its port, its token, itsopened_urland itspage_url;Host, which the plane's loopback gate reads), with its path and query, and without its fragment. It must answer 200 as HTML ([x.console page is HTML]) and be UTF-8 ([x.console page is UTF-8]). Steps 7 and 8 read that page and its origin, never/in its place. T104's forward is/index.htmlon127.0.0.1;/capabilities' raw payload, nor in any key or string value of the parsed one, under whatever name ([x.capabilities carries the opener's token nowhere]).The model catalog.
/workbench/model-catalogmust refuse a caller with no token (4xx). With the opener's token inX-XF-Console-Token, it must answer 200 in the envelope the chat rail adopts (views/doxbench-chat-model.js,adoptCatalog):schema_versionis any JSON number equal to 1, nevertrueand never"1";kindisworkbench-model-catalog;modelsis an array with no entry the rail would offer: none whoseavailableis exactlytrue, as the rail reads it (16.4).The harness also asserts that the served bundle names both this route and this kind, so neither constant can drift from the bundle.
Every route the panes can request, asked at the console page's origin, answers, and none answers 5xx or drops the connection (derivation below). And the chat rail reads no thread: it reads
/workbench/threadonly through a branch-session column (gate.workbench.session, openDox-code#85), and the plane must contribute none ([x.chat rail reads no thread (no branch session)]).Stop and look. SIGTERM to the entry point alone, as
killwould, and a wait of up to 90 s. Then:pixeltable_pgserverpackage, or whose command line names the fresh state directory (R1Q16 (iv)), checked at the operating system;Cleanup runs however the run ends, but only AFTER the verdict is taken, so a leftover still fails the run.
No line the harness prints quotes a console token. Every token the run has seen is blanked out of every id, reason, note and the report (
Verdict.redact), as it is and inside any run of%XXescapes that decodes to it, partly encoded or encoded twice: the tokens the opener carries, delivered or refused, and its record's; and one/capabilitiespublishes, under its name at any depth.serve_onereads the opener's tokens as soon as the start answers, before step 5 quotes anything (T104 writes the opener before it serves). No reason quotes the server's own bytes either: not the entry point's output, a/capabilitiespayload, a catalog body or its envelope's values or an available entry's id, the snapshot's documents or its grouping field, the opener record's values, a<base href>, a peer's error text, a printed opener path other than the expected one, or aContent-Typethat is not a plain MIME type. Every printed line escapes what is not printable (a control, a newline, a bidirectional override, a lone surrogate), so no text a server sends can forge a line of the log or break one.Every parser reads as the browser reads, or refuses by name what it does not model:
response.json()parses it: a BOM dropped, an invalid byte read as U+FFFD, andNaNandInfinityrefused. A body nested past the parser's depth is a named failure, never exit 2.typeandlanguagemake it. SVG, MathML, aframeset, a script, link or base in aselect, and one whose attributes hold a named reference with no;(©=2, whichhtml.unescapedecodes and a browser does not) are refused by name. A page is read as UTF-8, and refused by name where a browser might read it otherwise.<base>other than/and an import map.Content-Typeis parsed as the MIME Sniffing standard parses it, and one with more than one value is refused by name. A redirect is refused by name, because a browser follows it.How the route list is derived (from the served JS, not by hand)
derive_bundlereads the bundle from the running server, resolving against its origin (http://127.0.0.1:<port>):/, then follows the page's LIVE module scripts (<script type="module" src>,typeandlanguageread as the HTML standard reads them) andrel~=stylesheetlinks. Both resolve against the page's base URL: its<base href>, which must be/, or the page's own. A view module/capabilitiesdeclares is walked too, but it is no entry:[bundle.entry];srcor inline, is[bundle.classic-script <src>], unless it is markednomodule;[bundle.inline-module];[bundle.unmodeled].${…}is read as code, starting an expression, so an import or a route inside one is found. A/divides after an operand (a name, a literal, a call, a group, a postfix++or--), and opens a regular expression after a prefix operator or the)of anif,while,fororwithcondition. After a}it does either, by whether the}ends a block or an expression, which a lexer cannot tell: a module with a/right after a}is[bundle.ambiguous-slash <path>]. A keyword is read as one only where it is no member's name (obj.return,obj?.of) and no part of a longer or a private name (ñreturn,this.#if); after a spread's...or a decimal point (1. in) it still is.ofis a keyword only as aforhead's separator, after its binding or target (for await (opens a head too), and a name elsewhere, a classic loop's initializer, condition and update included; a/after a spread's..., a division's own/,export default,extends, orbreak,continueordebuggerand a line break opens a regular expression. So does one after a line break that ends a statement by automatic semicolon insertion: before a++or--(then a prefix), and after a labelledbreakorcontinue, a declaration's lone binding, or a static import's specifier. That code tells animport … from "x", anexport … from "x"or animport "x"from an ordinary string, and from a method namedimport(loader.import("x")). A module holding an escape a module refuses (a legacy octal escape,\8,\9, or a malformed\xor\u, outside a tagged template) is[bundle.syntax <path>].import("x"), and every view-binding module/capabilitiesdeclares, transitively. Each module is fetched once, and judged once per way it is imported:pageerror, which AT-R1 step 8 forbids./views/intent-feed.jsanswers 404 (10.2a, not owed), and its importer degrades.text/css. A redirect is refused by name, never judged by its status.[bundle.bare <specifier>]. A module or stylesheet from another origin (another host, port or scheme,data:) is[bundle.external <url>], and is never fetched from loopback by its path. A same-origin absolute URL (http://127.0.0.1:<port>/x.js) is a path of this plane./or./followed by a letter, not a.js/.csspath) is a route the bundle can request. At the integration below, that is 38 modules and 18 routes.A static read cannot tell a load-time request from an on-click one, so the harness requests ALL of them, a superset of the wheel's, the lens's and the chat rail's load-time reads. T096's browser run observes the load-time set itself. The nine
/actions/…routes get a GET too; a GET there finds no handler (404), so it never executes an action.A prefix ending in
/(/source/) is completed with each document the snapshot lists, plain and keyed by the workbench's key (/source/fixture%40main/<doc>), as the panes complete it.The thread read (
/workbench/thread) is asked as its bare literal only, as every literal is. Since openDox-code#85, a standalone plane's rail sends no thread read at all, and the harness no longer completes it with the query it once claimed the rail sends (the holder's T096 dry run, F4).Every request carries the console token the opener delivered, as the doxBench transports do, so a guarded read answers from its handler and not from the console check.
Accepted limits (the holder's convergence ruling)
The harness reads the bundle with a lexer, not a parser. The holder ruled, under the rule of openxFactory#656 comment
5988818366(written for #86 and applied to this PR), that misreadings only a parser could fix are recorded as accepted limits of the acceptance harness, not chased round after round. A form is fixed now only if a shipped openDox web file contains it, or if the fix is one line with a test. The limits are recorded inJsStrings's docstring and in_resolve's.The lexer (
JsStrings):/right after a}divides after an expression's}and opens a regular expression after a block's. Such a module is refused by name ([bundle.ambiguous-slash <path>])./is read wrongly. After a declaration list's last binding with no initializer, then a line break (let x, y[line break]/re/), automatic semicolon insertion ends the declaration, so the/opens a regular expression. The lexer reads a division, and an import after it on that line can be missed. Telling that comma from an expression's comma takes knowing that it lies in a declaration.URL resolution (
_resolve).urllib.parsereads a few references differently from the URL standard, and these are not refused:///a.jsandhttp:///127.0.0.1:<port>/a.js;.//a.js);^;127.1,0x7f.0.0.1,2130706433,127.0.0.1.), which is judged an external host.No shipped file uses any of them. These checks ran locally at
d29e68caover the 42 files the build packages (web/**,web/**/.*): 39 modules, the page, its sheet andvendor/.gitkeep./decisions, 132 regular expressions and 73 divisions. They agree on all 82 static imports and export-froms. No module is ambiguous or malformed. No regular expression follows a name, a literal, a), a]or a}(3 followreturn), so the residual form, which needs a binding name and then a line break before the/, occurs nowhere.URL: all 84 of the shipped modules' import specifiers, static and dynamic, resolve alike.How the limits were found. A differential check of the lexer against node's own module parser, the static module requests of a
vm.SourceTextModule. It covers 196 contexts, each a regular expression or a division before a static import, with five kinds of separator: 1960 snippets, 978 of them valid modules. In those, the lexer hid the import in 195 atff04e015, in 85 at09d9d632, and now in the 10 of the residual form. It has no false failure at any of these heads, and refuses the same 10 by name at each. A second check, of 81 contrived references against node's WHATWGURL, finds 13 differences: the 12 that the URL list above records, and//a.js, which is an external URL either way. The overview ate4f81d48named identifier-parsing errors; that class was a one-line fix with a test, so it is fixed ind698c6ea.Falsifier: the harness itself
At this branch,
main32943cbfplus the harness (what this PR's ownacceptancejob runs): PASSThe job at
d29e68ca(run 37316440405, job 111784259300):Locally, the same tree, run as that job runs it (
python3 acceptance/at_r1_http.pyfrom the checkout's root, with no database service;r83, atd29e68ca, which mergesmaindede32b4):Its log is line for line the same as
r82's (d698c6ea, beforedede32b4) andr76's (ff04e015, the first head withmain32943cbf), apart from ports, process ids and scratch paths. That includes[a.capabilities carries no console token]and every console-opener check.The
validatejob's suite, run locally atd29e68cawith the job's install line and a PostgreSQL 16 standing in for its service, printedtriple: selected=5379 passed=5368 skipped=11 failures=0 errors=0. So no change since then moved a module, a route or an assertion. Neither log holds a token-shaped run.The first green
acceptancejob ran atd50e8cef, once #84 had landed. Its merge ref withmain32943cbf(ff68275a) gavePASS (314 assertions held), and so didr75, locally, on a merge of the same two commits whose tree is identical to CI's.Before T104 landed: FAIL, named
At
main38d3350eplus the harness (d50e8cef,r74,--keep-going), the harness failed only where T104 was missing, in both repositories. In CI it stopped at the first of these:1 failed, 34 held.No token-shaped string appears anywhere in that log, though that tree's
/capabilitiespublished the token.The expected red moved as the stack landed:
main047bb4faand66ff7257, it was[install declares the local extra];[a.capabilities install.mode == local];32943cbf), it is green.Against T104 before it landed (local integrations, never pushed): PASS
#84
fb8a1cc4withmain38d3350emerged in (fc9b39b5, local only). #84 already mergesmainca9e1bd5. The merge's one conflict was the web census's class-A total, resolved as base plus both deltas (18486 + 40 + 95 = 18621). Withb7b9b843's harness,--keep-going(r71):Each earlier head of this round passed at the integration of its day:
r73(d50e8cef's harness) andr69(0717f72f's): the same integration, 314 held;r67(3392f934's),r65(9229c659's) andr63(ba216f84's): the same integration, 310 held, before the console page checks;r61(4bdb41fb's) andr59: T104, the console token travels in the opened URL, not /capabilities (plan 034) #84fb8a1cc4, 306 held, before the UTF-8 and entry checks;r57andr58: T104, the console token travels in the opened URL, not /capabilities (plan 034) #84182cac76plusmainca9e1bd5;r53: T104, the console token travels in the opened URL, not /capabilities (plan 034) #84d4b99436plusmainc4b55cc4, after T102 follow-on: the chat rail reads a thread only with a branch session (plan 034) #85;r49: T104, the console token travels in the opened URL, not /capabilities (plan 034) #84d4b99436.Verdict at
main32943cbfwith this branch: AT-R1's HTTP half passes, with 314 assertions held. That covers:/as HTML, and UTF-8;install.mode == local, and the token on/capabilitiesneither by name nor by value;<OPENDOX_STATE_DIR>/console/<port>.html, private down its whole path, a page the harness reads as the browser does, forwarding with the token in its fragment, and with a record that agrees;/index.htmlon127.0.0.1: 200, HTML and UTF-8, and the page whose bundle, routes and catalog the rest of the run reads;/views/intent-feed.jsrefused as 10.2a's not-owed dynamic import;/styles.cssserved astext/css; no<base>, no import map, no classic or inline script, and nothing unmodeled;/source/form below 500, none a redirect, and no branch-session column, so no thread read;Pass (a)'s route answers (
r76):Before T084: two product gaps, both T084's, both removed by #77
The same harness against the integration without #77 (
e7187f06: main + #69f66e5f82, #721b0c3a63, #7371d24af6, #7183213eb2, #749061b22a, #65c0a97648) held 198 and failed 4. The 4 were these two gaps, each hit in both repositories:GET /project-register.jsondropped the connection.src/opendox/serve_project.py:271(atmain047bb4fa) didfrom openxdox.gate_console import DEFAULT_RECORDS_DIR(and:272,from openxdox.kickoff import …), so it raisedModuleNotFoundError: No module named 'openxdox'. The page requests this route on every load (app.js:1004→views/repo-selector.js:138-139). It is batch L's named crash site (5920216845).Removed by T084, 4.3: the last deferred reaches through declared seams; consumer_reach retired (plan 034) #77. The handler now reads
column_seams.gateandcolumn_seams.kickoff. openDox's default discovers no register, so the route answers the existing structured404 "no project register", and the picker hides.src/opendox/serve_workbench.py:560at the pre-T084 integration (:548atmain) didfrom openxdox import doxbench_scope, which is reached once the five query fields are present. The rail requests it when it opens on a document (views/staging-workbench.js:2925). It was not among batch L's three named crash sites; the holder relayed it to T084's writer.Removed by T084, 4.3: the last deferred reaches through declared seams; consumer_reach retired (plan 034) #77. The handler now uses openDox's own scope type. With no live session on that scope, it answers
403with the no-live-session absence body.No
from openxdoximport is left in either file atd05c266e, now that #77 has landed onmain, and the runs with #77 found no new gap.The assertions bite: twelve product mutants, four workflow mutants and 221 decision mutants, all killed
Product mutants, each run through the full harness: m1, m2, m4 and m5 at
b4fc637f, and m3 again atb440d12b. The only harness change sinceb4fc637fismain()'s handling of an error while preparing. m1 and m2 were merged frommainwhen #69 was atfedfa75dand #72 at20032d02. m3 to m5 are working-tree edits of the integration as it was then,8e4203d8(before T084):25f1f6af)[a.catalog offers no available entry]: "no model is configured, yet the catalog offers ['omp-local']"f3957515)[a.capabilities install.mode == local]: "the served install block is None"bundle.BundledServer.stop()returns at once, and no parent-death signal[a.stop leaves no bundled PostgreSQL process]: "still running after the entry point stopped: pid 599656: …/pixeltable_pgserver/pginstall/bin/postgres -D …" (and the harness's cleanup then removed it)title: A slow leak at the rain barrel, ratified[a.snapshot neutral (F5.3)]: "openxFactory's vocabulary leaked into the neutral snapshot: ['ratified']"src/opendox/web/views/lens-model.jsdeleted[a.bundle.module /views/lens-model.js]: "imported statically by /app.js, answers HTTP 404"T104's delivery, each a working-tree edit of the integration WITH #84,
a945ef01, run through the full harness atd53a7378(r33):console_access.PRIVATE_MODE = 0o644[a.console opener is private]: "… has mode 644, not 600"opened_urljoins with?instead of#[a.console opener forwards with the token in its fragment]: "the opener's forward carries the token in its QUERY …"remove_private_copyreturns at once[a.stop removes the console opener]: "… is still there after the server stopped …"/capabilitiesbuild_serverpublishes it on every plane[a.capabilities carries no console token]generate-and-openprintstoken <token>[a.console token never printed][a.catalog refuses a caller without the console token]: "… answers HTTP 200 …"/capabilitiesunder another namebuild_serveraddscapabilities["session_hint"] = console_token, at #84d4b99436(r51)[a.capabilities carries the opener's token nowhere], and no token in the logThe harness's own decisions: 221 mutants, each a one-line edit of
acceptance/at_r1_http.pyat this head, run againsttests/test_at_r1_http_harness.py. All 221 are killed, each at a named case. By family:lv1-lv9);TMPDIRrefusal (tr1-tr8), andconsole/at 0700 exactly (dm1);rd1-rd9), the published token at any depth (nv1), the payloads never quoted (fo1,im1), and the tokens learned before step 5 (pk1);rp1-rp6), and the by-value check run (rw1);th1-th3);ol1,ol2), the bodies and peer text never quoted (cb1,cb2,en1), and theContent-Typeshown only as a plain type (ct1);og1-og5);js1,jc1,bj1,bj2);dv1-dv4,ui1), and encoded dot segments only (ed1-ed5); JavaScript escapes (le1-le4), line comments and a hashbang (le5,le6), and escapes a module refuses (ms1-ms8); the page's links (ht1,il1,il2,bs1,im2); encoded targets (bt1); unterminated references (ur1); and availability as the rail reads it (av1);sr1-sr10), and markup the harness does not model refused (um1-um6,um6an attribute's unterminated reference);cp1-cp12), an IPv6 host bracketed (og6), and the page's links resolved against its base URL (bd1,bd2);su1-su4), and every printed line escaped (pr1-pr5);import(ws1-ws4,ff1); a template's${…}read as code, starting an expression (tp1-tp3); a/read as division or a regular expression by what ends before it (rg1-rg6), and one right after a}refused (am1,am2); a member's name never a keyword (km1-km4), a spread's and a decimal literal's.no member access, and a name read whole, a private one with its#(km5-km16); every keyword read by where it stands,ofonly in aforhead,for await (a condition, a spread before an expression (kw1-kw15), andofthe separator only after aforhead's binding or target (os1-os10); a regular expression after a division's/(pu1) and after a line break that ends a statement (lb1-lb12); and every character of a name read as the name's (id1);rx1,rx2), a repeated header joined (hj1), andContent-Typeparsed as a browser parses it (mt1-mt3);cs1-cs7);re1,re2), and no reason quoting a value the catalog, the snapshot, the record or/sent (cq1,cq2,sq1,gq1,rq1,rq2,bq1).Earlier heads' decision mutants (64, from
d53a7378to64dc06f5) were each killed at their own head; their decisions stand, and their cases still pass.Workflow mutants, against the three affected cases of
tests_runtime/test_deploy_shape.py:acceptancegains apostgresservicetest_the_acceptance_job_runs_the_harness_on_a_clean_machine-c <lock>test_every_install_of_this_package_reads_one_dependency_lockacceptancechains&& python -m pytest -qtest_the_acceptance_job_runs_the_harness_on_a_clean_machineacceptancegains its ownpip install .stepRestored:
3 passed. Locally,tests_runtime/test_deploy_shape.pyandtests/test_triple_pin.pygive115 passed.How the harness is run, and where the bundled server's state lives
The harness takes no path and no port (only
--keepand--keep-going). It installs the checkout its own file is in, and its scratch andOPENDOX_STATE_DIRare freshtempfiledirectories underTMPDIR. To measure an integration or a product mutant, this writer copied the harness, untracked, into that tree'sacceptance/and ran it there./tmp, which is sticky and root's.<OPENDOX_STATE_DIR>/postgres/run/.s.PGSQL.5432, and Linux takes at most 107 bytes. A run whose socket could not fit is refused with exit 2, before anything is installed.TMPDIR=~/.local/state/t095-tmp, a 0700 directory whose every ancestor is this user's or root's. It was empty after every run, and no bundled PostgreSQL started by these runs was left running.Review rounds
1c064bb3on Security Rating D, and at0717f72fon Security Rating B, and passes at every other head sincebbdeb9ec). At0717f72f, fourpython:S5332atplane_origin, which built anhttp://literal around the forward's host: fixed inb7b9b843, which builds the origin withurlunsplit. Fixed inbbdeb9ec:pythonsecurity:S8703,S8705,S8707: the--port,--scratch,--state-baseand--checkoutoptions flowed into a socket, the server's argv and the filesystem. They are gone.python:S5443: the/tmp/.s.PGSQL.5432probe is replaced by the distribution sockets.python:S3776: the lexer is a class, and the long functions are split one per step.python:S9073: the acceptance job's two assertions are split.At
1c064bb3, fixed in32ef3e8c:r4170450448: a module refused as a dynamic import hid a later static import of the same path.r4170450491: a malformed 200 catalog raised a harness error instead of a named failure.At
bbdeb9ec:r4170537382, the same static-after-dynamic case. Already covered by32ef3e8c, and answered there.At
32ef3e8c, fixed inb4fc637f:r4170537350: a server on/tmp's socket alone, with TCP off, passed the fixed socket list.r4170567257: a non-listdocumentsvalue passed as "non-empty".At
b4fc637f, "Needs a closer look" with no new finding. It noted that the PR needs integrated verification with the dependent product changes: that is the integration above, now including T084. Its "previously missed" item, fixed inb440d12b: anOSErrorinprepare()escapedmain()with exit 1. This head returns 2; atb4fc637f, anENOSPCfromtempfile.mkdtempescaped.At
b440d12b, "Needs a closer look" with no findings. Its "previously missed" item, fixed inf0e0ffe1: the module-graph verdict had no collected regression test, and on this branch the acceptance job stops beforederive_bundle. The newtests/test_at_r1_http_harness.pyabove answers it.At
f0e0ffe1, "Needs a closer look" with no findings. Its "previously missed" item, fixed in4dcb4221: a 200 catalog of{"models": []}passed, thoughadoptCatalogadopts onlyschema_version === 1andkind === "workbench-model-catalog", and shows any other catalog as unreadable. The envelope is now a named check, and the served bundle must name the kind. Seven refused envelopes are tested, and relaxing the int check fails thetruecase.At
4dcb4221, "Needs a closer look" with no findings.At
1c0ff975, fixed inf29b4ddd:r4173473346, the envelope check refused"schema_version": 1.0and1e0, which JavaScript's=== 1adopts. It now admits any JSON number equal to 1, and nevertrueor"1".At
f29b4ddd("Changes recommended"), fixed inde8b2274:r4173769822: a module served 200 astext/plainortext/htmlpassed;r4173769844: so did a stylesheet.Both now require their type.
At
d53a7378("Changes recommended"), fixed in5636eb8d:r4173842763: a forward holding a backslash or user information passed, though a browser opens another host;r4173842794: a refused destination's message quoted a URL that could hold the token;r4173842805andr4173842811: an unparseable printed location or refresh URL raised a harness error instead of a named failure.At
5636eb8d("Changes recommended"), fixed in486e426e:r4173894317: a refresh whose delay a browser aborts (invalid;url=,-1;url=) still yielded a token;r4173894352: a token thattakeDeliveredConsoleTokendiscards (short) passed.At
486e426e, "Needs a closer look" with no findings. Its "previously missed" item, fixed in142d1352: with an agreeing record, a forward to/missing.htmlor/snapshot.jsonpassed. The forward must now open/or/index.html.At
142d1352("Changes recommended"), fixed in27479495:r4174355680: a percent-encoded copy of the token in the query passed;[::1]passed, though the plane listens on 127.0.0.1 alone;https://…was fetched as its local path and passed;At
27479495("Changes recommended"), fixed in64dc06f5:r4174411680: a bare specifier (import "child.js") passed when/child.jswas served;--keep-going.At
33841d4a("Changes recommended"), fixed in4809b3d2:r4174621486: a start or route failure quoted the tail of the entry point's output, which may hold the token;r4174621535:documents: [{}]passed, while every document's source reads were skipped.At
4809b3d2("Changes recommended"), fixed in32fbb6dc:r4174671390: a refresh inside<template>or<noscript>counted as the opener's forward. Only a live refresh counts now, as a browser that runs scripts parses the page;r4174671426: the privacy check stopped atconsole/. The opener's whole path is now judged by T104's own rules, andprepare()refuses an unsafeTMPDIR;Verdict.redact).At
ec95f451("Changes recommended"), fixed in4d0e6d10:r4175016672: a token nested in/capabilitieswas echoed by the install-mode reason. No step-5 reason quotes a payload now, a published token is kept secret at any depth, and the opener's tokens are learned before step 5;r4175016692: a body nested past the JSON parser's depth was a harness ERROR (exit 2). It is a named failure now.At
82869769("Changes recommended"), fixed in2dcb98d3:r4177924060: an opener past 64 KiB was judged by its truncated prefix. It is read whole or refused;r4177924097: the catalog's reasons quoted its body, where a\u-escaped token passed the literal redaction. No reason quotes the server's bytes now;r4177924129: same-origin washttp://loopback, so an absolute same-origin import was refused. It is the running server's origin now.At
2dcb98d3("Changes recommended"), fixed in4bdb41fb:r4178069345:json.loadsadmittedNaNandInfinity, whichresponse.json()refuses;r4178069374: a backslash URL resolved to a local file, where a browser goes elsewhere;<base>and import maps, user information, encoded dot segments, request-target encoding, unterminated character references, and availability as the rail reads it.At
4bdb41fb("Changes recommended"), fixed inba216f84:r4178395669: every<script src>was a module root, whatever its type, and inside a<template>too. Only a live module script is an entry now; a classic or inline script is refused by name, and a page with no entry fails;r4178395690:\uD83D\uDE00left two surrogates that no codec encodes. Every string from JavaScript or JSON is read in Unicode scalar values now;Content-Typeparsing, and printed lines a server could forge.At
ba216f84("Changes recommended"), fixed in9229c659:r4178913887: U+FEFF afterimporthid the import, as Python's\slacks it. The lexer reads JavaScript's own whitespace now, and every run as one space, so no run or comment hides an import either;r4178913911: the catalog's reasons quoted its envelope values and available ids, where a percent-encoded token passed the redaction. No reason quotes a value the product sent now, and the redaction sees through percent-encoding;r4178913926: an encoded dot inside a file name (child%2Ejs) was refused as a dot segment. Only a whole segment is one now.At
9229c659, "Needs a closer look" with no findings. Its overview, fixed in3392f934: a line comment ended only at LF, so one ended by CR, U+2028 or U+2029 hid the next line's import. A hashbang line is read as a comment too.At
3392f934("Changes recommended"), fixed in0717f72f:r4179115282: a template's${…}was skipped by counting braces, so an import or a route inside one was never seen. It is read as code now;r4179115311: only/was checked and walked, though the opener opens/index.html. The page the forward opens is asked of the forward's own host, with its query, must be HTML and UTF-8, and is the page whose bundle, routes and catalog are read.At
0717f72f("Changes recommended"), fixed inb7b9b843:r4179220628: a${left the lexer after an expression, so a/opening a regular expression read as division, and the expression's}closed the interpolation early. An interpolation starts an expression now;r4179220641:html.unescaperead©=2in a page'ssrcorhref, which a browser keeps as text. Such a tag is refused by name, as the opener's refresh already was.At
b7b9b843("Changes recommended"), fixed ind50e8cef:r4179348386: after a postfix++or--(n++ / 2), a/was read as a regular expression, which swallowed the next import. The lexer now reads what ends before a/: a postfix operator, a call or a group divides, and a prefix operator or the)of anif,while,fororwithcondition opens a regular expression;r4179348414: an accepted<base href="/">was ignored, sosrc="?m=1"on/index.htmlwas asked as/index.html?m=1, not/?m=1. The page's scripts and stylesheets resolve against its base URL now.At
d50e8cef("Changes recommended"), fixed in04579fcd:r4180454790, a/after a}that ends an expression ({} / 2, a function or class expression) divides, and was read as a regular expression. A lexer cannot tell such a}from a block's, so a module with a/right after a}is refused by name now ([bundle.ambiguous-slash <path>]). The real bundle has none (the lexer decides 213/there, none after a}).ff04e015then mergedmain32943cbf(T104).At
ff04e015("Changes recommended"), fixed in1d581541:r4180554323, a member named as a keyword (obj.return / 2,obj.if(1) / 2,obj.of++ / 2) was read as the keyword, so each/hid the import after it. A member's name is never a keyword now. The self-pass after it, inea4f7838: the last.of a spread ([...typeof /re/]) and a decimal literal's own point (1. in /re/) are no member access, so the keyword after either is still one; and the last name is read whole, soñreturnandthis.#returnare names.At
ea4f7838, "Needs a closer look" with no findings. Its overview named "a verified lexer error" that "can hide missing static dependencies". The pass that followed, inbd50f405(with a case in234229d7for a mutant that survived), found four, each hiding an import:ofread as a keyword outside aforhead (const of = 4; of / 2); no condition opened byfor await (; a regular expression after a spread's...read as a division; anddefault,extends, andbreak,continueanddebuggerbefore a line break, after which an expression or a statement starts.At
234229d7("Changes recommended"), fixed in09d9d632:r4180899047,ofwas a keyword anywhere in aforhead, so in a classic loop's initializer, condition or update (let of = 4; for (; of / 2; ) break;) the/opened a regular expression that swallowed the import after it.ofis a keyword only as the head's separator now, right after its binding or target. The self-pass after it, ine4f81d48, is a differential check of the lexer against node's own module parser, run locally (the static module requests of avm.SourceTextModule). It covers 196 contexts, each a regular expression or a division before a static import, with five kinds of separator. Node accepts 978 of the snippets as modules. The lexer hid the import in 195 of them atff04e015, and in 85 at09d9d632. It now hides it in 10, all one form: a declaration list's last binding with no initializer, then a line break and a regular expression (let x, y[line break]/re/), which would take a parser. It has no false failure, and the same 10 are refused by name throughout. The 85 were a regular expression after a division's own/, and after a line break that ends a statement by automatic semicolon insertion: before a++or--, after a labelledbreakorcontinue, a declaration's lone binding, or a static import's specifier.At
e4f81d48, "Needs a closer look" with no findings. Its overview named "URL-resolution and identifier-parsing errors". Under the holder's convergence ruling (see "Accepted limits"), the identifier class was a one-line fix with a test, made ind698c6ea: a ZWNJ, a ZWJ, a combining mark or another name character that Python's\wlacks split a name. The URL class is an accepted limit: it appears in contrived references only, and all 84 shipped specifiers resolve as the URL standard resolves them.At
d698c6ea, "Needs a closer look" with no findings. The overview says the harness's "custom browser parsing and database-process lifecycle checks warrant final integrated human verification", and names no form. It was the last push of the review rounds.d29e68camergesmaindede32b4for the T095 refresh. The merge is clean (main and this branch share no file) and changes nothing of this PR's own. Atd29e68ca: "Needs a closer look" with no findings and no thread. Its overview repeatsd698c6ea's: the browser modeling and the database-process lifecycle checks "warrant human sign-off despite reported green CI". It names no form, so there is nothing to classify.Plan changes this PR carries
bdd0f586, RULED5963851934): the raw/capabilitiespayload carries the console token neither by name, at any depth, nor by value, as quickstart § 3 asserts it;console/is 0700 exactly (eb81b3d8). The id CI's by-design failure names,[a.capabilities carries no console token], is the by-name check. Product mutant m12 (the token under another key) is killed by the by-value check.4d0e6d10).Not done here
acceptancerequired is the owner's.🤖 Generated with Claude Code