Skip to content

[week-05] 26510358 - #256

Open
SUNGMYEONGGI wants to merge 7 commits into
Q00:mainfrom
SUNGMYEONGGI:week-05
Open

SUNGMYEONGGI wants to merge 7 commits into
Q00:mainfrom
SUNGMYEONGGI:week-05

Conversation

@SUNGMYEONGGI

Copy link
Copy Markdown

What I built

Week 01의 calculator·read_file·write_note를 MCP server로 옮기고 기존 루프를 stdio·HTTP MCP host로 연결함
Codex CLI를 두 번째 client로 붙여 같은 server 도구 호출을 확인함
MCP Python SDK 2.2.0으로 bearer 인증·역할·협상 ID·차례·토큰 한도를 검사하는 Streamable HTTP 협상장을 구현함

시나리오 4개를 prompt_inject와 server_inject에서 각 3회 실행해 24개 에피소드와 원본 로그 6개를 기록함
시나리오와 평가 기준은 모델 실행 전에 커밋함

조건 correct / 12 deal / no_deal / open attempted refused violation 평균 turns
prompt_inject 11/12 6 / 5 / 1 0 0 0 4.00
server_inject 12/12 6 / 6 / 0 0 2 0 3.42

두 조건 모두 한도 밖 시도가 0건이라 본 실험만으로 서버의 방어 효과를 주장하지 않음
토큰 한도 강제와 buyer 전용 주입은 별도 실제 HTTP 검사로 확인함

What I tried and discarded

LAB 첫 실행에서 날짜를 합계에 포함한 질문 모호성을 발견해 원본 실패 로그를 보존하고 목표 문장을 수정함
과제 예비 실행 1건은 별도 결과·로그로 보존하고 본 실행 집계에서 제외함
후속 검토에서 실패 행 식별자·재개 조건·차례 위반 시도 집계를 보완했으며 본 실행 결과와 원본 로그는 수정하지 않음
사용자 요청에 따라 Codex가 구현·실험·분석을 수행함

How to run

OPENAI_API_KEY를 환경변수로 제공하고 저장소 루트에서 실행함
전체 설정과 LAB 명령은 submissions/26510358/week-05/REPORT.md에 기록함

uv venv --python 3.13.15 /tmp/ai-agent-week05-venv
uv pip install --python /tmp/ai-agent-week05-venv/bin/python -r submissions/26510358/week-05/requirements.txt
/tmp/ai-agent-week05-venv/bin/python submissions/26510358/week-05/run.py

Checklist

  • python3 scripts/check_week05.py submissions/26510358/week-05 통과
  • verify_results.py로 CSV 24행과 6개 원본 로그 대조
  • test_market_integration.py로 SDK v2 프로토콜·토큰 한도·주입 확인
  • 무토큰 401·다른 협상 ID·차례 위반·한도 위반 검사 4건 기록
  • 변경은 submissions/26510358/week-05/에 한정, 키 미포함, 커밋 이력 미압축

This branch has not been deployed

No deployments
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