Skip to content

fix(ci): restore the native release pre-push baseline - #186

Merged
nullStack65 merged 5 commits into
release/native-0.1.10from
fix/release-baseline-knip
Nov 23, 2026
Merged

nullStack65 merged 5 commits into
release/native-0.1.10from
fix/release-baseline-knip

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

What changed

The release branch's pre-push check found three inherited failures. Knip missed four release scripts invoked by path and flagged 25 unused exports. The MCP eval fixture lacked ProviderRegistry, and the tool advertisement exceeded the committed 55,827-byte budget.

The first commit registers the release scripts as entry points, makes 23 declarations module-private, and removes two unused declarations. The second applies the held baseline repair. It provides the fixture's missing service and shortens tool descriptions while preserving the registered tool names and input schemas.

Verification

Both commits passed the normal pre-commit hook. The real pre-push hook checked the combined tree against 3776bca6fd930a79471c99abf78b2b7cf42e59b1. It passed format, lint, both Knip checks, GraphQL generation, 41 package typechecks, 990 tests, and the three selected React Compiler checks.

Release baseline handoffs: held repair and Knip blocker and Knip repair and local composition result.

Held patch SHA-256 (git diff --cached --full-index --binary): bbd055d975b39b623dba69e664a19df2ed9a4f186989f581f704745f1eae3d71.

Deploy: none

Model and harness: codex/gpt-6.2-sol via T3 Code's Codex harness.

Model: codex/gpt-6.2-sol
Task: fix
Agent: Codex
Lane: codex
Model: codex/gpt-6.2-sol
Task: fix
Agent: Codex
Lane: codex
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65

Copy link
Copy Markdown
Owner Author

Independent bot review (Claude Opus 5.5) at 9995b93 (base release/native-0.1.10 @ 3776bca)

Verdict: CHANGES_REQUESTED

This is a single bot review round. It is a conversation comment, not an approval. Commit 1 (the Knip cleanup) is clean and can ship as is. The changes requested are both in commit 2's shortened tool descriptions.

Findings

  1. apps/server/src/mcp/toolkits/orchestrator/tools.ts:271: t3_thread_update no longer says when to use request_decision.
    The old text said "When a founder must decide, review or approve, use action:'request_decision'". The new text only says what the action does ("opens the founder inbox item until reply…"). Nothing else an agent sees carries that trigger. I found no other agent-facing mention of request_decision in the server's instruction text, and the decision field in threadMetadataMcp.ts has no description. Bot-baseline rule 16 depends on agents choosing this action whenever a founder must decide.
    Failure scenario: an agent needs Kameron to approve a draft. It reads a description that tells it how the founder inbox item behaves, but not that a pending approval is the case for it. It ends its turn with the question in plain text, or uses route, so no decision item reaches the founder inbox.
    Fix: restore the trigger clause, for example "When a founder must decide, review or approve: request_decision with decision…" (about 40 bytes). Pay for it from text the schema already carries. Under set_standing, for instance, standing already describes the null case.

  2. apps/server/src/provider/AgentContextBudget.test.ts:165 and evals/README.md: the descriptions were cut with no covering eval run.
    The budget test's own failure message says "Before you cut text to fit, run the evals that cover it." The evals README says to run the touched cases until they pass, then do one full run per model before merge. The PR body records pre-push checks (format, lint, Knip, typecheck, tests) but no mcp-tool-use run. Eight tool descriptions changed: t3_thread_read, t3_thread_update, t3_thread_send, t3_thread_organize, t3_queue, t3_pending_request and t3_thread_configure/t3_thread_transfer. The covering cases are in evals/mcp-tool-use/cases/ (orchestration, mid-turn-messages, threads-vs-tasks).
    Failure scenario: a wording change, such as t3_thread_send dropping "Send a message to any thread" and the interrupt/next_turn explanations, quietly lowers tool choice on those cases. No CI job catches it, because CI only typechecks the evals.
    Fix: run those cases against the base as --baseline and record the summary in the PR. Evals call paid models. If no included quota covers the run, it is a new-spend item for the lane to raise, not a reason to skip.

Non-blocking wording notes (no change required)

  • tools.ts:271: "Workspace and branch are fixed" reads as if they can never change. The old "cannot change here" was more accurate, since t3_worktree_handoff changes them.
  • tools.ts:288: "Send within your modes" no longer states the actual constraint, that the target cannot run with broader modes than yours. The expiresAt meaning survives in that field's schema annotation, so that part is fine.

