# Lab L08 verification output
# Date: 2026-11-26T12:55:59Z  Host: macOS 27.2.1 arm64  uv 0.10.2  node(PATH) v22.14.0
# Command: ./run.sh verify
# uv.lock sha256: 3dfc0f9dca63ca7a604579edd99f85322757093dd59f5cc80c69d6e37cd12efb
# Exit code: 0

Lab L08 verification
  python 3.12.12 | mcp 2.3.0 | transport stdio

[1] Modern client over stdio (mode='auto')
[notes-server] starting on stdio
  negotiated protocol version: 2026-07-28
  PASS  negotiated protocol 2026-07-28
  server_info: demo-notes 1.0.0

[2] Listing
  tools: ['add_note', 'get_note']
  PASS  tools/list returns add_note and get_note
  resources: ['notes://index']
  PASS  resources/list returns notes://index
  prompts: ['summarize_notes']
  PASS  prompts/list returns summarize_notes

[3] Structured output
  add_note outputSchema properties: ['body', 'id', 'tags', 'title']
  PASS  add_note declares an outputSchema with id/title/body/tags
[notes-server] added N-003
  add_note -> is_error=False structured={'id': 'N-003', 'title': 'Demo: lab note', 'body': 'Synthetic.', 'tags': ['lab']}
  PASS  add_note returns structuredContent matching the schema
  PASS  text content mirrors structuredContent (for clients without structured support)

[4] Tool errors (isError) vs success
  PASS  get_note N-003 succeeds
Tool 'get_note' failed: "Error executing tool get_note: Invalid note id '../etc/passwd': expected the format N-001."
  get_note malformed -> is_error=True: "Error executing tool get_note: Invalid note id '../etc/passwd': expected the format N-001."
  PASS  malformed id returns isError with a correctable message
Tool 'get_note' failed: 'Error executing tool get_note: No note with id N-999.'
  get_note unknown -> is_error=True: 'Error executing tool get_note: No note with id N-999.'
  PASS  unknown id returns isError
Tool 'add_note' rejected arguments: ['title']
  add_note empty title -> is_error=True: 'Error executing tool add_note: 1 validation error for add_noteArguments\ntitle\n  '
  PASS  schema violation (empty title) returns isError

[5] Resource and prompt
  notes://index -> [{'id': 'N-001', 'title': 'Demo: buy cables'}, {'id': 'N-002', 'title': 'Demo: weekly review'}, {'id': 'N-003', 'title': 'Demo: lab note'}]
  PASS  resource lists the 3 notes
  summarize_notes(topic=work) -> "Read the resource notes://index, open the notes related to 'work' with"...
  PASS  prompt renders with the topic argument

[6] Legacy client over stdio (mode='legacy', initialize handshake)
[notes-server] starting on stdio
  negotiated protocol version: 2025-11-25
  PASS  legacy handshake negotiates 2025-11-25
  PASS  legacy client can call get_note

ALL CHECKS PASSED (15)
