Skip to content

Intent plane 4.4 (PR-1): hosted tray emits intents; pending/applied/refused chips and refusal panel from the inbox plus the committed-intent feed - #718

Merged
brettheap merged 7 commits into
mainfrom
feat/intent-plane-4-4-hosted-tray
Sep 6, 2026
Merged

brettheap merged 7 commits into
mainfrom
feat/intent-plane-4-4-hosted-tray

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

PR-1 of add-ideation-intent-plane task 4.4 — "Hosted tray flips from
descriptor to intent emission; intent-feed overlay (pending/applied/refused
chips) + refusal panel against GET intents" — under Brett Heap's rulings on
openxFactory #656: Path A (finish and promote this change; 4.5 is a
deferred successor), D-1 (the applied/refused feed is SERVED FROM THE
CORPUS — the dashboard reads the committed intent files read-only beside the
inbox's pending list; no new write path, the hosted pod stays credential-free)
and D-5 (plain PRs against the existing change, no Speckit directory).

Refs #656

Code and tests only. No openspec/, contracts/, docs/ or README.md
edits: the task tick and the records come in PR-5.


What lands

1. The actions.intent capability (serve.py). A SERVED (non-loopback)
plane advertises actions.intent; a loopback plane does not and keeps
gate = local_human unchanged. Design D5 fixes the pair — "the LOCAL dashboard
gets executing gate routes + the dispose tray FIRST … and the identical tray
then targets the intent API when hosted" — so exactly one of gate and
intent is ever true and a tray asks one question to get one transport. The
reasoning is in compute_capabilities' own docstring, beside the session
and refresh paragraphs it follows.

2. GET /committed-intents.json (serve.py +
scripts/ideation_dashboard/intent_feed.py). The corpus half of the feed:
every terminal intent the apply lane committed under
ideation/dashboard/intents/, read per request out of the checkout this serve
already exposes through /source/, as JSON whose intents array mirrors the
inbox's envelope so one client can concatenate. Filters ?actor=, ?status=,
?target=, ?limit=; bounded on files scanned, file size and rows returned,
with truncated when a bound bit. An absent or empty directory is an EMPTY
feed, not an error. No network call, no credential, no write.

3. The tray (web/views/intent-feed.js new; dispose.js, wheel.js,
composed-model.js, styles.css). With caps.actions.intent the verdict
buttons EMIT — same-origin POST /intents carrying the gate-intent kernel's
request half with snapshot_rev_seen = the client's source_revision (D4) —
instead of executing. The chips join the inbox's live list with the committed
feed and render pending / applied / refused (and stalled, see below) per
target; the refusal panel takes inbox refusals synchronously from the submit
response and lane refusals from the corpus feed. textContent only; polling with
backoff; every error rendered as state.

4. Tests. tests/ideation-dashboard/test_intent_feed.py (94, with PyYAML
as the reader's oracle) and test_intent_tray_dom.py (16 node-DOM probes
driving the real modules against a shim whose innerHTML setter throws).


Design decisions taken

Each open question the survey raised, decided, with the decision's warrant.

A. actions.intent, not a reused actions.gate — design D5, and
compute_capabilities' own SESSION-vs-GATE precedent.
gate means
"loopback-direct-execute authority"; hosted intent emission is a different
transport with a different authority, and _handle_gate_action refuses
unconditionally off-loopback before it reads a body. Overloading one flag would
make /capabilities ambiguous in exactly the way that docstring already says it
refuses to be. Additive: no existing key renamed or removed.

B. The predicate is not loopback — and nothing else — design D5,
add-dashboard-account-menu Requirement 2.
Not hosted_actor (per-request,
DISPLAY-ONLY; keying a capability on it would make the actions map differ
between two requests to one server, and Requirement 2 forbids it — the test
that pins it is extended, not relaxed). Not actor (local identity; a hosted
plane has none by construction). Not checkout_real (emission is a POST to
another pod). An unauthenticated POST gets the inbox's own 401, which the tray
RENDERS — a refusal, not a withheld capability.

C. /committed-intents.json, never /intents — deployment fact. The
dox-auth gateway routes /intents, /intents/* and /intents?* to the inbox
pod and everything else to the dashboard (upstream_for), so a dashboard route
of that name is unreachable in the only deployment that needs it. The name
follows the existing /snapshot-index.json / /project-register.json idiom.

D. A live route, not a snapshot field — the delta's Two-plane rendering
requirement.
The deterministic snapshot stays the only view-model source;
the feed is a separate overlay that never mutates it. generator.py and
snapshot.py are untouched. It is also the shape task 2.4 of
split-opendox-two-layer-product will want: a self-contained projection-column
handler with its own route constant and no shared mutable state, so it lifts
cleanly when the extension point lands.

E. The route is plane-independent; the OVERLAY is hosted-only — D-1 says
"the dashboard reads", without distinguishing plane.
The route answers on
loopback too (which is what makes it testable over real HTTP), but the client
polls it only when caps.actions.intent is present, so the LOCAL tray's
behaviour is byte-for-byte unchanged and its session-local applied overlay
keeps exactly one source of truth. Pinned by test_i3.

F. readOnlyCaps strips intent too — add-project-merged-projection
D10.
Intent emission is acting (it REQUESTS a governed act), so the composed
view's read-only plane strips it with gate/session/edit. A composed
snapshot's ids are namespaced repo::id and name no target the lane could
address anyway.

G. A committed record WINS over an inbox row with the same identity — the
inbox's observed behaviour.
The inbox never updates its own store after a
successful dispatch, so every applied intent still reads pending there.
Concatenating the two feeds would show a permanent pending chip beside its own
applied chip — the ordinary path, not an edge case. Pinned by test_i5.

H. The join key is idempotency_key, with the tuple it digests as
fallback
— intent_apply_lane.request_digest vs the inbox's
idempotency_key.
The two digest differently (raw vs canonical target; the
lane resolves an abbreviated rev to a full one first), so they agree only when
the browser sends exactly the verb's ONE target key and the FULL
source_revision. The tray does both — test_i1 pins the body shape — and
the join additionally matches on (actor, verb, target, rev) so a
canonicalization difference degrades to a slower join rather than a chip that
never resolves.

I. No client-side idempotency key — the kernel schema's own note. The
inbox computes one and the lane RECOMPUTES it from validated fields ("a
supplied or stored idempotency_key string is data, never an authority").
A client-supplied key would be decoration two servers ignore.

J. A fourth chip state, stalled, for the inbox's 502 — the delta's "a
refusal … never silently dropped".
A dispatch failure is stored with status
still pending plus a dispatch_error, which a status filter cannot tell from
a healthy queue — it would read as in-flight forever. It gets its own state and
its own panel line instead. Additive UI only; no contract shape changes.

K. dispose-possible only — the delta's "Dispose tray is the first
verb"; proposal.md's "the first hosted verb".
The other kernel verbs
(propose, promote-to-staging, derive-possibles, research-brief,
demote, create-project, edit-project) entered the schema through later,
unrelated changes and stay local-only commissioned-dispatch verbs here. No
hosted flip is asked for them anywhere in this change.

L. WRITE_ACTIONS in the account menu is NOT extended — the kernel
schema's framing: an intent "is NEVER a write".
Listing intent there would
make the hosted plane's access-level line claim write-class access it does not
have.

M. The committed-intent reader is stdlib-only, with PyYAML as its test
oracle
— the deployment constraint corpus_root.py already documents. The
hosted image is python:3.12-slim with no pip dependencies
(containers/ideation-dashboard/Dockerfile), so PyYAML is not importable in
the pod that must answer this route — the same reason corpus_root exists as
its own module. intent_feed therefore reads the one shape
intent_apply_lane._write_intent emits with the standard library alone, and
skips anything it cannot read confidently rather than guessing. That is a real
risk to take on, so it is discharged by measurement, not assertion: PyYAML —
which the TEST environment has — is the oracle over a matrix of the values its
own emitter is awkward about (unicode escapes, folded long lines, embedded
quotes/colons/newlines, number-like and bool-like strings, three emitter
widths) plus documents written by the REAL apply lane into a real git corpus.
One runtime path, one independent oracle. (A 32,000-document randomized
comparison was run during authoring; the 75 checked-in parametrizations are the
distilled matrix.)

N. INTENTS_DIR / VERB_TARGET_KEY are restated, not imported — same
constraint: intent_apply_lane imports PyYAML at module scope, so the serving
pod cannot import it at all. The restatement is guarded by a test that holds it
to the lane's own definitions, exactly as corpus_root.SCANNED_ROOTS is
guarded against doc_health.corpus.GOVERNED_ROOTS, plus a third test holding
the browser bundle's copy to the same table (a browser that spells a target key
differently mints a request identity the lane never recomputes).

O. Only TERMINAL intents are served, and a reasonless refusal is skipped —
the lane commits applied/refused only; the delta requires a refusal to be
visible WITH its reason.
A pending file on disk means the corpus disagrees
with the lane, and a refusal with no reason is a defect in the file — neither
is laundered into a chip.

P. design.md is D1–D7, not D1–D18. The task framing said D1–D18; the
ratified design.md has seven decisions plus Risks / Migration / Open
Questions. Citations above use D1–D7 and Brett's #656 rulings. Reported, not
edited (this PR touches no openspec/).


Checks

  • python3 -m pytest -q tests/ideation-dashboard — 4869 passed, 18
    skipped, 0 failed (13m06s)
  • python3 -m pytest -q tests/doc-health tests/sequenced_after tests/proposal-support —
    1807 passed, 2 subtests passed, 0 failed
  • doc-health --single-repo delta vs a fresh origin/main worktree — ZERO
    (byte-identical once the repo-identity line is normalized; expected, since
    GOVERNED_ROOTS is contracts/docs/examples/ideation/templates and nothing
    in this PR is in one)
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict — 95 passed, 1
    failed: change/disposition-codexfactory-declared-renames
    , which fails
    identically on a fresh origin/main worktree. Pre-existing, reported only,
    untouched.

Three defects the FULL suite caught that the new files alone did not — all
fixed in the third commit, and worth naming because two of them are the kind a
scoped run hides:

  • dispose.js now imports intent-feed.js, and two sibling node harnesses
    (test_wheel_verbs_dom.py, test_staging_workbench.py's ending replay)
    copy a hand-listed set of modules into a scratch views/ directory — both
    died at module resolution until the list gained it.
  • the two feeds spell RFC 3339 differently ("+00:00" from the inbox,
    "Z" from the lane), so the lexical sort floated every lane row above every
    inbox row whatever the clock said.
  • announce sat inside poll's try block ahead of the rescheduling line, so
    a render that threw froze the overlay silently and permanently.

One pre-existing failure is NOT from this PR and is not fixed here:
test_snapshot.py::test_find_validator_locates_pinned_checkout fails in any
worktree whose directory is not named openxFactory (it walks upward for a
sibling checkout of that name). Reproduced on a fresh origin/main worktree;
the verification run above was therefore done in a worktree named
openxFactory, matching the CI clone shape.

Not run by this PR and not claimed: a live hosted exercise. The hosted plane is
reachable only through the QA AKS ingress, and the emission path's shape is
pinned here against the inbox's real response vocabulary read out of
Omnigent-Install/intent_inbox/server.py.

Offered for Brett Heap's word — not merged, no LANDING posted.

🤖 Generated with Claude Code

https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ

brettheap and others added 3 commits September 6, 2026 05:45
…swers with

add-ideation-intent-plane task 4.4, browser half. Design D5 says the local
dashboard gets the executing tray first and "the identical tray then targets
the intent API when hosted" — so this adds a transport to the tray it already
has rather than a second tray.

`intent-feed.js` is the new module and owns three things the local plane has no
equivalent of:

  * EMISSION. A same-origin POST /intents carrying the gate-intent kernel's
    request half — verb, the verb's ONE target key, and `snapshot_rev_seen`
    from the snapshot's own `generation.source_revision` (design D4). No actor
    (the inbox stamps it from the ingress and discards a body-claimed one) and
    no idempotency key (both servers recompute it from validated fields). The
    target carries exactly one key and the revision is unabbreviated, because
    the inbox digests the raw target while the lane digests the canonical one
    and resolves the revision first: a stray member or a short sha mints an
    identity the lane never recomputes, and the pending chip would then never
    resolve to its own outcome.
  * THE TWO-FEED JOIN. Pending and inbox-refused come from the inbox's live
    GET /intents; applied and lane-refused come from this dashboard's own
    read of the committed corpus (ruling D-1). It has to be joined in the
    browser: they are different pods and the credential-free dashboard may not
    call the inbox on the viewer's behalf. A COMMITTED record wins over an
    inbox row with the same identity, because the inbox never updates its own
    store after a successful dispatch — every applied intent still reads
    "pending" there, so a concatenation would show a permanent pending chip
    beside its own applied chip on the ordinary path.
  * THE OVERLAY. Chips beside the tray and a per-tile indicator, both read
    from the feed and neither touching the model (the delta's two-plane
    rendering requirement). Polling with backoff; a feed that cannot be read
    renders as its own "feed unavailable" chip rather than as "nothing
    happened".

A fourth chip state, `stalled`, carries the inbox's 502: a dispatch failure is
stored with `status` still `pending` plus a `dispatch_error`, which a status
filter cannot tell from a healthy queue and would otherwise read as in-flight
forever. The refusal panel gains a third kind, `queued`, for the same reason in
the other direction — a submitted intent is neither applied nor refused yet,
and calling it either would be a lie the human acts on (design D1: the click is
the decision, the apply is the custody step behind it).

`readOnlyCaps` strips `intent` with the other acting capabilities: a composed
view is read-only by D10, and its namespaced `repo::id` names no target the
apply lane could address anyway.

Absent `caps.actions.intent` NOTHING about the loopback path moves — same
route, same body, same panel entries, same session-local overlay, no chips.
That is pinned rather than asserted (test I3), as is the emitted body's shape,
the join's precedence rule, and the requirement that a refusal reason written
by another service renders as literal text: the DOM shim throws on any
non-empty innerHTML, so the last one is mechanical.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ
…eed it reads

add-ideation-intent-plane task 4.4, server half, under Brett Heap's ruling D-1
on openxFactory #656: "the applied/refused feed is SERVED FROM THE CORPUS — the
dashboard reads the committed intent files read-only beside the inbox's pending
list; no new write path, the hosted pod stays credential-free".

THE CAPABILITY. `actions.intent` is the gate seam's other binding and the
photographic negative of the gate leg: the served plane emits, the loopback
plane executes (design D5). So exactly one of `gate` and `intent` is ever true
and a tray asks one question to get one transport; a local session's
`gate = local_human` verdict is unchanged. The predicate is the PLANE and
nothing else — not `hosted_actor` (per-request and display-only;
`add-dashboard-account-menu` Requirement 2 says the header flips no capability
verdict, and keying on it would make the actions map differ between two
requests to one server), not `actor` (a hosted plane has none by
construction), not `checkout_real` (emission is a POST to another pod). An
unauthenticated POST gets the inbox's own 401, which the tray RENDERS — a
refusal, not a withheld capability. Every exact-dict capability pin is extended
rather than relaxed.

THE FEED. `GET /committed-intents.json` lists the terminal intents the apply
lane committed under `ideation/dashboard/intents/`, read per request from the
checkout this serve already exposes through `/source/` — so the pod gains no
authority it did not have: no network call, no token, no write, and no byte
that was not already readable at `/source/ideation/dashboard/intents/...`. It
is NOT called `/intents`: the dox-auth gateway routes that prefix to the inbox
pod, so a dashboard route of that name is unreachable in the only deployment
that needs it. Filters mirror the inbox's `?actor=&status=` so one client can
ask both feeds the same question, plus `?target=` and `?limit=`; every axis is
bounded and `truncated` says when a bound bit. An absent or empty directory is
an EMPTY feed, not an error — a checkout with no intents yet is the ordinary
first state and the overlay must be able to say "nothing yet" rather than "the
feed is broken".

WHY `intent_feed.py` PARSES YAML BY HAND. The hosted image is python:3.12-slim
with no pip dependencies (Omnigent-Install
containers/ideation-dashboard/Dockerfile), so PyYAML is not importable in the
pod that has to answer this route — the same constraint `corpus_root.py`
already exists for, and the reason this module restates the apply lane's
intents directory and verb/target table instead of importing them (the lane
imports PyYAML at module scope). The reader handles exactly the one shape
`_write_intent` emits and SKIPS anything it cannot read confidently: a
malformed file drops out of the feed rather than poisoning it, and only
terminal intents are served at all.

That risk is discharged by measurement rather than assertion. PyYAML — which
the test environment does have — is the oracle: the reader must return exactly
what it returns, over a matrix of the values its own emitter is awkward about
(unicode escapes, folded long lines, embedded quotes and colons and newlines,
number-like and bool-like strings, three emitter widths) and over intents the
REAL apply lane wrote into a real git corpus. The restated constants are held
to the lane's own by a third test, the way corpus_root's SCANNED_ROOTS is held
to doc_health's GOVERNED_ROOTS — and the browser bundle's copy of the verb
table is held to the same, because a browser that spells a target key
differently mints a request identity the lane never recomputes.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ
… the two sibling node harnesses

Three defects found by running the whole dashboard suite rather than the new
files alone — which is the point of running it.

ORDERING. The two feeds spell RFC 3339 differently: the inbox stamps
`datetime.now(timezone.utc).isoformat()` ("...+00:00") and the apply lane
stamps `strftime("%Y-%m-%dT%H:%M:%SZ")` ("...Z"). Those two spellings of the
SAME instant do not compare correctly as strings — "Z" sorts after "+" — so
the lexical sort floated every lane row above every inbox row whatever the
clock said, and the newest-wins tile index inherited the mistake. Parsed to a
number, both are one instant; an unparseable stamp sorts oldest rather than
throwing.

RESILIENCE. `announce` calls into rendering, and it sat inside `poll`'s try
block ahead of the line that reschedules the next poll — so a render that threw
took the rescheduling with it and froze the overlay on whatever it last drew,
silently and permanently. That is precisely the failure this feed exists to
prevent, so a subscriber's failure now becomes feed state like any other error
and the loop keeps its cadence.

THE TWO SIBLING HARNESSES. `dispose.js` now imports `intent-feed.js`, and the
node DOM probes copy a hand-listed set of modules into a scratch `views/`
directory — so `test_wheel_verbs_dom.py` (8 tests) and
`test_staging_workbench.py`'s ending-replay probe died at module resolution
with the import unsatisfied. Both lists gain the module; neither probe passes
`opts.intent`, so both still drive the LOCAL path exactly as before.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ
Copilot AI lite review requested due to automatic review settings September 6, 2026 10:04

@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.

🟡 Changes recommended

There are confirmed correctness/performance issues in the new intent polling/refresh logic and committed-intent directory scanning that should be fixed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Implements the hosted “intent plane” for the ideation dashboard’s dispose tray by adding an actions.intent capability, serving a read-only committed-intent feed from the corpus, and wiring a client-side overlay that joins inbox + committed intents to render pending/applied/refused/stalled chips and refusal panel entries.

Changes:

  • Add actions.intent capability to distinguish hosted intent emission from loopback gate execution.
  • Add GET /committed-intents.json backed by a stdlib-only YAML reader over committed intent files in ideation/dashboard/intents/.
  • Add hosted-tray intent emission + polling/join UI (intent-feed.js) and integrate it into the wheel/dispose tray UX, with new DOM-driven tests.
File summaries
File Description
tests/ideation-dashboard/test_wheel_verbs_dom.py Updates node DOM harness module copying to include the new intent-feed module dependency.
tests/ideation-dashboard/test_staging_workbench.py Updates ending-replay harness module copying for intent-feed module resolution.
tests/ideation-dashboard/test_project_aggregates.py Extends capability assertions to include actions.intent.
tests/ideation-dashboard/test_notebook_action.py Extends capability dict pinning to include actions.intent (served vs loopback behavior).
tests/ideation-dashboard/test_intent_tray_dom.py New DOM-driven tests covering hosted tray emission, chip rendering, refusal panel, and polling behavior.
tests/ideation-dashboard/test_intent_feed.py New tests for stdlib YAML reader parity vs PyYAML, feed bounds/filters, and capability semantics.
tests/ideation-dashboard/test_doxbench_request_handling.py Updates capability dict pinning to include the new actions.intent key.
scripts/ideation_dashboard/web/views/wheel.js Starts/stops the hosted intent poller, decorates tiles with intent state, and passes intent transport into the dispose tray.
scripts/ideation_dashboard/web/views/intent-feed.js New client module for emitting intents, joining inbox+corpus feeds, polling with backoff, and rendering chips/panel lines.
scripts/ideation_dashboard/web/views/dispose.js Adds hosted intent transport option to the dispose tray and renders per-target intent chips beside verdict buttons.
scripts/ideation_dashboard/web/views/composed-model.js Ensures read-only composed caps strip actions.intent.
scripts/ideation_dashboard/web/styles.css Adds styling for tile intent decoration, queued panel kind, and intent-feed chips.
scripts/ideation_dashboard/serve.py Adds COMMITTED_INTENTS_ROUTE and handler to serve committed intents read-only per-request; adds actions.intent capability.
scripts/ideation_dashboard/intent_feed.py New stdlib-only committed-intent feed implementation (parser + directory walk + bounds + filters).
Review details

Suppressed comments (1)

scripts/ideation_dashboard/web/views/dispose.js:170

  • The hosted tray currently files every non-pending emission result as "refused" in the panel. This mislabels "stalled" (dispatch_error) and "error" (e.g. 401/429) outcomes as refusals, which can send the wrong operator signal.
        panelEntry(result.state === "pending" ? "queued" : "refused",
          possible.id + " → dispose-possible " + v.outcome + ": " +
          result.message);
  • Files reviewed: 14/14 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

brettheap and others added 2 commits September 6, 2026 06:31
… the panel could not say

Three review findings on the hosted intent plane, each fixed with a test that
fails without it.

BOUND THE WALK, NOT ONLY THE READ (intent_feed.py). `sorted(base.rglob(...))`
listed and ordered every committed intent before the first file was opened, so
`MAX_FILES` capped the reading while the listing stayed unbounded — in a module
whose own docstring promises "every axis is capped", over an append-only
directory nothing prunes, on a route every open tab polls every 15 seconds. The
new `bounded_paths` pulls exactly `MAX_FILES + 1` paths off the walk (the extra
one is never opened; it only sets `truncated`) and sorts that bounded candidate
set, so the read order inside a request stays deterministic. WHICH files fall
inside the cap is now directory order rather than lexical order — the honest
trade for the bound, and the answer already says `truncated: true`.

ONE POLLING CHAIN, EVER (intent-feed.js). `refresh()` — called on every hosted
disposal by wheel.js — invoked `poll()` without retiring the tick already
scheduled, and `poll()` unconditionally reschedules itself. Each mid-cycle
refresh therefore left one more live, self-rescheduling chain that `stop()`
could never cancel, so every decision permanently raised the tab's polling rate
against two pods and the leak survived the tab switch that is meant to end it.
`refresh()` now clears the pending handle first, and a `cycle` counter retires
runs the timer alone cannot: a refresh landing while a poll's fetch is still in
flight. Only the newest run publishes its answer and reschedules.

FOUR OUTCOMES, FOUR WORDS (dispose.js, wheel.js, styles.css). `PANEL_KIND` held
"applied", "queued" and "refused", so `emitIntent`'s other two states collapsed
into "refused": a stalled intent (HTTP 502) is ON FILE and undecided, and
calling that a refusal makes the human re-submit a queued decision; an errored
one (401/429/400, unreachable inbox) was never recorded at all, and calling THAT
a refusal reads as a server verdict, so the human does not re-submit what never
got sent. Both now have their own label, class and mapping, and the feed's
stalled rows reach the panel under the same word `refusalLine` already uses.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WoVQPAyEUXZf9S779gRVbo

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.

🟡 Changes recommended

New tests introduce host-absolute path literals (e.g., Path("/corpus/...")), which violates the repo constitution’s “no host-absolute paths in committed files” rule.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

tests/ideation-dashboard/test_intent_feed.py:338

  • These Path("/corpus/...") literals are host-absolute paths, which the repo constitution disallows in committed files. Since they’re only used as synthetic sortable paths, switch them to relative Paths.
    paths, truncated = intent_feed.bounded_paths(
        iter([Path("/corpus/b.gate-intent.yaml"),
              Path("/corpus/a.gate-intent.yaml")]), limit=5)
  • Files reviewed: 14/14 changed files
  • Comments generated: 1
  • Review effort level: Lite

Constitution IV: committed files carry no host-absolute paths. The two
`bounded_paths` units invented paths purely to be counted and sorted, and spelt
them `/corpus/...` — absolute for no reason. They now hang off
`intent_feed.INTENTS_DIR`, which is where a real one lives anyway, so the
fixture reads as the thing it stands for.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WoVQPAyEUXZf9S779gRVbo
Copilot AI review requested due to automatic review settings September 6, 2026 11:13

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.

🔵 Needs a closer look

The intent-feed polling code can permanently suppress a refusal if onRefusal throws, and it drops server-provided error details in readJson() by not parsing JSON on non-OK responses.

Review details

Suppressed comments (2)

Previously missed (2) — in code that hasn't changed since the last review.

scripts/ideation_dashboard/web/views/intent-feed.js:347

  • readJson() throws a generic "HTTP <status>" on non-OK responses and never reads the response JSON, so server-provided error details (e.g., {error: "missing ingress identity"}) are lost. Other view modules in this codebase consistently parse JSON and prefer message/error fields before falling back to the HTTP status.
    scripts/ideation_dashboard/web/views/intent-feed.js:361
  • In announce(), the refusal id is added to seen before calling o.onRefusal(rec). If onRefusal throws (render bug, unexpected DOM state, etc.), that refusal becomes permanently "seen" and will never be filed again, violating the stated requirement that refusals are never silently dropped.
  • Files reviewed: 14/14 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…refuse abbreviated snapshot revisions client-side

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WoVQPAyEUXZf9S779gRVbo
Copilot AI review requested due to automatic review settings September 6, 2026 14:10

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.

🔵 Needs a closer look

It introduces a new externally served route plus a hand-rolled YAML parser and cross-plane UI/transport behavior that warrants final human review despite strong test coverage.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

tests/ideation-dashboard/test_intent_feed.py:257

  • The docstring starts with four quotes (""""), which makes the first character of the docstring a literal " and reads like a typo. Use a normal triple-quote and quote the phrase inside the docstring explicitly.
  • Files reviewed: 14/14 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

RULING — WORD — Brett Heap, 2026-09-06T15:05Z, in session (lane openxfactory-4-opendox-extraction, session 01WoVQPAyEUXZf9S779gRVbo), verbatim: "merge 718 when green" — Path A PR-1 #718 (add-ideation-intent-plane task 4.4: actions.intent capability, hosted tray intent emission, committed-intent feed, chips + refusal panel) lands once green with no unresolved threads; not an openspec/changes/ path, so a landing note rather than a Rule 6 window; admin squash because brettheap-authored PRs cannot self-clear the code-owner review.

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

@brettheap

Copy link
Copy Markdown
Contributor Author

LANDING (record only — no openspec/changes/ path, so no Rule 6 window) — lane openxfactory-4-opendox-extraction, session 01WoVQPAyEUXZf9S779gRVbo, 2026-09-06T15:06Z, PR #718 into openxFactory main on Brett Heap's word "merge 718 when green"; head ff05cb9, all nine checks SUCCESS, 0 unresolved threads, 0 closing refs, MERGEABLE, no file overlap with main's ten newer commits.

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

@brettheap
brettheap merged commit d179cc0 into main Sep 6, 2026
10 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane openxfactory-4-opendox-extraction, 2026-09-06T15:07Z, PR #718 → d179cc0d (admin squash at head ff05cb9, 15:06:50Z). Path A PR-1 realized (task 4.4, first half); records in PR-5.

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

brettheap added a commit that referenced this pull request Sep 6, 2026
Second merge from `main`, taking origin/main d179cc0 — #717
(register-gate-rules-council-seats) and #718 (intent plane 4.4 PR-1) on top
of 6295e38, which the first merge took.

ONE conflict, in README.md's OpenSpec Records block: #717 inserted its own
Active row at the same insertion point as this packet's. RESOLVED BY KEEPING
BOTH, this branch's row first, in the established ordering.
`tests/sequenced_after/corpus-ledger.yaml` auto-merged and kept both rows —
this change's at "#719" and #717's at "#717"; no row moved and no partner
flipped.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JZqmqSDBCmY4cfhPbxN9Xb
brettheap added a commit that referenced this pull request Sep 6, 2026
…719)

The records themselves say a `Status: record` document is CAPTURED AT MERGE
and that every number is re-derived PRE-CAPTURE if `main` moves again. `main`
moved (d179cc0, #717 + #718) between the ratification commit and this one,
and the pull request went CONFLICTING, so the branch took its second merge
and this commit discharges that promise. Nothing about the ratification act
changes: the word, the date, the ratifier, the citation lines and the
approval pair all stand exactly as 805d2c0 wrote them, and `.openspec.yaml`
is NOT touched — the ratifying commit stays 805d2c0 and the origin-retention
arm still answers ORIGIN RETAINED.

RE-DERIVED AT THE MERGED HEAD: openspec validate --all --strict 97 passed /
1 failed (98 items, up from 97 because #717 added a change directory; the
failure count did not move and the one failure is the pre-existing skip_specs
change, an INFO under the pinned 1.12); the pinned entrypoint 96 passed /
2 failed with both dispositioned and 0 undispositioned; sequenced_after
passed (38 active, 3 declaring) with the ledger consistent at 178 rows
(177 → 178 is #717's row); scope_globs passed; doc-health 9 critical /
8 error / 44 warning / 13 info with the WHOLE normalized report diffing EMPTY
against a worktree at origin/main d179cc0; pytest tests/doc-health 1587
passed.

ONE CLAIM IS CORRECTED RATHER THAN CARRIED. The first draft of the
verification record said the two record files move the report's corpus word
totals. They cannot: `corpus.GOVERNED_ROOTS` is contracts/docs/examples/
ideation/templates, `openspec/` is not in it, and corpus.py states that the
lifecycle scan set "never enters load_docs, so no census, word total,
canon-share figure, inventory entry, or catalog record moves because it
exists". The record now says what the scan set DOES reach — proposal.md and
every review/ record, read by four families — and adds a THIRD probe to prove
one of them live on this packet: a second citation line in proposal.md's
front matter fires ratified-provenance CRITICAL ("carries 2 ratification
citation lines, not one", naming this proposal) and removing it clears back
to the corpus's pre-existing five.

Refs #692

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JZqmqSDBCmY4cfhPbxN9Xb
brettheap added a commit that referenced this pull request Sep 9, 2026
…1/5.2 ticked on the D-2 evidence) (#832)

Path A PR-5, the last of the 2026-09-06 plan memo's sequence, on Brett Heap's word "merge pr-5 when green" (2026-09-09). Authority: his ruling of 2026-09-05T23:38Z "rule path A, 4.5 is a deferred successor" (#656) and ruling D-2 (the live exercise).

- tasks.md: § 4.4 / § 5.1 / § 5.2 ticked on the D-2 evidence (three `- [ ]` heads removed, every ratified sentence kept byte-identical); § 4.5 untouched as a DEFERRED SUCCESSOR (#714 → 3d1b8cc).
- Archived WITH promotion via `scripts/proposal-support.py . archive --date 2026-09-09` under the pinned @fission-ai/[email protected] (never a bare `openspec archive`); origin retained (declaration unchanged since da1b0e9); six frozen files R100.
- Promoted: `openspec/specs/ideation-intent-plane/spec.md` NEW (7 requirements / 11 scenarios, every block byte-identical to the archived delta) and `openspec/specs/document-lifecycle/spec.md` 18 → 19 requirements ("Gates happen on main"); the new capability's `## Purpose` written by this act (no SHALL; replaces the CLI's TBD stub). openspec/specs 60 → 61; floor regeneration OWED (GRACED covered-pending 1, `created_by_candidate`), `contracts/review-lane-floor-snapshot.yaml` deliberately not edited here.
- README OpenSpec Records row → archived; sweep-ledger row re-seeded with the tool (`--seed-ledger --moved-by '#832'`, one line moved); no thirteenth archive-date disposition.
- Evidence (merged + green): #718 d179cc0, #727 07624d5, #735 6d3237e, xFactory #304 b2db7e47, #313 ddd19650, #345 90435875, #781 450bb60, #808 2ef7d8c, #814 c991c0f, #816 8924230, xFactory #362 119280a8, #830 202c170, xFactory #369 c2313277; D-2 live exercise: act B refusal 36d07ec, act A apply e970dfe, first autonomous merge #176 → 7681e40 (codexfactory[bot] APPROVED 2026-09-09T06:37:22Z).
- Copilot round 1: one factual finding taken (a missing "where" in Purpose); two wording findings answered and resolved.

Refs #656 (stays OPEN). Rule 6 LANDING window observed.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
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