Repository navigation
fix(brain-sync): fail loud when artifacts source has zero pages - #2670
jzeisweiss wants to merge 1 commit into
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
91c53e9 to
eb6654f
Compare
|
Rebased onto current Local verification after rebase: |
|
/trunk merge |
|
An error occurred while submitting your PR to the queue: |
|
Privacy scrub: removed a private-repository reference from the PR description that was not resolvable for external readers. No other description changes. |
|
Thank you, @jzeisweiss. Your fix is folded into v1.91.19.0 (#3025), which is now merged, and you're credited as a co-author on the release commit and in the CHANGELOG. Closing this PR because the change is on main now. |
Summary
index_failedwhen that source reports zero pages; otherwise report the git result and explicitly mark index freshness as unverifiedThis deliberately does not run
gbrain syncat every skill boundary: that operation is expensive and owns a single-writer database. Missing, unavailable, invalid, or nonzero probe results remain truthfulindexing not verifiedoutcomes rather than false indexing claims.Verification
Red first on upstream
main: the zero-page regression returned status 0 before this change. The final test proves a real artifact commit reaches the remote, then the command fails because the maintained source still has zero pages.bun test test/brain-sync.test.ts test/gstack-gbrain-sync.test.ts test/brain-sync-windows-paths.test.ts test/gbrain-spawn-windows-shell.test.ts— 122 pass, 0 failbash -n bin/gstack-brain-syncshellcheck --severity=error bin/gstack-brain-syncgit diff --checkThe broader free suite completed every shard except one unrelated timeout-wrapper timing assertion under six-way load (
rc=143vsrc=124); that assertion passes standalone on both this commit and pristine upstreammain.