Repository navigation
T007 batch N: record #1144's 12.4a addendum on the console token via the opened URL; plan 034's AT-R1 reads the private copy (RULED 5963851934) - #1222
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
This PR is bookkeeping only (T007 batch N). It records Brett Heap's multi-choice word of 2026-10-03 on
#656comment5963851934in #1144 (add-neutral-product-standalone-operability), and it carries the plan-034 lines that follow from it. Plan 034 was read atmaindca40ca3, which is #1221 (the phase-3 ticks), after #1220 (T099 and T101–T104).The design is the holder-approved one, which T104 (#1220) already plans. It covers the standalone default profile only, and it includes the holder's ruling on #1220's Copilot thread
r4171166321: the copy refuses anOPENDOX_STATE_DIRthat is the served root or lies under it.The #1144 amendment (12.4a)
Where it goes. An
AMENDED — T007 Batch N (5963851934)addendum at box 12.4a, after its prose and before 12.5. In all of #1144, 12.4a's human-console test (tasks.md:2123, "the per-serve token, a trusted loopbackHost, …") is the one line that names the token.Why it is a task-line addendum and not a spec-delta note. No ratified requirement or scenario text names how the token is delivered. In the spec delta (
specs/neutral-product-standalone-operability/spec.md),console_token,console tokenandcapabilitieseach occur 0 times (grep -c -i). No #1144 falsifier reads the token from/capabilitieseither:/;installblock (json.load(...).get("install"));tests/test_submit_route.py::test_submit_route_is_refused_without_the_console_token, sends a request without the token, so it is unchanged.So this has the form of batches A–J and L, not of batches K and M, which add dated notes to the spec delta.
What it records, measured at openDox-code
main1130e996. A serve that grantssessionmints the token (mint_console_token,serve.py:617, called at:1977) and publishes it on/capabilities(:1980). The web bundle reads it from there (web/app.js:1459-1471,web/views/edit.js:10-26). On a standalone plane, the one built from openDox's own default profile:/capabilitiescarries noconsole_token;<state_dir>/console/<port>.htmlunderOPENDOX_STATE_DIR:r4171166321). So is a served root that is, or lies inside, the state directory,<state_dir>/consoleitself included: the holder's ruling on this PR's review (r4174345203), a hardening of the approved design./sourcealready refuses a path that leaves its root through a symbolic link (default_registry.resolve_within, openDox-codemaine49b17c3). The static bundle's route, which follows links inside--web-dir, answers 404 for GET and HEAD to anything whose resolved target is the copy's directory or inside it (doxBench R-8 (V2 family): lens subtabs + docs subpane wheel split with distilled abstracts #84'ssend_headguard);…/index.html#console_token=<token>, using the fragment and never the query;file://URL, with or without--no-open, and never prints the token or a URL that carries it, so standard output and CI logs stay clean. openDox-code#84's headcb899546printsconsole {console.file_url} (this user's private copy, …);/capabilities;The addendum is carried out by T104.
Plan 034
AT-R1, which is this feature's text and not File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144's:
spec.mdstep 4: whether or not--no-openis given, the command writes the private copy and prints itsfile://location. Without--no-openthe command hands the copy to the browser; with it, as AT-R1 runs, the page is opened by loading that URL./capabilitiescarries no console token.quickstart.md§ 3 reads the token from$OPENDOX_STATE_DIR/console/$PORT.html. It checks that the directory is 0700 and the file 0600, both this user's own. It requires everyconsole_token=in the copy to open a fragment. It also parses the meta refresh's target URL, which must be exactly this server'shttp://127.0.0.1:$PORT/index.htmlwith an empty query, and it reads the token from the fragment. It also asserts thatcaps.jsonhas noconsole_token. The catalog request reads its header from stdin (printf … | curl -H @-), so the token never sits on a command line. The raw/capabilitiespayload must carry the token neither by name, at any depth, nor by value.quickstart.md§ 4 step 1 loads the copy'sfile://URL instead of the bare page.I ran § 3's extraction against T104's own
write_private_copy(on T104's openDox-code branch, read only). The token it read matched the one written. Seven altered copies stopped the run:nextquery parameter;T007:
Ruled:entry and itsAfter, by batchline. That line names openDox-code#75 (AT-R1's HTTP half), because a task id in that field would read as a predecessor;cc775fea) in theLanded:line and on M's bullet;T104 (the analyze pass's H1): its task text gains "The private copy, exactly". That covers:
<state_dir>/console/<port>.html, a 0600 file in a 0700 directory;<script type="application/json" id="opendox-console">, withschema_version1,kindopendox-console-access,page_url,opened_url,port,pidandconsole_token. These are the seven keysconsole_access.pywrites at doxBench R-8 (V2 family): lens subtabs + docs subpane wheel split with distilled abstracts #84'scb899546;--no-open;kill.Its falsifier lists what T104's PR must prove for every point of the addendum, the stale-tab limit aside:
r4171166321,r4174345203);/sourceanswers 404 through an outward link;index.htmlorindex.htmlinks to the copy.It is a requirement on T104, not a claim about doxBench R-8 (V2 family): lens subtabs + docs subpane wheel split with distilled abstracts #84. At
c979747a, doxBench R-8 (V2 family): lens subtabs + docs subpane wheel split with distilled abstracts #84 has the static guard and the served-root cases. It still needs the writer's mode check (itswrite_private_copyreplaces any of this user's own single-link files whatever the mode), the writer and entry-point regressions, a non-blocking reader, and the guard on automatic index files.The analyze pass's stale token sites, each covered:
--no-open;:2333test is unchanged in kind.openDox-code#75's body is T095's writer's.
T095: its
After:keeps Plan 034: add T099, T101, T102, T103, T104 (RULED 5962754358, 5963162921, 5963618568, 5963851934) #1220's T104 and addsT007 (batch N). T104's "Batch N, pending." bullet becomes "Batch N.", which names what this batch records and moves.The rest of
tasks.md:plan.md:Gates
Each was run at
7746a50dand atmainde2ab703(--change, doc-health and the catalog again ata4bb8d8f), in two full clones of the same kind. Each clone sits in a directory namedopenxFactory, withremote.origin.urlset to opensoft/openxFactory.mainde2ab7037746a50dpython3 scripts/validate-openspec-cli-pin.py --all --strict(pinned 1.12.0)110 passed, 1 failed (111 items),0 UNDISPOSITIONED failures, with 1 accepted exception (add-chain-attestation)… --change add-neutral-product-standalone-operability1 passed, 0 failed,validated --strict cleanpython3 scripts/doc-health.py --single-repo . --as-of 2026-10-03box_census.pyover #1144'stasks.mdtotal 125: 105[ ], 11[x], 9[~]Also passing on both:
proposal-support.py . verify add-neutral-product-standalone-operability;validate-sequenced-after.py . --ledger-diff(229 rows);validate-code-surface.py,validate-target-release.py,validate-document-catalog.py(0 errors, 0 warnings) andvalidate-pin-registrations.py.Earlier heads,
2ce6c8f3againstmainec9308c8and thencce8c96band93e83501, read the same. Atc954da69, which mergesmainf261fefa(#1223),--alland--changeread the same, the document catalog has 0 errors and 0 warnings, and the plan tools read 96 tasks, 110 nodes and 269 edges, with 0 chain gaps and 0 arrow mismatches. The plan checks there read the same numbers as below.At
7746a50d, as at49aab763,pytest -q tests/doc-health/test_modified_block_currency_self_gate.py tests/sequenced_afterreports 306 passed.The plan's consistency checks. The persisted parser in opensoft/brett-wip (
handoffs/xFactory/attachments/lane-opendox/r1plan/tools/) is widened to batch N in brett-wipe5302284, in the form of batch M's712aedad:BATCHES = "ABCDEFGHIJKLMN", every[A-M]made[A-N], plus its docstring and the README line. Batch N adds no single-writer file, so the chain tools are unchanged.mainat 96 tasks, 109 nodes and 267 edges.chaindirectpairs;sharedfiles, 81 shared pairs, with only the 4 known phase-1 pairs NOT ORDERED;mainuntil this PR lands ("names no line for ['N']"), as batches K, L and M did.Review
2ce6c8f3cce8c96b: T104's falsifier lists every point and the addendum sets the stale-tab limit aside; § 3 parses the opener's target; the row cites batch N's run. All three are answered and resolvedcce8c96br4171166321, which is not part of596385193493e83501: cited in the addendum, which now names its details as the holder's approved design, and in batch N's bullet, T007'sRuled:line and the N row; answered in comment597087224493e83501file://URL the command printed" while the addendum said the path is printed919cf14e: one wording everywhere (the location as afile://URL, never the token), matching #84'scb899546; answered in comment5972080941919cf14econsole_token, not that the token's value stayed out of the request target (medium); AT-R1 step 4 said the page is opened "with or without--no-open" (low)9b019b35: the target must be this server's/index.htmlwith an empty query (four altered copies refused); step 4 separates writing the copy from opening it. Both answered and resolved9b019b35<state_dir>/console, or an outward symlink (medium)d115b41a/defe1adf: the holder ruled to keep the widening. The state directory and every served root may not overlap in either direction;/sourcerefuses symlink escapes; T104's falsifier gains both cases. Answered and resolvedc954da693ce22a5f: the static route's 404 invariant is recorded; the static case is added; the START and READ cases are separated, with only this user's own 0600 earlier copy replaced; the body no longer claims #84 has every case. All three answered and resolved7746a50da4bb8d8f: the header goes over stdin; plan.md says each batch lands before the task that needs it, and N before T095. Both answered and resolveda4bb8d8f/capabilitieswas checked only for a top-level keyefbc29da: a preceding#is required; the raw payload must carry the token neither by name nor by value. Answered on the PRefbc29da6c62a776: GET and HEAD cases for a directory whoseindex.htmlorindex.htmlinks to the copy, with the guard judging the final served file; a FIFO is refused at the start and at once on read, since the reader never blocks. Answered and resolved6c62a77602ec4f92: T095 asserts the raw payload carries the token neither by name nor by value; T104 refuses a served root that is a symbolic link into the state directory. Answered on the PRFor the holder
8c43ce02). The evidence PRs T077: run F10.1 as batch H amends it, at openDox-code 8e377823 (plan 034) #1223 and T074: run F13.1 as batch H amends it, at openDox-code 90ac7033 (plan 034) #1224 and the analyze-fix PR also edit plan files. Whichever is clean first lands first, and I mergemainagain right before READY-CANDIDATE.chaincheck.pyandchaindirect.pyin brett-wip do not yet carry Plan 034: add T099, T101, T102, T103, T104 (RULED 5962754358, 5963162921, 5963618568, 5963851934) #1220's chains:serve.py→ T103 → T104,cli.py→ T104, and openDox-codepyproject.toml→ T075 → T101. I tested those chains in a scratch copy that I did not commit. They read 0 gaps and 52 pairs on this branch, and T084 → T104 oncli.pyis transitive through T102. Persisting them is your call, and it is outside this batch./capabilitiespayload carries the token neither by name nor by value. To match § 3 it should also check that the copy's modes are 0700 and 0600, and send the header without putting the token on a command line.r4174345203) is recorded in the addendum, in T104 and in the N row. doxBench R-8 (V2 family): lens subtabs + docs subpane wheel split with distilled abstracts #84 atc979747ahas the reverse check and the static guard. It still needs the writer's mode check (a loosened own file at the copy's path must refuse the start, not be replaced) and the writer and entry-point regressions before T104 lands.sessionStorage(T104'sweb/views/notebook.js), so after a restart its guarded requests are refused until the page is reopened through the new copy. Strike or correct it if that is not the limit you accepted.Landing
It touches
openspec/changes/, so it lands under a Rule 6LANDING/LANDEDwindow. It is bookkeeping, so it carries noArc:trailer (R1Q20 (a)) and no closing keyword. The holder posts READY and lands it.🤖 Generated with Claude Code