Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7114634
test(config): replace declarative shape mirrors
cv Jul 12, 2026
60f895f
test(e2e): derive inventory and selector contracts (#6710)
cv Jul 12, 2026
821eb8d
test(ci): replace workflow topology mirrors
cv Jul 12, 2026
44a687c
test(policy): exercise effective policy contracts
cv Jul 12, 2026
70f7446
test(manifests): assert consumer outcomes
cv Jul 12, 2026
4db700f
test(package): replace metadata and version mirrors
cv Jul 12, 2026
e3dfc85
test(policy): keep effective contracts linear
cv Jul 12, 2026
29c7e9b
test(package): keep package contracts linear
cv Jul 12, 2026
37abef6
merge: sync effective policy contract fix
cv Jul 12, 2026
3765620
merge: sync manifest stack base
cv Jul 12, 2026
ec9a9ff
test(e2e): remap rlimit workflow parity
cv Jul 12, 2026
6245460
merge: sync workflow parity fix
cv Jul 12, 2026
0cd846a
merge: sync policy stack base
cv Jul 12, 2026
9a49884
merge: sync manifest stack base
cv Jul 12, 2026
2d9aaf1
test(policy): close effective contract gaps
cv Jul 12, 2026
c086232
test(package): exercise compatibility and pin consumers
cv Jul 12, 2026
5a5af84
test(e2e): replace residual declarative mirrors
cv Jul 12, 2026
4baa998
merge: sync workflow contract fixes
cv Jul 12, 2026
9ae49d6
test(manifests): cover residual consumer behavior
cv Jul 12, 2026
6ea6124
merge: sync effective policy contracts
cv Jul 12, 2026
1b01c15
merge: sync manifest consumer contracts
cv Jul 12, 2026
444ef1f
test(policy): anchor browser-use host matching
cv Jul 12, 2026
0238206
merge: sync policy host fix
cv Jul 12, 2026
b7e53ba
merge: sync manifest stack policy fix
cv Jul 12, 2026
2d8572a
test(inference): close SSRF preflight coverage gaps
cv Jul 12, 2026
70d5c7f
merge: sync SSRF coverage contract
cv Jul 12, 2026
3aa0524
merge: sync manifest stack coverage fix
cv Jul 12, 2026
fddec29
merge: sync package contract stack
cv Jul 12, 2026
f1f96b4
test: prevent declarative config mirrors
cv Jul 12, 2026
0ee3c46
test: keep workflow fixtures linear
cv Jul 12, 2026
21f2c3b
test: cover source-shape hook routing
cv Jul 12, 2026
0f778b0
merge: reconcile declarative guard with main
cv Jul 12, 2026
55552bb
test: restore workflow behavior coverage
cv Jul 12, 2026
380c997
test: preserve update-check reachability
cv Jul 12, 2026
189faca
test(e2e): isolate trace boundary scenarios
cv Jul 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ repos:
entry: npm run source-shape:check
language: system
pass_filenames: false
files: ^(test/|scripts/find-source-shape-tests\.ts$|ci/source-shape-test-budget\.json$)
files: ^(.+\.(test|spec)\.(js|ts|mjs|mts|cjs|cts)|scripts/find-source-shape-tests\.ts|ci/source-shape-test-budget\.json)$
priority: 20

- id: test-file-size-budget
Expand Down
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,29 @@ npx vitest run --project e2e-support
This project is fast and does not run live targets. Live E2E remains opt-in through
`npm run test:live-e2e` or the applicable GitHub Actions workflow.

### Test Declarative Behavior

Do not read a shipped YAML, JSON, manifest, workflow, or E2E runtime file only to assert its keys,
lists, or literal text. Schema tests should use small synthetic fixtures. Behavior tests should pass
the configuration through its consumer or validator and mutate important inputs to prove both the
accepted and rejected outcomes.

A direct read may remain only when it protects a security or compatibility trust boundary that
cannot be observed at a more stable boundary. Put this annotation immediately above that one test
and give the concrete reason:

```ts
// source-shape-contract: security -- Cross-field digest equality protects the shipped trust anchor
it("keeps both immutable image digests aligned", () => {
// ...
});
```

`npm run source-shape:check` rejects unsupported categories, short or misplaced reasons, and any
exception whose file, test title, and category are not in the exact reviewed allowlist. It also
rejects unused allowlist entries, so one exception cannot silently replace another. Its output and
metrics list every accepted exception so these contracts remain visible during review.

### Focused Vitest Feedback

Use `npm run test:changed` for the staged, unstaged, and untracked changes in the current checkout,
Expand Down
Loading
Loading