Repository navigation
A green CI run still counts when the repository's artifact storage is full (GST-3231) - #4536
Merged
capy-ai[bot] merged 5 commits intoNov 19, 2026
Merged
Conversation
… full (GST-3231) A run profile with tree_log_step reads tree.json from the one GSTACK_TREE_JSON line its named step logged when the run holds no artifact, bound by the runner's own log timestamp; a forged line refuses. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…GST-3231) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…erun and unreadable-artifact controls (GST-3231) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-artifact-storage-is-full
…T-3231) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 20, 2026
- Two /ship approval records stop needing workarounds. (#4549) - For contributors: the paid auto-decide check counts a start step that ran while the skill loaded. (#4543) - The destructive-command check closes three ways past its disk-wipe and force-push blocks. (#4534) - A green CI run still counts when the repository's artifact storage is full. (#4536) - `/cso` now audits repositories that track symlinks. (#4567) - A doc-sync eval stops failing when the audit child drops one field from its result line. (#4555) - The browse daemon no longer picks port 10080, which Chromium refuses to open. (#4554) - Opted-in telemetry now says why a skill run ended, which coding agent and model family ran it, and whether an upgrade worked. (#4542) - A preregistration with only its write-up and plain data now gets the write-up review: one reviewer, one round. (#4544) - When owner rulings don't clear a stopped review, `gstack-review-read` now says which findings are left. (#4553) - The prompt-routing hook now names your installed bug-fix skill on bug reports, alone, and never puts /verify ahead of it. (#4539) - Owner rulings now close a stopped review whose findings were logged in a findings file. (#4568) - /ship can finish after the owner accepts a stopped review's findings as open notes. (#4552) - /ship no longer starts the full test suite on your machine when CI's earlier run can't be reused (GST-3277). (#4565) - The prompt-routing hook no longer acts on words inside backticks. (#4566) - In Claude Code, a gstack skill's start step now runs when the skill loads, so the model can't skip it. (#4509) - gstack's telemetry backend only accepts writes through its own validated endpoint, and the community dashboard now counts real use. (#4537) - gstack now says what it's adding before it adds a background job or a browser extension. (#4538) - For contributors: every flaky pass in Free Tests is now recorded. (#4572) - For contributors: Free Tests on pull requests starts its test shards one round of small jobs sooner. (#4570) - Secret values written as `name=value` at the end of a path are now hidden. (#4571) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
When a private repository's GitHub Actions artifact storage is full, a green run uploads no
tree.json, so /ship and the merge checks could not reuse it and refused it asartifact_missing.A run profile can now set
tree_log_step, and gstack readstree.jsonfrom the oneGSTACK_TREE_JSONline that step printed in the job log, only when the run has no artifact and only when GitHub's own log timestamp puts the line inside that step.To use it, add the one-line workflow step described under
tree_log_stepin the docs, and raisemin_gstack_versionto the release that ships this.What changed
lib/run-evidence.ts:ghRunDeps().artifactthrowsNoArtifactErrorwhen the run has no unexpired artifact by that name.verifyRunthen reads the profile jobs' logs at the attempt that ran (gh api --allow-escape-sequences repos/<repo>/actions/jobs/<id>/logs, newRunDeps.jobLog), and only for a profile withtree_log_step. An artifact always wins.^\S+Z GSTACK_TREE_JSON (\S+) ([A-Za-z0-9+/]+={0,2})\r?$that names the profile's artifact must exist across those jobs. Zero, or two or more, refuse asartifact_missingwith the count.sleep 1before the line andsleep 2after it). The job and the step must both have succeeded. A line a test prints, even a well-formed one, is either a second line or falls outside the step, so it refuses:tree_log_unbound/CI_CARRY_TREE_LOG_UNBOUND.tree.jsonis capped at 8 MiB, must be canonical base64 that decodes to JSON, and then goes through every existingtree.jsoncheck unchanged.tree_source=job-logwhentree.jsoncame from the log, and so does the saved CI record. /ship's final record stores it in itsci_carriedentry, checked by its schema.tree_log_stepsection with the workflow step to add, the key in therun_profileskey list, and a troubleshooting entry forCI_CARRY_TREE_LOG_UNBOUND. Changelog fragment markedimportant: blocker.Tests
bun --no-env-file test --timeout=30000 test/run-evidence-job-log.test.ts: 15 pass, 0 failbun --no-env-file test --timeout=120000 test/ship-ci-carry.test.ts -t HARN-118: 2 pass, 0 failWhy
A private repository's upload step failed with "Artifact storage quota has been hit", so its green CI run left no
tree.jsonand every check that reuses CI results refused it. Those repositories can now opt in to reading the same record from the job log, bound to one step by GitHub's own timestamps, so a full artifact quota no longer forces the whole test suite to run again on the agent's machine.Blast radius
The change touches the shared CI-run reader that the merge checks,
accept,record-ciand /ship use, and the output lines and saved records that report a reused run. It is safe because the log is read only for a profile that setstree_log_stepand only when the run holds zero artifacts by that name; every other path returns the same refusal as before (lib/run-evidence.tsverifyRun, read at file:line, and the no-key test intest/run-evidence-job-log.test.ts, script ran).Test Coverage
Coverage: 87% value-weighted (13 of 15 new code paths; no weakly covered paths). Tests: 1832 → 1832 files tracked before this branch's new file (+0 written by this audit). Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
Remaining gaps, proposed but not added (below the value bar): the dry-run "would reuse" line in
lib/ship-preflight.tsnaming a job-log source is not asserted; the safe-integer job-id guard inghRunDeps.jobLoghas no test (job ids come from the API as numbers).Tests ran: test 1713 (files, from CI run 44602104679 at e783895)
Pre-Landing Review
No issues found by the checklist, specialist (testing, security, state-machines), red-team or second-model reviews. The adversarial review raised five low findings, all below the blocking floor and listed under Review notes; each one makes the run refuse and the tests run locally, and none lets a run count that should not.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/run-evidence.ts:469a rerun whose earlier attempt uploaded the artifact never falls back to the log; refuses as artifact_missingdocs/pregate.md:858docs do not say the upload step must not fail the job (continue-on-error)lib/run-evidence.ts:301an ~11 MiB single log line may be split by the runner; would refuselib/run-evidence.ts:496serial log reads across many shard jobs can pass ci_record_timeout_s; the tests then run locallylib/run-evidence.ts:496old gh without --allow-escape-sequences refuses with a generic log-read messageExploratory QA
Functional smoke, two probes, verdict pass:
bun --no-env-file test --timeout=30000 test/run-evidence-job-log.test.ts(15 pass) andbun --no-env-file test --timeout=120000 test/ship-ci-carry.test.ts -t HARN-118(2 pass, 53 filtered). Not probed: a live GitHub run with a full artifact quota, and gh's--allow-escape-sequencesagainst the real API.Scope Drift
Scope Check: CLEAN. Intent: count a green CI run whose artifact upload hit the storage quota (GST-3231). Delivered: an opt-in job-log fallback bound by runner timestamps, with its refusal code, docs and tests.
Verification Results
No plan file: 0 plan-specific checks. Automatic diff-scoped QA above.
TODOS
No TODO items completed in this PR.
Documentation
Status: updated: one factual fix; the new
tree_log_stepfallback andCI_CARRY_TREE_LOG_UNBOUNDcode are documented and match the code.Scope: base a0534ce..head 6025338 (4 commits, 15 files; no staged, unstaged or new files). Compared
docs/pregate.md,docs/troubleshooting.mdand the changelog.d fragment againstlib/run-evidence.ts,lib/ci-carry.ts,lib/ship-bin-common.ts,lib/ship-receipt.ts,lib/result-codes-release.tsandlib/headless-artifacts.ts.Documentation health:
docs/pregate.md: Updated (addedtree_log_step?to the run_profiles key list in the config table; the new #tree-log-step section matches the code)docs/troubleshooting.md: Current (#ci-carry-tree-log-unboundmatches the result-code summary and fix)Coverage debt:
tree_log_stephas reference and how-to coverage in pregate.md and troubleshooting.md; it has no tutorial or explanation coverage (a common gap, acceptable for a niche opt-in). No architecture-diagram drift.Agent notes
HARN-118 / GST-3230 / GST-3231, thread GSTA-659. gstack's own CI is not affected: gstack is public (no artifact quota), and run 44586540932 uploaded 24 artifacts. harness-evals is private and has 0 artifacts on run 44577938128. Out of scope: release assets, and any change to how artifacts are uploaded. Lines printed: CI_CARRY, LANE, CI_CARRIED, SHIP_RECEIPT; receipt ci_carried[].tree_source; record-ci ledger row tree_source. Main (a0534ce, v1.102.0.0) was merged in before review bound, on the lane brief.
Approvals
No approvals recorded for branch ci-results-count-when-artifact-storage-is-full.
Plan: exempt: bug fix with a failing-first test on main (GST-3231)
Plan check: exempt bug fix
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=5 fixed=0 scope=frozen unbound=1 ledgers_read=2 dispatches=4
Gate edits: none detected (5 listed, 2 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)