Skip to content

test(support): bind support-bundle counts and secret redaction - #134

Open
seonghobae wants to merge 6 commits into
mainfrom
codex/support-bundle-regression-coverage
Open

test(support): bind support-bundle counts and secret redaction#134
seonghobae wants to merge 6 commits into
mainfrom
codex/support-bundle-regression-coverage

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Problem

Protected main already carries the shutdown-listener race repair, so the unique delta on this branch is the support-bundle regression contract.

Current exact delta

  • require the support-bundle top-level runtime counts to match the KPI snapshot;
  • require the same counts to match the buyer evidence manifest runtime counts;
  • serialize the support bundle and assert the quoted administrator secret is absent.

This is a test-only hardening slice in src/lib.rs; it does not change production runtime behavior.

Fresh protected-main adoption — 2026-09-08 KST

Protected/default main advanced from the branch's prior adopted base 5829a0f08d78de464dd24393ce5d0f25fba9d126 through merged #171 to exact a52ccd0a24a727d9349bb32def7713882d8cad1e. Fresh compare of predecessor head 4db75680dcfa03d0592c62f08278fdef09c33694 against current protected main proved the only effective product delta remained src/lib.rs (+38/-0); the intervening protected-only change is #171's ADR documentation and does not overlap this test slice.

The branch therefore adopted exact protected main non-destructively with two-parent merge commit ce58b6ec2968f314ea223ddb9ff7228fc4222e44, preserving predecessor 4db75680... as first parent and protected a52ccd0... as second parent. The merge tree is exact protected-main tree plus the previously reviewed src/lib.rs blob; no force push, destructive rebase, broad source reconstruction, or foreign-owner delta was introduced.

Fresh post-adoption compare is behind_by=0, merge base exactly a52ccd0..., and the complete protected-main-relative delta is still exactly 38 added test lines in src/lib.rs.

Exact-current evidence

Current exact head is ce58b6ec2968f314ea223ddb9ff7228fc4222e44. All predecessor workflow/review conclusions are historical after the real ancestry movement and do not transfer.

  • CI 34169323244SUCCESS;
  • Fuzz 34169323221SUCCESS;
  • Security Scan 34169323227SUCCESS;
  • SAST Semgrep 34169323232SUCCESS;
  • CodeQL PR 34169323205FAILURE at the central delegated terminal-receipt boundary, not a Wardnet support-bundle test/source finding.

This unchanged head remains a consumer specimen for canonical central owner issue .github#1929. The active central repair is .github#1902; because that owner branch is mutable until protected, this PR deliberately does not pin a stale owner head or treat it as a dependency. Re-read the live central head/checks before any integration decision. Wardnet does not source-churn this clean head or synthesize a delegated verdict.

Live organization ruleset 18156473 still requires one generic approval with no named/code-owner/last-push reviewer and exposes OrganizationAdmin/always bypass. .github#772 owns the solo-maintainer governance repair. Self/model approval and routine administrator bypass remain forbidden.

Ready metadata is review admission, not merge authorization. Merge only on one unchanged exact current head through the ordinary protected path after all then-live deterministic/security/coverage/package/SBOM/provenance/review/thread/governance requirements are terminal-valid and protected-base compatibility remains fresh. No gate weakening, force push, destructive rebase, mutable foreign dependency, source copy, cross-service SQL, or predecessor-evidence transfer.

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 46997863-ab45-40c6-96a6-61b883366546

📥 Commits

Reviewing files that changed from the base of the PR and between 5829a0f and 4db7568.

📒 Files selected for processing (1)
  • src/lib.rs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

지원 번들 테스트가 KPI 및 증거 매니페스트의 런타임 카운트 일치성을 검증합니다. JSON 직렬화 결과에 "secret" 문자열이 없는지도 검증합니다. 프로덕션 로직은 변경하지 않습니다.

Changes

지원 번들 검증

Layer / File(s) Summary
지원 번들 출력 검증
src/lib.rs
SupportBundle의 6개 카운트 필드가 KPI 및 증거 매니페스트의 대응 카운트와 일치하는지 검증합니다. JSON 직렬화 결과에 "secret" 문자열이 없는지 검증합니다.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to ce58b

This change adds regression coverage for support-bundle runtime counts and secret exclusion without altering production behavior. No current merge-blocking risk is identified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목은 지원 번들의 카운트 검증과 비밀 값 마스킹 테스트 추가라는 주요 변경 사항을 정확하고 간결하게 설명합니다.
✨ 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 codex/support-bundle-regression-coverage

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.

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@seonghobae seonghobae changed the title fix(runtime): arm shutdown before readiness test(support): bind support-bundle counts and secret redaction Sep 1, 2026
@seonghobae
seonghobae enabled auto-merge (squash) September 1, 2026 10:14
@opencode-agent
opencode-agent Bot disabled auto-merge September 1, 2026 10:25
@seonghobae
seonghobae enabled auto-merge (squash) September 1, 2026 12:29
@opencode-agent
opencode-agent Bot disabled auto-merge September 1, 2026 17:47
@seonghobae
seonghobae enabled auto-merge (squash) September 2, 2026 17:34
@opencode-agent
opencode-agent Bot disabled auto-merge September 3, 2026 13:25
@seonghobae
seonghobae enabled auto-merge (squash) September 5, 2026 17:29
@seonghobae seonghobae added maintenance priority: medium Normal-priority or P2 work type: maintenance Maintenance, build, dependency, or operational upkeep labels Sep 7, 2026 — with ChatGPT Codex Connector
@opencode-agent
opencode-agent Bot disabled auto-merge September 7, 2026 23:23

@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 reviewed the current-head product diff. Coverage is a separate gate.

Changed files

  • src/lib.rs — Rust package behavior

Changed behavior

classDiagram
  class AppState
  class SocLlmConfig
  class ClearfolioConfig
  class seeded
  class load
  class with_kev_catalog_url
  class with_max_body_size
  class with_clearfolio
Loading

Changed API

  • AppState
  • SocLlmConfig
  • ClearfolioConfig
  • seeded
  • load
  • with_kev_catalog_url
  • with_max_body_size
  • with_clearfolio
  • with_soc_llm
  • with_rate_limit
  • with_admin_tokens
  • with_credentials_source
  • AppConfig
  • memory
  • SupportBundle
  • HealthStatus
  • build_app
  • export_events_ndjson
  • upstream_target
  • AdminPrincipal
  • parse_admin_tokens
  • parse_event_limit
  • parse_u32_env
  • parse_u64_env
  • run_from_env

Findings

No source-backed product finding is synthesized from the coverage gate. A coverage miss belongs in the status comment.

  • Head SHA: ce58b6ec2968f314ea223ddb9ff7228fc4222e44
  • Workflow run: 34170689654
  • Workflow attempt: 1
  • Coverage gate: failure

Review outcome

Coverage is a gate, not the review. This body reviews the changed product files.

Changed-File Evidence Map

classDiagram
  class AppState
  class SocLlmConfig
  class ClearfolioConfig
  class seeded
  class load
  class with_kev_catalog_url
  class with_max_body_size
  class with_clearfolio
Loading

@opencode-agent

opencode-agent Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

OpenCode Review Overview

Coverage evidence did not pass, so approval is blocked. The formal pull-request review is the source-backed diff review, not this status comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance priority: medium Normal-priority or P2 work type: maintenance Maintenance, build, dependency, or operational upkeep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants