Skip to content

feat(positron): foundry room content kind (outlier B — pattern seam past chat) - #1759

Merged
joelteply merged 2 commits into
canaryfrom
feat/foundry-view-kind
Jul 4, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/foundry-view-kind

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Adds kind = "foundry" — the foundry activity's room content, mirroring wall/kanban as a first-class positron ViewState. Per ACTIVITY-ROOM-PATTERNS.md a room's purpose selects its content; a foundry room's content is the forge workbench — the model catalogue as the right-hand context Listing, config/recipe centre widgets growing additively.

Outlier B to chat at the contract layer — same shell, different Content + ContextPanel. To go LIVE: the ModelCatalog→ForgeViewState projection + structured room-purpose tagging (#6; today only free-text doctrine exists, string-matching prose would be the #70 anti-pattern).

🤖 Generated with Claude Code

…am past chat)

Adds `kind = "foundry"` — the foundry activity's room content, mirroring
wall/kanban as a first-class positron ViewState. Per ACTIVITY-ROOM-PATTERNS.md an
activity IS a room whose `purpose` selects its content; a foundry room's content
is the forge workbench — the available model catalogue as the right-hand context
Listing (the "HF model list on the right" the doc names), with config/recipe
centre widgets growing the struct additively.

- `ForgeModelView` — one model Listing row (model_id, display_name, source,
  optional params_b). Display fields only; a renderer draws it, params_b is
  Option (None renders unlabelled, never a fabricated 0).
- `ForgeViewState` — KIND "foundry", carries room_id/room_name/purpose (same
  room-header fields chat carries) + `models` (REPLACE-on-change, like the wall).
  Data-backed: the live ModelCatalog (#78) folds into `models` in a sibling slice.
- ts-rs exports ForgeViewState.ts + ForgeModelView.ts. 4 tests green (round-trip
  incl. optional param, ViewState kind single-sourced).

This is outlier B to chat: SAME shell, a different Content + ContextPanel. It
proves the pattern seam generalizes past chat at the contract layer. Remaining to
go LIVE: the ModelCatalog→ForgeViewState projection, and structured room-purpose
tagging (#6) so a room reports purpose "foundry" (today only free-text doctrine
exists; string-matching prose would be the #70 anti-pattern — #6 is the clean fix).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…review #1759)

Matches the wall/chat sibling test discipline the reviewer flagged: the ViewState
test now asserts revision() is None (envelope-level counter, not a payload field),
and a dedicated test pins that an empty model catalogue is a valid honest-empty
view, not an error.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit e9288fc into canary Jul 4, 2026
4 checks passed
@joelteply
joelteply deleted the feat/foundry-view-kind branch July 4, 2026 03:10
joelteply added a commit that referenced this pull request Jul 4, 2026
…ge) (#1760)

The continuum-positron crate had accumulated formatting drift (flagged in the
#1759 review) — files not run through the pinned rustfmt 1.9.0. Pure formatting,
zero behavior change; tests green. Keeps future feature diffs clean of incidental
fmt churn.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 4.8 <[email protected]>
@joelteply
joelteply restored the feat/foundry-view-kind branch August 21, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant