Repository navigation
Description
Problem
The owner wants cost and credential signals in one place they already look at every day. /harness-ops:morning-brief reads only repo queues and lane telemetry with gh, so nothing shows GitHub private-repo Actions use, Azure spend, or the triggers that would narrow the Claude role secrets. GitHub's metered products stop at $0 and Azure has no hard stop, so a quiet failure there either blocks private CI until the 1st or accrues Azure charges.
Fix
Add a Cost section to /harness-ops:morning-brief, printed on every run whatever the repo, with no schedule:
- GitHub private-repo Actions minutes and artifact storage this month against the plan's included 3,000 min / 2 GB, flagged at 50%. Source:
organizations/<org>/settings/billing/usage. - Secret-narrowing triggers across org repos: a collaborator other than the owner, or a fork-triggered workflow (
pull_request_targetor similar) that reads a*_CLAUDE_*secret. - Azure Log Analytics peak day against each workspace's daily cap, flagged at 50%.
- Azure month-to-date actual and Azure's own end-of-month forecast (budget
forecastSpend) against the $200 budget, with the data timestamp; red when the forecast passes $50. - Any of
budget-subscription-monthly,budget-subscription-forecastor thedaily-cost-anomalyrule missing, or expiring within 30 days.
Constraints:
- Read only with the owner's existing
gh(org admin) andazlogins on their machine. Store no new credential. - A source that cannot be read prints
UNREADABLEand the fix (for exampleaz login), per the brief's degraded-section contract. Never print "clear". - A scheduled or CI run of this section needs a new owner decision first.
- The org, subscription, budget names and thresholds come from config, not literals.
Acceptance
- Every morning-brief run prints the Cost section with all five lines, or
UNREADABLEper line. - With
azlogged out, the Azure lines sayUNREADABLEand nameaz login, and the GitHub lines still print.
Basis: GitHub Security & Cost interview, tab 4, Q42, Q52, Q53, Q54, Q57, Q58, Q60, Q61, Q62 (2026-10-18). Billing usage needs an org administrator (https://docs.github.com/en/rest/billing/usage). Budget email timing and forecastSpend: https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets.
🤖 Generated with Claude Code
Activity
github-actions commentedon Oct 19, 2026
Thanks for the report. Automated triage handed this issue to a maintainer.
Proposed work class: work-class: scoped
Basis: automated intake triage; a maintainer confirms or changes it.
Automated triage. A maintainer reviews it.