Skip to content

feat: expand CATES economics, Copilot hygiene, and release safeguards - #37

Merged
Todd Toler (msfttoler) merged 3 commits into
mainfrom
feat/copilot-economics-openssf
Oct 2, 2026
Merged

Todd Toler (msfttoler) merged 3 commits into
mainfrom
feat/copilot-economics-openssf

Conversation

@msfttoler

Copy link
Copy Markdown
Collaborator

Summary

  • Add experimental end-to-end token economics: a normalized usage ledger, cost per accepted task, cache/reasoning accounting, retries and child calls, non-model costs, provenance and coverage limits, CLI/library/API interfaces, and a documented example.
  • Add an opt-in GitHub Copilot hygiene profile with 15 checks across 11 configuration families, target-aware guidance, explicit unassessed areas, policy/suppression support, reporting and hosted UI integration.
  • Preserve stable scoring, conformance and CI gates. Harden configuration parsing, bounded discovery, GitHub file/folder URL scope, supplied-file handling and responsive/keyboard UI behavior.
  • Implement the repository-side work for Admin: enforce main branch protection controls #34, Release: bootstrap first artifacts and npm trusted publishing #35 and OpenSSF: evaluate managed fuzzing and best-practices badge #36 without claiming unavailable administrative or publishing actions were performed.

Issue status

Issue Included in this PR Still requires maintainer action
#34: Branch protection Ready-to-apply protection payload, GitHub Actions app-bound required checks, regression coverage, activation and negative-test runbook An administrator must install protection, address the sole-code-owner review constraint, narrow the existing ruleset, and verify enforcement/Scorecard
#35: Release bootstrap Matching stable-tag/package/lockfile preflight for both publishing workflows; OIDC-only normal npm publishing; explicit manual bootstrap; tag-bound recovery; manual release-please recovery and clear disabled-state reporting Configure release credentials and the protected npm environment, bootstrap the package, configure trusted publishing, verify real artifacts and provenance, then remove/revoke the bootstrap token
#36: OpenSSF assurance Fixed-seed input mutation/invariant tests for parsers, policies, discovery, URLs and reports; documented managed-fuzzing decision and residual risk; honest README badge status Owner approval of the risk decision and actual Best Practices registration/criteria evidence

These issues are referenced, not automatically closed. The msfttoler account has repository write permission, not administrator permission. No release credentials were created or copied, no artifacts were published, and no badge or risk acceptance is falsely claimed.

Documentation

  • docs/TOKEN-ECONOMICS.md: normalized-ledger contract, accounting coverage, uncertainty and examples.
  • docs/COPILOT-HYGIENE.md: supported surfaces, targets, checks, limitations and manual verification.
  • docs/MAINTAINER-SETUP.md: exact remaining administrative/release steps, acceptance criteria and OpenSSF decision.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation only
  • Refactor / internal cleanup

Validation and checklist

  • Read CONTRIBUTING.md.
  • npm run release:check: type checks, 460 tests, coverage thresholds, CLI build and npm tarball preview.
  • npm run build:service.
  • Actionlint 1.7.12 on all changed GitHub Actions workflows.
  • Browser verification across eight states at 375, 768, 1280 and 1440 pixels; keyboard focus, policy export/reset, canonical paste paths, escaped hook content and screenshot review; no critical/major layout findings or browser errors.
  • Added regression coverage and directly related documentation.
  • git diff --check.
  • Conventional commit with required Copilot trailers.
  • No secrets or credentials included.

Notes for reviewers

The economics assessment and Copilot profile are experimental, explicitly selected and separate from stable scoring. A complete inventory within a supplied scope is not certification of runtime activation, organization policy, external dependencies, accepted outcomes or savings.

The input mutation tests are bounded, reproducible tests in normal CI, not a managed coverage-guided fuzzing integration. Scorecard findings remain visible pending the documented external actions.

Add opt-in runtime economics and Copilot hygiene across the CLI, library, API and web UI while preserving stable scoring and gates. Harden discovery, parsing, source selection and reporting, and document the accounting and coverage contracts.

Address repository-side work for #34, #35 and #36 with tested branch-protection configuration, tag-bound release preflight, explicit npm bootstrap versus OIDC paths, reproducible input-boundary mutations and maintainer activation guidance. Keep issues open for administrator access, actual publication, risk approval and badge registration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fbff4f08-bcbb-45a3-a838-5f24ff3782e8
Comment thread src/copilot/index.ts Fixed
Comment thread src/copilot/index.ts Fixed
Todd Toler (msfttoler) and others added 2 commits October 1, 2026 22:36
…ession anchor'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ring sanitization'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@msfttoler
Todd Toler (msfttoler) merged commit cd11bac into main Oct 2, 2026
7 of 9 checks passed
@msfttoler
Todd Toler (msfttoler) deleted the feat/copilot-economics-openssf branch December 3, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants