Skip to content

fix(examples): stage audiobook evidence work on disk, not os.tmpdir - #353

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
fix/audiobook-evidence-disk-temp
Sep 3, 2026
Merged

fix(examples): stage audiobook evidence work on disk, not os.tmpdir#353
ScriptedAlchemy merged 1 commit into
mainfrom
fix/audiobook-evidence-disk-temp

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Acoustic + whisper evidence staging moved off os.tmpdir() (commonly RAM-backed tmpfs) onto regular disk: beside the requested receipt, else beside the source media — same-directory convention as conversion/mutation staging.
  • Parent directory is created when a receipt path targets a new directory (parity with the old tmpdir behavior).
  • Regression pins both staging locations, rejects tmpdir, and verifies cleanup.

Test plan

  • evidence-parity suite green incl. new regression
  • full example check (validate/build/typecheck/tests/route-unit)
  • root typecheck + lint

…pdir

Acoustic and whisper verification decoded audio into os.tmpdir(), which is
commonly RAM-backed tmpfs on Linux. Evidence staging now lives beside the
requested receipt (or the source media when no receipt is requested),
matching the same-directory staging convention of the other curator modules,
with a regression pinning both locations and cleanup.
@changeset-bot

changeset-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2cbd61b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T02:39:40.977716Z 2cbd61b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy merged commit 7cd271d into main Sep 3, 2026
8 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2cbd61b07d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

input: Readonly<{ file: string; receipt?: string }>,
prefix: string,
): Promise<string> => {
const root = dirname(resolve(input.receipt ?? input.file));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Propagate the receipt into acoustic-identify staging

When acoustic-identify is given a receipt path, the per-candidate object passed to sampleMatch omits input.receipt, so this fallback always chooses the source-media directory. If the receipt was placed on a disk because the source is on tmpfs, low on space, or read-only, identification still stages on—or fails against—the source filesystem, defeating the purpose of this change; forward the receipt path into each sampleMatch call.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed on main (merge af1c185).

@ScriptedAlchemy
ScriptedAlchemy deleted the fix/audiobook-evidence-disk-temp branch September 3, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant