Skip to content

test(c-host): the helper path reaches a real C host, and the helper-check-propagation slice closes (§9-72) - #340

Merged
xzawed merged 2 commits into
mainfrom
feat/helper-check-propagation-host
Sep 26, 2026
Merged

xzawed merged 2 commits into
mainfrom
feat/helper-check-propagation-host

Conversation

@xzawed

@xzawed xzawed commented Sep 26, 2026

Copy link
Copy Markdown
Owner

SPEC-helper-check-propagation §6 작업 2 — 슬라이스를 닫는다. 선행: #338 SPEC · #339 구현. 관련: DP-P11 · D17.

무엇이 바뀌나

  • 수용 F — 실제 C 호스트: examples/basket.mls의 줄 합을 ! 없는 내부 헬퍼 line_total로 옮겼다. host.c의 기존 검사(INT32_MAX × 2 → ML_ST_OVERFLOW)가 이제 헬퍼 경로를 잰다. 같은 예제를 feat(codegen): a helper under a fallible caller is checked too — the call path decides #339 이전 컴파일러로 부르면 status 0에 -2(조용한 오답), 지금은 -3이다(측정). 내부 함수라 IFACE_HASH 0줄 변화 — 골든 변화는 basket의 생성 Rust뿐(ml_ck_line_total, 평범한 본문 없음).
  • 수용 I — 626행 재측정: 구현본 출력이 시험 구현과 626행 전부 같다 — §9-71.3의 표(맞음 505 · 조용한 오답 44)가 구현에도 그대로다.
  • 슬라이스 닫기: SPEC 기록 배너·상태, 색인 ✅, 후보 목록에서 빼고 wrapping_* 내장 함수를 넣음(DP-P10).
  • 세션 마감: docs/history/9-72.md, HISTORY 스텁, ▶ 항목 (6), 항목 (5)는 start-block-053.md로 바이트 그대로.

근거 (E2)

  • 전체 게이트(세 게이트 require) exit 0, 바이너리 81개. doc_claims 50/50 — 후보 목록 가드가 닫힌 슬라이스 이름을 새 후보 문장에서 한 번 잡았고 고쳤다.

Grok (한 번에 주장 하나 — 전부 CONFIRMED)

  1. 예제·골든·host.c 주석 — 골든 변화가 basket에 국한, IFACE_HASH 불변
  2. start-block-053.md ↔ STATUS에서 지운 블록 — blob id 동일
  3. 기록의 수치 ↔ §9-71.3 · SPEC §0.2 · §4
  4. 슬라이스 닫기의 일관성(SPEC 배너 · 색인 · 후보 · ▶)

🤖 Generated with Claude Code

xzawed and others added 2 commits September 26, 2026 20:53
…heck-propagation slice closes (§9-72)

- examples/basket.mls: the line total moves into an internal helper `line_total` with no `!`.
  The C host's existing overflow check now measures the helper path (acceptance F): the
  compiler before #339 answers status 0 with -2 for that input, today -3. Internal, so no
  IFACE_HASH line moves; only basket's generated Rust changes in the golden.
- 626 rows re-measured with the implementation: identical to the prototype on every row
  (acceptance I) — §9-71.3's table holds.
- SPEC closed banner and status; index row ✅; candidates: the slice leaves, `wrapping_*`
  builtins enter (DP-P10).
- Session wrap: 9-72.md, HISTORY stub, ▶ entry (6), entry (5) byte-identical to
  start-block-053.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@xzawed

xzawed commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

⚠️ AI 리뷰가 완전 검증되지 않음 — 기본값이 적용됐습니다(비활성/API 키 없음/빈 diff). AI 배점은 측정값이 아니므로 총점을 부분 점수로 보세요.

🔵 SCAManager 분석 결과

총점: 89/100 (등급 B)

점수 상세

항목 점수 만점
커밋 메시지 13 15
코드 품질 25 25
보안 20 20
구현 방향성 (AI) 21 25
테스트 10 15

@xzawed
xzawed merged commit e241e0a into main Sep 26, 2026
2 checks passed
@xzawed
xzawed deleted the feat/helper-check-propagation-host branch September 26, 2026 12:09
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