8000 fix(spec-sync): reject failed schema downloads by dominicnunez · Pull Request #323 · dominicnunez/codex-sdk-go · GitHub
[go: up one dir, main page]

Skip to content

fix(spec-sync): reject failed schema downloads - #323

Merged
dominicnunez merged 2 commits into
mainfrom
fix/spec-sync-download-validation
Nov 4, 2026
Merged

dominicnunez merged 2 commits into
mainfrom
fix/spec-sync-download-validation

Conversation

@dominicnunez
@dominicnunez dominicnunez commented Nov 4, 2026 •
Copy link
Copy Markdown
Owner

Spec sync could treat HTTP error bodies and malformed successful responses as schema changes, then advance the baseline and replace an existing sync proposal. Downloads now require completed transfers with a final HTTP 2xx status. The entire temporary candidate is checked as JSON before comparison, tracked snapshot replacement, baseline advancement or any branch/pull-request publication and cleanup.

The regression harness executes the actual workflow with real curl against a local HTTP server and inert publication operations. The extractor accepts both LF and CRLF workflow checkouts. Its 23 download cases cover valid downloads and redirects, HTTP failures, malformed/empty/multiple-document/non-finite JSON, truncated transfers and inventory errors across root/v1/v2. Failures preserve the existing snapshot, baseline and proposal and remove the temporary candidate. Spec-sync and threat-model documentation describe this admission boundary and its limits. Immutable snapshot pinning remains the separate #249 unit.

Validation: 15 regression cases failed before the fix; all 23 now pass. Formatting, module tidiness, build, vet, lint, ordinary and race suites, focused workflow/pruning tests, parsed workflow/shell/Python validation and validation of the current checked-in schemas passed. Independent patch review found no actionable issues. No live spec-sync workflow was run.

Closes #248

@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Nov 4, 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-11-04T04:51:15.163812Z 9749396 New commits
🔒 Security Review ✅ Completed 2026-11-04T04:56:06.552388Z 9749396 Manual request
ℹ️ 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.

@dominicnunez
Copy link
Copy Markdown
Owner Author

@codex security review

@chatgpt-codex-connector
Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 97493960ff

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@dominicnunez
dominicnunez merged commit c1a42b3 into main Nov 4, 2026
4 checks passed
@dominicnunez
dominicnunez deleted the fix/spec-sync-download-validation branch November 4, 2026 04:58
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.

fix: reject failed schema downloads before spec-sync publication

1 participant

0