Skip to content

test: cover Code file scope forwarding and schema sync contracts#606

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-946f
Draft

test: cover Code file scope forwarding and schema sync contracts#606
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-946f

Conversation

@cursor

@cursor cursor Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for recently merged production changes that lacked dedicated test coverage.

Risky behavior now covered

  1. Code file scope forwarding (Forward Code scope for file content APIs #602)file_content get and blame must forward orgIdentifier/projectIdentifier query params so Harness Code can resolve project-scoped repositories. Without this, agents reading files from project repos get 404s.
  2. Schema sync bundle contracts (chore: auto-sync harness schemas #584)DeployAwsAgentCoreRevision step definitions and IdentitiesConfig/IdentitySpec OIDC identity schemas added to v0 pipeline/template bundles.
  3. Schema sync bundle contracts (chore: auto-sync harness schemas #567)DynamicStageNodeV1 dynamic stage definitions added to v1 pipeline/template bundles.
  4. harness_schema path resolution — Ensures agents can discover the new step/stage/identity schemas by bare name.

Test files added/updated

  • Added: tests/registry/repositories-file-scope.test.ts — 4 tests for file_content get/blame scope query param forwarding
  • Updated: tests/schemas/schema-bundle-contract.test.ts — 4 new contract tests for synced schema definitions
  • Updated: tests/tools/harness-schema-tool.test.ts — 3 new path resolution tests

Why these tests materially reduce regression risk

Type of Change

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

Checklist

  • pnpm test passes (44 targeted tests)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes (not applicable — no registry changes)
Open in Web View Automation 

- Add repositories-file-scope tests for file_content get/blame (#602)
- Lock in DeployAwsAgentCoreRevision, IdentitiesConfig bundle contracts (#584)
- Lock in DynamicStageNodeV1 v1 stage contracts (#567)
- Add harness_schema path resolution for new synced definitions

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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