Updated transcript artifact names and canonical paths to use a consistent, role-based nomenclature

This commit is contained in:
2026-05-22 19:05:23 -05:00
parent e920f3a8d5
commit cee52aa092
56 changed files with 991 additions and 463 deletions

View File

@@ -11,7 +11,7 @@ import (
func TestValidBoundsOutputProducesKeepSelector(t *testing.T) {
dir := t.TempDir()
boundsPath := filepath.Join(dir, "bounds.json")
transcriptPath := filepath.Join(dir, "processed.json")
transcriptPath := filepath.Join(dir, "polished.json")
writeBoundsTestFile(t, boundsPath, `{
"confidence":"high",
@@ -103,7 +103,7 @@ func TestBoundsNonExistentEndIDFails(t *testing.T) {
func TestInvalidTranscriptJSONFails(t *testing.T) {
bounds := SessionBounds{TrimAction: "trim", StartSegmentID: intPtr(1), EndSegmentID: intPtr(2)}
path := filepath.Join(t.TempDir(), "processed.json")
path := filepath.Join(t.TempDir(), "polished.json")
writeBoundsTestFile(t, path, "not-json")
err := ValidateSessionBoundsAgainstTranscript(bounds, path)
@@ -117,7 +117,7 @@ func TestInvalidTranscriptJSONFails(t *testing.T) {
func TestTranscriptWithoutSegmentsFails(t *testing.T) {
bounds := SessionBounds{TrimAction: "trim", StartSegmentID: intPtr(1), EndSegmentID: intPtr(2)}
path := filepath.Join(t.TempDir(), "processed.json")
path := filepath.Join(t.TempDir(), "polished.json")
writeBoundsTestFile(t, path, `{"schema":"audita.processed.v1"}`)
err := ValidateSessionBoundsAgainstTranscript(bounds, path)
@@ -170,7 +170,7 @@ func TestNoTrimActionCopyIsSupported(t *testing.T) {
func writeTranscriptWithIDs(t *testing.T, ids ...int) string {
t.Helper()
path := filepath.Join(t.TempDir(), "processed.json")
path := filepath.Join(t.TempDir(), "polished.json")
if len(ids) == 0 {
writeBoundsTestFile(t, path, `{"segments":[]}`)
return path