Skip to content

feat(perch-hub): envelope + per-session tool narrowing pane on the Session tab (PR-D) - #372

Merged
kh0pper merged 1 commit into
mainfrom
feat/perch-hub-narrowing
Sep 13, 2026
Merged

kh0pper merged 1 commit into
mainfrom
feat/perch-hub-narrowing

Conversation

@kh0pper

@kh0pper kh0pper commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Ports the parity-handoff PR-D (audit item 15). Implementation from the quota-interrupted session; this session added the missing pieces: the EN+ES bot-builder.md step 4 correction and 4 route tests for the new ?threadId= contract.

  • GET /bots/:id/envelope?threadId= attaches the session saved narrowing (tri-state: absent = not reported, null = reported-empty, JSON text = narrowed set); bare per-bot call unchanged (board drawer untouched).
  • Hub Session tab: collapsible Envelope & tools pane reusing the drawer i18n + save semantics; widening_rejected reverts + explains; collapse/clear on session switch; identity guards 17->18.
  • docs step 4 (EN+ES): the hub now HAS the pane.

Full suite 4835/0. VitePress build green both locales.

…ssion tab (PR-D, audit item 15)

Port the envelope & narrowing pane from the board card drawer so hub-only
sessions get per-session narrowing too. Bot Builder stays the only writer of
the envelope; the pane can only REMOVE tools, per session, effective from the
next message (a wake rebuilds the world).

- routes/perch.js: GET /bots/:id/envelope?threadId= attaches the session's
  saved narrowing (tri-state: absent = not reported, null = reported-empty,
  JSON text = the narrowed set) so the pane renders in one call; the bare
  per-bot call the board drawer makes is unchanged.
- perch-hub client/html/css: collapsible pane on the Session tab reusing the
  drawer's botboard.bd* i18n and save semantics (widening_rejected reverts
  the checkbox and says why); collapse+clear on session switch; identity
  guard on the envelope continuation (guards 17 -> 18).
- tests: 3 hub-client tests + 4 route tests for the threadId contract.
- docs: bot-builder.md step 4 (EN+ES) — the hub now HAS the pane; both
  surfaces read and write the same per-session narrowing.

Full suite 4835/0.
@kh0pper
kh0pper merged commit 2889d28 into main Sep 13, 2026
3 checks passed
@kh0pper
kh0pper deleted the feat/perch-hub-narrowing branch September 13, 2026 19:54
kh0pper pushed a commit that referenced this pull request Sep 13, 2026
… + open questions

Written after PR-D shipped (#372, main 2889d28). Records: send_user_file is a
pi-lab extension (pi core dist grep = 0), the R4 ff-before-restart deploy lesson,
the oauth_tokens.token column correction, and the Q1-Q3 investigation order with
the re-scope gate before any pi-lab-side relay.
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.

1 participant