fix(automation): bind commercial writer toolchain - #150
Conversation
📝 WalkthroughWalkthrough시간별 상업 준비성 워크플로가 Node.js 24.19.0과 npm 11.17.0을 사용하도록 고정되었습니다. 엄격한 Changes상업 준비성 도구체인
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/hourly-commercial-readiness-toolchain-integrity.test.ts`:
- Around line 10-21: Update the test uses exact protected-CI Node/npm execution
contract to validate individual workflow step blocks rather than relying on
whole-YAML string matches. Assert unique step names and verify the setup-node
version, Node/npm versions, ordering, and npm ci flags within their actual
steps; also validate the exact permissions for the maintainer_app step and
restrict GH_TOKEN usage to the expected governance-audit and PR-loop steps.
Preserve token confidentiality and the existing protocol/security contracts.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 3e988f3a-9b89-4257-88e0-1a4ce51a27e6
📒 Files selected for processing (2)
.github/workflows/hourly-commercial-readiness.ymltest/hourly-commercial-readiness-toolchain-integrity.test.ts
|
Superseded by current-main successor #216, now merged as protected Fresh exact-byte preservation proof before closure:
#216 reacquired current-base test-first RED/GREEN plus exact-head application CI, reviewer-ci and protected-base Security Scan before merge. #150 predecessor checks/reviews are not transferred. Its unique two-file semantic work is now protected-main truth, so this historical line can close without data loss. |
Purpose
Test-first repair for #149. The trusted commercial writer now runs under the exact reviewed Node/npm/install contract, preserves narrow Maintainer App authority, and fails closed when the no-PR commercial-readiness evidence bundle expected by downstream diligence is not retained.
Exact current lineage
c85d710804139c0697d7ef8fa47d02b1389e6d84fix/commercial-writer-exact-toolchain64f5c4a011add011d7cfe2c5dd9896c5ed8cec2aa060018610d888fb8c214782075dd39e08d9c7e3aa10ed6664720907eb7fd319ab7296361f6697b3.github/workflows/hourly-commercial-readiness.yml,test/hourly-commercial-readiness-toolchain-integrity.test.tsRCA -> remedies -> feasibility -> action
The workflow originally evaluated governance and write-capable automation under a broad Node/ambient npm contract. The repair pins the reviewed setup-node revision, Node
24.19.0, verifies npm11.17.0, uses frozen install flags, preserves non-persistent checkout credentials, exact Maintainer App permissions, and limits the App-tokenGH_TOKENconsumers to the governance audit and exact-head PR loop. The valid predecessor CodeRabbit test-contract finding is addressed and its thread is resolved/outdated.A later fresh audit found a separate retained-evidence boundary. Main-governance and loop-report uploads already used
if-no-files-found: error, but the no-open-PR evidence bundle usedif-no-files-found: warn. When the queue is empty, that branch intentionally refreshes saleable-readiness and acquisition evidence; workflow success could therefore coexist with no retained no-PR buyer-evidence artifact. Warning-only telemetry, an explicit pre-upload existence check, and native upload fail-closed behavior were considered.if-no-files-found: erroris the narrowest supported remedy and does not broaden workflow authority.Contract commit
a060018610d888fb8c214782075dd39e08d9c7e3requires fail-closed no-PR retention. Exact current GREENaa10ed6664720907eb7fd319ab7296361f6697b3changes the corresponding upload policy fromwarntoerrorwhile preserving artifact paths, retention and queue-empty semantics.Exact current proof
For unchanged head
aa10ed6664720907eb7fd319ab7296361f6697b3against live basec85d710804139c0697d7ef8fa47d02b1389e6d84:cirun31472615425: terminal success;reviewer-cirun31472615362: terminal success;Security Scanrun31472615351: terminal success;COMMENTEDon a predecessor, not a qualifying independentAPPROVEDreview;Remaining integration
24.19.0, npm11.17.0, and frozen install flags.mainafter integration.Technical GREEN does not establish approval, merge, release, deployment, real production KPI, outbound rights, revenue/transfer evidence or acquisition readiness.
Related: #149, #27, #29, #96, #105, #109