Harden Go CLI subprocess behavior

This commit is contained in:
2026-05-10 23:33:13 +00:00
parent 08b7531149
commit 95fe8c32fa
4 changed files with 234 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ var processRunner = func(inv processInvocation, stdout io.Writer) error {
if err != nil {
return err
}
if err := coreio.ValidateWellFormedJSON(transcriptBytes); err != nil {
if err := coreio.ValidateWellFormedJSON(inv.TranscriptPath, transcriptBytes); err != nil {
return err
}
if _, err := coreio.ReadRequiredFile(inv.GlossaryPath, "glossary"); err != nil {