mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 02:14:30 +01:00
ship budget: count a Capy /ship helper's calls from the call log (GST-1585) (#4059)
* ship budget: count a Capy /ship helper calls from the call log the gstack-ship-* bins write (GST-1585) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * ship call log: Capy only, so test runs never write a real home; shorter Step 22 line keeps the capy skill budget (GST-1585) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/specialist-batched#2 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: granted fix-check fixes: poll-rerun overhead and early-settled passes Review-Finding: p3/outside-voice#2 reader=outside-voice Review-Finding: p3/adversarial-native#1 reader=adversarial-native Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: GST-1585 fragment named for the branch, covers the review fixes Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: ship-budget call-log usage lists --since/--until; changelog fragment text 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>
This commit is contained in:
1 parent
01572dec6d
commit
3c7ff030b2
13 files changed
+289
-4
No files matched your search
@@ -36,6 +36,9 @@ import { auditVerdict, eventsDigest, loadReaders, readersLine, scanEvents, type
|
||||
import { effectiveReaders, READERS_POLICY_DEFAULT, type EffectiveReaders } from '../lib/ship-policy-readers';
|
||||
import { defaultRoots, foundLines, inventory, quarantineStage, rerunBlocked, sweepResult, type Inventory } from '../lib/review-sweep';
|
||||
import { REVIEW_DIFF_MAX_BYTES, ceilingContext, disclosureDigest, disclosureLine, parseTail, readSelection, tooLargeLine, unreadableLine, type PlanExclude, type ReaderDiff } from '../lib/review-exclude';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-review-dispatch');
|
||||
|
||||
const HELP = `gstack-review-dispatch — verbatim reviewer briefs and loss-free collection for /ship
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
* [--rebuild-from-record]
|
||||
* close --run|--record [--reading <n>] [--approved-by <who> --words <text>]
|
||||
* calls --events <file> [--since <iso>] [--until <iso>] (the host's transcript items: one CALLS: line, lib/ship-calls.ts)
|
||||
* calls --run|--record [--log <file>] [--since <iso>] [--until <iso>] (the call log the gstack-ship-* bins write: lib/ship-call-log.ts)
|
||||
*
|
||||
* Exit: 0 continue/delegate · 3 stop (the next step does not start) · 2 usage
|
||||
* or validation (stderr). Logic: lib/ship-budget.ts, lib/ship-budget-cli.ts,
|
||||
@@ -32,6 +33,9 @@
|
||||
import { BudgetError } from '../lib/ship-budget';
|
||||
import { cmdCalls, cmdCheck, cmdClose, cmdNote, cmdResume, cmdSettle, cmdStart, type Outcome } from '../lib/ship-budget-cli';
|
||||
import { cmdHandoff, cmdLaunch, cmdReconcile, cmdReturn, cmdVerifyHandoff } from '../lib/ship-handoff';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-ship-budget');
|
||||
|
||||
const [command, ...rest] = process.argv.slice(2);
|
||||
const ctx = { env: process.env, cwd: process.cwd() };
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* returned once per run inside the phase program before it (GSTA-167 C5). Logic: lib/ship-parts.ts.
|
||||
*/
|
||||
import { shipParts } from '../lib/ship-parts';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-ship-parts');
|
||||
|
||||
const out = shipParts(process.argv.slice(2));
|
||||
(out.exit === 2 ? process.stderr : process.stdout).write(out.text);
|
||||
|
||||
@@ -21,6 +21,9 @@ import {
|
||||
BUMP_NEVER_KEY_VERSION, POLICY_KEYS, POLICY_KEY_INTRODUCED, SHIP_POLICY_PATH, examplePolicyJson, explainPolicy, isUnavailable, loadPolicyFromBase, loadPolicyFromHead,
|
||||
minimumReader, policyUnavailableLine, renderEffective, resolveBaseBranch, type LoadedPolicy,
|
||||
} from '../lib/ship-policy';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-ship-policy');
|
||||
|
||||
const HELP = `gstack-ship-policy — the repo ship policy (docs/ship-policy.md)
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* STOP:/NEXT: lines wherever the agent must judge. Logic: lib/ship-preflight.ts.
|
||||
*/
|
||||
import { preflight } from '../lib/ship-preflight';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-ship-preflight');
|
||||
|
||||
const out = await preflight(process.argv.slice(2), process.cwd());
|
||||
(out.exit === 2 ? process.stderr : process.stdout).write(out.text);
|
||||
|
||||
@@ -38,6 +38,9 @@ import { RESULT_CODES } from '../lib/result-codes';
|
||||
import { resolveBaseBranch } from '../lib/ship-policy';
|
||||
import { loadBasePolicy, ready, stamp, verify, type QueueContext, type StepOutput } from '../lib/ship-queue';
|
||||
import { attemptFile, listAttempts, prepareGateAhead, recordGateAhead, type QueueFailure } from '../lib/ship-queue-gate';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-ship-queue');
|
||||
|
||||
const HELP = `gstack-ship-queue — the shared merge queue's protocol steps (docs/ship-policy.md#run-a-shared-merge-queue)
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* with STOP:/NEXT: lines wherever the agent must judge. Logic: lib/ship-release.ts.
|
||||
*/
|
||||
import { release } from '../lib/ship-release';
|
||||
import { logShipCall } from '../lib/ship-call-log';
|
||||
|
||||
logShipCall('gstack-ship-release');
|
||||
|
||||
const out = await release(process.argv.slice(2), process.cwd());
|
||||
(out.exit === 2 ? process.stderr : process.stdout).write(out.text);
|
||||
|
||||
Reference in new issue
Block a user