Skip to content

Realize add-opendox-project-header: Opensoft openDox, project-first header, edit-project - #86

Merged
brettheap merged 1 commit into
mainfrom
change/realize-opendox-header
Aug 6, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/realize-opendox-header

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Ratified by Brett ("ratify both and realize them in order") and realized in order after exit 2 (#85): tasks 1.1–1.3, 2.1–2.2, 3.1–3.5, 4.1–4.2.

The header (D12–D14)

  • "Opensoft openDox" — brand + title; the repo chip retires (the freshness header names repo @ ref).
  • The project dropdown — "New Project…" first (opens the rehomed create form, restores the selection; disabled gate-off), then the register's projects with D-e pending entries preserved; default = last-used else first — always in a project.
  • The repo filter — one icon, one popover of the current project's members: single-select switches the served repo; the "all repositories" line is armed by exit 2's derived aggregate (disabled naming the merged view when absent); unavailable members say why.

edit-project (D15)

The membership-edit commission: additive contract growth (both gate schemas + examples + parametrized conformance group), kickoff.edit_project() with guards in ruled order (diff shape → register reachability → project existence → addition universe/not-already-member → removal membership → the at-least-one-member floor → duplicate on the shared index), route + CLI twin + delegate, and the projection's new pending_edits plane — manage mode's checkbox diffs commission the edit, badge as pending, and never touch the register (the fulfilment does).

Evidence

11-test edit-project group (engine + wire + pending plane); header model tests in node; renderer fetch pins widened by their declared arithmetic (repo-selector.js 4 → 5, the route individually named); full suites 2755 passed / 0 failed; strict validation 53/53; live browser check green on both planes (dropdown/filter/manage; gate-off degrade; zero page errors).

Remaining: 1.4 bundle registration (rides create-project's at the next additive cut); 4.3 Brett's first real edit-project commission + fulfilment.

🤖 Generated with Claude Code

…st header, edit-project

Ratified by Brett 2026-08-06 and realized: tasks 1.1-1.3, 2.1-2.2,
3.1-3.5, 4.1-4.2.

Contracts: edit-project grows both gate schemas additively (enums, the
existing project_id target, workflow-job companion), packaged examples,
and the conformance group now parametrizes both project verbs.

Engine: kickoff.edit_project() — the commission mechanic for an
EXISTING project's membership. Guards in ruled order (diff shape with
either-list-empty-but-not-both and no repo in both lists, register
reachability via upward discovery, project existence, additions in the
roster-or-register universe and not already members, removals currently
members, the at-least-one-member floor, duplicate via the shared
(verb, target) index); descriptor payload add/remove; the register is
never written here. Route, CLI twin (gate edit-project <id> --add
--remove), GateConsole delegate; the projection route gains the
pending_edits plane (the D-e posture applied to D15).

Header (D12-D14): the brand and title become "Opensoft openDox"; the
repo chip retires (the freshness header names repo @ ref). The picker
cluster becomes the PROJECT DROPDOWN — "New Project…" first (opens the
rehomed create form and restores the selection; disabled gate-off),
then the register's projects with pending entries preserved; default =
stored-else-first, always in a project. Repository selection becomes
the FILTER: one icon, one popover of the current project's members,
single-select storing the key and reloading, the all-repos line armed
by exit 2's derived aggregate (disabled naming the merged view when
absent), unavailable members saying why, and manage mode (gate only)
committing membership diffs as edit-project commissions with pending
badges.

