Skip to content

Expose canonical Threads, Asks, and queue APIs to Leaf packages - #2134

Merged
max-sixty merged 6 commits into
mainfrom
codex/canonical-feature-apis
Oct 9, 2026
Merged

max-sixty merged 6 commits into
mainfrom
codex/canonical-feature-apis

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Leaf packages can now build real conversation and work-queue interfaces. Previously they could arrange optional thread mirrors, but creating conversations, reading complete Ask/Done inventories, owning native message widgets, and navigating to those widgets still depended on private core paths.

The application publisher exposes immutable Threads, Asks, and obligation queues through read/watch APIs. Typed commands create conversations with a stable key, resolve current queue identities, and expose canonical command availability. Existing core controls and package consumers use those same boundaries.

A primary package reader nominates retained conversations or individual messages/replies. Leaf keeps native widgets, shared drafts, exact-content read receipts, and navigation; the package owns selection and layout. Native slots forward through nested shadow layouts while keeping retained content in document stylesheet scope. Mechanical focus, disclosure, modal, and exposure checks follow rendered ancestry. Failed presentation returns native content to a usable core fallback. An open More menu retains its row positions through asynchronous changes.

The feature gallery includes a genuine package switching Conversation, Shelf, and Feed, answering an Ask, creating/sending conversations, and completing eligible tasks. Package author documentation and every existing caller/probe are cut over; the corpus is regenerated.

Validation: runtime and browser foundation suites; real browser integration for native identity, drafts, admission refusal, duplicate Done, exact-message/Ask arrivals, nested shadow/inert exposure, and live revisions; blind desktop, mobile touch, and keyboard journeys; independent code/ownership review; browser bundle, static dependency and formatting checks. Served startup comparison shows one additional module request and approximately 21KB by presentation on a shadow-bearing example, with no browser errors or second stylesheet load. Elapsed timing is diagnostic.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The new live-revision test is red on its browser stability check. I ran test_primary_reader_revision_replaces_owner_without_losing_thread_draft twice; its assertions passed both times, but clean_browser reported that the version controls moved upward 29 px without input during the journey. This leaves the claimed owner-replacement path failing the test gate. The movement needs to be resolved, or the test needs to establish why it belongs to a deliberate user gesture.

Keep More controls in their opened positions through asynchronous retirement, and reveal newly available destinations on explicit travel. Reuse rendered ancestry in movement evidence so slot-owned scrolling is removed without excusing local carries. Preserve body scripts once in the composed corpus and index the worked package in the gallery.
@max-sixty
max-sixty merged commit edf2cdb into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/canonical-feature-apis branch October 9, 2026 07:43
max-sixty added a commit that referenced this pull request Oct 21, 2026
…side it (#3396)

A survey of `notes/` against the code and history at d91b67b. Where a
note's design has landed, its contract moves beside the code if it
wasn't already there, and the note or section goes; what is still
unresolved stays.

- **Deleted:** `floating-panel/GOAL.md` (every departure is now recorded
in `floating-panel.js` and `styles/floating-panel.css`; #3392 moved the
last one, the draft posture, beside `drafted`, and this adds the
no-key-hints decision to the header), `browser-reactivity.md` (its
design is in module headers; why paints that must land in the turn use
`render` moves to `assets/AGENTS.md`, and the margin's double draw
becomes a TODO implementation candidate) and `chrome-and-covers.md`
(`page-layout.md` holds the workspace decision; the `layouts.css`
Workspace comment now records the rejected main-region-scrolls design).
- **Trimmed:** `agent-usability-evals.md` drops the findings through
2026-10-12, which have landed. `comparisons.md` drops the phone-pin
finding (#2680), the 4 October follow-up proposals and two landed
lessons. `user-feedback-responsiveness.md` narrows delegated work to
Codex and Pi (#3370) and drops "Explicit stdin" (#3375). `threads.md`
drops request buttons (#1327), placement (#2134) and notification
transitions. `shared-decisions.md` points at the recorded owner
contract. `browser-support.md` drops two fixed entries and owners #3100
removed.
- **TODO.md** follows each: #28 points at the module header, #25 asks
for the board's write rather than an owner, the annotation-placement
item loses its landed phone half, and the delegated-work and
reply-budget items lose what #3370 and #3372 settled.
- Smaller corrections in `shift-watch-cost`, `undo-reach` (#3271),
`named-widget-interfaces`, `codex-integration` (`codex_tool.py`), the
long-read eval's provenance comment, and `motion.js`'s fold comment. The
runtime comment edits rebuild `kernel.json` only.

No behavior changes.

> _This was written by Claude Code on behalf of max-sixty_

---------

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