Repository navigation
v1.91.293.0 fix(harness): error lines print again; register qm stops at QM's pack cap instead of claiming QM works (GSTA-135) - #3532
Merged
Conversation
…pack cap instead of claiming QM works Bun gives every thrown Error an own numeric 'line' property, which shadowed HarnessError.prototype.line(), so every refused gstack-harness command crashed with 'e.line is not a function'. The printer is now report(). QM imports a skill pack by cloning the whole repository and refuses past 32 MiB / 5,000 files (Harness Evals preflight, HARN-5); gstack's repository is 73 MiB in 4,280 files. register qm now measures first and stops with HARNESS_QM_PACK_TOO_LARGE before any request; QM's own cap refusal maps to the same code. docs/hosts.md lists QM as not available yet. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…size a non-git checkout; skip symlinks like QM Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…3533) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
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.
What changed
Before,
gstack-harness register qm --yescrashed in its own error printer. Now it stops before sending anything to QM, names QM's 32 MiB pack cap, and points to the paste-in route.Before/after as text
Why
Harness Evals' preflight at v1.91.290.0 found two problems with #3526. Every refused
gstack-harnesscommand crashed withTypeError: e.line is not a functioninstead of printing its reason. Andregister qmcould never work, because QM imports a skill pack by cloning the whole repository and stops at 32 MiB, while gstack is 73 MiB. Users now get the documented error line, and QM is described as not available yet instead of as working.Blast radius
This touches every
gstack-harnesserror path (the printer is renamed) and only the QM register path. OpenClaw, Hermes, dots and generic registration code is unchanged. What makes it safe:report()is the only caller-visible change and all three callers were updated. Grep found no other.line()caller, and the CLI test exercises the printer through the real binary. Rung reached: script ran, using the realbin/gstack-harnessfor both the old crash and the new output, against the real checkout.Approvals
Source: gstack-approvals record for gsta-135/qm-fixes (display only; not an approval citation).
Summary
bin/gstack-harnessprintsgstack-harness: <reason>. Fix: <what to do> (<CODE>; docs/troubleshooting.md#<anchor>)again. Bun gives every thrown error its own numericlineproperty, which shadowedHarnessError.prototype.line(), so the printer is nowreport().register qmsizes the repository at the installed commit withgit ls-tree, skipping symlinks as QM does. Over QM's default cap it stops with the newHARNESS_QM_PACK_TOO_LARGEbefore any request, so no empty pack lands in the org. If a QM with other limits refuses the import, gstack reads the error QM recorded on the pack, maps it to the same code, and does not retry. docs/hosts.md lists QM as not available yet and points to the paste-in route.Test Coverage
All new code paths have test coverage in
test/harness-register.test.ts(21 tests, up from 19).Regression proof: on v1.91.290.0,
gstack-harness unregister nothing-hereandregister qm --yesboth crash with the TypeError, and both print the coded line after the fix. The QM tests fail against the old module.Tests ran: remote free tier at the frozen head (see receipt).
Pre-Landing Review
Pass 1 found three informational issues, all fixed. QM's real 500 body is generic, so the cap is now read from the pack's recorded
lastImport.error. A non-git checkout now refuses instead of sizing to zero. Symlinks are no longer counted. Pass 2 flagged a straya/SKILL.mdthat a scratch experiment on the shared machine had committed; it is removed. Pass 3 is clean.REVIEW_LOOP: passes=3 blocking_found=1 deferred=0 noted=0 fixed=4 scope=frozen
Gate edits: 1 listed, 1 read, 0 findings. The existing QM reuse/retry test now runs against a small committed repository instead of the gstack checkout, because the real checkout is over QM's cap. The test still asserts one pack, one create, two imports, the ledger contents and archiving.
Outside review: native in-host passes only. This is a small non-numeric diff (rule 30a), and the Codex CLI did not run.
Review notes
The short QM /autoplan found that
QM_PACK_CONFIG.skillGlobs ['*/SKILL.md']matches nothing, because QM matches globs against skill directories (src/skills/ingest.ts:175). It needs['*']. This doesn't affect behaviour while registration is refused, and it is part of the planned QM route.Exploratory QA
The real CLI was run before and after, as shown above.
Design Review
No frontend files changed, so design review was skipped.
Eval Results
No prompt-related files changed, so evals were skipped.
Greptile Review
No Greptile comments.
Plan Completion
This is the captain's follow-up brief. Item 1 (error printer plus regression test) is done, and the honest QM messaging is done. The real QM route is at its gate with GStack Minder.
Verification Results
bun test test/harness-register.test.tsgave 21 pass and 0 fail. Typecheck is clean. The troubleshooting anchors test gave 259 pass and 0 fail.TODOS
No TODO items completed in this PR.
Documentation
Status: updated: two one-line factual corrections so no doc still implies QM registration works.
Audited scope: base 6f27f0c..6a34617 (
gsta-135/qm-fixes): HarnessError.report() printer fix andregister qmstopping before QM's 32 MiB / 5,000-file pack cap (HARNESS_QM_PACK_TOO_LARGE). Searched every tracked doc for QM,register qmand GSTACK_QM claims.Coverage: HARNESS_QM_PACK_TOO_LARGE has a reference in docs/troubleshooting.md, a how-to (the paste-in route) in docs/hosts.md, and its rationale in both.
HarnessError.report()is internal and needs no docs. No coverage gaps.Diagram drift: none; no diagram names the harness modules.
Test plan
bun test test/harness-register.test.ts: 21 pass, 0 failbun test test/troubleshooting-anchors.test.ts: 259 pass, 0 fail;bun run typecheckclean🤖 Generated with Claude Code