Skip to content

test: HAR/SCS regression coverage for #1030 fixes - #1041

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

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

Conversation

@cursor

@cursor cursor Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for merged fix #1030 (HAR registry/SCS query params, path params, and compact whitelist).

Risky behavior now covered

  • HAR list search silently ignored: registry, artifact, artifact_version, and artifact_file list ops must send search_term as the API query key (not a broken search alias).
  • Artifact list deep links: artifact list must resolve {artifactIdentifier} in openInHarness when items include artifactIdentifier / registryIdentifier.
  • SCS supply-chain UI links: artifact_security, scs_artifact_remediation, and scs_chain_of_custody deep link templates must use {artifact} consistent with pathParams.artifact_id → artifact.
  • SCS list compaction: compactItems must retain _summary, _message, and _result marker rows from SCS extractors.

Test files added/updated

  • tests/registry/har-registries-regression.test.ts (new)
  • tests/utils/compact.test.ts
  • tests/registry/scs.test.ts

Why these tests materially reduce regression risk

Dispatch-level assertions catch wire-format mistakes that static schema checks miss; deep-link tests prevent unresolved Harness UI placeholders; compact whitelist tests protect agent-facing SCS summaries from being stripped on list responses.

Type of Change

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

Checklist

  • pnpm test passes (focused: har-registries-regression, compact, scs)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes
Open in Web View Automation 

)

Add dispatch-level tests ensuring HAR list ops send search_term on the wire,
artifact list deep links resolve artifactIdentifier, and compactItems retains
SCS marker fields. Align SCS supply-chain deep link templates with pathParams.

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