Skip to content

test: lock v1 schema sync and CCM recommendation prompt defaults - #950

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/regression-test-coverage-pr949
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/regression-test-coverage-pr949

Conversation

@cursor

@cursor cursor Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Description

Regression-test coverage for recent merged changes (triggered while reviewing PR #949; production diff there is version-only). Locks in harness-schema auto-sync (#943) contract and CCM Open-tab recommendation guidance from #948.

Risky behavior now covered

  • v1 template inputs openness — prevents reverting to a strict NGVariableV1Wrapper ref that rejects valid template input metadata.
  • RuntimeV1 delegate on object runtime — inherit-from-delegate K8s auth stays in the bundled schema agents use via harness_schema.
  • TemplateRef.container / TemplateContainerOverlay — caller-side container overrides remain in the public v1 pipeline/template schema.
  • BVR prompt Open vs Applied recommendation filters — documents days_back=4, min_saving=1, and applied_at_* semantics so agents do not map the UI date picker to days_back.

Test files added/updated

  • tests/schemas/schema-bundle-contract.test.ts — three new contract tests
  • tests/prompts/business-value-review.test.ts — Open-tab / Applied-tab recommendation defaults

Why these tests materially reduce regression risk

Schema auto-sync is machine-generated and easy to regress silently; contract tests fail CI if upstream fields disappear. The prompt test guards FinOps/BVR flows that depend on CCM list/stats matching the UI Open tab — a common source of inflated savings figures.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (test coverage)

Checklist

  • pnpm test passes (targeted: schema-bundle-contract + business-value-review)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes
Open in Web View Automation 

Add schema-bundle contract assertions for template inputs openness,
RuntimeV1 delegate selectors, and TemplateContainerOverlay from the
harness-schema auto-sync. Extend the business-value-review prompt test
so Open-tab days_back/min_saving and Applied-tab date semantics stay
documented for agents.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
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.

1 participant