Skip to content

Validate repository-bound GitHub release state - #533

Merged
omkhar merged 1 commit into
mainfrom
fix/release-state-validators
Jul 31, 2026
Merged

Validate repository-bound GitHub release state#533
omkhar merged 1 commit into
mainfrom
fix/release-state-validators

Conversation

@omkhar

@omkhar omkhar commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • add fail-closed GitHub release list, draft, published, and latest-state validators
  • bind release metadata to the expected OWNER/REPO and exact supported tag class
  • expose tested hostutil commands for the release publisher workflow

Scope boundary

This unit validates release metadata only. It does not authorize asset bytes, names, sizes, digests, symlinks, or staged paths. A secure staged-content publisher remains mandatory before v1.0.0 publication.

Integration dependency

PR #532 is a hard dependency. After it merges, this branch must be rebased and the shared cmd/workcell-hostutil/main.go command surface must preserve both the canonical tag-policy commands and these state validators, followed by full revalidation and review.

Evidence

  • verified signed commit b3b9b21
  • exact clean pr-parity passed for HEAD and current main, including host invariants, docs, and container smoke
  • go test -race ./internal/host/release ./cmd/workcell-hostutil
  • go test ./...
  • go vet ./...
  • live positive validation against immutable v0.11.2 release metadata
  • live negative validation rejected historically misclassified immutable v1.0.0-rc.2 metadata
  • three-lens peer review loop clean after fixes

@omkhar
omkhar marked this pull request as ready for review July 29, 2026 22:35

@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: b3b9b21c63

ℹ️ 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".

Comment thread internal/host/release/release.go
Add fail-closed, metadata-only validators for GitHub release listing, draft, published, and latest state. Bind release responses to the expected repository while leaving asset-byte authorization to the staged-content publisher.
@omkhar
omkhar force-pushed the fix/release-state-validators branch from b3b9b21 to 2923553 Compare July 31, 2026 11:17
@omkhar
omkhar merged commit d7bedcf into main Jul 31, 2026
14 checks passed
@omkhar
omkhar deleted the fix/release-state-validators branch July 31, 2026 11:32
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