Skip to content

fix(merge): 대표행 종결 전파 — 그림자행 open 부활(매경 뒤집힘) 차단 + gnews kr-2/3/4 퇴출 (… - #35

Merged
developjik merged 1 commit into
mainfrom
fix/merge-closure-propagation
Nov 30, 2026
Merged

developjik merged 1 commit into
mainfrom
fix/merge-closure-propagation

Conversation

@developjik

@developjik developjik commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

…T3 후속)

  • merge.mjs propagateClosure: 대표행이 closed/gone 되면 openish(open·upcoming·judging) 그림자행만 동기 종결(history에 'rep 종결 동기' 근거). 이미 종결 상태인 그림자행은 건드리지 않는다(soop 선례 유지 — 종결 상태 간 동기는 매경 뒤집힘과 무관). 안 하면 다음 dedupe 재계산의 pickRep OPENISH 선호가 open 그림자행을 새 대표로 뒤집어 종료 대회가 open 노출 — 12-01 매경 111903↔112073 실측(루틴이 당일 2차 merge로 데이터는 해소). postings·events 양쪽 분기에 적용.
  • 회귀테스트: 매경 시나리오(그림자 id 종결 → 대표 반영 + 그림자 동기 종결 + normalize 재계산 후에도 대표 유지) + 기존 soop 시나리오(종결 그림자 미변경) 통과.
  • sources.json 2026-12-01-b: gnews kr-2·kr-3·kr-4 retired(12-01 T3 성과: 직접 채택 0, kr-5 이벤트 4건·kr-1 올리브영형 리드만 유효 — 오너 결정). 테스트 129/129.

Devin Review

…T3 후속)

- merge.mjs propagateClosure: 대표행이 closed/gone 되면 openish(open·upcoming·judging)
  그림자행만 동기 종결(history에 'rep 종결 동기' 근거). 이미 종결 상태인 그림자행은
  건드리지 않는다(soop 선례 유지 — 종결 상태 간 동기는 매경 뒤집힘과 무관).
  안 하면 다음 dedupe 재계산의 pickRep OPENISH 선호가 open 그림자행을 새 대표로
  뒤집어 종료 대회가 open 노출 — 12-01 매경 111903↔112073 실측(루틴이 당일 2차
  merge로 데이터는 해소). postings·events 양쪽 분기에 적용.
- 회귀테스트: 매경 시나리오(그림자 id 종결 → 대표 반영 + 그림자 동기 종결 +
  normalize 재계산 후에도 대표 유지) + 기존 soop 시나리오(종결 그림자 미변경) 통과.
- sources.json 2026-12-01-b: gnews kr-2·kr-3·kr-4 retired(12-01 T3 성과: 직접 채택 0,
  kr-5 이벤트 4건·kr-1 올리브영형 리드만 유효 — 오너 결정). 테스트 129/129.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T18:25:19.495662Z
We couldn’t complete this review. Comment @codex review to try again.
0115d84 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@developjik
developjik merged commit ec10b1e into main Nov 30, 2026
1 of 2 checks passed

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

Devin Review found 2 potential issues.

Devin Review

Comment thread collector/merge.mjs
Comment on lines +86 to +92
const propagateClosure = (byId, ex, status, date) => {
if (status !== 'closed' && status !== 'gone') return;
for (const r of byId.values()) {
if (r.merged_into !== ex.id) continue;
if (!['open', 'upcoming', 'judging'].includes(r.status)) continue; // 이미 종결 상태는 건드리지 않는다(soop 선례) — 위험은 open 그림자행뿐
r.history = [...(r.history || []), { date, event: 'status_changed', from: r.status, to: status, note: `rep(${ex.id}) 종결 동기` }];
r.status = status;

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.

🔴 한 출처의 소실로 접수 중인 기회까지 숨김

재방문에서 한 출처가 gone으로 기록되면, 같은 기회를 아직 접수 중인 다른 출처도 gone으로 저장됩니다. 그 결과 기회가 진행 중 목록과 재확인 큐에서 빠집니다.

Learn more

재방문 규칙은 원문을 세 번 연속 가져오지 못하면 gone을 기록합니다. 이는 한 출처의 접근 실패이지 기회 전체의 접수 종료가 아닙니다. 기존 대표행 선택은 다른 출처가 여전히 open이면 그 행을 대표로 올립니다. 이 변경은 다른 출처까지 gone으로 저장해 그 경로를 막습니다. 같은 런에서 다른 출처가 살아 있음을 checked에 기록해도 확인 기록 적용은 날짜만 갱신합니다. 진행 중 필터와 재확인 큐는 이 기회를 다시 다루지 않습니다.

Example: 현재 데이터에서 ko-0045(씽유)와 wevity:112568-ai-opendata-idea(위비티)는 모두 접수 중인 같은 공모전입니다. 씽유만 gone으로 기록하고 위비티는 checked에 넣는 가상 런을 두 버전에 적용했습니다. 기준 브랜치에서는 위비티가 open 대표행이 됐지만, 이 PR에서는 두 행이 모두 gone이 됐습니다.

Recommended fix: 원문 접근 실패인 gone은 관측한 출처에만 적용하고, 다른 출처의 상태는 보존하세요. 기회 전체의 종결이 확인된 경우에만 상태를 전파하세요. 한 출처가 사라져도 접수 중인 다른 출처가 대표로 유지되는 회귀 테스트를 추가하세요.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread collector/merge.mjs
const propagateClosure = (byId, ex, status, date) => {
if (status !== 'closed' && status !== 'gone') return;
for (const r of byId.values()) {
if (r.merged_into !== ex.id) continue;

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.

🔍 처음 발견한 중복은 종결 전파 대상이 아님

전파는 기존 병합 표시를 기준으로 합니다. 같은 런에서 신규 수집한 중복은 중복 재계산에서야 그룹에 합류하므로, 유효한 재공고와 종료된 기회의 늦은 중복 수집을 별도 테스트로 구분할 필요가 있습니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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