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
T007 batch M: record #1144's amendment for per-machine binding trust (16.3a); plan 034 T100 (RULED 5962785556) - #1219
This PR is bookkeeping only (T007 batch M). It records Brett Heap's multi-choice word of 2026-10-02 on #656 comment 5962785556, item 2, in #1144 (add-neutral-product-standalone-operability). It also adds plan 034's new task, T100, which realizes it. Plan 034 was read at main9093fdee, and this branch has merged maina883bbf6 (#1218, T063's checkpoint, which rewrote T007's batch-L lines).
The ruling
A served repository's model-bindings document: "Trust per machine (Recommended)". It works like direnv. A binding read from the served repository runs a broker, or resolves a credential reference, only after the operator has trusted that exact binding on this machine. The trust is recorded outside the repository, in the operator's own state, and keyed to the binding's content, so an edited binding is untrusted again. opendox model-binding add (and edit) record the trust for the binding they write. A cloned or hand-edited binding is refused by name until opendox model-binding trust <id>. Bindings stay committable. This needs a File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144 amendment (batch M, recorded by T007) and a new phase-3 task (T100).
Item 1 of the same comment (F5.2 closes at phase 3) amends nothing in #1144 ("#1144's text is unchanged"). #1218 carried it into plan 034.
The defect, reproduced by this batch's writer
The broker half, at openDox-code main047bb4fa.
Both entry points read the bindings from the repository they serve: cli.py:618 and serve.py:2214 call declared_model_port_factory with the served --repo-root (cli.py:567), and the factory reads bindings_path(checkout_root) (doxbench_install.py:316).
A binding written into that file by hand passes no approval. The intake's pending list holds back only the bindings its own wizard wrote (:324).
Run in process with PYTHONPATH=src:
port: BrokeredProviderPort catalog: [('helpful-model', True)]
dispatch raised BrokerRefused
--- the file the binding's broker_argv wrote:
uid=1000(brett) gid=1000(brett) groups=1
The hand-written broker_argv was ["/bin/sh", "-c", "id > <scratch>/ran-by-the-file"]. It was offered as available, and it ran on the first dispatch, before the refusal.
The env: half, at openDox-code#64's head f8bc8aca. That head stacks on T078–T080's drafts, which add 16.3's built-in resolver. The adversarial review's own script ran there: a served corpus's hand-written binding with credential_ref: env:ADV_UNRELATED_CLOUD_SECRET sent the variable's value to the endpoint the file named.
So "already on main" holds for the broker half. The env:/keyring: half arrives with T080 (openDox-code#63), which lands before T100.
model-binding set-credential runs a declared binding's broker too (cli_model_binding.py:135-139). The console intake's hand-off (serve_workbench.py:1127) runs a broker that the served repository's intake declarations name.
Box 16.3a, after 16.3's batch H and K addenda: "A served repository's bindings are TRUSTED PER MACHINE." It is the first box added after ratification. It carries an ADDED — T007 Batch M marker, and it rewrites no ratified line.
F16.1's AMENDED — T007 Batch M block, after F16.1's prose. The runs that use F16.1 (T083 and T089) also run one more line, python -m pytest -q tests/test_model_binding_trust.py. The block names that test's seven cases, each run over three sentinel bindings (a marker-writing broker, an env: reference and a keyring: reference with a recording stand-in keyring):
an untrusted binding is refused by name, with nothing spawned, read or looked up, on a chat turn and on set-credential, with the factory's notice and model-binding list naming the trust command. The console intake's hand-off refuses a broker the served repository's declarations name;
add records trust;
an edit of any field of the record untrusts it, and edit or set-credential re-trusts;
trust records, printing nothing secret and every value escaped;
a binding moved to another root is untrusted;
the trust file is checked, including an OPENDOX_STATE_DIR equal to or nested under the served root;
the policy seam: a bare process gets the strict default lazily, and a host policy registered first is not replaced.
The block's other lines are unchanged.
A dated note in requirement 17's body in the spec delta, after batch K's note and in batch D's form. The parser still reads the requirement's first line as A neutral product that offers model-assisted chat SHALL reach ANY endpoint that. The requirement keeps 4 scenarios, and the capability keeps 76.
Why the spec delta too, as batch K did and batch L did not
Batch L stayed in tasks.md because "no requirement or scenario text says a standalone plane offers gate actions, so nothing ratified is contradicted."
Here something ratified is narrowed. Requirement 17's SHALL reaches an endpoint "configured by an endpoint URL, a model name and a credential reference". Scenario 17.1's THEN says "chat turns go to that endpoint … and the credential is resolved from the reference for the call". Under the ruling, a configuration read from the served repository that this machine has not trusted gets no turn and no resolved reference.
The note rewrites nothing. The title, the SHALL paragraph, batch K's note and all four scenarios stand.
proposal.md and design.md § D14 are left unchanged, as batches K and L left their packet prose.
The rule 16.3a records
The rule. A binding read from the served repository runs a broker, or resolves any credential reference (env:, keyring: or a broker's), only once the operator has trusted that exact binding on this machine. That holds on a chat turn, on set-credential, and on the console intake's hand-off.
Where trust lives. A file under OPENDOX_STATE_DIR, never in the repository.
The name and default are from openDox-code#69 (T072): unset, it is $XDG_STATE_HOME/opendox where that is absolute, and otherwise ~/.local/state/opendox. config.state_dir() refuses a relative path or one with ...
The file is owner-only and holds no credential.
It is read only once it passes the checks Speak nlm notebook create in the plain form 0.5.26 accepts (F8 drift) #69's bundle makes of its own tree (BundledServer._refuse_an_unsafe_tree, _unsafe_because). The file and the directories that hold it are real (no symbolic link), owned by this user and writable by no one else. Each directory above them is this user's or root's, and sticky where another user can write it.
A trust file that fails a check is refused by name, and every binding then reads untrusted.
An OPENDOX_STATE_DIR equal to the served root, or nested under it, is refused by name before anything is written, because config.state_dir() accepts any absolute path free of .. (Copilot's finding).
What a trust names. The repository root's resolved path, the binding's id, and a digest of the binding's full record. Any edit untrusts the binding, and so does a move, copy or clone under another root.
What records it.
add and edit record trust for the binding they write.
trust <id> prints the broker argv, the endpoint, the auth kind and the credential reference, never the credential. It resolves, runs and contacts nothing, and records trust for exactly the record it printed. It takes no --yes.
set-credential on a TRUSTED binding re-records trust for the record it rewrites. It never makes an untrusted binding trusted.
What an untrusted binding gets.
It is refused by name before any spawn, read or contact. The refusal names its id and opendox model-binding trust <id>, never a secret.
The catalog lists it with available: false. The catalog's entry is a closed shape (xfactory-workbench-model-catalog, additionalProperties: false), so the reason is not a key in it. It rides the turn's refusal (the chat-turn failure's message), the factory's notice beside its pending-binding one, and model-binding list.
Bindings stay committable.
Whose rule it is. openDox's neutral default, and a strict one. Its consumers register it lazily, the first time one asks and only where nothing is registered yet, so a bare process is held to it too. No entry point registers it. A host's own registration wins.
The holder decided four points on 2026-10-02:
set-credential's re-trust;
no --yes (the writer's proposal, confirmed);
the reason's three carriers (accepted);
the lazily registered strict default, in place of entry-point registration.
Plan 034
T100 [US3] [oDc] "16.3a: a served repository's bindings are trusted per machine."
Realizes: 16.3a.
Falsifier: F16.1's batch M block, and tests/test_model_binding_trust.py.
Ruled: R1Q22 (a), 5817152735; 5962785556, item 2.
After: T080 and openDox-code#64 (the broker hardening, which is no task of this plan); T081 (doxbench_install.py's single-writer order); T072 (the state directory); T084; T007 (batch M).
T084's reason, on the holder's correction: T100 edits neither cli.py nor serve.py. Its edit to the console intake's hand-off in serve_workbench.py overlaps T084's openDox-code#77.
The other bullets: the gate's sites, the record and its checks, the verbs, the refusal, the seam, the suite kept off the operator's state, and the downstream help-tree change.
T007:
batch M's bullet, citation, Ruled entry and After, by batch line. M's line names the landing it precedes by slice (P3-T's), because a task id there reads as a predecessor;
the CLI help golden tests/ideation-dashboard/fixtures/cli-help-tree.golden.txt goes from 31 sections to 32 at phase 3's pin, with T079's --model beside T100's model-binding trust;
it is NOT one of 11.1's declared surfaces (F11.1's guard: elif p != MANIFEST: breach.append(... touched ...)), so T094 needs a T066-style non-arc PR ahead of it, or a ruled admission.
the dependency order, and the phase-3 parallel row;
the phase-3 slice intro, a new P3-T row, and the P3-N and checkpoint rows;
§ "Ruled amendments": its heading, its intro, an M row, and item 1's sentence.
plan.md:
70 of 125;
91 tasks, T001–T100;
batches A–M in the graph, and a 16.3a line;
the phase table;
single-writer rows: doxbench_binding.py gains T100, and three rows are new (cli_model_binding.py, doxbench_install.py, and phase 3's serve_workbench.py);
the amendments list.
spec.md: FR-009, US3's independent test and a sixth acceptance scenario, an edge case, the Binding trust entity, SC-003 and SC-006 (65 of 70; 63 by T097).
clarify-questions.md: R1Q22's header gains T100, which edits carved files, so qcheck stays at 27 of 27.
Gates
Run at 3d015854 and at maina883bbf6, in two full clones of the same kind. Each sits in a directory named openxFactory, and each has remote.origin.url set to opensoft/openxFactory, because doc-health reads the directory name and the pin reads its dispositions' scope from that URL.
validate-code-surface.py, validate-target-release.py, validate-document-catalog.py (0 errors, 0 warnings) and validate-pin-registrations.py.
On the branch at b8b8e7e4: pytest -q tests/doc-health/test_modified_block_currency_self_gate.py tests/sequenced_after reports 306 passed.
The later heads change text in #1144's tasks.md and in plan 034's files only. 709de15d, df976561 and 3d015854 change the two tasks.md, and 0423beb6 changes checklists/requirements.md and plan.md's Principle V row. At each, --change add-neutral-product-standalone-operability validates clean. At 709de15d the doc-health report was byte-identical to main's again. The plan checks, re-run at df976561 and 3d015854, read the same numbers as below, and box_census.py still prints total 125.
A correction of this body's first version. It reported the --all gate at rc 1, with add-chain-attestation not dispositioned, on main and branch alike. That was the clone kind: those clones were local copies whose remote.origin.url named a path, so the pin left openxFactory's dispositions out of scope. Re-run with the URL set to opensoft/openxFactory, both read rc 0 with the one accepted exception, as the table says.
The plan's consistency checks. The persisted tools in opensoft/brett-wip (handoffs/xFactory/attachments/lane-opendox/r1plan/tools/) are widened to batch M in brett-wip 712aedad, on the holder's word, in the form of batch L's 86ae7042:
aftergraph.py: BATCHES = "ABCDEFGHIJKLM", every [A-L] made [A-M], its docstring, and the README line;
chaincheck.py and chaindirect.py: T100 joins doxbench_binding.py's chain, and three chains are added: cli_model_binding.py (T079 → T080 → T100), doxbench_install.py (T081 → T100) and phase 3's serve_workbench.py (T084 → T100).
Results:
The A–L parser reads main at 90 tasks, 102 nodes and 225 edges.
The widened tools read this branch at 91 tasks, 104 nodes and 233 edges:
no cycles, as written or with the Lands-with groups merged;
0 chain gaps, and 47 chaindirect pairs;
0 of 68 arrow mismatches;
no phase gaps;
sharedfiles reports the 4 known phase-1 NOT ORDERED pairs. P3-T's shared files are each ordered: serve_workbench.py with P2-R and P3-R, cli_model_binding.py with P3-B, and doxbench_install.py with P3-D;
qcheck 27 of 27.
The widened parser refuses main until this PR lands ("names no line for ['M']"), as batches K's and L's did.
Review
Copilot at
verdict
threads
answered in
b8b8e7e4
Changes recommended
an OPENDOX_STATE_DIR equal to or nested under the served root would put trust in the committable tree (high)
df976561: refused by name before anything is written, in 16.3a, T100 and F16.1's trust-file case
709de15d
Needs a closer look
the same thread, plus four notes listed as previously missed: keyring: coverage, the console hand-off and the reason carriers, digest coverage of every field, and the policy seam
df976561: a third sentinel binding (keyring:), the refusal case widened, the edit case over every field, and a seventh case for the seam
df976561
Changes recommended
the intake's broker comes from model-declarations.yaml, so no binding trust can admit it (high); a previously-missed note asks for escaped display of untrusted values
3d015854: under the neutral default the hand-off refuses it by name (fail-closed; standalone the intake is offered: false, 5961364221 item 1), and every printed value and id is escaped in a JSON string's form, with a control-character case
3d015854
Needs a closer look, no findings and no threads
two previously-missed notes: plan.md's Principle V row and checklists/requirements.md still read the planning PR's facts and 124/69
0423beb6: both refreshed; the checklist records that no analyze ran over T100
For the holder
T094's help golden. It needs a T066-style non-arc PR ahead of it, or a ruled admission. This was already true for T079's --model (openDox-code#62's body). T100 adds the 32nd section.
No /speckit-analyze over T100.evidence/analyze-round-3.md is a record and still reads 90 tasks and 124 boxes. This revision ran the plan-consistency checks instead, and checklists/requirements.md now says so. A fresh analyze is yours to call.
How an intake declaration's broker is trusted. The intake's broker comes from ideation/dashboard/model-declarations.yaml, which is no binding. Under the neutral default 16.3a and T100 make its hand-off refuse by name. That is the fail-closed reading, and it costs nothing standalone, where the intake is offered: false (5961364221, item 1). A positive path, meaning a command that trusts such a broker and what that trust names, would need a ruling. Until then only a host's own policy admits one.
Escaped display (Copilot's note): trust, list, the refusals and the factory's notice print untrusted values in a JSON string's form. That is a safety requirement of the writer's, not part of the ruling's text, for you to keep or strike.
Landing
It carries no Arc: trailer (R1Q20 (a)), and no commit or line of this body carries a closing keyword.
It touches openspec/changes/, so it lands under a Rule 6 LANDING/LANDED window, which the holder's kit runs. The holder lands it.
…(16.3a); plan 034 T100 (RULED 5962785556)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Bookkeeping only. Records Brett Heap's word of 2026-10-02 on #656 comment
5962785556, item 2 ("Trust per machine (Recommended)"), in #1144
(add-neutral-product-standalone-operability) as T007's batch M, and adds
plan 034's T100, which realizes it.
- #1144 tasks.md: box 16.3a (added after 16.3's addenda), and an
"AMENDED -- T007 Batch M" block for F16.1 that adds one line,
tests/test_model_binding_trust.py, and its six cases. No ratified line
is rewritten.
- #1144 spec delta: a dated note in requirement 17's body after batch K's,
in batch D's form. The title, the SHALL paragraph and all four scenarios
stand.
- plan 034: T100; T007 (batch M's bullet, Ruled, After-by-batch and
Landed lines, with batch L's landing #1212 -> 2140f5a); T083, T087,
T088, T089, T094 (the CLI help golden goes 31 -> 32 and is not an 11.1
declared surface), T097; box accounting 125 / 70 / 63; the P3-T slice;
the dependency text; Ruled amendments; plan.md; spec.md FR-009, US3,
SC-003, SC-006; and R1Q22's header in clarify-questions.md.
No Arc: trailer (R1Q20 (a)). Lands under a Rule 6 window.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
#1218 rewrote T007's batch-L lines and moved F5.2's close to T089 (RULED
5962785556, item 1). The conflicts keep batch M's and T100's lines and #1218's
F5.2 lines together: T089 runs F5.2 whole and F16.1 as batch M amends it.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This bookkeeping-only PR records ruling 5962785556 as T007 batch M: it adds the 16.3a per-machine binding-trust requirement, acceptance coverage, and plan task T100, then updates dependency, ownership, amendment, and box-accounting metadata while preserving existing ratified prose.
Sequence diagram for per-machine model-binding trust enforcement
sequenceDiagram
participant Operator
participant CLI
participant TrustStore
participant Binding
participant Broker
participant Endpoint
Operator->>CLI: trust(id)
CLI->>Binding: read binding
CLI-->>Operator: print broker argv, endpoint, auth kind, credential reference
CLI->>TrustStore: record(root path, id, digest)
Operator->>CLI: chat turn or set-credential(id)
CLI->>Binding: read binding
CLI->>TrustStore: check(root path, id, digest)
alt trusted exact binding
CLI->>Binding: resolve credential reference
CLI->>Broker: run broker
Broker->>Endpoint: send request
else untrusted binding
CLI-->>Operator: refuse by id and trust command
CLI-->>Operator: available false
end
Loading
Flow diagram for model-binding trust lifecycle
flowchart TD
A[Binding read from served repository] --> B{Exact trust record exists?}
B -- No --> C[Refuse by binding id]
C --> D[No broker spawn, credential read, or endpoint contact]
B -- Yes --> E[Run broker or resolve credential]
E --> F[Proceed with chat, set-credential, or intake hand-off]
G[model-binding add or edit] --> H[Write binding and record trust]
I[model-binding trust id] --> J[Show non-secret binding details]
J --> K[Record exact binding trust]
L[Binding edited or moved to another root] --> M[Digest or root mismatch]
M --> C
Loading
File-Level Changes
Change
Details
Files
Records the per-machine trust ruling as a specification and plan amendment without changing ratified requirement or scenario text.
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!
…tence
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Wording only: "all three" undercounted the four paths 16.3a names, and one
sentence wrapped short. No rule changes.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The rule explicitly includes keyring: references, but every case exercises only broker and env: bindings. A kind-specific keyring path could resolve a secret before trust while this security gate remains green. Add an instrumented keyring binding that proves no lookup occurs before trust and that the trusted path still works.
This case covers chat and set-credential, but not the separately mandated console-intake broker hand-off or the required factory-notice/model-binding list diagnostics. F16.1 could therefore pass while that hand-off still runs an untrusted broker or those reason carriers are absent. Extend the acceptance case to exercise all three paths.
The trust key is required to digest the full ten-field record, but this test mutates only four fields. An implementation that omits model, dialect, auth_kind, or another field from the digest would still pass and could keep a materially changed binding trusted. Parameterize this case over every binding field using valid replacement values.
No listed case verifies the new policy seam even though 16.3a requires a lazily installed strict default and says a host registration wins. Without this, an implementation that eagerly overwrites a host policy (or leaves a bare process permissive) can satisfy the six cases. Add a seam case for both the bare-process default and a host registered before first use.
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
- The open thread: the trust file's resolved path is checked against the
served root, because config.state_dir() accepts any absolute path free of
"..". An OPENDOX_STATE_DIR equal to the served root, or nested under it, is
refused by name before anything is written, and every binding reads
untrusted. 16.3a and T100 say so, and F16.1's trust-file case covers both
the equal and the nested setting.
- The four "previously missed" notes, in F16.1's block: a third sentinel
binding with a keyring: reference and a stand-in keyring that records
lookups; the factory's notice, model-binding list and the console intake's
hand-off in the refusal case; the edit case over every field of the record;
and a seventh case for the policy seam (a bare process gets the strict
default lazily, and a host policy registered first is not replaced).
- 16.3a names the intake's declarations file
(ideation/dashboard/model-declarations.yaml, doxbench_intake.py:154).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Require an escaped display format here. These values come from an untrusted repository, and the current binding validation accepts any nonblank string for broker argv members and most fields; printing them directly permits terminal-control/newline injection when the operator runs the very command intended to inspect an untrusted clone. Specify JSON/repr-style escaping (including the id used by refusals) and add a control-character test before recording trust.
… print escaped (Copilot at df97656)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
- The intake's broker comes from the served repository's
ideation/dashboard/model-declarations.yaml, which is no binding, and no
command that trusts it is ruled. So under the neutral default the hand-off
refuses it by name, the fail-closed reading (Principle VII). Standalone,
the intake already answers offered: false (#656 5961364221, item 1), and a
host's own policy may admit it. F16.1's refusal case uses a stand-in host
that offers the intake and registers no policy.
- trust <id> prints each value escaped, in a JSON string's form, and the
refusals, the factory's notice and model-binding list print the id the same
way. F16.1's trust case adds a binding whose id, label and one broker argv
member carry a newline and a terminal escape.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Batch M makes the Constitution Check stale. plan.md:121 still says this PR touches no openspec/ path and that the pinned all-changes gate exits 0 with zero undispositioned failures, but this diff changes two OpenSpec files and the PR's gate report records exit 1 for the undispositioned add-chain-attestation finding. Refresh the Principle V row with this revision's actual scope and baseline; as written, the plan records a PASS using facts that are no longer true.
Refresh stale readiness checklist and consistency analysis
The new 125/70 accounting leaves the feature-readiness record stale: checklists/requirements.md:42,48-49 still asserts 124/69, while evidence/analyze-round-3.md:183-204 explicitly analyzed 90 tasks, 124 boxes, and an FR-009 mapping without T100. Because that checklist also claims the analysis is clean “for this revision,” refresh the checklist and record a consistency analysis that includes T100/16.3a before treating the amended plan as implementation-ready.
…V row for batch M (Copilot at 3d01585)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
- checklists/requirements.md: the box accounting sums to 125 and release 1's
70 = 64 + 1 + 1 + 4, with 16.3a on T100. A note records that no
/speckit-analyze ran over batch M's revision (analyze-round-3.md is a
record and still reads 90 tasks and 124 boxes), what ran instead (the
persisted plan checks widened to batch M, brett-wip 712aedad), and that a
fresh analyze is the holder's to call.
- plan.md, Principle V: T007's batch PRs touch #1144's openspec/ files and
record their own gates. Batch M's pinned --all gate is rc 0 with
0 UNDISPOSITIONED failures and the one accepted exception, byte-identical
at main a883bbf and at its head, in clones whose remote.origin.url is
opensoft/openxFactory, the URL the pin reads its dispositions' scope from.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This leaves T094 with an unresolved, unowned prerequisite: neither the required non-arc PR nor the alternative ruled admission is represented by a task or dependency. That contradicts plan.md:124's claim that every material ambiguity is resolved and no task is blocked, and .specify/memory/constitution.md:127-132 requires ambiguities to be resolved through the tasks/analyze workflow before implementation. Record one chosen path and order T094 after it so the release plan is executable rather than relying on an out-of-band holder decision.
READY at 0423beb — Brett: "Trust per machine (Recommended)" (#656 5962785556 item 2) asks for this amendment; the ruled batch amendments land when green. The holder reviewed 16.3a and F16.1's batch M block as quoted, and checked: all 15 checks green, 0 unresolved threads, no Arc: trailer, no closing keyword. It touches openspec/changes/, so it lands under a Rule 6 window. #1220 merges main after it. Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Union resolution in tasks.md, plan.md and clarify-questions.md: T100
keeps main's text; T083's After keeps main's T100; T087's After reads
T088, T100, T101; box row 16 (8) keeps 16.3a and gains T102 at 16.4;
the count line reads 95 tasks, T001-T103, box accounting 70 of 125;
R1Q22's header lists T100, T102 and T103; the slice table keeps P3-T
and P3-N beside P3-S and P3-V; T101 lands after T100 too.
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…921, 5963618568, 5963851934) (#1220)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Plan 034 gains five tasks:
- **T099**, the PyPI publish;
- **T101**, T099's release step;
- **T102**, the staging workbench offers the editors and the chat rail by scope;
- **T103**, every loopback route checks the Host;
- **T104**, the console token travels in the opened URL, not `/capabilities`.
This is bookkeeping in this feature's plan files only (`specs/034-opendox-standalone-operation/tasks.md`, `plan.md` and `clarify-questions.md`). It carries no `Arc:` trailer (R1Q20 (a), T091) and touches no `openspec/` path, so no Rule 6 window applies. `main` (`cc775fea`, #1219's T100 and batch M) is merged in.
**Rulings**
- **The publish**: `5962754358`, item 1 (Brett Heap, 2026-10-02), *"Publish to PyPI at the cut (Recommended)"*.
- **The version and the release commit**: `5963162921`, *"0.1.0 (Recommended)"*. The bump is the last phase-3 openDox-code landing, and T087 pins that commit. The release workflow publishes only the commit that the openDox root's `contracts/code-pin.yaml` names.
- **The split into T101 and T099** is the holder's decision of 2026-10-03, after Copilot's review of this PR at `00a5bdae`. The plan graph now enforces the order: the bump lands last, T087 pins it, and the publish follows.
- **T102**: `5963618568` (Brett Heap, 2026-10-03), *"Edit and chat by scope (Recommended)"*.
- **T103**: the holder's decision of 2026-10-03, after adversarial review 2 (M4 and L2).
- **T104**: `5963851934` (Brett Heap, 2026-10-03), *"Token via the opened URL (Recommended)"*, after adversarial review 2 (M5). Its placement in this PR is the holder's ruling of 2026-10-03, after Copilot's review at `8afbe3bc`.
**The holder's other answers carried here**
- T097's `After:` names T099.
- The plan text gives the release order and the tag step.
- openDox-code's `pyproject.toml` single-writer order puts the release step after T072 (openDox-code#69) and T075 (openDox-code#73).
- T101 waits for T102, T103 and T104.
- T095 waits for T104, because its harness reads the token's private copy.
**The realization**
- openDox-code#78: the release workflow (DRAFT, T101).
- openDox-code#79: the bump to 0.1.0 (DRAFT). It is T101's last landing, right before T087.
- The dispatch at the cut (T099).
- T102, T103 and T104 have no PR yet.
## What changes
**tasks.md**
- **T099** `[US3] [oDc] **Publish to PyPI (10.3's install line).**` sits in Phase 3 beside T076 (Group 10). It is the publish alone.
- **Realizes**: 10.3.
- **Falsifier**: three steps.
1. The release workflow's `build` job (its artifact checks).
2. A TestPyPI dry run, installed in a fresh venv with `pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "opendox[local]"`.
3. The PyPI publish at the cut.
- **Ruled**: `5962754358`, item 1; `5963162921`.
- **After**: T101, T087, T089, T096. T096 is the holder's ruling of 2026-10-03, after Copilot's review at `ae7903b8`, so AT-R1 passes before the irreversible upload.
- **The cut**: once AT-R1 has passed, on Brett Heap's publish word, the holder creates `v0.1.0` at the pinned commit and dispatches on that tag. A dispatch may name `main` only while `main`'s head is still the pinned commit. Brett approves each environment.
- **Then the root README** (the holder's ruling of 2026-10-03, which follows from `5962754358`). T076's README (openDox#17) keeps a dated paragraph, "Where `opendox` comes from", saying no release is on PyPI yet. After the `pypi` job's check that PyPI serves exactly the verified files, a small openDox root PR in T099's landing replaces that paragraph with the PyPI install line, `pip install "opendox[local]"`. T099 is tagged `[oDc] [oD]`, and its falsifier adds the README PR, by review.
- The body also gives Brett's one-time setup.
- **T101** `[US3] [oDc] **T099's release step: the release workflow, and the version bump to 0.1.0.**` sits beside it.
- **Realizes**: 10.3 (part, with T099).
- **Falsifier**: `tests/test_release_workflow.py`, in the required check.
- **After**: T070–T075, T077, T078–T085, T088, T100, T102, T103. These are every phase-3 openDox-code landing that changes the shipped package, plus the T074, T077 and T083 runs.
- Its text adds openDox-code#64, the broker hardening, which is no task of this plan.
- T095's `acceptance/` ships nothing, so it is not on the list.
- **T102** `[US3] [oDc] **The staging workbench offers the editors and the chat rail by scope.**` sits after T083.
- **What changes**: only creating documents and Save stay behind the gate, so a standalone Save is refused by name.
- **Why**: the T096 prep run found that a standalone workbench opens read-only. The workbench requires `createColumn.createGateLive(caps)`, and only openXdox's `gate.workbench.create` binding answers it.
- **The wording**: it neutralizes the openxFactory wording at `lens.js:1537`, `lens.js:271` and `index.html:107`.
- **Realizes**: 16.4 (part: the chat rail is reachable standalone) and FR-011's browser half (AT-R1 step 7).
- **Falsifier**: AT-R1 step 7, plus its PR's test.
- **Ruled**: R1Q22 (a); `5963618568`.
- **After**: T084, T081, and T088 (`lens.js`'s earlier writer).
- **T103** `[US3] [oDc] **Every loopback route checks the Host.**` sits after T084.
- **What changes**: on a loopback plane, every route refuses a `Host` that does not name the plane itself, against DNS rebinding (M4). `/capabilities`' `install` block sits behind the same check, even with no console token minted (L2).
- **The forms, exactly, as openDox-code#80 realizes them.** Accepted: exactly one `Host` line naming `127.0.0.1:<port>`, `localhost:<port>` in any case, or `[::1]:<port>` on a `::1` bind, at the bound port, and the bare names on port 80 only. Every other form fails closed with one fixed refusal that never echoes the `Host`: a suffix or prefix match, another port or no port, a trailing dot, another spelling of a loopback address, a missing or empty `Host`, and a second `Host` line.
- **Realizes**: none of the 70 boxes. It hardens what 13.4 and 13.4a realize.
- **Ruled**: R1Q22 (a).
- **After**: T084 (`serve.py`'s single-writer order).
- **T104** `[US3] [oDc] **The console token travels in the opened URL, not /capabilities.**` sits after T103.
- **Scope: the standalone serve**, the one built from `opendox.default_profile`, as the holder's approved design of 2026-10-03 reads. A composed host keeps `/capabilities`' delivery of the token unchanged: openxFactory's governed dashboard, and any profile openXdox registers.
- **What changes, standalone**: `/capabilities` stops carrying `console_token`. `generate-and-open` opens the page with the token in the URL fragment, and keeps a private copy in the state directory for reopening. The web bundle reads the token from the fragment.
- **The private copy is written safely**: only into a state directory that passes T100's trust-file checks and is neither the served root nor under it (T100's served-repository boundary, so `/source` cannot serve the token). It is created new, owner-only (0600), with no symbolic link followed, then renamed into place. A directory that fails is refused by name.
- **The composed run**: T104's PR shows that openXdox-code's readers (`gate_console.py`, `serve_gate.py`, `role_authority_projection.py` and their tests) and openxFactory's four test files are unaffected. Any reader it finds affected goes to T086 (openXdox-code) or T094 (openxFactory), and each of those tasks gains a line for it. The governed host's own exposure is recorded as out of release 1's scope, a follow-up for the host.
- **Batch N, pending**: T007's batch N, a separate later PR, records #1144's text for every falsifier and AT-R1 step that reads `/capabilities`' `console_token`. This feature's `quickstart.md` moves with it: § 3 reads the token from `/capabilities`, and § 4 loads the page with no fragment. T095 waits for batch N too. T007's batches have no line for N yet, so batch N's PR adds that line and the edge to T095 together.
- **Realizes**: none of the 70 boxes. It carries out `5963851934`.
- **Ruled**: R1Q22 (a); `5963851934`.
- **After**: T103 (`serve.py`'s single-writer order), T102 (the web bundle).
- **T101's `After:`** also names T104.
- **T086 and T094** each gain a line for T104's composed readers.
- **T095**: its catalog fetch presents the token read from the private copy (T104), its `Ruled:` line adds `5963851934`, and its `After:` line adds T104.
- **T087**:
- Its `After:` line reads `…, T088, T100, T101 (every phase-3 openDox-code landing), …`.
- A new line says it pins the commit that carries the bump.
- **T099's claim** is scoped to publishing credentials: no PyPI token and no other publishing secret is stored, since T104 keeps a console token's private copy by design.
- **T089**: the parenthetical reads *"so every phase-3 task but the PyPI publish is done"*. A new line says the publish follows by design.
- **T097**: `**After**: T096, T099 (10.3 closes on the publish), T007 (every batch).`
- **The box table**: `10.3 → T076, T101, T099` and `16.4 → T081, T085, T102`. No count moves on this PR's account. #1219's 16.3a made the total 70, and the box accounting is #1144's.
- **The rest of tasks.md**: the phase-3 goal, the dependencies, and the parallel-slice summary carry all four tasks.
- **Five slice rows**, beside `main`'s P3-T and P3-N:
- P3-S, edit and chat by scope (T102);
- P3-V, the loopback Host check (T103);
- P3-C, the console token (T104);
- P3-U, publish to PyPI (T099): the publish, and the root README PR;
- P3-W, T099's release step (T101). It lists openDox-code's `README.md`, whose relative links T101 makes absolute. `bookkeeping`'s "depends on" column names P3-U.
**plan.md**
- **The task count** reads `96 tasks, T001–T104 (some ids unused), box accounting (70 of 125)`. On `main` it reads 91, T001–T100.
- **The dependency graph** gains:
- `T101 → T087`;
- `T089 → T099`;
- T097 after T099;
- `T084 → T102` and `T084 → T103`;
- `T103 → T104`;
- T095 after T104.
- **The source tree** gains openDox-code's `release.yml` and `release-tools-cpython312-linux.txt` (T101), the staging workbench's two modules (T102), and `web/app.js` and `web/views/edit.js` (T104).
- **The single-writer rows**:
- openDox-code `pyproject.toml`: `… → T072 → T075 (the bundle's web/**/.*) → T101`;
- `serve.py`: `… → T084 → T103 → T104`;
- `cli.py`: `… → T084 → T104`.
- **The summary and the phase-3 lanes paragraph** give the release step and the publish.
**clarify-questions.md**: R1Q22's header lists T102, T103 and T104 beside `main`'s T100.
## Merging `main` (`cc775fea`, #1219)
The merge conflicted in nine hunks, each a line both PRs extend:
- clarify-questions.md: 1 hunk;
- plan.md: 2 hunks;
- tasks.md: 6 hunks.
Each resolves as the union of both texts:
- T100's own text is `main`'s.
- T083's `After:` keeps `main`'s T100.
- T087's `After:` reads `T088, T100, T101`.
- Box row 16 (8) keeps 16.3a and gains T102 at 16.4.
- T101 lands after T100 too.
A follow-up commit makes T103 read "none of the 70 boxes", since 16.3a made 70. Two later commits follow:
- `0f4ffcf5` adds T104;
- `ae7903b8` answers Copilot's reviews at `4464ce59` and `0f4ffcf5`;
- `665b75f5` carries the holder's rulings on Copilot's review at `ae7903b8`;
- `d64a5a72` carries the holder's rulings of 2026-10-03: r4171166321, and T099's root README step.
## Checks
The plan-consistency tools (`aftergraph.py` and the checks on it, in brett-wip's `handoffs/xFactory/attachments/lane-opendox/r1plan/tools/` at `712aedad`, widened to batch M) were run from the feature directory at `main` `cc775fea` and at this branch's head `d64a5a72`.
| tool | `main` | this branch |
|---|---|---|
| `depcheck` | 91 tasks, 104 nodes (T007's batches A to M), 233 edges; cycles: none | 96, 109, 267; cycles: none; no unknown id |
| `arrowcheck` | 0 mismatches, 68 arrows | 0, 83 |
| `phasecover`, phase 3 | 24 tasks; after T089: [] | 29; after T089: ['T099'] |
| `chaincheck` | 0 gaps | 0 gaps |
| `sharedfiles` NOT ORDERED | the 4 known phase-1 pairs | the same 4 |
| `qcheck` | 27 of 27, 0 mismatches | the same |
Notes on the table:
- **`depcheck` at this branch**:
- `T099 after ['T076', 'T087', 'T089', 'T096', 'T101']`;
- `T101 after ['T070', …, 'T085', 'T088', 'T100', 'T102', 'T103', 'T104']`;
- `T102 after ['T081', 'T084', 'T088']`;
- `T103 after ['T084']`;
- `T104 after ['T102', 'T103']`;
- `T095 after ['T076', 'T089', 'T104']`;
- `T087 after [..., 'T100', 'T101']`;
- `T100 after ['T007.M', 'T072', 'T080', 'T081', 'T084']`, as on `main`;
- `T097 after ['T007', 'T096', 'T099']`.
- **`phasecover`**: `after it: ['T099']` is by design, as `['T048']` is after T049 in phase 1.
- **`sharedfiles`**: every new pair reads `ordered A<B`:
- P3-W shares `pyproject.toml` with P1-H, P1-G, P2-V and P3-I, and `README.md` with P1-G;
- P3-U shares `README.md` with P3-O (T076 before T099);
- P3-V shares `serve.py` with P1-A, P1-B, P1-D, P2-G, P2-R, P3-I and P3-R;
- P3-S shares `lens.js` with P3-L;
- P3-C shares `serve.py` and `cli.py` with P1-B, P1-D, P2-G, P2-R, P3-I and P3-R, `serve.py` alone with P1-A and P3-V, `cli.py` alone with P1-H, and `staging-workbench-model.js` with P3-S.
- **`chaincheck`**: its chain list lives in the tool, which this PR does not edit. A local copy extends these chains:
- openDox-code `pyproject.toml` to `… T072, T075, T101`;
- `serve.py` to `… T084, T103, T104`;
- `cli.py` to `… T084, T104`;
- a new `lens.js` chain, `T088, T102`;
- a new `staging-workbench-model.js` chain, `T102, T104`.
That copy prints `single-writer chain gaps: 0`. Two mutations each print `single-writer chain gaps: 1`:
- with T103's `After:` set to `T081`, it prints `serve.py: T103 does not come after T084`;
- with T104's `After:` set to `T102` alone, it prints `serve.py: T104 does not come after T103`.
- **The pinned OpenSpec gate**, `python3 scripts/validate-openspec-cli-pin.py --all --strict` at `d64a5a72` (and before it at every earlier head of this PR), exits 0: `Totals: 110 passed, 1 failed (111 items)`, `0 UNDISPOSITIONED failures`. The one failure is the accepted `add-chain-attestation` disposition (`Brett Heap, 2026-09-05, "take exit 2"`), the same as on `main`.
- **The closing-keyword scan** of `git log origin/main..HEAD` finds none.
## Copilot's findings
**At `00a5bdae`**
- The unversioned falsifier (r4170767305) is fixed in openDox-code#78.
- The dependency edge (r4170767335) is fixed by the split.
**At `98c4887c`**
- **The undefined T100** (r4170908451) is fixed by merging `main`. #1219 has landed, so T100 is defined on this branch and `depcheck` names no unknown id.
- **The dispatch on a moved `main`** (r4170908474): T099's text requires the tag. The holder creates `v0.1.0` at the pinned commit and dispatches on it. It names `main` only while `main`'s head is still the pinned commit. The workflow enforces both:
- a tag dispatch must be `refs/tags/v<version>`;
- the commit must equal the root's pin and be an ancestor of `main`.
**At `8afbe3bc`**
- **The stale validation numbers** (r4171051822) are fixed by this description.
- **T104's absence** (r4171051844) is fixed in `0f4ffcf5`, on the holder's ruling: T104 is added, and T101 and T095 wait for it.
- **T103's "69"** (r4171051851) is fixed in `4464ce59`.
**At `4464ce59` and `0f4ffcf5`** (fixed in `ae7903b8`)
- **T103's Host forms** (r4171065402) are enumerated, accepted and refused, as above.
- **The publishing-secret claim** (r4171082307) is scoped to PyPI publishing credentials.
- **The `verify` job**, from the review body: T099's falsifier and the P3-W row name the `build` job (its artifact checks).
- **Batch N before acceptance**, from the review body: T104's text says T095 waits for batch N. The graph edge lands with batch N's PR, which adds T007's line for N.
**At `ae7903b8`** (fixed in `665b75f5`, on the holder's rulings)
- **The downstream readers of `console_token`** (r4171140124): T104 is scoped to the standalone serve, and a composed run must show the composed hosts' readers unaffected. T086 and T094 move any that are affected.
- **The private copy's write** (r4171140167): it is made under T100's trust-file checks, with no-follow, atomic creation, and refusal by name. The falsifier gains the unsafe paths.
- **The PyPI upload before acceptance**, from the review body: T099's `After:` gains T096.
**At `665b75f5`** (fixed in `d64a5a72`)
- **The served-repository boundary** (r4171166321, accepted by the holder): T104's private copy refuses an `OPENDOX_STATE_DIR` equal to the served root or under it, as T100's does. The falsifier gains that path.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…the opened URL; plan 034's AT-R1 reads the private copy (RULED 5963851934) (#1222)
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 `#656` comment [`5963851934`](#656 (comment)) in #1144 (`add-neutral-product-standalone-operability`), and it carries the plan-034 lines that follow from it. Plan 034 was read at `main` `dca40ca3`, which is #1221 (the phase-3 ticks), after #1220 (T099 and T101–T104).
> RULED — Brett 2026-10-03 (multi-choice): "Token via the opened URL (Recommended)". Adversarial review 2 (M5) found that a standalone openDox serves its console token from /capabilities to any loopback caller, including other OS users on the same machine (pre-existing). […] plus the #1144 amendment for every falsifier or AT-R1 step that reads /capabilities' console_token (batch N), and T095's harness reading the private copy.
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 an `OPENDOX_STATE_DIR` that 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 loopback `Host`, …"*) 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 token` and `capabilities` each occur **0** times (`grep -c -i`). No #1144 falsifier reads the token from `/capabilities` either:
- F10.1 fetches only `/`;
- F13.1 reads only the payload's `install` block (`json.load(...).get("install")`);
- F12's named test, `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 `main` `1130e996`. A serve that grants `session` mints 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:
- `/capabilities` carries no `console_token`;
- the entry point writes a private copy at `<state_dir>/console/<port>.html` under `OPENDOX_STATE_DIR`:
- the file is mode 0600, in a directory of mode 0700;
- each missing directory is made by descriptor, and the file is created without following a link;
- the whole path is checked as openDox-code#69's bundle checks its own tree;
- a file already at the copy's path is replaced only when it is this user's own regular 0600 file with one link (an earlier copy for that port); anything else there refuses the start by name, and such a copy is refused when read;
- the state directory and every served root may not overlap in either direction. A state directory that is, or lies inside, a served root is refused by name (the holder's ruling on #1220's review, `r4171166321`). So is a served root that is, or lies inside, the state directory, `<state_dir>/console` itself included: the **holder's ruling on this PR's review (`r4174345203`)**, a hardening of the approved design. `/source` already refuses a path that leaves its root through a symbolic link (`default_registry.resolve_within`, openDox-code `main` `e49b17c3`). 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 (#84's `send_head` guard);
- the copy forwards to `…/index.html#console_token=<token>`, using the fragment and never the query;
- the start writes the copy and prints its location as a `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 head `cb899546` prints `console {console.file_url} (this user's private copy, …)`;
- the copy is removed when the server stops, and the start is refused when no safe copy can be written;
- a composed host keeps its delivery on `/capabilities`;
- a tab that kept an earlier serve's token is refused by the next serve until the page is opened again through the new copy. That is the accepted stale-tab limit.
The addendum is carried out by T104.
## Plan 034
- **AT-R1**, which is this feature's text and not #1144's:
- `spec.md` step 4: whether or not `--no-open` is given, the command writes the private copy and prints its `file://` location. Without `--no-open` the command hands the copy to the browser; with it, as AT-R1 runs, the page is opened by loading that URL. `/capabilities` carries 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 every `console_token=` in the copy to open a fragment. It also parses the meta refresh's target URL, which must be exactly this server's `http://127.0.0.1:$PORT/index.html` with an empty query, and it reads the token from the fragment. It also asserts that `caps.json` has no `console_token`. The catalog request reads its header from stdin (`printf … | curl -H @-`), so the token never sits on a command line. The raw `/capabilities` payload must carry the token neither by name, at any depth, nor by value.
- `quickstart.md` § 4 step 1 loads the copy's `file://` 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:
- the token after a first query parameter;
- the token in the target's query;
- the token's value in a `next` query parameter;
- another host, another path or another port;
- the file loosened to 0644.
- **T007**:
- batch N's bullet, its citation, its `Ruled:` entry and its `After, by batch` line. That line names openDox-code#75 (AT-R1's HTTP half), because a task id in that field would read as a predecessor;
- batch M's landing (#1219 → `cc775fea`) in the `Landed:` line and on M's bullet;
- T007 stays unticked until N lands.
- **T104** (the analyze pass's H1): its task text gains "The private copy, exactly". That covers:
- the path `<state_dir>/console/<port>.html`, a 0600 file in a 0700 directory;
- the HTML page's JSON record in `<script type="application/json" id="opendox-console">`, with `schema_version` 1, `kind` `opendox-console-access`, `page_url`, `opened_url`, `port`, `pid` and `console_token`. These are the seven keys `console_access.py` writes at #84's `cb899546`;
- the meta-refresh to the fragment, never the query;
- written, and its location printed, with or without `--no-open`;
- a refused copy or state directory refuses the start by name, before anything is written. That includes a state directory that overlaps any served root in either direction;
- the copy removed on Ctrl-C or a plain `kill`.
Its falsifier lists what T104's PR must prove for every point of the addendum, the stale-tab limit aside:
- the START cases, through the writer and each entry point: a link, a directory, another user's file, a hard-linked file, or this user's own file at a mode other than 0600 at the copy's path; a state directory that fails the tree checks or overlaps a served root in either direction (`r4171166321`, `r4174345203`);
- the READ cases, a FIFO with no writer refused at once;
- `/source` answers 404 through an outward link;
- the static route answers 404, for GET and HEAD, for the copy, its directory's listing, another port's copy, and a directory whose `index.html` or `index.htm` links to the copy.
It is a requirement on T104, not a claim about #84. At `c979747a`, #84 has the static guard and the served-root cases. It still needs the writer's mode check (its `write_private_copy` replaces 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:
- quickstart's start line, where the copy is written under `--no-open`;
- § 3 and § 4 step 1;
- AT-R1 steps 4 and 7 (the rail's guarded routes need the page step 4 opened);
- T096, which opens the page through the copy;
- #1144's 12.4a. Its `:2333` test is unchanged in kind.
openDox-code#75's body is T095's writer's.
- **T095**: its `After:` keeps #1220's T104 and adds `T007 (batch N)`. T104's "Batch N, pending." bullet becomes "Batch N.", which names what this batch records and moves.
- **The rest of `tasks.md`**:
- § Format ("fourteen batches") and "What can start";
- the dependency order (phase 0 and Acceptance);
- the phase-3 slice intro and the acceptance row;
- § "Ruled amendments": its heading, intro, an N row and a closing sentence on AT-R1.
- **`plan.md`**:
- batches A–N in the graph;
- the PHASE 3 and ACCEPTANCE graph lines name batch N;
- the amendments list;
- Principle V's "A to N".
## Gates
Each was run at `7746a50d` and at `main` `de2ab703` (`--change`, doc-health and the catalog again at `a4bb8d8f`), in two full clones of the same kind. Each clone sits in a directory named `openxFactory`, with `remote.origin.url` set to opensoft/openxFactory.
| gate | `main` `de2ab703` | this branch `7746a50d` |
|---|---|---|
| `python3 scripts/validate-openspec-cli-pin.py --all --strict` (pinned 1.12.0) | rc 0, `110 passed, 1 failed (111 items)`, `0 UNDISPOSITIONED failures`, with 1 accepted exception (`add-chain-attestation`) | the same, identical apart from the clone path |
| `… --change add-neutral-product-standalone-operability` | — | rc 0, `1 passed, 0 failed`, `validated --strict clean` |
| `python3 scripts/doc-health.py --single-repo . --as-of 2026-10-03` | 31 critical, 22 error, 64 warning, 20 info | byte-identical report, 0 new regressions |
| `box_census.py` over #1144's `tasks.md` | `total 125`: 105 `[ ]`, 11 `[x]`, 9 `[~]` | the same. No box is added |
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) and `validate-pin-registrations.py`.
Earlier heads, `2ce6c8f3` against `main` `ec9308c8` and then `cce8c96b` and `93e83501`, read the same. At `c954da69`, which merges `main` `f261fefa` (#1223), `--all` and `--change` read 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 at `49aab763`, `pytest -q tests/doc-health/test_modified_block_currency_self_gate.py tests/sequenced_after` reports 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-wip `e5302284`, in the form of batch M's `712aedad`: `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.
- The A–M parser reads `main` at 96 tasks, 109 nodes and 267 edges.
- The widened tools read this branch at 96 tasks, 110 nodes and 269 edges. The two new edges are T095 → T007.N and T007 → T007.N. They also find:
- no cycles, as written or with the Lands-with groups merged;
- 0 chain gaps, and 47 `chaindirect` pairs;
- 0 of 83 arrow mismatches;
- no phase gaps (T099 follows T089 by design);
- in `sharedfiles`, 81 shared pairs, with only the 4 known phase-1 pairs NOT ORDERED;
- qcheck 27 of 27.
- **The widened parser refuses `main` until this PR lands** (*"names no line for ['N']"*), as batches K, L and M did.
## Review
| Copilot at | verdict | threads | answered in |
|---|---|---|---|
| `2ce6c8f3` | Changes recommended | the realization test's promise was wider than T104's falsifier (medium); the quickstart missed a token after a first query parameter (medium); Principle V still cited batch M's gate (low) | `cce8c96b`: 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 resolved |
| `cce8c96b` | Needs a closer look, no findings and no threads | one previously-missed note: cite the holder's served-root ruling `r4171166321`, which is not part of `5963851934` | `93e83501`: cited in the addendum, which now names its details as the holder's approved design, and in batch N's bullet, T007's `Ruled:` line and the N row; answered in comment `5970872244` |
| `93e83501` | Needs a closer look, no findings and no threads | one previously-missed note: quickstart § 4 step 1 said "the `file://` URL the command printed" while the addendum said the path is printed | `919cf14e`: one wording everywhere (the location as a `file://` URL, never the token), matching #84's `cb899546`; answered in comment `5972080941` |
| `919cf14e` | Changes recommended | the quickstart proved only that no query parameter was named `console_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.html` with an empty query (four altered copies refused); step 4 separates writing the copy from opening it. Both answered and resolved |
| `9b019b35` | Changes recommended | the served-root boundary did not cover a served root at or under the state directory, such as `<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; `/source` refuses symlink escapes; T104's falsifier gains both cases. Answered and resolved |
| `c954da69` | Changes recommended | the static bundle's route was not covered (medium); the falsifier named no static case (medium); the falsifier claimed writer cases #84 does not have, since #84's writer replaces a loosened own file (low) | `3ce22a5f`: 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 resolved |
| `7746a50d` | Changes recommended | the quickstart put the token on curl's command line (medium); plan.md said every batch lands before a checkpoint that runs an amended falsifier, which N does not fit (low) | `a4bb8d8f`: the header goes over stdin; plan.md says each batch lands before the task that needs it, and N before T095. Both answered and resolved |
| `a4bb8d8f` | Needs a closer look, no findings and no threads | one previously-missed note: the fragment check could wrap at index 0, and `/capabilities` was checked only for a top-level key | `efbc29da`: a preceding `#` is required; the raw payload must carry the token neither by name nor by value. Answered on the PR |
| `efbc29da` | Changes recommended | the static case missed automatic index files (medium); a previously-missed note: the READ cases omitted a FIFO, which can block a reader | `6c62a776`: GET and HEAD cases for a directory whose `index.html` or `index.htm` links 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 resolved |
| `6c62a776` | Needs a closer look, no findings and no threads | two previously-missed notes: T095 lacked the raw-payload token assertion; the reverse overlap had no symlink-alias case | `02ec4f92`: 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 PR |
## For the holder
1. **Landing order.** #1221 has landed and is merged in (`8c43ce02`). The evidence PRs #1223 and #1224 and the analyze-fix PR also edit plan files. Whichever is clean first lands first, and I merge `main` again right before READY-CANDIDATE.
2. **The chain tools lag #1220.** `chaincheck.py` and `chaindirect.py` in brett-wip do not yet carry #1220's chains: `serve.py` → T103 → T104, `cli.py` → T104, and openDox-code `pyproject.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 on `cli.py` is transitive through T102. Persisting them is your call, and it is outside this batch.
3. **T095's harness** (openDox-code#75) belongs to T095, not to this PR. T095's task text now asks it to assert, as quickstart § 3 does, that the raw `/capabilities` payload 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.
4. **The holder's served-root ruling (`r4174345203`)** is recorded in the addendum, in T104 and in the N row. #84 at `c979747a` has 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.
5. **The stale-tab limit's wording** is my reading of "accepted": a tab keeps the token in `sessionStorage` (T104's `web/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 6 `LANDING`/`LANDED` window. It is bookkeeping, so it carries no `Arc:` trailer (R1Q20 (a)) and no closing keyword. The holder posts READY and lands it.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…94/T103/T076 lines) (plan 034) (#1225)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
This PR is plan bookkeeping only. It carries the holder's rulings on plan 034's analyze pass of 2026-10-03 into the feature's files. That pass is read-only, ran over `main` `ec9308c8` (#1220), found no CRITICAL finding, and raised three HIGH (H1–H3). It touches no file under `openspec/changes/`, so no Rule 6 window applies. It carries no `Arc:` trailer (R1Q20 (a)). The branch is cut from `main` `dca40ca3` (#1221).
**Landing order** (holder): #1221 (landed, `dca40ca3`) → batch N (#1222, landed, `bdd0f586`) → **this PR** → batch O. This branch merged `main` `bdd0f586` (batch N, and the ticks #1226 → `ce36e1ad`) as `0f88ffc8`, never a rebase. The one conflict was `spec.md` AT-R1 step 7, where batch N added its sentence about the guarded routes and this PR added the definition of "usable". The resolution keeps both, with batch N's sentence first.
Claimed on #656 in [`5972026887`](#656 (comment)).
## What it encodes
1. **H3: AT-R1's commit against the published one.**
- **T099** gains a step before the tag and the dispatch. P is the commit T087 pins, T101's version bump, and the only commit the workflow publishes. X is the commit AT-R1 ran at: T095's landing commit, which T096 records. The holder runs `git diff --quiet P X -- src/ pyproject.toml migrations/ README.md LICENSE`. Those are the sdist's and wheel's build inputs, measured at openDox-code `main` `90ac7033`'s `pyproject.toml`: `package-dir` `src`, `py-modules`, package data under `src/opendox/`, `data-files` from `migrations/`, the `readme` T101 adds, and setuptools' default license file. If the command exits non-zero, BOTH halves of AT-R1 are re-run at P and recorded before the publish: the HTTP half with T095's harness, and the browser half with T096's drive (the holder's ruling (b) on Copilot's `r4174344151`, fix round 2). If it exits 0, X's runs stand for P.
- **T096** records X's full sha, with P beside it.
- **quickstart.md** defines `RELEASE1_TIP` as X, T095's landing commit on openDox-code's `main`.
2. **Stale text.**
- openDox-code#64 is LANDED (→ `8e377823`), in T080 and in plan.md's single-writer table.
- The box accounting's batch-M line now reads #1219 → `cc775fea`, and `box_census.py` at `dca40ca3` prints `total 125` (105 `[ ]`, 11 `[x]`, 9 `[~]`).
- T066's count reads 70.
- Batch N carries T007's own batch-M status lines (`:46`, `:91-94`, `:203`, `:348`, `:353-355`), so this PR leaves them alone.
3. **spec.md's rulings record** gains § "Session 2026-10-02 and 2026-10-03", with the seven #656 rulings and each verbatim answer: [`5962754358`](#656 (comment)), [`5963162921`](#656 (comment)), [`5963618568`](#656 (comment)), [`5963851934`](#656 (comment)), [`5970369724`](#656 (comment)), [`5970917267`](#656 (comment)) and [`5971834845`](#656 (comment)).
4. **The tree at 32** ([`5970917267`](#656 (comment)), *"Amend to 32 (Recommended)"*), plan side.
- These now agree with the ruling: T094, T100, research R8, R1Q5's record (spec.md and plan.md), T038, T042, US1's independent test and scenario 5, plan.md's F9.2 row, and the box accounting's F9.2 class.
- **T086** gains two steps at the pin move past T100:
- (a) the F9.2 node goes from 31 to 32, and openXdox-code's `validate.yml` `LEFT_OUT` (`:157` at `6a3b93b9`, the `--deselect` until T008) moves with it in the same landing (the holder's ruling; `9d609077`). A rename alone would leave the deselect naming no test;
- (b) the route harnesses (`tests/doxbench_routes_harness.py:290`, `tests/gate_routes_harness.py:139-149`) read `httpd.console_token`, or register openXdox's profile.
- The #1144 side is batch O's.
5. **T094: the golden is RULED.**
- E1 (a): a non-arc PR lands ahead of T094, with the phase-3 golden under `tests/domain_profile/fixtures/`. It opens after T087 and is regenerated from T087's commit. It covers T070, T079/T080 and T084's rename to `opendox`.
- E3 (a): that PR is the golden reader only.
- The trust policy is `GovernedBindingTrust`, a sixth `seams()` entry ([`5970369724`](#656 (comment))).
- T104's governed run leaves openxFactory's four token readers with nothing to move.
6. **T103** gains a composed-run line. It cites openDox-code#84's governed run exactly as that PR records it: at the pinned `047bb4fa` and at `047bb4fa` with T104's two commits, with no #80 in either, `239 passed` and the same failure, which the clone's name causes (T094 prep, finding 2). The composed run at a head containing #80 is T094's, at phase 3's pin. The coordinator confirmed this wording.
7. **T076**: before the cut, the PyPI line cannot be followed literally, because openDox#17's dated paragraph has `pip install ./code` stand in for it. T099 replaces that paragraph after the publish.
8. **"Usable"** ([`5971834845`](#656 (comment)), *"Usable = edits; Save refused (Recommended)"*): each editor opens and accepts edits, while create and Save are refused by name on standalone, and that refusal is declared to the oracle. It is written into AT-R1 step 7, quickstart.md § 4 step 4, T096's bullet and T102's falsifier.
9. **LOW folds.**
- plan.md:
- the project structure gains T102's `lens.js`/`index.html` and T104's `staging-workbench-model.js`;
- the phase-3 row says that 10.3 closes at the cut;
- the single-writer table gains `lens.js` (T088 → T102), `staging-workbench-model.js` (T102 → T104) and the root `README.md` (T076 → T099).
- tasks.md's slice rows:
- P3-E names T075's `pyproject.toml` edit (openDox-code#73, landed);
- P3-X names T086's two new steps;
- P3-K names `GovernedBindingTrust` and the ahead PR.
- The checklist's box sum reads 63 + 1 + 1 + 1 + 4, and its notes record the 2026-10-03 analyze.
10. **T102's follow-on** (the holder's ruling F1 (i), from the T096 dry run of 2026-10-03): the chat rail reads `/workbench/thread` only when a branch session exists. It is a separate openDox-code PR and no task of this plan, and it lands before T087. It changes the shipped bundle, so by T101's rule it also lands before T101's version bump. T101's "that line also stands for" bullet and a T087 bullet record it, outside both `After:` lines, so the after-graph's edge list is identical to `main`'s.
## Checks, on this branch at `d4b52bba` (after merging `main` `bdd0f586`)
Run from the feature directory, with brett-wip's r1plan tools at `e5302284` (the batch-N version, now that batch N's T007 line is on `main`):
- `depcheck.py`: `tasks: 96 nodes: 110 (… T007.N) edges: 269`, `cycles: none`, and none with the Lands-with groups merged. The edge list, diffed edge by edge, is identical to `main` `bdd0f586`'s.
- `chaincheck.py`: `single-writer chain gaps: 0`.
- `arrowcheck.py`: `arrow mismatches: 0`, `arrows checked: 83`.
- `phasecover.py`: no phase gaps. T048 and T099 come after their checkpoints, by design.
- `qcheck.py`: `headers checked: 27 of 27; mismatches: 0`.
- `sharedfiles.py`: 5 NOT ORDERED pairs. The 5th is P3-I against P3-E on `pyproject.toml`, and it appears because the P3-E row now names T075's real edit. It is benign in the same way as known pair 4: T072 is P3-I's only writer of that file, T075 is After T072, and both have landed. The checklist records it.
- Pinned gate: `python3 scripts/validate-openspec-cli-pin.py --all` prints `OK openspec-cli-pin: @fission-ai/[email protected] … 0 UNDISPOSITIONED failures`, with the one accepted exception (`add-chain-attestation`).
- `box_census.py`: `total 125` (105 `[ ]`, 11 `[x]`, 9 `[~]`), as on `main`.
- `git diff --check`: clean. No commit since `main` and nothing in this body carries a closing keyword.
## Review rounds
- **Fix round 1** (`19c33701`, Copilot `r4174344119`): the stand-in before the cut is `pip install "./code[local]"`, in T076's falsifier, T099's README bullet and quickstart.md. The `--local` start needs the `local` extra (R1Q16 (iii)). openDox#17's bare `./code` is one of T076's held deltas, which T076's writer applies before #17 lands (holder).
- **Fix round 2** (`19287dc8`, Copilot `r4174344151`): the holder ruled (b). When P and X differ, both halves re-run at P. Both threads are answered and resolved.
- **Main merged** (`06758ab7`, `main` `de2ab703`), with no conflict. Then `9d609077` added T086's `LEFT_OUT` line, on the holder's ruling.
- **Fix round 3** (`7c5e439b`, Copilot `r4174595888`), on the holder's ruling [`5972924576`](#656 (comment)). E3 (a) limits the non-arc ahead PR's scope: no host wiring, and the golden's reader picks the golden from the pinned parser. The same PR also carries `test_cli_column_split.py`'s usage line (E5 (a)) and `test_doxbench_routes.py`'s rebound-Host case, each in both-pins form (`invalid_host` once the pin carries #80 → `390e2c28`). All three are T094 prerequisites. The thread is answered and resolved.
- **Batch N merged** (`0f88ffc8`, `main` `bdd0f586`): AT-R1 step 7 keeps both sides. `d4b52bba` adds T102's follow-on (F1 (i)) and records batch N's merge commit in the checklist.
## For the holder
- Batch O's #1144 text should cover F9.2 and batch J's F9.1 line, since both name the 31-entry node.
- openDox-code#78 and #79 are still titled T099, but they are T101's (analyze L7, the holder's retitle).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
This PR is bookkeeping only (T007 batch M). It records Brett Heap's multi-choice word of 2026-10-02 on
#656comment5962785556, item 2, in #1144 (add-neutral-product-standalone-operability). It also adds plan 034's new task, T100, which realizes it. Plan 034 was read atmain9093fdee, and this branch has mergedmaina883bbf6(#1218, T063's checkpoint, which rewrote T007's batch-L lines).The ruling
Item 1 of the same comment (F5.2 closes at phase 3) amends nothing in #1144 ("#1144's text is unchanged"). #1218 carried it into plan 034.
The defect, reproduced by this batch's writer
The broker half, at openDox-code
main047bb4fa.Both entry points read the bindings from the repository they serve:
cli.py:618andserve.py:2214calldeclared_model_port_factorywith the served--repo-root(cli.py:567), and the factory readsbindings_path(checkout_root)(doxbench_install.py:316).A binding written into that file by hand passes no approval. The intake's pending list holds back only the bindings its own wizard wrote (
:324).Run in process with
PYTHONPATH=src:The hand-written
broker_argvwas["/bin/sh", "-c", "id > <scratch>/ran-by-the-file"]. It was offered as available, and it ran on the first dispatch, before the refusal.The
env:half, at openDox-code#64's headf8bc8aca. That head stacks on T078–T080's drafts, which add 16.3's built-in resolver. The adversarial review's own script ran there: a served corpus's hand-written binding withcredential_ref: env:ADV_UNRELATED_CLOUD_SECRETsent the variable's value to the endpoint the file named.So "already on main" holds for the broker half. The
env:/keyring:half arrives with T080 (openDox-code#63), which lands before T100.model-binding set-credentialruns a declared binding's broker too (cli_model_binding.py:135-139). The console intake's hand-off (serve_workbench.py:1127) runs a broker that the served repository's intake declarations name.#1144: added text only
Box 16.3a, after 16.3's batch H and K addenda: "A served repository's bindings are TRUSTED PER MACHINE." It is the first box added after ratification. It carries an
ADDED — T007 Batch Mmarker, and it rewrites no ratified line.F16.1's
AMENDED — T007 Batch Mblock, after F16.1's prose. The runs that use F16.1 (T083 and T089) also run one more line,python -m pytest -q tests/test_model_binding_trust.py. The block names that test's seven cases, each run over three sentinel bindings (a marker-writing broker, anenv:reference and akeyring:reference with a recording stand-in keyring):set-credential, with the factory's notice andmodel-binding listnaming the trust command. The console intake's hand-off refuses a broker the served repository's declarations name;addrecords trust;editorset-credentialre-trusts;trustrecords, printing nothing secret and every value escaped;OPENDOX_STATE_DIRequal to or nested under the served root;The block's other lines are unchanged.
A dated note in requirement 17's body in the spec delta, after batch K's note and in batch D's form. The parser still reads the requirement's first line as
A neutral product that offers model-assisted chat SHALL reach ANY endpoint that. The requirement keeps 4 scenarios, and the capability keeps 76.Why the spec delta too, as batch K did and batch L did not
tasks.mdbecause "no requirement or scenario text says a standalone plane offers gate actions, so nothing ratified is contradicted."tasks.mdalone would leave the promoted requirement reading as if every configuration is reached. This is Copilot's Principle II point on Plan 034: tick the landed tasks with their evidence, and apply the queued plan bookkeeping #1207, which batch K followed.proposal.mdanddesign.md§ D14 are left unchanged, as batches K and L left their packet prose.The rule 16.3a records
env:,keyring:or a broker's), only once the operator has trusted that exact binding on this machine. That holds on a chat turn, onset-credential, and on the console intake's hand-off.OPENDOX_STATE_DIR, never in the repository.$XDG_STATE_HOME/opendoxwhere that is absolute, and otherwise~/.local/state/opendox.config.state_dir()refuses a relative path or one with...BundledServer._refuse_an_unsafe_tree,_unsafe_because). The file and the directories that hold it are real (no symbolic link), owned by this user and writable by no one else. Each directory above them is this user's or root's, and sticky where another user can write it.OPENDOX_STATE_DIRequal to the served root, or nested under it, is refused by name before anything is written, becauseconfig.state_dir()accepts any absolute path free of..(Copilot's finding).addandeditrecord trust for the binding they write.trust <id>prints the broker argv, the endpoint, the auth kind and the credential reference, never the credential. It resolves, runs and contacts nothing, and records trust for exactly the record it printed. It takes no--yes.set-credentialon a TRUSTED binding re-records trust for the record it rewrites. It never makes an untrusted binding trusted.opendox model-binding trust <id>, never a secret.available: false. The catalog's entry is a closed shape (xfactory-workbench-model-catalog,additionalProperties: false), so the reason is not a key in it. It rides the turn's refusal (the chat-turn failure'smessage), the factory's notice beside its pending-binding one, andmodel-binding list.The holder decided four points on 2026-10-02:
set-credential's re-trust;--yes(the writer's proposal, confirmed);Plan 034
tests/test_model_binding_trust.py.5817152735;5962785556, item 2.doxbench_install.py's single-writer order); T072 (the state directory); T084; T007 (batch M).cli.pynorserve.py. Its edit to the console intake's hand-off inserve_workbench.pyoverlaps T084's openDox-code#77.After, by batchline. M's line names the landing it precedes by slice (P3-T's), because a task id there reads as a predecessor;tests/ideation-dashboard/fixtures/cli-help-tree.golden.txtgoes from 31 sections to 32 at phase 3's pin, with T079's--modelbeside T100'smodel-binding trust;elif p != MANIFEST: breach.append(... touched ...)), so T094 needs a T066-style non-arc PR ahead of it, or a ruled admission.… + 8 = **70**.tasks.md:plan.md:doxbench_binding.pygains T100, and three rows are new (cli_model_binding.py,doxbench_install.py, and phase 3'sserve_workbench.py);spec.md: FR-009, US3's independent test and a sixth acceptance scenario, an edge case, the Binding trust entity, SC-003 and SC-006 (65 of 70; 63 by T097).clarify-questions.md: R1Q22's header gains T100, which edits carved files, so qcheck stays at 27 of 27.Gates
Run at
3d015854and atmaina883bbf6, in two full clones of the same kind. Each sits in a directory namedopenxFactory, and each hasremote.origin.urlset to opensoft/openxFactory, because doc-health reads the directory name and the pin reads its dispositions' scope from that URL.maina883bbf6b8b8e7e4python3 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, Brett Heap 2026-09-05, "take exit 2")… --change add-neutral-product-standalone-operability1 passed, 0 failed,validated --strict cleanpython3 scripts/doc-health.py --single-repo . --as-of 2026-10-02b8b8e7e4and709de15d)box_census.pyover #1144'stasks.mdtotal 124: 104[ ], 11[x], 9[~]total 125: 105[ ], 11[x], 9[~]. 16.3a is added, and F16.1 keeps its labelAlso 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.On the branch at
b8b8e7e4:pytest -q tests/doc-health/test_modified_block_currency_self_gate.py tests/sequenced_afterreports 306 passed.The later heads change text in #1144's
tasks.mdand in plan 034's files only.709de15d,df976561and3d015854change the twotasks.md, and0423beb6changeschecklists/requirements.mdandplan.md's Principle V row. At each,--change add-neutral-product-standalone-operabilityvalidates clean. At709de15dthe doc-health report was byte-identical tomain's again. The plan checks, re-run atdf976561and3d015854, read the same numbers as below, andbox_census.pystill printstotal 125.A correction of this body's first version. It reported the
--allgate at rc 1, withadd-chain-attestationnot dispositioned, onmainand branch alike. That was the clone kind: those clones were local copies whoseremote.origin.urlnamed a path, so the pin left openxFactory's dispositions out of scope. Re-run with the URL set to opensoft/openxFactory, both read rc 0 with the one accepted exception, as the table says.The plan's consistency checks. The persisted tools in opensoft/brett-wip (
handoffs/xFactory/attachments/lane-opendox/r1plan/tools/) are widened to batch M in brett-wip712aedad, on the holder's word, in the form of batch L's86ae7042:aftergraph.py:BATCHES = "ABCDEFGHIJKLM", every[A-L]made[A-M], its docstring, and the README line;chaincheck.pyandchaindirect.py: T100 joinsdoxbench_binding.py's chain, and three chains are added:cli_model_binding.py(T079 → T080 → T100),doxbench_install.py(T081 → T100) and phase 3'sserve_workbench.py(T084 → T100).Results:
mainat 90 tasks, 102 nodes and 225 edges.chaindirectpairs;sharedfilesreports the 4 known phase-1 NOT ORDERED pairs. P3-T's shared files are each ordered:serve_workbench.pywith P2-R and P3-R,cli_model_binding.pywith P3-B, anddoxbench_install.pywith P3-D;mainuntil this PR lands ("names no line for ['M']"), as batches K's and L's did.Review
b8b8e7e4OPENDOX_STATE_DIRequal to or nested under the served root would put trust in the committable tree (high)df976561: refused by name before anything is written, in 16.3a, T100 and F16.1's trust-file case709de15dkeyring:coverage, the console hand-off and the reason carriers, digest coverage of every field, and the policy seamdf976561: a third sentinel binding (keyring:), the refusal case widened, the edit case over every field, and a seventh case for the seamdf976561model-declarations.yaml, so no binding trust can admit it (high); a previously-missed note asks for escaped display of untrusted values3d015854: under the neutral default the hand-off refuses it by name (fail-closed; standalone the intake isoffered: false,5961364221item 1), and every printed value and id is escaped in a JSON string's form, with a control-character case3d015854checklists/requirements.mdstill read the planning PR's facts and 124/690423beb6: both refreshed; the checklist records that no analyze ran over T100For the holder
--model(openDox-code#62's body). T100 adds the 32nd section.serve_workbench.pyin phase 3. T081 (openDox-code#74) also edits it, and T081 is not ordered with T084 (Pending create-project commissions render in the picker (dashboard-project-scoping D-e) #77). The new single-writer row starts at T084 and does not order that pair. That gap was there before this PR./speckit-analyzeover T100.evidence/analyze-round-3.mdis a record and still reads 90 tasks and 124 boxes. This revision ran the plan-consistency checks instead, andchecklists/requirements.mdnow says so. A fresh analyze is yours to call.ideation/dashboard/model-declarations.yaml, which is no binding. Under the neutral default 16.3a and T100 make its hand-off refuse by name. That is the fail-closed reading, and it costs nothing standalone, where the intake isoffered: false(5961364221, item 1). A positive path, meaning a command that trusts such a broker and what that trust names, would need a ruling. Until then only a host's own policy admits one.trust,list, the refusals and the factory's notice print untrusted values in a JSON string's form. That is a safety requirement of the writer's, not part of the ruling's text, for you to keep or strike.Landing
Arc:trailer (R1Q20 (a)), and no commit or line of this body carries a closing keyword.openspec/changes/, so it lands under a Rule 6LANDING/LANDEDwindow, which the holder's kit runs. The holder lands it.CLAIMED on
#656: #656 (comment)🤖 Generated with Claude Code