Repository navigation
feat(plan): say how to fix missing upstreams, and rebuild cloned tables with --changed - #1562
Merged
chio-labs-delivery[bot] merged 3 commits intoNov 17, 2026
Conversation
sqb clone (and a build's --defer-clone-from) replaced a destination table but kept its consumption rows, which describe the build the clone overwrote, so --changed could treat the cloned table as up to date with inputs it never read. A clone now appends a 'replaced' row for each table and seed it replaces; --changed reads that as no completed record and rebuilds the table once, and a later build supersedes the marker.
S301 named at most five missing upstreams and stopped. It now lists the first five, says how many more there are, and offers each fix: defer to or clone from every target configured as a clone origin for this one (with a copyable `sqb clone` command naming every missing resource), or build them with `+`. Origins come from configuration only. `sqb plan --json` lists every missing name in `error.missing`, and the plan page shows the message as printed with a copy button per clone command.
…as replaced A default target that does not resolve no longer turns S301 into an unknown-target error; the clone command then names its destination. --defer-to is offered only for project targets and not when the plan already defers. A defer clone that fails for one boundary still marks the boundaries it replaced. A failed marker write still fails the command, but only after fingerprints are copied, and a defer clone's C411 is reported first.
chio-labs-delivery
Bot
deleted the
fix/missing-upstream-and-clone-consumption
branch
November 17, 2026 23:35
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.
Why
Two problems around building against data cloned from another target.
sqb clone, and the--defer-clone-fromprephase ofsqb build, replace a destination table but keep its consumption rows. Those rows describe the build the clone overwrote, so--changedcould skip the cloned table as up to date with inputs it never read.Changes
replacedconsumption row for each table and seed it replaces.--changedreads it as "no completed record" and rebuilds the table once; the next build supersedes it. Rows are appended only, never updated. Partly failed defer clones still mark what they replaced. A failed marker write fails the command, after fingerprints are copied and after a defer clone's C411.--defer-to(project targets only, and not when the plan already defers) and a copyablesqb clone --from … -s …naming every missing resource, plus "build them with+".sqb plan --jsonaddserror.missing. The UI plan page shows the message with a copy button per clone command.plan.mdxand its generated skill copy describe the new message. DuckShop gains achanged_builds_cloneedge case.Verification
test_clone.pycover clone and defer-clone followed by--changed, a partly failed defer clone, and an unwritable consumption table. The clone cases and the C411 ordering case failed before their fix. Rustplanner_identitycases and UIplan-texttests cover the message.make check-cipasses on this head.