Evidence: 11-test edit-project group (engine + wire + pending plane),
header model tests in node, renderer fetch pins widened by the declared
arithmetic (repo-selector.js 4 -> 5, the route individually named),
full suites 2755 passed / 0 failed, strict validation 53/53, live
browser check green on both planes (brand/dropdown/filter/manage;
gate-off degrade; zero page errors). Remaining: 1.4 bundle registration
(rides create-project's) and 4.3, Brett's first real edit-project.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 6, 2026 16:13
@brettheap
brettheap merged commit 6d060f2 into main Aug 6, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds support for the new edit-project commission (contracts → engine/routes → UI) and updates the dashboard header to be project-first (“Opensoft openDox”), including repo filtering and membership management with pending-edit badging.

Changes:

  • Extend v1 gate intent + action-record schemas/examples to include edit-project, and update contract conformance tests.
  • Implement edit-project commissioning end-to-end (kickoff + console + routes + CLI) and expose pending_edits on the project-register projection.
  • Redesign the header UI (project dropdown, repo filter popover, manage-members mode) with new JS model helpers and updated renderer tests.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/ideation_dashboard/test_project_action_contracts.py Parametrizes contract conformance tests across create-project and edit-project.
tests/ideation-dashboard/test_repo_selector.py Adds Node-driven probe coverage for the new header model derivations.
tests/ideation-dashboard/test_renderer.py Updates route-count pins and HTML brand assertion for the header redesign.
tests/ideation-dashboard/test_edit_project.py New end-to-end tests for edit-project guards, wire shape, and pending_edits projection.
scripts/ideation_dashboard/web/views/repo-selector.js Implements project-first dropdown, repo filter popover, and manage-members commissioning UI.
scripts/ideation_dashboard/web/views/repo-selector-model.js Adds derivations: default scope, filter rows, manage diff, pending edit parsing.
scripts/ideation_dashboard/web/styles.css Adds styling for the new filter popover and project controls.
scripts/ideation_dashboard/web/index.html Updates brand/title and removes the retired repo chip element.
scripts/ideation_dashboard/web/app.js Removes repo chip updates to match the new header composition.
scripts/ideation_dashboard/serve.py Adds pending_edits to the project-register projection payload.
scripts/ideation_dashboard/kickoff.py Adds edit_project() commissioning logic + duplicate guarding via the shared index.
scripts/ideation_dashboard/gate_routes.py Adds the edit-project gate route and request validation.
scripts/ideation_dashboard/gate_console.py Exposes edit_project() on GateConsole and defines ACTION_EDIT_PROJECT.
scripts/ideation_dashboard/cli.py Adds gate edit-project subcommand for commissioning membership edits.
openspec/changes/add-opendox-project-header/tasks.md Marks spec tasks complete and documents verification steps.
examples/ideation-dashboard/gate-intent-edit-project.example.yaml Adds example intent for edit-project.
examples/ideation-dashboard/gate-action-record-edit-project.example.yaml Adds example action record for edit-project.
contracts/schemas/gate-intent.schema.yaml Extends v1 verb enum + conditional target requirements for edit-project.
contracts/schemas/gate-action-record.schema.yaml Extends v1 action enum + workflow-job companion conditional for edit-project.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +429 to +430
const pendingProjects = buildPendingProjects(o.projects);
const pendingEdits = buildPendingEdits(o.projects);
@@ -22,8 +22,9 @@
// assigned here.

Comment on lines +836 to +838
known = {repo for p in projects for repo in (p.get("repositories") or [])}
known |= {str(r) for r in (roster or [])}
unknown = [a for a in added if a not in known]
Comment on lines +290 to +306
export function projectFilterRows(roster, project) {
if (!project) return [];
const rows = [{
kind: "all",
option: (roster || []).find(
(o) => o.kind === KIND_AGGREGATE && o.repository === project.id) || null,
}];
for (const repository of project.repositories || []) {
rows.push({
kind: "repo",
repository,
option: (roster || []).find(
(o) => o.kind === KIND_REPOSITORY && o.repository === repository) || null,
});
}
return rows;
}
Comment on lines +139 to +144
.filterpop {
position: absolute; top: calc(100% + 4px); left: 0; z-index: 40;
display: flex; flex-direction: column; gap: 2px; min-width: 240px;
background: var(--bg, #fff); border: 1px solid var(--border);
border-radius: 4px; padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.filteractive { font-weight: 700; }
.filterall { border-bottom: 1px solid var(--border); border-radius: 0; padding-bottom: 5px; }
.filtermanage { border-top: 1px solid var(--border); border-radius: 0; padding-top: 5px; color: var(--muted); }
.managepane { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; }
@brettheap
brettheap deleted the change/realize-opendox-header branch August 21, 2026 23:57
brettheap added a commit that referenced this pull request Oct 5, 2026
…Host case hold at both pins (T066's form; not an arc landing) (plan 034) (#1234)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Authored by lane openXfactory-3, delegated by lane openxfactory-4 (#656 5984809313)

Plan 034, **T094's ahead PR** (`specs/034-opendox-standalone-operation/tasks.md` at openxFactory `main` `ba6bb870`, T094's **After** line: *"the ahead PR (E1 (a), a non-arc PR with no task of its own: the golden, the usage line and the rebound-Host case)"*). The rulings are E1 (a) and E3 (a), recorded with `5970369724`; the tree at 32, `5970917267`; and E3 (a)'s reading, E5 (a) and the rebound-Host case, `5972924576`. This PR makes three openxFactory test surfaces hold at BOTH openDox legs:

- **the current pins**: openDox `d5098297` (code `047bb4fa`) and openXdox `f257e021` (code `6a3b93b9`);
- **phase 3's leg**: openDox-code `dede32b4`, the commit that T087's openDox root `e1e3a3c3` (opensoft/openDox#18) pins.

**Not an arc landing.** Per T091 and plan.md § "The trailer, the guard and Rule 6", no commit of this PR and no line of this body carries the arc trailer. It touches no `openspec/` path, so no Rule 6 window applies. No commit and no line here carries a closing keyword. It moves no pin and carries no host wiring (E3 (a)): T094 moves both pin pairs.

The three commits were prepared by lane openxfactory-4 in its T094 prep and are carried onto `main` unchanged (the same patch ids). Their "Measured:" paragraphs are that prep's runs; this body's are below. `1661c63d` merges `main`'s one later commit (T007 batch P, #1230), which touches none of these files.

## What it changes

| file | change | both-pins form |
| --- | --- | --- |
| `tests/domain_profile/fixtures/cli-help-tree.phase3.golden.txt` (new) | The assembled `--help` tree at phase 3's leg, 32 sections: T070's `generate-and-open --local`; T079's and T080's `--model`, the `none` auth kind and the optional credential reference on `model-binding add` and `edit`; T084's program name `opendox` in every usage line, with openDox's own root description and epilog; and T100's `model-binding trust`, the 32nd entry point (research R8). It lives outside `tests/ideation-dashboard/`, a `moved_paths:` prefix of the carve manifest, where a new file is `carve-file-undeclared`. | Read only where the pinned parser has phase 3's layout. |
| `tests/ideation-dashboard/test_extension_point_parity.py` | `pinned_help_golden` picks the golden off the pinned parser, never off the text compared: its `prog` (`ideation-dashboard` before T084, `opendox` from it) and whether `model-binding` offers `trust` (T100). A leg with one change and not the other is refused by name. Two new cases: the two goldens hold the same entry points plus `model-binding trust`, and the selector's negative control. | Both layouts, each held byte for byte. |
| `tests/ideation-dashboard/test_cli_column_split.py` | `test_a_contributed_verb_is_reachable_in_both_documented_invocations` reads the usage line's program off the pinned leg, `cli.PROG` (T084), and `ideation-dashboard` where the leg has no `PROG` (E5 (a)). | Both program names. |
| `tests/ideation-dashboard/test_doxbench_routes.py` | `test_console_gate_refuses_host_not_naming_the_bound_port` expects `403 invalid_host`, from `serve.FOREIGN_HOST_*`, where the leg has T103's Host gate (openDox-code#80), and `console_required` where it does not. Either way the request is refused and the model port is never asked. | Read off the leg (`serve.FOREIGN_HOST_ERROR`), never off the answer. |

None of the four files is one of F11.1's declared surfaces (`HOST`, `HOST_TESTS`, `PIN_PAIRS`, `COMPOSITION_TESTS`, `ADMITTED_ARC_EDITS`), which is why they move here and not in T094's arc landing.

## The golden, regenerated from T087's commit

The tree is the parity test's own walk (`walk_parser` and `help_tree`, at `COLUMNS=100`), printed by a probe that makes the suite's two set-up calls (`carved_reach.install(tests=True)`, `register_openxfactory()`) with the openDox code leg at the named commit:

| openDox-code leg | sections | bytes | sha256 | against this PR's golden |
| --- | ---: | ---: | --- | --- |
| `047bb4fa`, the current pin (the control) | 31 | 53425 | `9cbeca99…` | byte for byte `tests/ideation-dashboard/fixtures/cli-help-tree.golden.txt`, the golden `main` already holds |
| **`dede32b4`, T087's** (root `e1e3a3c3`) | 32 | 52827 | `9cc6e383…` | **identical** |
| `38d3350e` with #84 `af2a2efb` and #86 `96ae8816` merged (the drift check before they landed) | 32 | 52827 | `9cc6e383…` | identical |

- openDox-code#79's `0.1.0` changes `pyproject.toml` only. The parser has no version flag and the tree carries no version string.
- The openXdox leg does not move the tree: the same bytes come out with openXdox-code at its pin `6a3b93b9` and at T086's head (openXdox-code#37, `69997db7`).

## The measurements

Every local run follows `pytest-suite`'s own steps: a checkout named `openxFactory` with `openXwallet`, and `openDox` and `openXdox` recursively, initialized; Python 3.12.3; the hash-pinned lock; node 24; the pinned OpenSpec CLI 1.12.0; `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`; then `python3 -m pytest tests/ -q -m "not postgres"`.

| run | head | legs | result |
| --- | --- | --- | --- |
| **CI** | `1661c63d` | the pins | All 14 check-runs at the head succeeded. `pytest-suite` (run `37311052114`): **8929 passed, 6 skipped, 0 failed**: `selected=9347 passed=9341 skipped=6 failures=0 errors=0`, margin 2297, `skipped==6`; the freshness verifier and the vector replay passed. |
| P | `1661c63d` | the pins | The parity, doxbench-routes, CLI column split and carve test mapping suites: **324 passed**. `validate-carve-manifest`: OK, 456 rows, none undeclared. Full suite **8930 passed, 5 skipped, 0 failed**: `selected=9347 passed=9342 skipped=5 failures=0 errors=0`; the freshness verifier and the vector replay passed. |
| P0 | `7657cc3e`, before the merge of `main` | the pins | the same four suites, 324 passed; `validate-carve-manifest` OK; full suite **8930 passed, 5 skipped, 0 failed**: `selected=9347 passed=9342 skipped=5 failures=0 errors=0`, the freshness verifier and the vector replay passed |
| X3 | this PR's files, openDox code at `dede32b4` and openXdox code at T086's head `69997db7`, overlaid with no pin moved | phase 3 | The parity file, the rebound-Host case and the usage-line case: **14 passed, 2 failed**. The two are T094's own composition cases (next list). |
| X2 | the same, with openXdox code at its pin `6a3b93b9` | mixed | 13 passed, 3 failed: the same two, and the rebound-Host case refused at server build (`RouteBindingError`: no `_serve_index`, no `_handle_gate_action`), because phase 3's openDox leg no longer carries `consumer_reach` for phase 2's openXdox leg. No phase pins this mix; T094 moves both pairs together. |

- **The two reds at phase 3 are T094's.** `test_the_core_dispatch_table_is_unchanged[_route-pinned0]` (the `/capabilities` arm reaches `_serve_bytes`, `_session_repository` and `install_report` from T103) and `test_the_mixins_precede_simplehttprequesthandler_in_the_mro` (`consumer_reach` is gone). Both are named composition tests under R1Q2 (a), and T094's arc landing updates them.
- **Why a local run skips 5, not CI's 6.** The work tree sits inside an xFactory aggregation checkout, so `tests/domain_profile/test_session_worktree_book_scan.py::test_worktree_container_is_gitignored_in_the_aggregation_repo` finds the aggregation, runs and passes, where a runner skips it. CI's 8929 passed + 6 skipped and P's 8930 passed + 5 skipped are the same 8935 tests. The local five are the two `tests/notebooklm` module skips, the two conformance-gate self-gate skips and the LedgerxFactory fixture-drift guard.

## Review

| Copilot at | verdict | threads | answered in |
| --- | --- | --- | --- |
| `1661c63d` | Approval recommended; findings: none | none | nothing to answer |

## Landing

- No arc trailer, no closing keyword, no `openspec/` path, so there is no Rule 6 window.
- It opens as a DRAFT. With its gates and Copilot clean at its head it leaves draft and READY-CANDIDATE is posted on #656; the holder marks it READY, and the landers merge it.
- It lands **before T094**, whose **After** line names it. T094 then moves both pin pairs, with the host wiring and its composition tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants