Skip to content

ci(release): fail closed on missing license evidence - #240

Open
seonghobae wants to merge 20 commits into
mainfrom
chore/release-legal-readiness-20260817
Open

ci(release): fail closed on missing license evidence#240
seonghobae wants to merge 20 commits into
mainfrom
chore/release-legal-readiness-20260817

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Why

Protected main currently has no LICENSE/COPYING file, GitHub reports no detected repository license, and Cargo.toml declares neither license nor license-file. That is an acquisition/release-readiness gap, but this PR must not invent legal terms or claim rights that have not been established.

What

  • Add a deterministic source-distribution legal-readiness checker.
  • Require explicit repository license-file evidence plus Cargo package license metadata before the presence gate reports ready.
  • Reject missing or path-escaping license-file declarations.
  • Emit machine-readable blockers and explicit limitations: this does not select or interpret a license, prove copyright ownership, establish instrument rights, or establish legal sufficiency.
  • Add isolated unit fixtures for fail-closed missing/malformed/path-escape cases and valid explicit-evidence cases.
  • Add a manual, read-only workflow_dispatch preflight. It intentionally fails on the current repository until an authorized owner adds reviewed terms; it does not make every ordinary PR fail while that governance decision is pending.

TDD

  • RED contract: c31a2b454d121d3e187e8955fe6b1eb05d65294c
  • Checker implementation: 4e8878fc8b1bf5acb9283fc4c970862b4df687b5
  • Unit evidence: f2d33cae7cb54e07743d3bbadf6f054f05115cf6
  • GREEN workflow: 10973662ce969303a4b3dc8cee47cc86461bc316

Scope

This PR adds evidence/preflight only. It does not choose a license, change publish = false, publish a crate, certify third-party compatibility, or assert rights to assessment content. Those remain explicit owner/legal-governance inputs.

Do not merge until required checks on the unchanged exact head and qualifying independent non-author review pass.

@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5d8a7023-5253-414f-b926-a7fc61b5a48d

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/release-legal-readiness-20260817

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae

Copy link
Copy Markdown
Contributor Author

Hourly loop: exact head 220c6fe3 now includes the refs/heads/main preflight guard. Isolated legal-readiness unittests are GREEN locally (python3 -m unittest tests.test_release_legal_readiness tests.test_check_release_legal_readiness). Repo Runtime CI was rerun on this unchanged SHA after org-queue cancellation. Independent last-push review is still required; this comment is not approval.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@seonghobae

Copy link
Copy Markdown
Contributor Author

Live re-verify (2026-08-17)

Exact head c3a34611 is still MERGEABLE against protected main aac99d0b. Required checks on this unchanged head are SUCCESS (Runtime CI, line/branch coverage, rustdoc, security/SAST, SBOM, provenance, noema-review, opencode-review).

Merge is blocked only by the live ruleset: reviewDecision=REVIEW_REQUIRED and there is no qualifying independent non-author last-push approval. I am the PR author (seonghobae) and will not self-approve or use admin bypass.

Requested Copilot review on this exact head. This comment is not approval. Independent last-push review is still required before merge.

@cursor

cursor Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

1 similar comment
@seonghobae

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cursor
cursor Bot force-pushed the chore/release-legal-readiness-20260817 branch from 4529c6b to a9f69d8 Compare August 18, 2026 00:07
@cursor
cursor Bot force-pushed the chore/release-legal-readiness-20260817 branch from a9f69d8 to 73e45e6 Compare August 18, 2026 00:26
cursoragent and others added 2 commits August 18, 2026 00:36
…ader

Production line coverage failed because the integration framing client
unwrapped write/shutdown after the listener already fail-closed. Drive
those reader arms through the race-safe helper and tolerate a closed
peer during the public framing contract.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

OpenCode cannot approve yet because required coverage evidence did not pass.

Review outcome

1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence

  • Problem: The required coverage-evidence job result was failure, so OpenCode cannot establish approval sufficiency for this head.

  • Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.

  • Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports success with required evidence or explicit no-source not-applicable evidence.

  • Regression test: Keep the approval branch checking needs.coverage-evidence.result == success before posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present.

  • Result: REQUEST_CHANGES

  • Reason: coverage-evidence result was failure, so required test/docstring evidence was not proven for current head 0f075706909c3dc36430fd05dddd5dffb4fa2971.

  • Head SHA: 0f075706909c3dc36430fd05dddd5dffb4fa2971

  • Workflow run: 32100400739

  • Workflow attempt: 1

Coverage evidence

Coverage Decision

  • Result: FAIL
  • Test evidence: not proven passing
  • Docstring evidence: not proven passing when configured
  • Failure count: 1

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Workflow (2 files)"]
  S1 --> I1["GitHub Actions review job"]
  I1 --> R1["Review risk: Workflow (2 files)"]
  R1 --> V1["actionlint plus required checks"]
  Evidence --> S2["Changed file (2 files)"]
  S2 --> I2["repository behavior"]
  I2 --> R2["Review risk: Changed file (2 files)"]
  R2 --> V2["required checks"]
  Evidence --> S3["Test (3 files)"]
  S3 --> I3["regression suite"]
  I3 --> R3["Review risk: Test (3 files)"]
  R3 --> V3["targeted test run"]
Loading

@opencode-agent

Copy link
Copy Markdown
Contributor

OpenCode Review Overview

  • Head SHA: 0f075706909c3dc36430fd05dddd5dffb4fa2971
  • Workflow run: 32100400739
  • Workflow attempt: 1
  • Gate result: REQUEST_CHANGES (approval step)

Pull request overview

OpenCode cannot approve yet because required coverage evidence did not pass.

Review outcome

1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence

  • Problem: The required coverage-evidence job result was failure, so OpenCode cannot establish approval sufficiency for this head.

  • Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.

  • Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports success with required evidence or explicit no-source not-applicable evidence.

  • Regression test: Keep the approval branch checking needs.coverage-evidence.result == success before posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present.

  • Result: REQUEST_CHANGES

  • Reason: coverage-evidence result was failure, so required test/docstring evidence was not proven for current head 0f075706909c3dc36430fd05dddd5dffb4fa2971.

  • Head SHA: 0f075706909c3dc36430fd05dddd5dffb4fa2971

  • Workflow run: 32100400739

  • Workflow attempt: 1

Coverage evidence

Coverage Decision

  • Result: FAIL
  • Test evidence: not proven passing
  • Docstring evidence: not proven passing when configured
  • Failure count: 1

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Workflow (2 files)"]
  S1 --> I1["GitHub Actions review job"]
  I1 --> R1["Review risk: Workflow (2 files)"]
  R1 --> V1["actionlint plus required checks"]
  Evidence --> S2["Changed file (2 files)"]
  S2 --> I2["repository behavior"]
  I2 --> R2["Review risk: Changed file (2 files)"]
  R2 --> V2["required checks"]
  Evidence --> S3["Test (3 files)"]
  S3 --> I3["regression suite"]
  I3 --> R3["Review risk: Test (3 files)"]
  R3 --> V3["targeted test run"]
Loading

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.

2 participants