feat: make per-article amendment history opt-in in amendment_track (output exceeds 25k chars) · Issue #158 · chrisryugj/korean-law-mcp · GitHub
Skip to content

feat: make per-article amendment history opt-in in amendment_track (output exceeds 25k chars) #158

Closed

Description

@thkim660207-cmd

Summary (EN)

legal_research(task="amendment_track") returns an excellent old-vs-new comparison table, but also dumps the full per-article amendment history since original enactment (1981 for the OSH Act), hitting the ~25k-char truncation. Please make the history section opt-in (includeHistory, default false) or cap it to recent revisions.


배경: ISO 법규준수 자동화(108개 법령 등록부)에서 개정 감지 시 신구대조 확인에 사용 중입니다.

현상 (실측, 2026-08-30)

legal_research(task="amendment_track", query="산업안전보건법", lawId="001766") 응답:

  • 「▶ 신구대조표」 섹션 — 매우 유용 (실질 개정 조문의 개정 전/후 대조)
  • 「▶ 조문별 개정 이력」 섹션 — 제정 시점(1981-12-31)부터 조문×개정 전건을 나열.
    응답에 ⚠️ (이 섹션 49,990자 → 24,938자로 축약) 표시와 함께 절단됨

실무에서 필요한 것은 거의 항상 최근 개정의 신구대조뿐인데, 이력 섹션이 응답 예산을
소진해 등록부 여러 건을 연속 처리할 때 컨텍스트 부담이 큽니다.

제안

  • 조문별 개정 이력을 includeHistory: true(기본 false)로 opt-in 화
  • 또는 최근 N회 개정으로 제한 (예: 기본 3회)

Reported via real-world usage; happy to provide more repro details.

Activity

  1. chrisryugj commented on Sep 10, 2026

    @chrisryugj
    Owner

    v4.13.0 에 반영했습니다 — 조문별 개정 이력을 includeHistory(기본 false)로 껐습니다.

    제안하신 두 안 중 1안(opt-in)을 택했습니다. "최근 N회로 제한"은 N 을 얼마로 잡아도 법령마다 개정 밀도가 달라 같은 문제가 재발하고, 무엇보다 잘렸다는 사실이 응답 안에서 여전히 조용합니다.

    실측(lawId=001766, 2026-09-11):

    응답 길이 축약 표시
    기본 (v4.13.0) 6,542자 없음
    includeHistory=true 31,366자 —

    신구대조표가 온전히 들어옵니다. 끈 자리에는 이렇게 남깁니다.

    [조문별 개정 이력 생략] 제정 시점부터의 조문×개정 전건이라 응답 상한을 소진합니다.
    필요하면 includeHistory=true 또는 get_article_history(lawId="001766").
    

    껐다는 사실과 켜는 법을 같이 두지 않으면, 이 서버가 이력을 못 준다고 오해될 자리라고 봤습니다.

    legal_research(task="amendment_track", query="산업안전보건법", lawId="001766", includeHistory=true)
    

    등록부 여러 건을 연속 처리하실 때 체감되는 변화가 있을지 알려주시면 좋겠습니다.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions