Skip to content

fix: personal-prod 리뷰 코멘트 후속 보정#55

Merged
pureliture merged 1 commit into
mainfrom
codex/personal-prod-review-followup
Jun 21, 2026
Merged

fix: personal-prod 리뷰 코멘트 후속 보정#55
pureliture merged 1 commit into
mainfrom
codex/personal-prod-review-followup

Conversation

@pureliture

Copy link
Copy Markdown
Contributor

What

  • PR feat(deploy): personal-prod user unit과 cache 격리 추가 #51~fix(discovery): empty repo poll을 incremental fresh로 처리 #54 Gemini review comments follow-up을 하나의 PR로 묶었습니다.
  • 공백 SECURITY_SCANNER_CACHE_ROOT는 기본 cache root로 폴백합니다.
  • legacy baseline sentinel job은 jobType이 없거나 incremental로 decode되어도 full-history baseline으로 처리하고 baseline health를 advance합니다.
  • advance_repo_health 호출은 required store protocol을 직접 사용하도록 정리했습니다.
  • personal-prod securityscanner.slice TasksMax를 1024로 올리고 lease reaper timer의 monotonic timer용 Persistent=true를 제거했습니다.
  • personal systemd artifact path/account 테스트 범위를 모든 personal user unit 파일로 확장했습니다.

Review thread mapping

Validation

  • uv run pytest -q -> 1069 passed, 1 skipped
  • uv run ruff check src/security_scanner/targets/fetcher.py src/security_scanner/runtime/scan_worker.py src/security_scanner/runtime/incremental_discovery.py tests/test_fetcher.py tests/test_scan_worker.py tests/test_incremental_discovery.py tests/test_personal_prod_systemd_units.py
  • uv run python -m governance.autopilot_gate --base origin/main
  • uv run python -m governance.public_safety --diff origin/main...HEAD
  • git diff --check

Gemini 리뷰에서 남은 personal-prod 후속 항목을 하나의 변경으로 묶어 반영한다.

- 공백 SECURITY_SCANNER_CACHE_ROOT는 기본 cache root로 폴백
- legacy baseline sentinel job을 full-history baseline으로 처리
- incremental discovery의 repo health advance를 protocol 직접 호출로 정리
- personal-prod slice TasksMax 여유 확대 및 lease reaper Persistent 제거
- systemd artifact 검사 범위와 fake store protocol 테스트 보강

검증:
- uv run pytest -q
- uv run ruff check src/security_scanner/targets/fetcher.py src/security_scanner/runtime/scan_worker.py src/security_scanner/runtime/incremental_discovery.py tests/test_fetcher.py tests/test_scan_worker.py tests/test_incremental_discovery.py tests/test_personal_prod_systemd_units.py
- uv run python -m governance.autopilot_gate --base origin/main
- uv run python -m governance.public_safety --diff origin/main...HEAD
- git diff --check

Co-Authored-By: Codex GPT-5 <noreply@openai.com>

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request refactors the repo health advancement logic by removing legacy getattr guards and directly calling advance_repo_health on the store. It introduces a helper to identify baseline jobs, including legacy baseline jobs identified by a commit sentinel, and ensures they advance baseline health correctly. Additionally, it increases the TasksMax limit in the systemd slice configuration, strips whitespace from the SECURITY_SCANNER_CACHE_ROOT environment variable, and updates the test suite to match these changes. There are no review comments to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@pureliture pureliture merged commit ae84dc6 into main Jun 21, 2026
9 checks passed
@pureliture pureliture deleted the codex/personal-prod-review-followup branch June 21, 2026 03:23
pureliture added a commit that referenced this pull request Jun 21, 2026
origin/main이 personal-prod-deploy 계열(PR #51~#55, M8 dashboard)로 전진해 충돌.
사용자 승인 결정대로 해소:

- governance 3파일(autopilot_goal.yml/current.yml/CURRENT.md) → main(theirs) 채택.
  main의 active_goal(personal-prod-deploy)을 그대로 유지 = governance를 main에
  맞춤(우리 goal-activation 폐기). 이 3파일은 origin/main과 byte-identical →
  governance self-modification도 scope-expansion도 아님. ghas는 active_goal 슬롯
  불필요(M1~M5 전부 default-off/report-only라 슬롯 없이 안전 동작).
- 코드 2파일(scan_worker.py/test_scan_worker.py) → 양쪽 로직 병합. main의
  baseline-job full-history(_scan_options_for_job/_is_baseline_job)와 우리 M3
  verify job pending-반환 가드 + enqueue가 양립(auto-merge 성공, 테스트 green).
- 우리 신규 파일(parity/normalize/context_filter/verify_queue/parity_slo,
  eval/ghas-parity-corpus, spec docs)은 충돌 없음.

검증: uv run pytest 1253 passed, 4 skipped(env-gated).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TwGs78e6Rb7P5BDe2ezQEh
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