Skip to content

fix(governance): reject malformed production-evidence UTF-8 - #279

Closed
seonghobae wants to merge 4 commits into
mainfrom
fix/production-environment-fatal-utf8
Closed

fix(governance): reject malformed production-evidence UTF-8#279
seonghobae wants to merge 4 commits into
mainfrom
fix/production-environment-fatal-utf8

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Purpose

Harden Noema's production-environment governance collector so malformed GitHub CLI bytes cannot be replacement-decoded into a different but parseable JSON evidence document.

Exact identities

  • protected/live base: 4573a6f7eaf904e19a6e3198c8cabcfd4be40c40
  • original RED commit: 778e5eecfaea8b6f0d984e38d460ad450801b690
  • current restacked GREEN head: 581589cee640146f2c1678a97428cef88f1eb417
  • branch: fix/production-environment-fatal-utf8

GREEN implementation

The audit keeps gh stdout/stderr as bounded raw bytes and decodes them with TextDecoder("utf-8", { fatal: true }). Invalid bytes on successful output or failure diagnostics fail closed with bounded deterministic errors. Token redaction, shell-free subprocess execution, explicit child environment, 2 MiB output ceiling, exact GitHub API version, JSON parsing, and production-policy evaluation remain unchanged.

Focused tests prove malformed UTF-8 is rejected instead of replacement-decoded and valid UTF-8 is decoded exactly.

Restack and verification boundary

The branch was merged non-destructively with protected main after #272, #266, and #275. Its current two-path diff remains limited to scripts/production-environment-governance-audit.mjs and test/production-environment-governance.test.ts.

Historical predecessor evidence does not transfer. Application ci, reviewer-ci, protected-base-eligible Security Scan, and fresh review must complete successfully on unchanged current head 581589cee640146f2c1678a97428cef88f1eb417 before merge. Pending, queued, skipped, absent, neutral, failed, cancelled, stale, predecessor, status-only, model-only, or rate-limited evidence is non-passing.

This repository-owned evidence hardening does not assert that a live production environment exists or passes. The live control-plane acceptance in issue #40 remains separate.

No repair/self-modifying workflow, protection weakening, reviewer or secret invention, audit waiver, release, deployment, or synthetic production-environment claim.

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8d5ecb50-3df8-44d2-a7ce-c787a7bb4bf1

📥 Commits

Reviewing files that changed from the base of the PR and between 4573a6f and 581589c.

📒 Files selected for processing (2)
  • scripts/production-environment-governance-audit.mjs
  • test/production-environment-governance.test.ts

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.

Preserve the reviewed two-path fatal UTF-8 governance evidence hardening while integrating the protected nanoid and Node 24 workflow baselines without destructive history rewriting.
Carry the fatal UTF-8 production-governance evidence hardening across the protected exchange media-type integration while preserving the reviewed two-path diff and non-destructive history.
@seonghobae
seonghobae marked this pull request as ready for review August 14, 2026 09:14

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Review exact current head 581589cee640146f2c1678a97428cef88f1eb417 against protected base 4573a6f7eaf904e19a6e3198c8cabcfd4be40c40. Verify fatal UTF-8 decoding of bounded GitHub CLI stdout/stderr, deterministic bounded failures, token redaction, and no overstatement of live production-environment readiness. Do not transfer conclusions from predecessor heads.

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Rate Limit Exceeded

@seonghobae have exceeded the limit for the number of chat messages per hour. Please wait 19 minutes and 3 seconds before sending another message.

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