Skip to content

fix: repair invalid batch graph draft payloads - #180

Merged
SamuelBrudner merged 2 commits into
mainfrom
codex/graph-draft-schema-repair
Jul 31, 2026
Merged

fix: repair invalid batch graph draft payloads#180
SamuelBrudner merged 2 commits into
mainfrom
codex/graph-draft-schema-repair

Conversation

@SamuelBrudner

Copy link
Copy Markdown
Owner

What

  • Canonicalize only unambiguous generated create_note aliases (text, content, or body) to raw_content.
  • Preserve provider-supplied note titles as metadata.title without weakening the API schema.
  • Retry schema-invalid batch output with bounded, sanitized server feedback outside the untrusted source-context boundary.
  • Bump the batch prompt contract and add regressions for aliases, conflicting values, title conflicts, and prompt-boundary placement.

Why

The deployed branch fixed production failures where nested provider payloads did not satisfy the strict API request schema, but that fix was based on a much larger mixed release commit. This PR rebuilds the correction directly on current main and contains no onboarding, auth, deployment, frontend, or Beads state.

Safety

Ambiguous/conflicting values remain hard validation failures. Final API validation stays strict, provider feedback is credential-redacted, and human review remains required before applying any operation.

Verification

  • 52 focused graph-draft tests passed
  • Ruff and git diff --check passed
  • Mypy passed across 65 configured source targets
  • Full backend run: 4,601 passed / 118 skipped; the four sandboxed wheel-build cases were rerun with a writable populated uv cache and all 9 packaging tests passed

SamuelBrudner and others added 2 commits July 29, 2026 23:24
…b-tracker-80rh)

Co-Authored-By: OpenAI Codex <noreply@openai.com>

Claude-Session: codex://019fb0f6-ba03-7720-884d-8080284b356b
@SamuelBrudner
SamuelBrudner marked this pull request as ready for review July 31, 2026 00:21
@SamuelBrudner
SamuelBrudner merged commit 867e95b into main Jul 31, 2026
8 checks passed
@SamuelBrudner
SamuelBrudner deleted the codex/graph-draft-schema-repair branch July 31, 2026 00:36
@SamuelBrudner
SamuelBrudner restored the codex/graph-draft-schema-repair branch July 31, 2026 00:37
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