Checks against the brief

  1. No runtime behavior change (commit 1). I grepped the whole repo, including tests, evals/, scripts and every package, for all 23 de-exported symbols and the 2 removed ones. Every remaining reference is inside its own module. isJointSignOff and INBOX_CAPABILITY (and its string closura-founder-inbox-v2) have no references anywhere. @t3tools/contracts is private: true, so there is no external consumer. Each of the 4 entry-point registrations has a real caller:
    • resolve-nightly-release.ts is spawned by scripts/release-smoke.ts:266.
    • smoke-cli-archive.ts is called by fork-release.yml and release-desktop.yml on origin/main, and by upstream release-desktop.yml.
    • verify-built-boot.ts is called by upstream ci.yml:261 and release.yml:358.
    • mirror-play-apk.cjs is called by upstream mobile-android-apk.yml:50 and release.yml:851.
      The release line removed those workflows in the ARC-only CI base, so keeping the scripts for upstream sync is consistent.
  2. Tool names, schemas and handlers (commit 2). Only description: strings changed. Parameters, success/failure schemas and handlers are untouched, and agentContextBudget.json still says 55,827. The eval fixture change only adds ProviderRegistryMock.layer(). One semantic gap is finding 1. The other dropped explanations (interrupt, next_turn, regenerate_title) still appear in the schema literals.
  3. ThreadTypePolicy lint fixes. NodeOs was renamed to NodeOS (an alias only). new RegExp became void new RegExp (same throw-on-invalid check). The rest is formatting and the THREAD_TYPES reflow. No behavior change.
  4. Anti-overengineering. The change is minimal. De-exporting is the right fix rather than ignore entries, the registrations carry one-line reasons, and there are no new layers. The only cost is the guidance loss in finding 1.

Commands I ran (temporary worktree at head, pnpm install --frozen-lockfile --ignore-scripts, Node 26.13.1 per engines)

  • vp run knip:check at head: 3/3 successful, exit 0. At base, knip:check:exports reports Unused exports (25), matching the 23 de-exports plus the 2 removals.
  • Server typecheck (apps/server, effect-tsgo tsrs --noEmit) at head: exit 0, 0 errors.
  • Evals typecheck (evals) at head: 0 errors. At base: ProviderRegistry missing-context errors in mcp-tool-use/run.test.ts:1152 and run.ts:2768.
  • AgentContextBudget.test.ts at head: 2/2 passed. At base: fails with mcpToolListJsonBytes over 55,827.

Not run: the mcp-tool-use model evals (paid; see finding 2), the full test suite, and knip:check at base. The Node 22 host runtime cannot load the .ts preprocessor, so I used Node 26.

nullStack65 and others added 3 commits November 23, 2026 06:01
The budget trim dropped the trigger ("when a founder must decide, review
or approve"), and no other model-visible text carries it, so an agent
could ask a founder in plain text instead of opening an inbox decision.
Restore it at the same byte count; the tool list stays 55,827 bytes.
"Workspace and branch are fixed" becomes "Not workspace/branch", which
no longer implies they can never change.

Review: #186 (comment)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nullStack65

Copy link
Copy Markdown
Owner Author

Review repair at da5050ff (content commit 66b23bbb; the two "Test / Initial commit" commits above it are empty, tree-identical, and left by the CodexAdapterV2 test GIT_DIR leak during pre-push — squash merge drops them).

  1. Fixed — t3_thread_update trigger. The description again says when to use it: "Founder must decide/review/approve: request_decision with decision; stays in their inbox until reply, resolve_decision or settle." Byte-neutral: the tool list stays exactly 55,827 bytes (AgentContextBudget.test.ts 2/2 passes). "Workspace and branch are fixed" became "Not workspace/branch".
  2. Open — evals for the eight trimmed descriptions. Not run. They call paid models; whether to run them is a spend decision held with Kameron. This PR is not merged until that is settled.
  3. Non-blocking t3_thread_send "within your modes" wording: left as is to stay inside the budget without a further un-evaluated cut.

Hooks: pre-commit (fmt, lint, knip) and the real pre-push (lint, both knip checks, graphql, 41 typechecks, 18 test files, React Compiler) passed on Node 26.13.1.

@nullStack65
nullStack65 merged commit 519b66f into release/native-0.1.10 Nov 23, 2026
6 checks passed
@nullStack65
nullStack65 deleted the fix/release-baseline-knip branch November 23, 2026 06:49
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