Repository navigation
T104: styles.css rules for the rail's two remedy lines, doxchat-no-model and doxchat-untrusted, the census row, and the selector-class pin (plan 038) - #94
Conversation
…s row (plan 038) `views/doxbench-chat.js` has constructed `doxchat-no-model` (16.4's no-model remedy line) and `doxchat-untrusted` (16.3a's trust remedy line) since T081 (#74), and `styles.css` carried no rule for either. openXdox-code's `test_every_constructed_doxbench_class_has_a_styles_rule` (the T100 P1-1 failure class) reads exactly that, and is red in the composed run for exactly those two classes (R2-INV-R9 part B, SF). Adds one rule for the two classes and one `[hidden]` rule, beside `.doxchat-unavailable`, in its register: the same quiet inline note, never an error, with `overflow-wrap: anywhere` because the text carries commands and the rail is a third of the width. The census moves with the file: styles.css `loc` 2520 -> 2539, class C's total 12769 -> 12788, and the row's note records the step. Lane: openXfactory-3 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reviewer's GuideAdds styles.css coverage for the Flow diagram for remedy-line visibility and stylingflowchart LR
A[Catalog response] --> B{Model state}
B -->|empty| C[doxchat-no-model]
B -->|declared but unavailable| D[doxchat-untrusted]
C --> E[Shared quiet remedy styling]
D --> E
E --> F[Hidden state uses display none]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The selector-count test still expects 572 instead of 574, leaving required CI red.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds missing styles for the rail’s no-model and untrusted remedy messages.
Changes:
- Styles both remedy states and their hidden variants.
- Updates the web-boundary stylesheet census.
| File | Description |
|---|---|
src/opendox/web/styles.css |
Adds remedy-message selectors. |
tests/fixtures/web_boundary_census.yaml |
Updates stylesheet line and class totals. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…74 (plan 038) `tests/test_binding_stylesheets.py::test_the_design_tokens_and_the_shared_selectors_stayed` pins the count of classes `styles.css` declares in selectors, and says "if one arrived, re-derive this number and say so". The two rules in the previous commit add `doxchat-no-model` and `doxchat-untrusted`, so the count is 574. Both are openDox's own, named by its bundle, so neither is an orphan. The slice outline did not name this file. The holder admitted it to T104's files (#656 6022291206, on lane 3's QUESTION 6022096172). Lane: openXfactory-3 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Lane: openXfactory-3 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ent (Copilot r4199454220) The styles.css row's note said the file "declares" 572 selector classes (a sentence from RULED Q7) and then, in this slice's step, that the count goes 572 -> 574, which left the row saying two things at once. The earlier sentence is now past tense and dated to that act, and this slice's step states the current count. Note text only: the row's `loc` and the totals are unchanged. Lane: openXfactory-3 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Lane: openXfactory-3 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 17 hours and 51 minutes by commenting |
|
READY at 4a772b3 Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Holder, at READY: T104 (lane openXfactory-3), the
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Arc: neutral-product-standalone-operability ## T015: the `submit` verb, route and control (plan 038, P4-C) > **Stack:** #92 (T011) landed as `09b8d44a`, #93 (T014) as `a7a1c4d3`, and #90 (T012/T013) as `6827cafc`. This branch merges `main` at `6827cafc`, so its diff against `main` holds T015's files and the collateral the holder admitted (listed below), nothing else. - **Realizes**: 12.4a (opensoft/openXfactory#1144, `add-neutral-product-standalone-operability`). - **Falsifier**: F12.2's five `tests/test_submit_route.py` nodes; CLI tests in `tests/test_cli_branch_actions.py`; a test that a host profile replacing the default sees no `actions.submit` key. - **Ruled**: R2Q1, R2Q3, R2Q4, R2Q5, R2Q9 (item 7) (the plan ruled on opensoft/openXfactory#656 comment `6013547504`). **Decisions**: CF-1, N-2, N-17, OQ-12-9, OQ-12-14. - **After**: T014 (#93), T025 and T104 (#94; the census fixture's chain is T025 → T104 → T015), T005 (the `--local` line). - **Contract**: plan 038's `contracts/cli-http-submit-land.md`, the submit half. ### What it adds - **`opendox submit --repo-root PATH --branch BRANCH [--local] [--json]`** (new `src/opendox/cli_branch_actions.py`). This is 12.4a's ratified shape. - It is contributed through `default_profile.py`'s `SUBCOMMAND_EXTENSIONS` (N-2). - It pushes through T014's `cli._submission_port` binding: `LocalGitSubmissions` by default, which is plain git and never `gh`. Where a host contributes a port, it uses that one (R2Q4 (a)). - It prints the `Submission` report (remote, ref, URL with any credential redacted, branch and commit), or one JSON object with `--json`. - **No actor gate** (OQ-12-9). - **The install mode is not read** (N-17). `--local` is refused only where it disagrees with `OPENDOX_INSTALL_MODE=hosted`, and the refusal names both. - **Refusals** are a named sentence on stderr with exit 1, with nothing pushed and no traceback: - `main` (R2Q5 (a)), before any port is asked; - no remote, or several and none named `origin`; - several push URLs, or a rejected push; - a report that does not name where the work went; - a failure the port did not name. This one gets a fixed sentence naming the exception's type alone. - **Redaction and checks at the boundary.** - The report's `url` and `remote`, and every refusal's message, pass through `redacted_text` where both doors print them (12.1a). Every `scheme://` URL in them goes through `redact_destination` first, which treats any non-ssh userinfo, and every query and fragment value, as a secret. The host is kept. - The report's `branch`, `ref` and `commit` are checked rather than trusted. They must be the submitted branch, `refs/heads/<that branch>`, and a full object name. - Both hold whoever answered, a host's contributed port included. - **`POST /actions/session/submit`** (new `src/opendox/serve_branch_actions.py`). It is contributed through the default profile's `ROUTE_EXTENSIONS` (`BranchActionRouteExtension`) and `HANDLER_CONTRIBUTIONS` (the `BranchActionRoutes` mixin). - **12.4a's three-clause gate runs before any body byte is read:** 1. off loopback → 403 `loopback_only`. This is the hosted plane's refusal, and it is the route's own. 2. no `session` capability or no resolved actor → 403 `action_unavailable`. 3. not the human console (the console token, a trusted `Host`, a JSON body, no foreign `Origin` or `Referer`) → 403 `agent_invocation`. - **The body carries `branch` alone.** Any other key, `repo_root` included, gives 400. The route takes no repository from the request. - **Answers:** - no port → 403; - `NoSubmissionTarget` → 409 `no_submission_target`; - other `SubmissionError` → 409 `submission_refused`; - any other exception → 500 `submission_failed`, with only the type logged; - success → 200 with the `Submission` object. - **`actions.submit`** (`serve.py` `compute_capabilities`). - The key is PRESENT only where a route binding answers `POST /actions/session/submit`, which happens only under openDox's own profile. - Its VALUE is the local human's: actor, real checkout and loopback, derived from the bindings as `gate`'s is (`answers_the_submit`). - Core `_DEFAULT_CAPABILITIES` gains nothing (OQ-12-14). A host profile that replaces the default sees no `submit` key, route, handler or verb (R2Q3 (a)). - **The submit control** (new `src/opendox/web/views/branch-actions.js`, wired by `web/app.js` and `web/index.html`). - It is keyed on `actions.submit === true` and the console token, never on `session`. - It is not offered in a composed render. - It is withheld while an active key names another repository than the one `/capabilities` declares as `repository`, because the route pushes from the served checkout alone. With no repository active, as on a standalone plane, which has no snapshot index, it is offered (`anotherRepositoryIsActive`; Copilot's finding and lane 3's MAJOR, below). - The account menu's access line names `submit` where it is granted (`views/account-menu.js`, admitted below; Codex's finding, below). - It never proposes or sends `main`, and it states a refusal in the server's own words. - The census fixture and `tests/test_web_boundary.py` gain its rows and its two boundary tests. ### The falsifier, run (red first) **Red, stage 1.** The base tree with this PR's tests and no `src` change: ``` E ImportError: cannot import name 'serve_branch_actions' from 'opendox' (…/red-base/src/opendox/__init__.py) ERROR tests/test_submit_route.py 1 error in 0.60s ``` **Red, stage 2.** The two modules present but not wired into the default profile. Each route node answered `{'error': 'unknown_action', 'message': 'no such action route'}`, and each CLI case exited with `SystemExit: 2`: ``` FAILED tests/test_submit_route.py::test_submit_route_is_refused_off_loopback FAILED tests/test_submit_route.py::test_submit_route_is_refused_without_a_resolved_actor FAILED tests/test_submit_route.py::test_submit_route_is_refused_without_the_console_token[absent] FAILED tests/test_submit_route.py::test_submit_route_is_refused_without_the_console_token[wrong] FAILED tests/test_submit_route.py::test_submit_route_is_refused_from_a_foreign_origin[Origin] FAILED tests/test_submit_route.py::test_submit_route_is_refused_from_a_foreign_origin[Referer] FAILED tests/test_submit_route.py::test_submit_route_takes_no_repository_from_the_request[repo_root] FAILED tests/test_submit_route.py::test_submit_route_takes_no_repository_from_the_request[repository] FAILED tests/test_submit_route.py::test_submit_route_takes_no_repository_from_the_request[checkout_root] FAILED tests/test_cli_branch_actions.py::test_submit_pushes_the_branch_and_reports_where_it_went … FAILED tests/test_cli_branch_actions.py::test_the_default_profile_contributes_submit 31 failed, 4 passed in 22.32s ``` **Green, at `e7ee97b8`:** ``` $ python -m pytest -q -rA <F12.2's five test_submit_route.py nodes> tests/test_submit_route.py::test_a_host_profile_replacing_the_default_sees_no_submit_key PASSED tests/test_submit_route.py::test_submit_route_is_refused_off_loopback PASSED tests/test_submit_route.py::test_submit_route_is_refused_without_a_resolved_actor PASSED tests/test_submit_route.py::test_submit_route_is_refused_without_the_console_token[absent] PASSED tests/test_submit_route.py::test_submit_route_is_refused_without_the_console_token[wrong] PASSED tests/test_submit_route.py::test_submit_route_is_refused_from_a_foreign_origin[Origin] PASSED tests/test_submit_route.py::test_submit_route_is_refused_from_a_foreign_origin[Referer] PASSED tests/test_submit_route.py::test_submit_route_takes_no_repository_from_the_request[repo_root] PASSED tests/test_submit_route.py::test_submit_route_takes_no_repository_from_the_request[repository] PASSED tests/test_submit_route.py::test_submit_route_takes_no_repository_from_the_request[checkout_root] PASSED tests/test_submit_route.py::test_a_host_profile_replacing_the_default_sees_no_submit_key 10 passed in 7.31s $ python -m pytest -q tests/test_submit_route.py tests/test_cli_branch_actions.py 102 passed in 33.12s ``` **F12.2's submission half, verbatim** (opensoft/openXfactory#1144 `tasks.md`, the FALSIFIED BY block, dedented). It ran at `e7ee97b8`, this head, from a `git archive` of the commit, in a fresh venv (`pip install ".[test]"`), with a PATH holding `git` and no `gh`: ``` command -v gh: absent … Successfully installed … opendox-0.1.0 … e8cc902cf58b660669f6b8ffff8349d5781a4b41 # git -C "$W/remote" rev-parse --verify sess-1 1 passed in 1.17s # test_server_unset_submission_factory_binds_the_neutral_default 1 passed in 1.57s # test_a_credential_in_the_remote_url_never_reaches_the_report 9 passed in 6.75s # the five test_submit_route.py nodes (parametrized) F12.2-submission-half EXIT 0 ``` ### Mutants: 74 over the code at this head, all killed **41 over the first head.** One mutant first SURVIVED: `S-gate2 capability dropped`, which kept the actor clause and dropped the `session` capability. `test_a_plane_whose_verdict_says_no_session_refuses_whatever_its_actor` was added for it, and the kill was re-proven at `19b5aba5`: ``` UNMUTATED: 1 passed in 1.74s MUTATED: capability clause dropped MUTANT: FAILED tests/test_submit_route.py::test_a_plane_whose_verdict_says_no_session_refuses_whatever_its_actor ``` The other 40, each killed by a named node: ``` S-gate1 loopback clause off | S-gate2 actor dropped | S-gate3 console clause off S-body read before the gate | S-body problem ignored S-requested not-a-dict | extra keys | message pick | str check | empty check S-no port ignored | S-no-target code merged | S-unvetted text logged | S-success body | S-binding method C-main refusal off | C-report str check | C-report empty check C-mode always read | C-mode flag dropped | C-mode refusal ignored | C-refusal exit 0 | C-json off | C-binding bypassed D-no submit verb | D-no submit route | D-no mixin V-key always present | V-key always true | V-answers method J-keyed on session | J-empty token | J-proposes main | J-sends main | J-refusal styled as success J-button stays disabled | J-no token header | J-unoffered mounts | J-composed mounts | A-no mount ``` **10 over lane 3's R1 fixes**, run at `a9616ee4` against `tests/test_cli_branch_actions.py`: ``` MN1 catch-all removed | KILLED …test_a_port_failure_it_did_not_name_is_refused_without_its_text[binding] MN2 exception text printed | KILLED …test_a_port_failure_it_did_not_name_is_refused_without_its_text[binding] MN3 type not named | KILLED …test_a_port_failure_it_did_not_name_is_refused_without_its_text[binding] MN4 unnamed failure exits 0 | KILLED …test_a_port_failure_it_did_not_name_is_refused_without_its_text[binding] MN5 binding built outside the try | KILLED …test_a_port_failure_it_did_not_name_is_refused_without_its_text[binding] NM1 hosted not refused | KILLED …test_local_beside_hosted_is_refused_naming_both[hosted] NM2 any non-local value refused | KILLED …test_local_beside_any_other_value_is_accepted[Hosted] NM3 value not stripped | KILLED …test_local_beside_hosted_is_refused_naming_both[ hosted ] NM4 value matched case-insensitively | KILLED …test_local_beside_any_other_value_is_accepted[Hosted] NM5 flag not required | KILLED …test_without_local_the_install_mode_is_not_read[hosted] DONE 10 / 10 ``` **1 that lane 3 did not reach:** gate clauses 2 and 3 swapped. It was killed by F12.2's own node: ``` FAILED tests/test_submit_route.py::test_submit_route_is_refused_without_a_resolved_actor - AssertionError: {'error': 'agent_invocation', …} FAILED tests/test_submit_route.py::test_each_refusal_is_made_before_the_body_is_read[no-actor] 2 failed, 49 passed in 24.38s -> KILLED ``` **10 over the review-round guard** (`anotherRepositoryIsActive`, `7dc8214b`), run on an archive of `7dc8214b` against `tests/test_submit_route.py` and `tests/test_web_boundary.py`. Two of them make the node harness throw, so its fixture errors: ``` BASELINE rc=0 | 72 passed in 23.69s MS1 the predicate is always false | KILLED …test_the_control_is_withheld_only_while_another_repository_is_active (2 failed) MS2 the predicate is always true | KILLED …test_a_standalone_plane_offers_the_control_as_the_page_derives_it (2 failed) MS3 no active key counts as another repository | KILLED …test_the_control_is_withheld_only_while_another_repository_is_active (3 failed) MS4 an empty key counts as another repository | KILLED …test_the_control_is_withheld_only_while_another_repository_is_active (1 failed) MS5 the comparison is inverted | KILLED 67 passed, 5 errors MS6 the mount ignores the predicate | KILLED …test_the_control_is_withheld_only_while_another_repository_is_active (2 failed) MS7 the mount negates it (the e149dc5 shape) | KILLED …test_a_standalone_plane_offers_the_control_as_the_page_derives_it (1 failed) MS8 the mount compares the branch | KILLED 67 passed, 5 errors MR7 the shell passes no repository | KILLED …test_web_boundary.py::test_every_web_file_is_classified_exactly_once (2 failed) MR8 the shell passes the ref as the repository | KILLED …test_the_submit_route_is_addressed_by_the_branch_actions_view_alone (1 failed) DONE 10 / 10 ``` **1 over the admitted account-menu word**, run on an archive of `88b26816`: ``` MA1 the menu omits submit | KILLED …test_the_account_menu_names_submit_where_it_is_granted (1 failed) ``` **11 over the redaction rule and the report checks** (`e7ee97b8`), run on an archive of `e7ee97b8` against `tests/test_cli_branch_actions.py` and `tests/test_submit_route.py`: ``` BASELINE rc=0 | 102 passed in 34.01s MG1 refusal_text shows the raw message | KILLED …test_a_contributed_refusal_is_redacted_at_the_boundary[fragment] (9 failed) MG2 no per-URL redaction pass | KILLED …test_a_contributed_report_is_redacted_at_the_boundary (11 failed) MG3 the free-text pass made stricter (lane 3's MF6 shape) | KILLED …test_a_credential_in_the_remote_url_reaches_neither_report_nor_refusal (6 failed) MG4 the branch check dropped | KILLED …test_a_report_that_is_not_the_submissions_is_refused[branch-sess-2] (1 failed) MG5 the ref check dropped | KILLED …test_a_report_that_is_not_the_submissions_is_refused[ref-refs/heads/sess-2] (2 failed) MG6 the ref check loosened to a suffix | KILLED …test_a_report_that_is_not_the_submissions_is_refused[ref-refs/tags/sess-1] (1 failed) MG7 the commit check dropped | KILLED …test_a_report_that_is_not_the_submissions_is_refused[commit-ccc…] (3 failed) MG8 the commit check ignores case | KILLED …test_a_report_that_is_not_the_submissions_is_refused[commit-CCC…] (1 failed) MG9 the remote is not redacted | KILLED …test_a_contributed_report_is_redacted_at_the_boundary (2 failed) MG10 the url is not redacted | KILLED …test_a_contributed_report_is_redacted_at_the_boundary (2 failed) MG11 the URL pattern stops at the query | KILLED …test_a_contributed_refusal_is_redacted_at_the_boundary[fragment] (6 failed) DONE 11 / 11 ``` (Two replaced guards are not counted here. `e149dc56`'s `servesTheActiveRepository` had its 8 mutants killed at `88b26816`, and `7dc8214b` replaced it. `2d64f42e`'s first redaction had its 7 (MX1–MX7) killed at `2d64f42e`, and `e7ee97b8` replaced it.) ### The whole suite, as `validate` runs it - **At `e7ee97b8`, this head, run locally as `validate` runs it (full11).** The run used `CI=1`, `OPENDOX_TEST_SANDBOX_REQUIRED=1` and `LANG=C.UTF-8`, every `GIT_*` and `XF_*` variable unset, a `postgres:16` service reached through `host.docker.internal`, and the venv built with CI's install command. It reported `5899 passed, 11 skipped, 2 warnings in 3912.08s (1:05:12)`, exit 0. - **full10 at `e7ee97b8`, the same way, at a load average of about 85:** `1 failed, 5898 passed, 11 skipped` in 2397 s, exit 1. - **The one failure is a timing ratio this PR does not touch:** `tests_runtime/test_migrations_apply.py::test_the_draft_page_budget_does_not_read_the_bodies_it_sizes`. It needs PostgreSQL's reading to take more than 4 × its sizing, and it measured 9.67 ms sizing against 29.50 ms reading. This PR changes neither that test nor anything under `src/opendox/runtime/`. - **Re-run serially at a load average of about 125–132.** At this head the node passed 3 times out of 3. On unmodified `main` `6827cafc` it FAILED 3 times out of 3. - The same measurement, printed, gave sizing/reading here of 4.27/25.24, 6.23/23.23 and 5.54/30.66 ms, and on `main` of 9.36/30.56, 11.57/42.08 and 5.25/23.18 ms. It crosses the 4× bar on both sides. - So it is a load-induced timing flake outside this PR. - **SKIPPED stays 11.** - **At `2d64f42e`:** `1 failed, 5885 passed, 11 skipped` at a load average of about 90, exit 1. - The one failure was `tests_runtime/test_oidc_verifier.py::test_one_ttl_boundary_causes_one_jwks_refresh_and_not_one_per_waiter`, a wall-clock JWKS-refresh count (`assert 3 == 2`) in code this PR does not touch. - Run alone at that head it passed 5 times out of 5, and its whole file gave `29 passed`. - CI's `validate` at `2d64f42e` (run 37874675109) printed `triple: selected=5897 passed=5886 skipped=11 failures=0 errors=0`, with the sandbox's write outside its tmpfs refused. - **At `7dc8214b`:** `5881 passed, 11 skipped`, exit 0. - **At `d466f2b9`, after the merge of `main` at `6827cafc`:** `5880 passed, 11 skipped`, exit 0. `7dc8214b` adds one case. - **At `a9616ee4`, the same way:** `5730 passed, 11 skipped`, exit 0. - **At `19b5aba5`, before lane 3's R1 fixes:** `5725 passed, 11 skipped`, exit 0. R1's tests add the five cases. ### Files T015's Files line: - new `src/opendox/cli_branch_actions.py` - new `src/opendox/serve_branch_actions.py` - `src/opendox/default_profile.py` (the first phase-4 edit) - `src/opendox/serve.py` - new `src/opendox/web/views/branch-actions.js` - `src/opendox/web/app.js` - `src/opendox/web/index.html` - `tests/fixtures/web_boundary_census.yaml`: the `views/branch-actions.js` row, the app.js and index.html lines, and class A totals of 27 files and 18,912 lines. T104's rows are kept; class C has 14 files and 12,792 lines. - `tests/test_web_boundary.py` - new `tests/test_submit_route.py` - new `tests/test_cli_branch_actions.py` ### Collateral, each admitted by the holder on opensoft/openXfactory#656 - **`tests/test_default_profile.py`** (`6023619783`; docstring `6026622117` item 2). The default's verbs are now `["runtime", "submit"]`, and it declares `HANDLER_CONTRIBUTIONS == (BranchActionRoutes,)`. The facet test's docstring now says so. - **`tests/test_capability_honesty.py`** (`6027633398`; the helper `6028383410`). - `GOVERNED` gains `"submit": ("POST", "/actions/session/submit")`. - `_assert_every_true_flag_answers` is a PROFILE-AWARE EQUALITY with a required `default_profile` keyword: the default profile's map equals `GOVERNED`, and a composed host's map equals `GOVERNED` less `submit`. - **`tests/test_lens_seed_actions.py`** (`6027633398`). A standalone serve's contributed routes are exactly openDox's submit route, and no seed route. - **`tests_runtime/test_served_bundle.py`** (`6035791735`; prose `6064770458`). - `BUNDLE_FILES` goes 42 → 43, with a line naming `views/branch-actions.js`. - The prose that states the bundle's current count says 43, at lines 9, 38, 50, 417 and 437. - Two mentions are kept at 42, because they are not the current count. Line 15 is a measurement dated "at openDox-code#69's head" (the tree's 42 beside the wheel's 41). Line 24 is opensoft/openXfactory#1144 10.2's own count. - No assertion and no tree-to-wheel comparison changes. - **`src/opendox/web/views/account-menu.js`** (`6069024568` item 2). One word: `"submit"` joins `WRITE_ACTIONS`, so the access line names the verb `actions.submit` grants. The census line count is unchanged at 181. - **`pyproject.toml:312`** (`6069024568` item 2). One line's present-tense count: "the bundle is 43 files". ### Review rounds on this PR - **SonarCloud at `a9616ee4`: the quality gate FAILED** on a C reliability rating on new code, with 16 open issues, all in T015's own files. All 16 were fixed in `39a73a33`, with no behaviour changed: - 1 bug, `javascript:S9383`: the click handler left `submit()`'s promise unhandled. `submit()` settles every outcome itself, so the handler marks it handled with `void`. - 2 `python:S7632`: the reason after `# noqa: BLE001` moved to the line above. - 8 `python:S9073`: composite asserts split. - 3 `python:S5778`: one throwing call per `pytest.raises`. - 2 `python:S9083`: `@pytest.fixture()` lost its empty parentheses. - At `39a73a33` the quality gate PASSED with 0 open issues. - **Copilot at `39a73a33`, HIGH, `app.js:1696`** (thread `4223527699`, "Changes recommended"). FIX NOW under `5988818366`, fixed in `e149dc56`. - The defect was a misdirected push from one click. With another repository active, the control offered that repository's branch name, while the route pushes from the served checkout (it takes no repository from the request, 12.4a). - The fix, as corrected by `7dc8214b`: the view withholds the control while an active key names a repository other than `/capabilities.repository`, which is the authority a session verb already refuses a foreign repository against. `app.js` hands the view the active repository. - Tests: node-harness cases for served, foreign, none-active and undeclared repositories, and a boundary check of the shell. Mutants MS1–MS8, MR7 and MR8 are killed. - **Codex at `a9616ee4`, P2, `serve.py:664`** (thread `4223387950`): the account menu's access line omitted `submit`. FIX NOW, admitted by `6069024568` item 2 and fixed in `63a12ad4`. Test `test_the_account_menu_names_submit_where_it_is_granted`; mutant MA1 is killed. - **The merge of `main` at `6827cafc`** (#90) made `opendox.session_pr` re-export the landing seam, whose modules load `yaml`. So importing openDox's default profile loaded `yaml`, through this PR's module-level import in `cli_branch_actions.py`. - `test_importing_the_default_registers_nothing_and_needs_no_sibling` was red at the merge commit `88b26816`. - `d466f2b9` imports `session_pr` where it is used. - **Copilot at `7dc8214b`, HIGH, `cli_branch_actions.py:124`** (thread `4225670374`, "Changes recommended"). FIX NOW under `5988818366`, fixed in `2d64f42e`. - The defect: a host's contributed port that answered a credential-bearing `url` had it printed by the CLI and answered by the route, bypassing 12.1a. - The same was true of a host port's refusal text, which is closed too. - The fix: `submission_object` re-runs `redact_destination` over `url` and `remote`, and `refusal_text` runs `redact_credentials` over every refusal both doors show. - The proof: five tests were red at `7dc8214b` and are green at `2d64f42e`. Mutants MX1–MX7 are killed. - **Copilot at `2d64f42e`, HIGH, `cli_branch_actions.py:152`** (thread `4226076943`, "Changes recommended"), together with lane 3's MAJOR at the same head. FIX NOW, fixed in `e7ee97b8`. - The defect: the refusal redactor spared a bare username for every scheme, so a host port's refusal naming a token as https userinfo kept it. A secret under a query name no pattern knows, or in a fragment, was kept too. - The fix: `redacted_text` passes every `scheme://` URL through `redact_destination` before the free-text pass. The refusal, `url` and `remote` all go through it. - Tests: three shapes on the CLI and on both route arms, each asserting the secret gone and the host kept. 18 tests were red at `2d64f42e`. Mutants MG1–MG3 and MG11 are killed. - **Codex at the later heads:** the Codex trigger comment (WRITER-RULES gate 3) was posted after each push. From about 19:49Z to about 23:23Z the bot answered with its usage limit (`6069024568` item 4). At `7dc8214b` (comment `6072104180`) and at `2d64f42e` (comment `6073019937`) it answered with its usage limit again. - **At `e7ee97b8`, this head:** - **Codex**, re-triggered at 13:32Z, reviewed it: "Didn't find any major issues", with Reviewed commit `e7ee97b860` (comment `6082012656`). - **Copilot** reviewed it with 0 open findings (review `5470807021`). ### Lane 3's review R1, answered The review is opensoft/openXfactory#656 `6064547745`, partial at `c0fb1dd3`, completed by `6066338657` at `19b5aba5` as GO (PARTIAL). Then: - **GO at `a9616ee4`**: this PR's comment `6068113766`, with two NITs, both fixed. `pyproject.toml:312` is admitted and moved to 43 (`6069024568` item 2), and T104 is now on the After line. - **GO (PARTIAL) at `39a73a33`**: the delta is behaviour-neutral (lane 3's coordination log, 2026-10-08 21:07Z). - **NO-GO (EARLY) at `63a12ad4`** (lane 3's coordination log, 22:01:46Z): 1 MAJOR and 3 NITs, all fixed. - **MAJOR, `branch-actions.js:37`: the control was offered on no plane. FIX NOW, fixed in `7dc8214b`.** - The defect: since `e149dc56` the control was offered only where an active key named the served repository. A standalone plane, the one plane that carries `actions.submit`, has no snapshot index (`/snapshot-index.json` answers 404), so no key is ever active there. - The fix: `anotherRepositoryIsActive` withholds the control only while an active key names another repository, so Copilot's HIGH still holds. - The test: `test_a_standalone_plane_offers_the_control_as_the_page_derives_it` serves a real standalone plane, and the bundle's own `probeCapabilities` (the token from the URL's fragment), `fetchIndex`, `resolveStoredKey`, `resolveActive`, `isComposed` and `safeKey` derive the mount's arguments as `app.js`'s `render()` does. It was red against `d466f2b9`'s guard: `{'offered': False} != {'offered': True}`. Mutants MS2 and MS7 (the `e149dc56` shape) are killed by it. - **NIT, the census `app.js` row's note lacked its 1760 → 1764 move.** Fixed in `7dc8214b`. - **NIT, the After line omitted T104.** Fixed in this body. - **NIT, the body's class A total.** It now reads 18,912, this head's census figure. - **GO (EARLY) at `7dc8214b`** (lane 3's coordination log). - **NO-GO (EARLY) at `2d64f42e`** (lane 3's coordination log, 02:33:37Z): 1 MAJOR, 1 MINOR and 1 NIT, all fixed in `e7ee97b8`. - **MAJOR, `cli_branch_actions.py:152`: refusal redaction weaker than the report's.** Fixed as Copilot's thread at the same head, above. - **MINOR, `cli_branch_actions.py:136`: `ref`, `branch` and `commit` passed through raw, and `remote` was redacted only as a whole URL.** Fixed in the holder's stronger form. - `submission_object(report, branch)` refuses a report whose `branch` is not the submitted one, whose `ref` is not `refs/heads/<branch>`, or whose `commit` is not a full object name (40 hex digits, or 64 in a sha256 repository). The refusal is a fixed sentence that repeats none of the report. - `remote` gets the text-level redaction. - Tests cover six malformed reports on the CLI and one on the route. Mutants MG4–MG10 are killed. - **NIT: the tests spelled credential-shaped URLs whole.** Both test files now assemble them with `test_submission_default.with_userinfo`. - **GO (EARLY) at `e7ee97b8`** (lane 3's coordination log, 2026-10-09 18:01:21Z): 0 BLOCKER, 0 MAJOR, 0 MINOR, 0 NIT. Lane 3 drove 63 hostile-port checks at every print boundary, with 0 leaks. Its two limits are recorded below, as the holder accepted them. Each finding is classified under the convergence rule (`5988818366`). - **MINOR, `cli_branch_actions.py`: a port exception could leak a credential. FIX NOW, fixed in `45c83c7b`.** - The binding and the act now sit in one `try`. Any exception other than a `SubmissionError` is refused with `UNNAMED_FAILURE`, a fixed sentence naming `type(exc).__name__` alone, with exit 1, as the route answers it. - New test `test_a_port_failure_it_did_not_name_is_refused_without_its_text[binding|port]`. It was red at `19b5aba5`, where the `RuntimeError` carrying `https://user:S3CRET@…` escaped `cli.main`. - **NIT, `serve_branch_actions.py:42`: the docstring over-promised. FIX NOW (the docstring), fixed in `45c83c7b`.** - It now says that the act's own refusal may name the requested `branch` back to the console that sent it, as JSON the view renders as text, and that nothing else a request carried is echoed. - No limit is accepted. The echo is the caller's own input, behind the three clauses and the console token, rendered with `textContent`. A ref-format pre-check in the route would run git from a module that runs none, and it would still echo every well-formed name. - **NIT, `cli_branch_actions.py:131`: a malformed install mode was refused. FIX NOW (narrowed), fixed in `45c83c7b`.** - The contract refuses `--local` "only where it DISAGREES with `OPENDOX_INSTALL_MODE=hosted`". The verb now reads that one value, stripped and case included, as `runtime.config.install_mode` reads it. - Any other value is accepted (`Hosted`, `Local`, `single-user`), since the verb does not depend on the mode. The old fail-closed test is replaced by `test_local_beside_any_other_value_is_accepted`. - **NIT, `tests_runtime/test_served_bundle.py:9`: the bundle-count prose still read 42. FIX NOW, fixed in `a9616ee4`, with two lines kept on purpose.** - Lines 9, 38, 50, 417 and 437 now say 43 (`6064770458`). - Lines 15 and 24 stay at 42, and the holder accepted that (the ruling relayed to this writer on 2026-10-08 at 19:4xZ). Line 15 is a measurement dated at openDox-code#69's head, the tree's 42 beside the wheel's 41. Line 24 is opensoft/openXfactory#1144 10.2's own count. Moving either would make it false. - **Lane 3's "NOT REACHED" items, now run:** - the BUNDLE_FILES bump; - F12.2 in a fresh venv (above); - the clause 2/3 swap mutant (killed, above); - the full suite to its end (above). ### Stated limits Both are ACCEPTED LIMITS under the convergence rule (`5988818366`), ruled by opensoft/openXfactory#656 `6086098003` item 2. They are recorded here, with no push. - **(a) `ssh://token@host` and the scp-like `token@host:path` keep the token.** That slot is the ssh login name, which `redact_destination` spares by design, as the neutral port does. Redacting it would erase the routine `git@host` display, and a token there is the host port's own misconfiguration (operator-only). - **(b) A raw token in a host port's prose, with no URL, passes.** This is the inherent limit of pattern redaction. This PR's guarantee is that a refusal is redacted as strictly as the report, and neither covers a bare secret in prose. Known-prefix redaction is a possible later hardening, outside release 2. ### Not done here - `opendox land` and its route (T016), which stacks on this PR. - Lane 3's FORMAL R1-T015 at `e7ee97b8` (its EARLY GO at that head is above). - The live sandbox is proved by this PR's own `validate` run, not locally: bubblewrap cannot create user namespaces in the local container. - Postgres container `r2-t015-pg` is removed when T015 closes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>





Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Authored by lane openXfactory-3, delegated by lane openxfactory-4 (#656 6021862323)
Arc: neutral-product-standalone-operability
T104: styles.css rules for the rail's two remedy lines,
doxchat-no-modelanddoxchat-untrusted, the census row, and the selector-class pin (plan 038)There is no
tasks.mdentry for T104 yet: lane 4 records T095 to T104 after T002 (#1251). Its contract here is the slice outline row ofR2-INV-R9("T104 openDox-codestyles.css", means SF), the holder's rulings6021830531, and the holder's admission of a third file,6022291206(below).Realizes: #1144 requirement 9's declared composed tests (T073, F9.1), by repairing the one composed red that is an openDox defect: openXdox-code
tests/test_renderer.py::test_every_constructed_doxbench_class_has_a_styles_rule(R2-INV-R9 part B, bucketopendox-defect).Falsifier:
tests/test_web_boundary.py) green on the new row. MET (below).Ruled: R9-W7 (#656
6021830531): the census chain is T025 (landed,84f8ed83), then T104, then T015, T016, T057, with T104 straight after T025. T104 (6022096172) is ruled YES in #6566022291206: T104's Files gaintests/test_binding_stylesheets.py's selector-class count pin, 572 to 574 for the two rules T104 adds.Decisions: SF is a traced singleton fix and edits no protected file. Rules in the neighbouring register (
.doxchat-unavailable), never an error colour;[hidden]twin as the neighbours carry.The defect
views/doxbench-chat.jshas constructed two classes since T081 (#74):doxchat-no-model(16.4's no-model remedy line) anddoxchat-untrusted(16.3a's trust remedy line).styles.csscarried no rule for either. The T100 P1-1 tripwire in openXdox-code reads exactly that, and is red in the composed run:The change (three commits, and two merges of main)
f9e7757c,src/opendox/web/styles.css, beside.doxchat-unavailable: one rule for the two classes (font-size: 12px; color: var(--muted); padding: 6px 8px; border: 1px dashed var(--border); border-radius: 6px; overflow-wrap: anywhere) and one[hidden]twin. They are the same quiet inline note as the neighbour, because each is a state with a stated repair, never an error.overflow-wrap: anywherebecause the text carries commands and the rail is a third of the width. The comment spells the two class names WITHOUT a leading dot on purpose: the tripwire asks whether the text.<class>occurs in the file, and a dotted mention would let it pass with the rules gone (a mutant below proved it). Andtests/fixtures/web_boundary_census.yaml: styles.cssloc2520 to 2539, class C's total 12769 to 12788, and the row's note records the step.f14497c7,tests/test_binding_stylesheets.py: the pinned count of classesstyles.cssdeclares in selectors, 572 to 574 (doxchat-no-model,doxchat-untrusted; both are named by openDox's bundle, so neither is an orphan). The test's own message says "if one arrived, re-derive this number and say so". The outline did not name this file; the first commit was red on this one test until the holder admitted it.d309e083,tests/fixtures/web_boundary_census.yaml, note text only (Copilot r4199454220): the Q7 sentence that said the file "declares" 572 selector classes is past tense and dated to that act, and this slice's step states the current 574.locand the totals are unchanged.The branch also merges
maintwice, never rebased:032f4542(T011,09b8d44a) and4a772b33(T014,a7a1c4d3). Neither touches a file of this PR.Falsifier, part 1: openDox-code's whole suite, as CI runs it
4a772b33(run 37540426868, all three checks green):validatepass, 13m54s,5524 passed, 11 skipped(sandbox required, PostgreSQL 16 service); the triple step printedtriple: selected=5535 passed=5524 skipped=11 failures=0 errors=0against floors3977 / 3966andskipped==11.acceptancepass, SonarCloud Code Analysis pass. The floors are unchanged: this PR adds and removes no test (the count moved only withmain's T011 and T014).f14497c7(before the merges):validatepass,5461 passed, 11 skipped;triple: selected=5472 passed=5461 skipped=11 failures=0 errors=0.f9e7757c(the red, as predicted):validatefail,1 failed, 5460 passed, 11 skipped; the one failure wastests/test_binding_stylesheets.py::test_the_design_tokens_and_the_shared_selectors_stayed(styles.css declares 574 classes in selectors and this census says 572). Nothing else was red.f14497c7: not completed. The local run was stopped at about 50% on the lane's drain order, so there is no local full-suite result at this head, and CI above is the full suite as CI runs it. Local evidence at this head's content:tests/test_web_boundary.pyandtests/test_binding_stylesheets.pyread34 passedwith the pin patch applied (before it was committed).Falsifier, part 2: the composed node, red then green (LOCAL demonstration, not the pin)
Form: R1Q23 (a). openXdox-code #44's head
b4993d1(T020 to T022 composed), openxFactory92010d3ewithopenDox,openXdoxandopenXwalletinitialized recursively, itsscripts/onPYTHONPATH, T022'sscripts/composed_placements.pyplaced first and--removed after (status clean), colour variables unset,TERM=dumb, short TMPDIR. openDox is installed (non-editable) from agit archiveof84f8ed83for the base and of this branch's first commit for the green run (the second commit changes a test of this repository only).tests/test_renderer.pyrun ALONE:84f8ed831 failed25 failed, 25 passed1 passed24 failed, 26 passedThe set difference of the two failed lists is exactly the one node (
diffshows onlytest_every_constructed_doxbench_class_has_a_styles_rule). The 24 left are other slices' (HH 12, DJ+VR 5, CP 3, LI 3, PI 1).Mutants
doxchat-no-modelremoved from both selector lists['doxchat-no-model']doxchat-untrustedremoved from both lists['doxchat-untrusted']locleft at 2520test_web_boundary.pycensus loc drifted ... [('styles.css', 2520, 2539)]test_web_boundary.pydeclared totals disagree with its own rowstest_binding_stylesheets.pyf9e7757c, above)[hidden]twin kept[hidden]rule itself has no test (the rule sets nodisplay, so the browser's own[hidden]already hides the line; it is kept for the neighbours' register).Review
Copilot reviewed
f9e7757c(one finding, the 572 pin: fixed by the second commit, replied and resolved),f14497c7twice (the description still calling the pin file excluded: fixed in the body; then the census note's 572 and 574 read as contradictory: fixed byd309e083; each replied and resolved),d309e083(Findings: None) and the final head4a772b33(Findings: None). Threads: 3, all resolved, 0 unresolved (GraphQLreviewThreads, read at the final head).Files
src/opendox/web/styles.css,tests/fixtures/web_boundary_census.yaml,tests/test_binding_stylesheets.py(admitted by6022291206).NOT done
🤖 Generated with Claude Code