Skip to content

Feat: separate stable repository QA context from pull request delta - #206

Merged
ivory-code merged 1 commit into
mainfrom
feat/stable-agent-context
Aug 20, 2026
Merged

Feat: separate stable repository QA context from pull request delta#206
ivory-code merged 1 commit into
mainfrom
feat/stable-agent-context

Conversation

@ivory-code

Copy link
Copy Markdown
Contributor

Summary

  • Split reusable repository QA facts into canonical repository, manifest, validation, and behavior blocks.
  • Give stable context and the current pull request delta separate content-derived identities.
  • Preserve complete evidence in the private local recovery report while keeping agent output within the 4 KB contract.

Behavioral Contract

qa --format agent now emits an additive qamap.context v1 contract. Equivalent repository facts keep the same stable IDs across pull requests, while changed manifest policy, validation commands, behavior structure, or repository identity invalidate only their owning block. Compact payloads retain the aggregate stable ID, delta ID, omitted block count, and local recovery path. Static QA remains not-run until an exact repository command is explicitly executed.

Evidence

Closes #200

  • Positive coverage: equivalent repository context retains identity across reordered inputs, different pull request deltas, and equivalent HTTPS or SSH remotes.
  • Negative coverage: repository, validation, and behavior changes invalidate only the expected context blocks.
  • Output coverage: compact and full agent reports validate against the additive schema and preserve current working-tree contracts.

Checks

  • Focused regression test
  • pnpm test
  • pnpm bench:ci for inference, routing, trace, or output
  • Documentation links and commands verified

Public OSS Check

  • No private repository, source, path, customer data, credential, or internal smoke output is included.
  • Shared inference has unrelated positive and negative coverage, or this is not applicable.
  • User-facing commands and claims match actual behavior.

Review Notes

  • pnpm bench:execution: N/A. No E2E compiler or execution behavior changed.
  • pnpm scan: N/A. No scanner or repository security policy changed.
  • pnpm plugin:check and pnpm plugin:smoke: N/A. No plugin package changed.
  • The reviewed manifest remains the durable source of team QA policy. This change does not add a second persisted policy store.

@ivory-code ivory-code added type: feat Feature work that adds product or CLI capability area: qa-planning PR-aware QA planning, coverage, evidence, and fixture readiness area: agent-readiness Agent instructions, readiness, and workspace hygiene area: manifest Verification manifests, domain baselines, and reviewed QA context labels Aug 20, 2026
@ivory-code ivory-code self-assigned this Aug 20, 2026
@ivory-code ivory-code added the area: manifest Verification manifests, domain baselines, and reviewed QA context label Aug 20, 2026
@ivory-code
ivory-code merged commit efdb7a7 into main Aug 20, 2026
2 checks passed
@ivory-code
ivory-code deleted the feat/stable-agent-context branch August 20, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agent-readiness Agent instructions, readiness, and workspace hygiene area: manifest Verification manifests, domain baselines, and reviewed QA context area: qa-planning PR-aware QA planning, coverage, evidence, and fixture readiness type: feat Feature work that adds product or CLI capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: separate stable repository QA context from pull request delta

1 participant