Skip to content

fix(proof): preserve sparse reads and relation integrity - #249

Merged
tonyketcham merged 1 commit into
FlatbreadLabs:mainfrom
toeknee-figma:stack/toeknee-figma/fix/proof-gate0-integrity/preserve-sparse-reads-relation-integrity--280e9948
Aug 15, 2026
Merged

fix(proof): preserve sparse reads and relation integrity#249
tonyketcham merged 1 commit into
FlatbreadLabs:mainfrom
toeknee-figma:stack/toeknee-figma/fix/proof-gate0-integrity/preserve-sparse-reads-relation-integrity--280e9948

Conversation

@toeknee-figma

Copy link
Copy Markdown
Collaborator

Treat missing collection directories as empty while keeping other I/O errors on the normal rejection path. Remove the async Promise executor that could leave callers waiting after a source failure.

Validate derives_from targets before the journal writes. Report missing targets in legacy relation data with PROOF_DANGLING_RELATION instead of returning a partial success. Cross-effort relation behavior stays unchanged.

Tests: corepack pnpm exec ava packages/source-filesystem/src/utils/tests/gatherFileNodes.test.ts packages/source-filesystem/src/utils/tests/fetch.test.ts packages/proof/src/tests/planner.test.ts packages/flatbread/src/cli/proof.test.ts

Tests: corepack pnpm verify

Fixes #248

Change-Id: I280e994847b1554cbdbd9c5779d5ca223a4983c1

Treat missing collection directories as empty while keeping other I/O errors on the normal rejection path. Remove the async Promise executor that could leave callers waiting after a source failure.

Validate derives_from targets before the journal writes. Report missing targets in legacy relation data with PROOF_DANGLING_RELATION instead of returning a partial success. Cross-effort relation behavior stays unchanged.

Tests: corepack pnpm exec ava packages/source-filesystem/src/utils/tests/gatherFileNodes.test.ts packages/source-filesystem/src/utils/tests/fetch.test.ts packages/proof/src/__tests__/planner.test.ts packages/flatbread/src/cli/proof.test.ts

Tests: corepack pnpm verify

Fixes FlatbreadLabs#248

Change-Id: I280e994847b1554cbdbd9c5779d5ca223a4983c1
@toeknee-figma
toeknee-figma marked this pull request as ready for review August 15, 2026 22:04
@tonyketcham
tonyketcham enabled auto-merge August 15, 2026 22:23
@tonyketcham
tonyketcham merged commit 1c868d5 into FlatbreadLabs:main Aug 15, 2026
19 checks passed
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.

proof: sparse strict reads crash; dangling derives_from edges commit and vanish

2 participants