Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
e6c65ed
§ 3.4 S3: the view registry — ViewBinding + collectViewBindings, both…
brettheap Sep 12, 2026
18f00bb
§ 3.4 S3: the shell stops importing the gate module — line 43 becomes…
brettheap Sep 12, 2026
cb810d3
§ 3.4 S3: the registry's tests, and validate names them in the same c…
brettheap Sep 12, 2026
2c75f5b
§ 3.4 S3: three review findings — a refusal that raised, a payload th…
brettheap Sep 12, 2026
09b42f5
§ 3.4 S3: migrate the three bullseye assertions that quote the tab ro…
brettheap Sep 12, 2026
f16f8b4
Merge origin/main (S1) into build/s3-view-registry (S3)
brettheap Sep 12, 2026
44c5980
Fold S3 into S1's web-boundary census; keep both slices' xfails honest
brettheap Sep 12, 2026
76495d3
Copilot re-review, four findings: fail closed on all four
brettheap Sep 12, 2026
28de9c3
Copilot re-review: give the client-side registry an explicit ES-modul…
brettheap Sep 12, 2026
a497d71
Merge origin/main (S2, PR #15) into build/s3-view-registry (S3)
brettheap Sep 12, 2026
e176947
Copilot re-review, three findings: docs-tab migration, declared-entry…
brettheap Sep 12, 2026
031edc9
§ 3.4 S4: split the three RULED SPLIT files — thirteen route tails to…
brettheap Sep 12, 2026
2e84217
§ 3.4 S4: measure the three new bindings, and name the file on valida…
brettheap Sep 12, 2026
92cbff3
Merge origin/build/s3-view-registry (S3 PR #14, Copilot re-review) in…
brettheap Sep 12, 2026
8fdc6ac
Read the DECLARED entry for S4's two mounts, as S3's own re-review al…
brettheap Sep 12, 2026
cb343ae
Copilot re-review (PR #16): refuse a malformed contributed-routes ent…
brettheap Sep 12, 2026
99c5c26
Merge origin/main (S3 #14 + depth fix #19) into build/s4-split-route-…
brettheap Sep 12, 2026
b9126d9
tests/test_web_boundary.py: validate route_ownership_exceptions is re…
brettheap Sep 12, 2026
4e1fe0d
Merge origin/build/s4-split-route-tails (updated #17) into fix/view-r…
brettheap Sep 12, 2026
a061b50
§ 3.4 S5, leg B: the shell loses the gate loop and reaches it through…
Sep 12, 2026
fd7160d
§ 3.4 S5, leg B: publish the view manifest, and measure the slice
Sep 12, 2026
0018acd
Package the served bundle, so RULED Q5's assembly hook has a director…
Sep 12, 2026
f347484
Merge remote-tracking branch 'origin/main' into build/s4-split-route-…
brettheap Sep 12, 2026
978d71c
Merge remote-tracking branch 'origin/build/s4-split-route-tails' into…
brettheap Sep 12, 2026
7492311
§ 3.4 S5, leg B: RULED counterpart Q6 — the shell hands down what the…
brettheap Sep 12, 2026
80b1f3b
§ 3.4 S7: the display facet, and the one context key that carries it
brettheap Sep 12, 2026
49f5367
§ 3.4 S5, leg B: name the file the five moved probes actually landed in
brettheap Sep 12, 2026
f2ef125
§ 3.4 S7: the vocabulary the others import — wheel-model.js, model.js…
brettheap Sep 12, 2026
1275680
§ 3.4 S7: the wheel deck and the pipeline board read by role
brettheap Sep 12, 2026
e391189
§ 3.4 S7: the doc list, the roll-up, the lineage strip and the three …
brettheap Sep 12, 2026
4421fd5
§ 3.4 S5, leg B: MOUNT the page-overlay binding, do not merely build …
brettheap Sep 12, 2026
92ea02f
§ 3.4 S7: the cluster canvas and the drill-down explorer read by role
brettheap Sep 12, 2026
3737d91
Merge remote-tracking branch 'origin/build/s5-gate-loop-contributed' …
brettheap Sep 12, 2026
c57bd1f
Merge remote-tracking branch 'origin/main' into fix/view-registry-fai…
brettheap Sep 12, 2026
a64776d
§ 3.4 S7: the staging workbench's model reads by role
brettheap Sep 12, 2026
cc3c2b7
§ 3.4 S7: the staging workbench's overlay reads by role
brettheap Sep 12, 2026
91bb516
§ 3.4 S5, leg B: seven accurate Copilot findings in the seam itself (…
brettheap Sep 12, 2026
160f987
§ 3.4 S7: the shell's own chrome, and the four design tokens by role
brettheap Sep 12, 2026
713e672
§ 3.4 S7: assertion 4 closes — the rule, not a word search
brettheap Sep 12, 2026
bd94aa7
§ 3.4 S5, leg B: the probes of the modules that left go with the modules
brettheap Sep 12, 2026
372a04d
§ 3.4 S7: tests/test_display_facet.py — the other half of the measure…
brettheap Sep 12, 2026
3239c1c
§ 3.4 S7: the node harnesses take the one sibling the models now import
brettheap Sep 12, 2026
486930d
Merge the landed base (S4 #17 squashed to main, S6 #16, the fail-clos…
brettheap Sep 12, 2026
acb03de
Merge remote-tracking branch 'origin/build/s5-gate-loop-contributed' …
brettheap Sep 12, 2026
4228675
§ 3.4 S7: Copilot round 1 — five accurate findings, and the merge tha…
brettheap Sep 13, 2026
16f42ff
§ 3.4 S7: Copilot round 2 — the enum leaks the facet can cause, and o…
brettheap Sep 13, 2026
173ac12
§ 3.4 S7: a declared corpus prefix must carry its separator
brettheap Sep 13, 2026
f5003ef
§ 3.4 S5, leg B: three accurate round-3 findings, two of them created…
brettheap Sep 13, 2026
011c3be
Merge origin/main (the fail-closed follow-up, landed as #22) into leg B
brettheap Sep 13, 2026
ac10bd5
Merge leg B (round 3) and close Copilot rounds 3–4: no enum value rea…
brettheap Sep 13, 2026
90cf05a
§ 3.4 S7: two roles may not share one snapshot enum value
brettheap Sep 13, 2026
72c1232
Merge leg B (#20 @011c3be, carrying main's #22) into S7
brettheap Sep 13, 2026
3cfe2a1
§ 3.4 S7: the served payload names which tokens the host declared
brettheap Sep 13, 2026
706b533
§ 3.4 S7: five surfaces the hop reached and the facet's words did not
brettheap Sep 13, 2026
d672f0c
§ 3.4 S7: four arrived suites nobody had run since the carve
brettheap Sep 13, 2026
569073d
§ 3.4 S5, leg B: round 4 — a render that lost its scope while resolvi…
brettheap Sep 13, 2026
7340fa0
§ 3.4 S5, leg B: round 5 — a missing /capabilities payload is an unme…
brettheap Sep 13, 2026
5c6f762
§ 3.4 S5, leg B: round 6 — the caller that resumes after the mount pa…
brettheap Sep 13, 2026
ccc17a2
Merge leg B rounds 4-6 (#20 @5c6f7629, landed on main as 8efb3cf) int…
brettheap Sep 14, 2026
c7a216c
Merge origin/main (leg B, squashed as #20) into S7 -- a graph merge only
brettheap Sep 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,31 @@ jobs:
# the real `views/view_extension.js` under the `node` the runner already
# has (skipped, never failed, where node is absent), exactly as
# `tests/test_view_registry.py` and `tests/test_split_route_tails.py` do.
# § 3.4 SLICE S7 adds `tests/test_display_facet.py`, on the same footing as
# its seven neighbours. S7 is "parameterize class C": every governance word
# in the fourteen class-C files and the four declared class-A tails becomes
# a read of the registered domain's DISPLAY facet BY ROLE (RULED Q1/Q2/Q7,
# openxFactory#656 comment `5648049748`; openXdox-spec
# `docs/domain-profile-design-note.md` § 6's rule and its reason).
# `tests/test_web_boundary.py`'s assertion 4 measures the BOUNDARY — that
# no governance word survives as a literal — and would be just as green if
# every word had been DELETED. This file measures the other half: that the
# words come from somewhere, that the somewhere is the ONE registered
# profile, that the two halves of the facet (`src/opendox/display_profile.py`
# and `src/opendox/web/views/display.js`) declare the same roles in the same
# order and the same neutral words, that a declared facet is read or refused
# rather than guessed at, and — the slice's own success test — that a
# STUDENT INSTALL, whose profile declares no facet, renders openDox's own
# neutral vocabulary and no word of openxFactory's anywhere in the payload.
# § 4.3 point 5 names the failure it guards: "a fallback to TODAY'S WORDS is
# how the literals survive the refactor invisibly."
#
# `--noconftest` safe and needs no consumer: it imports `opendox`'s own
# `display_profile` alone, reads bundle files as text, and drives the real
# `views/display.js`, `views/model.js`, `views/wheel-model.js` and
# `views/staging-workbench-model.js` under the `node` the runner already has
# (skipped, never failed, where node is absent), exactly as
# `tests/test_view_registry.py` and `tests/test_split_route_tails.py` do.
- name: pytest
run: >-
python -m pytest -q
Expand All @@ -160,4 +185,5 @@ jobs:
tests/test_split_route_tails.py
tests/test_source_core_arm.py
tests/test_gate_loop_contributed.py
tests/test_display_facet.py
--noconftest
46 changes: 42 additions & 4 deletions src/opendox/canvas_drafts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,46 @@

def supersede_reason(chosen_id: str) -> str:
"""The one wording shared with canvas-model.js `supersedeReason` (locked by a
cross-check in test_canvas.py)."""
return f"Option-set sibling {chosen_id} was chosen at the cluster canvas."
cross-check in test_canvas.py).

PARAMETERIZED AT § 3.4 SLICE S7. The sentence names the GROUPING station, and
that station's word is the registered domain's. Both sides now read it from
the same display facet — the browser from `ctx.display`, this side from
`display_profile` — so the two stay byte-identical under any vocabulary
instead of being locked to one domain's spelling in two places.
"""
return (f"Option-set sibling {chosen_id} was chosen at the "
f"{_facet()['stages']['grouping']['one']} canvas.")


def _facet() -> dict:
"""The registered domain's display facet, resolved at CALL time.

Never at import time, and never cached: the whole value of the lazy profile
proxy is that importing this module cannot fail for want of a host, and a
module-level read would give it back.
"""
from opendox import display_profile
return display_profile.display_manifest(display_profile.host_display())


def register_state(role: str) -> str:
"""The wire value `possibles[].state` carries for `role` (slice S7,
Copilot round 3).

THE DRAFT BUILDERS WRITE THE SAME ENUM THE BROWSER MATCHES ON. `states`
below used to be the literals `"superseded"` and `"latent"`, which is the
one place a host override of `values.register_state` would have split the
two halves apart: the browser would match the declared vocabulary while
this side wrote openDox's, and a newly drafted possible would be invisible
to the very install that created it. Both ends read one facet now.
"""
values = _facet()["values"]["register_state"]
if role not in values:
raise KeyError(
f"no register state is declared for the role {role!r}; the declared "
f"roles are {tuple(values)!r}")
return values[role]


# --------------------------- snapshot lookups ---------------------------
Expand Down Expand Up @@ -143,7 +181,7 @@ def build_supersede_draft(snapshot: dict, option_set_id: str, chosen_id: str) ->
"id": p.get("id"),
"title": p.get("title") or p.get("id"),
"claim": p.get("claim") or p.get("title") or p.get("id"),
"state": "superseded",
"state": register_state("superseded"),
"reason": supersede_reason(chosen_id),
"citation": chosen_id,
"provenance": provenance,
Expand Down Expand Up @@ -186,7 +224,7 @@ def build_composer_draft(
"id": id.strip(),
"title": title.strip(),
"claim": claim.strip(),
"state": "latent",
"state": register_state("captured"),
"provenance": provenance,
"claiming_clusters": [cluster_id],
"supporting_evidence": pins or None,
Expand Down
Loading
Loading