Skip to content

Hold cost only for real billing charges (owner standing direction §3) #10553

Description

@kyle-sexton

Spec

This issue's spec is the owner's standing direction of 2026-10-27, §3 cost, verbatim:

Cost, which comes to me: anything that can bill me. That means Azure, GitHub (larger runners, Actions minutes or storage on private repositories, paid storage or artifact retention beyond the free quota, plan or seat changes) and any other billing account. Not cost, so spend it freely: model usage under the Claude subscriptions, and each account's promotional $200 API credits. Extra usage is off and spending limits are set on all 12 accounts, so reaching a limit stops work and never bills; treat it as a capacity limit.

The same direction is recorded in docs/conventions/loop-lane/README.md, "When work stops for the owner". The owner's stop rule also says never to weaken a HIGH or CRITICAL security boundary.

Problem

cost-review-required in plugins/source-control/skills/babysit-prs/scripts/babysit_risk.py (_cost_reasons) holds for a person on spend that cannot bill the owner: model flags, pr-pipeline.yaml spend lines such as turn-share, and raised timeouts on a public repository. The direction above says such spend is not cost.

Acceptance criteria

cost-review-required holds only what can bill. Subscription and prepaid spend is reported as a non-holding finding. Credential and agent-surface changes keep a person's hold under a security reason code, not a cost code.

Class Result
COST_PATHS IaC file, or a file in a Pulumi project HIGH cost-review-required
Base tree not listed for Pulumi projects (fails closed) HIGH cost-review-required
A file renamed or copied into a workflow or pipeline path HIGH cost-review-required
A workflow or pipeline file with no readable patch (fails closed) HIGH cost-review-required
A runner that is not free: a larger or expression runner even on a public repository, any runner on another HIGH cost-review-required
On a repository not known to be public: a runs-on:, windows, macos or cron line, a raised model-leg timeout, or an artifact retention-days above the removed value or above the 90-day default HIGH cost-review-required
A net-new secrets reference HIGH secret-exposure-review (a person's; the cost decision does not clear it)
A new model leg (run-claude-cli, claude-code* action or image) or @anthropic-ai/claude-code run HIGH agent-surface-review (a person's; the cost decision does not clear it)
--model, --max-turns MED cost-finding (reported, never holds)
A pr-pipeline.yaml line off the safe list (turn share, caps, models) MED cost-finding
On a public repository: cron, a raised model-leg timeout, or a raised retention-days MED cost-finding

Plan or seat changes have no code surface in a pull request, so they have no class.

Related

Activity

  1. added
    needs-triage
    on Oct 27, 2026
  2. github-actions commented on Oct 27, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: narrow _cost_reasons in babysit_risk.py so cost-review-required holds only what can bill. Subscription and prepaid spend becomes a non-holding MED cost-finding. New secrets references and new model legs keep a person's hold under secret-exposure-review and agent-surface-review. The spec is the owner's standing direction, and the acceptance table and the refinement checklist are exact, so no open questions remain.

    This change narrows an existing hold. It adds no billing charge, so there is no cost decision to record.

    Related, not duplicates: #9241 (its non-public-repo probes stay open there), #10437, #9635, #10517. Check that other consumers of the person-code list, such as enable-auto-merge.mjs, accept the two new codes.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Oct 27, 2026
  4. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 27, 2026
  5. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its title or body names a charge (billing, larger runners, retention, seat, subscriptions, extra usage, spending limits, subscription), which needs an owner decision. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: needs-decision; its comment says why.

  7. added
    needs-triage
    on Oct 27, 2026
  8. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Narrow _cost_reasons in babysit_risk.py so cost-review-required holds only what can bill, report subscription and prepaid spend as MED cost-finding, and hold new secrets references and model legs under person-only security codes.

    Acceptance criteria

    • Tests show a COST_PATHS IaC file, a file in a Pulumi project, and an unlisted base tree (pulumi_dirs None) each give HIGH cost-review-required (babysit_risk.py:920-931).
    • Tests show a file renamed or copied into a workflow or pipeline path, and a workflow or pipeline file with no readable patch, each give HIGH cost-review-required (babysit_risk.py:938-946).
    • Tests show a larger or expression runner on a public repository, and any runner on a non-public repository, give HIGH cost-review-required, while a free runner on a public repository gives none.
    • Tests show that on a repository not known to be public (inp.public not True) a runs-on:, windows, macos or cron line, a raised model-leg timeout, or a retention-days above the removed value or above 90 each give HIGH cost-review-required.
    • Tests show a net-new secrets reference gives HIGH secret-exposure-review, and a net-new model leg (run-claude-cli, claude-code* action or image) or @​anthropic-ai/claude-code run gives HIGH agent-surface-review, neither under cost-review-required.
    • Tests show a cost decision (inp.cost_decision) clears cost-review-required but does not clear secret-exposure-review or agent-surface-review.
    • Tests show --model and --max-turns lines, on any repository, give MED cost-finding and never cost-review-required.
    • Tests show a pr-pipeline.yaml line off the safe list (turn share, caps, models) gives MED cost-finding and no HIGH cost-review-required (babysit_risk.py:969).
    • Tests show that on a public repository cron, a raised model-leg timeout and a raised retention-days give MED cost-finding, not HIGH.
    • cost-finding is added to MERGEABLE_MED so it never holds, and secret-exposure-review and agent-surface-review are added to PERSON_CODES so only a person clears them (babysit_risk.py:1134, 1167).
    • Existing assertions of cost-review-required for model flags, pipeline spend lines and public-repo timeouts in the tests under babysit-prs/scripts/tests are updated to the new classes, and the babysit-prs test suite passes.
    • The module docstring (babysit_risk.py:50-53) and reference/safety.md:1112 describe the narrowed hold and the new codes.

    Dependencies

    • Other consumers of the person-only code list, such as enable-auto-merge.mjs named at babysit_risk.py:1165, must accept the two new person codes; check it reads PERSON_CODES or update it.

    Related work

    Sources read

    • plugins/source-control/skills/babysit-prs/scripts/babysit_risk.py:700-978: COST_CODE and _cost_reasons hold HIGH on cron, --model, --max-turns, secrets, model legs, raised timeouts and unsafe pipeline lines, with no retention-days handling and no cost-finding code.
    • plugins/source-control/skills/babysit-prs/scripts/babysit_risk.py:1134-1168: MERGEABLE_MED and PERSON_CODES list the codes to extend.
    • plugins/source-control/skills/babysit-prs/reference/safety.md:1112: documents the current cost hold.
    • Grep of babysit-prs for secret-exposure-review, agent-surface-review and cost-finding: no matches, so all three codes are new there.

    Automated refinement by the lanes App. Intake triages the issue again with it.

  9. removed
    needs-owner-decision
    on Oct 27, 2026
  10. removed
    needs-triage
    on Oct 27, 2026
  11. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-owner-decision

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions