mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 10:43:47 +00:00
test(sync): the unproven-provenance fixture now asserts ai.project omission
The #1126 test pinned basename presence; under #1128's fail-closed provenance the same fixture (no trusted provider-recorded cwd) correctly omits the field entirely — stronger privacy, same zero-paths guarantee. The positive basename-on-the-wire case is covered by sync-project-provenance.
This commit is contained in:
parent
d098628b93
commit
4e7149d2d5
1 changed files with 5 additions and 2 deletions
|
|
@ -172,7 +172,10 @@ describe('sync push --attribution (CLI level)', () => {
|
|||
.flatMap((rs: any) => rs.scopeSpans.flatMap((ss: any) => ss.spans))
|
||||
.flatMap((s: any) => s.attributes.filter((a: any) => a.key === 'ai.project')
|
||||
.map((a: any) => a.value.stringValue)))
|
||||
expect(projects.length).toBeGreaterThanOrEqual(2) // usage + attribution spans
|
||||
expect(new Set(projects)).toEqual(new Set([basename(repoDir)]))
|
||||
// Under fail-closed provenance (#1128) this fixture carries no trusted
|
||||
// provider-recorded cwd, so ai.project is OMITTED entirely — stronger than
|
||||
// the #1126 basename this test originally asserted. The positive case
|
||||
// (trusted cwd -> basename on the wire) lives in sync-project-provenance.
|
||||
expect(projects).toEqual([])
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue