Repository navigation
Fix dependency discovery and unify list/check reports - #8
Merged
Merged
Conversation
lucasbraum
added a commit
that referenced
this pull request
Oct 18, 2026
… (UPT-104) (#226) Closes UPT-104. ## What and why `fix` builds the workspaces whose output a consumer reads (`prepareWorkspace`) right after the bump, before any edit, so the agent's type-check sees fresh declarations. Those results were then reported as the run's build and turned into `Build cannot run (…)` fallback reasons, and nothing ever built them again. When the edits fixed the build, the run still: - forced a feedback round (`round === 1 && fallback.length`) with nothing left to fix, - put an **Agent-led draft** banner at the top of the PR body, - showed `Build after the bump … — failed` / `❌ build` in the PR body. That's what happened on calmcp (#219) and on dms-saas (#221's final run, uptide-bench fork PR #8). ## Change (`packages/core/src/fix/run.ts`) - The consumed builds are judged on the head the edits left. They run again before the verdict and after each feedback round, and the reported `verification.build` holds those results. - Build fallback reasons are recomputed from the latest builds after each build, so a reason the head no longer shows is dropped. The reasons that don't depend on the head (planner refusals, agent-led pins, unknown baseline) stay. - The consumed builds run again only when the tree changed since their last result: HEAD's tree plus the diff and untracked names over it, marked `ponytail:` because an untracked file edited in place goes unseen. A run whose after-bump build passed and that made no later edits does not build again. - When the verification build (generic or `requiresBuild` runs) already built the same workspaces on the head, its results are used instead of a separate build. - New report field `buildRuns: { count, ms }`: every build the run executed (preparation and verification) and their wall time. ## Tests `fix.test.ts`, `consumed workspace builds on the final head (UPT-104)`: 1. The after-bump build fails and the fixed head builds: no feedback round, no `agentFallback`, the agent is never called, the build line says `passed`, no banner, and 3 builds (baseline, after the bump, edited head). 2. The after-bump build passes and nothing changes afterwards: no further build (2 builds). 3. A `requiresBuild` pack: the consumed workspace is built once on the head, by the verification build. Tests 2 and 3 each fail with their guard removed. The existing test that counted 2 builds now expects 3, with the third on the edited head. `pnpm test`, `pnpm typecheck` and `pnpm lint` pass; the only lint warnings are the two that predate this change. ## Bench (#169 harness, Uptide arm only) Same harness, model (`claude-sonnet-5-5`, medium) and $1 cap as #169. **Before** is origin/main `2dc2162` plus only the `buildRuns` counter (a local commit, not pushed); **after** is this branch. One run each, sequential. | Run | Rounds | Cost | Wall | Builds (count / time) | Fallback banner | PR body build line | Verdict | |---|---|---|---|---|---|---|---| | calmcp before | 1 | $0.117 | 76 s | 1 / 0.5 s | yes: `Build cannot run (.)`, zodDoc.ts TS2322 | `.` `tsc -p tsconfig.json` — **failed** (`❌ build`) | PASS | | calmcp after | **0** | **$0.082** | **58 s** | 2 / 0.7 s | **none** | `.` `tsc -p tsconfig.json` — **passed** (`✅ build`) | PASS | | dms-saas before | 1 | $0.391 | 300 s | 2 / 8.6 s | yes: `Build cannot run (packages/dms-saas)`, the stripe errors the agent then fixed | `packages/dms-saas` — **failed** (`❌ build`) | FAIL | | dms-saas after | **0** | **$0.294** | **256 s** | 3 / 15.5 s | **none** | `packages/dms-saas` — **passed** (`✅ build`) | PASS | Phases: - calmcp before: analyze 5 s, baseline 3 s, install 6 s, rules 0 s, agent 33 s ($0.089), verify 2 s, **feedback 16 s ($0.028)** - calmcp after: analyze 6 s, baseline 3 s, install 6 s, rules 0 s, agent 35 s ($0.082), verify 2 s - dms-saas before: analyze 23 s, baseline 26 s, install 21 s, rules 0 s, agent 120 s ($0.271), verify 26 s, **feedback 69 s ($0.120)** - dms-saas after: analyze 25 s, baseline 30 s, install 24 s, rules 0 s, agent 128 s ($0.294), verify 35 s The extra build is the head rebuild: +0.2 s on calmcp and +6.9 s on dms-saas. It replaces a feedback round of 16 s / $0.028 and 69 s / $0.120. How to read the dms-saas rows: - **The verdicts differ because of the agent's edits, not this change.** Before, the agent bumped the API version and a basil-payloads test failed as new. After, 3 failing test files were marked pre-existing and the run passed. Both runs left 0 new type errors. - **The first after run on dms-saas failed and is not in the table.** It exited 2 after 423 s with `Required migration evidence exceeds the PR body budget`. A run that throws removes its clone, so no report survived, and its spend went unrecorded (no `--json` output). I reran it once with `--keep-temp` (no other difference): that's the row above, with a 31 KB PR body. The overflow is the open "PR body overflow" follow-up from UPT-101, and I couldn't attribute it to this change: removing a fallback reason only shortens the body. Nothing here fixes it. No fork PRs were opened for these runs, and nothing was pushed outside this branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Lucas Braum <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
uptide listnow separates script/config tools, runtime types and required peers from possibly unused dependencies. The primary lockstep set uses a scope title (@nestjs/*); independent peer groups use their lead package (@nestjs/cli,@nestjs/schematics). External members are labeled “peer of …”. Unique selectors such asuptide check --group nestjsanduptide check --group @nestjs/cliexpand the full member list before analysis. JSON retains all members and peer relationships.Terminal reports use aligned, width-aware columns with right-aligned starting versions, compact stats, amber major gaps and green verified tags. Summary group counts match the visible GROUPS section; tooling groups stay in Tooling. Group headers show only the target range (
→ 12.x). Tooling stays collapsed, top symbols require--details, and list/check stay plain in pipes or with NO_COLOR. Nest fixture snapshots cover TTY and non-TTY output.List and check HTML share one offline template: the inline Uptide logo, cream/charcoal themes, blue accents, dotted header, large stats, square copy buttons and line-separated rows. Group commands appear once in the group header. Standalone packages and tools have a compact fifth-column copy icon with the full command as its title and accessible label; copy feedback and the manual-copy fallback preserve the row layout. Mobile rows stack; default reports omit source and file/workspace paths.
--detailsadds list file lists or check excerpts. Headers read the installed CLI manifest, including when the package version changes after bundling.Includes the synthetic pnpm NestJS fixture, patch changeset, docs, and a reproducible preview renderer.
Validation
pnpm lint,pnpm build,pnpm typecheck,pnpm test: passed (230 CLI tests, 629 core tests; 15 network-gated tests skipped).--versionand HTML.Screenshots
Synthetic fixtures only. These source-checkout previews display its actual package version, 0.1.0; published reports display their installed release version.
NestJS list
Storefront check
Expanded tooling