Skip to content

Promote stage to bkt3: upstream main 163bdeaa11 with idle-thread compaction - #337

Merged
bk-agent-01 merged 2190 commits into
bkmainfrom
promote/stage-2026-10-21
Oct 21, 2026
Merged

bk-agent-01 merged 2190 commits into
bkmainfrom
promote/stage-2026-10-21

Conversation

@bk-agent-01

Copy link
Copy Markdown
Collaborator

Refs: no Linear ticket (requested in the T3 session by tushar; promotion asked by his Manager session after the stage smoke test).

What this does

This PR promotes the full stage to bkmain (production bkt3). It carries 2 PRs, and both are upstream merges from this session:

bkmain had no content of its own beyond earlier promotion merges. Merging it into this branch gave no conflicts and no file changes.

Merging deploys bkt3 and restarts t3-nextbkt3. That stops every live session on bkt3. Merge at a quiet time.

New database migrations on bkt3: fork ids 1054–1059 (upstream 061, 062, 064, 065, 066 and 067). Upstream 063 stays unregistered, so old-thread history is kept. Stage ran the same migrations on a copy of the bkt3 database without errors.

Idle compaction is off by default. Turn it on in Settings → "Compact idle threads".

How I tested

Stagebkt3 runs this exact code: stage at 6586cce8d2, server version 0.1.2-nightly.20261021.3457.upstream.g163bdeaa119f. I ran these smoke tests on 2026-10-21 between 08:21 and 09:45 UTC:

Check Result
Deploy ~/.t3/stage-dev/deployed-sha = 6586cce8d2; t3-stage active since 08:21; 0 ERROR lines in the server log since then
Health /.well-known/t3/environment 200; https://stagebkt3.dev.beknown.live/ 200
Migrations 1054–1059 applied; the V1 history tables, plan reviews, thread comments, session webhooks and the new webhook-dedupe tables are all present
Manager MCP tools /mcp initialize OK; 129 tools (t3_whoami, t3_inbox, t3_start_session, t3_session_brief, t3_schedule …)
New session t3_start_session (Claude Sonnet, scratch project) answered "SMOKE OK"
Claude accounts The new thread was placed on account audit (Auto). The limits stream (subscribeClaudeAccounts) returned all profiles with 5-hour and weekly usage, eligibility and reasons
Callbacks (webhook) A webhook schedule into the session: the POST returned 202 with a delivery id; the prompt arrived wrapped as untrusted data; the agent replied "WEBHOOK OK"
Toolyard / session webhooks Both are refused for an operator key without a signed-in user ("verified_identity_required" / "authenticated user … required"). These are the fork's intended access checks; a signed-in user must test the full Toolyard flow
Idle compaction A Claude thread with 233,895 context tokens and a 1-hour cache was left idle. At 09:34:01, exactly 2 minutes before the cache expiry at 09:36:01, the server sent /compact by itself. The run finished at 09:34:17, and the context dropped to 18,172 tokens

Cleanup: the temporary operator key and the compaction setting were removed from stage settings.json (the file matches the pre-test backup, and the key returns 401). The smoke auth session was revoked, the webhook schedule deleted and both smoke sessions archived.

CI: every check was green on #331 (4e457c5a49) and #336 (ed0da715fc). "Mobile Native Static Analysis" waits for a macOS runner that this fork does not have.

🤖 Generated with Claude Code

serrnovik and others added 30 commits October 19, 2026 22:06
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…end (pingdotgg#20414)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…e foreground (pingdotgg#21307)

Co-authored-by: EMOJAI <78482940+EMOEMOJAI@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…9486)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#19543)

Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#15020)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…roid (pingdotgg#21033)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…pingdotgg#17900)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#15629)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#14581)

Co-authored-by: Ennio Cuteri <enniocuteri@fluence-group.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…dotgg#18723)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#17118)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ce (pingdotgg#19715)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ine, except recording stop (pingdotgg#16941)

Co-authored-by: hogeheer499-commits <267467744+hogeheer499-commits@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#14753)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#12768)

Co-authored-by: Rohan Patnaik <rohan-patnaik@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…t the project (pingdotgg#18692)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…o the bottom (pingdotgg#17065)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… second (pingdotgg#21242)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nd viewport (pingdotgg#19913)

Co-authored-by: Julius Marminge <julius@t3.gg>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ab (pingdotgg#13608)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… child thread (pingdotgg#18362)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ed history (pingdotgg#21188)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tgg#16688)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nute cap (pingdotgg#19649)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
bk-agent-01 and others added 22 commits October 21, 2026 03:28
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…creenshot test expects the fork's output.result

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s structuredContent; ci: drop temporary test guard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge upstream main (dac3437) into stage: idle-thread compaction
…ped-usage warnings (pingdotgg#22558)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… keys (pingdotgg#22645)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…w CI runners (pingdotgg#22649)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ck (pingdotgg#22653)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…cache (pingdotgg#22712)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…g#22717)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…rok commands stop holding runs open (pingdotgg#22709)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Fuksss <fuxik12345@gmail.com>
68 upstream commits on top of dac3437, including upstream's test
pruning and test-hygiene bans. Upstream migration 067 (WebhookDedupe)
registers at fork id 1059. The plan-review Mermaid block now uses
upstream's pele-based MermaidDiagram (upstream dropped mermaid).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Re-export resolveChangeRequestPresentation and deriveLogicalProjectKey,
  which upstream stopped exporting; the fork phase sidebar and smart-git
  button use them.
- formatWorkingDurationLabel moved to client-runtime models; the phase
  sidebar's snoozeWakeDescription lives in a fork module now that
  upstream dropped it.
- Upstream's new orphaned follow-up MCP test gets the fork scope fields;
  the archive undo test expects the fork's duplicate-archive guard.
- Formatting for apps/web/package.json and PlanReviewNodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fork tests follow upstream's new test-hygiene rules (no real-clock or
  frame waits, no wall-clock reads).
- The skipped upstream 063 test is removed; the fork keeps 063 unregistered.
- The mobile plan-comment test re-imports countReviewCommentContexts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. labels Oct 21, 2026
@bk-agent-01
bk-agent-01 merged commit 9d75b08 into bkmain Oct 21, 2026
24 of 25 checks passed
bk-agent-01 added a commit that referenced this pull request Oct 21, 2026
Promote full stage to bkt3 (2026-10-21, includes #337, #338–#340)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.