andreagrandi / andreagrandi/draftomen

Card capability schema v2 with structured mechanism parameters

Đã đóng
#526 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
draftomen enhancement size: M
Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
1 giờ 18 phút
Pull request đã merge (30 ngày)
197

Mô tả

## Problem

Card-capability extraction stores only a coarse role label per capability, so pair compatibility cannot be judged without a model call per pair. This forces ~1117 validation calls per set (HOB), the dominant enrichment cost.

## Proposed change

Extend the capability record with structured fields - action (what the card does), zone (battlefield/graveyard/hand/exile), qualifier (restrictions like nontoken, creature type, mana value) - with prompt, response schema v2, and strict parser validation. Bump the card-capability contract version (invalidates stored card responses; accepted re-pay).

## Acceptance Criteria

- [ ] AC1: Every extracted capability carries non-empty action and zone; parser rejects v2 responses missing them
- [ ] AC2: HOB card re-analysis reproduces the benchmark's card-derived capability set (gate: test_benchmark.py unchanged)
- [ ] AC3: Contract version bump invalidates old stored card work (resume re-pays cards, reuses guide)
- [ ] AC4: Response schema id/name/prompt id versioned as v2 with pinned constants

## Dependencies

None

## Implementation classification

- **Estimated size:** M
- **Orchestration risk:** High
- **Reason:** Public response-contract change across prompt, parser, and store decode.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with test_benchmark.py and trace the prompt, response schema, strict parser validation, and store-decode paths described in the issue. Verify that v2 records require action and zone, the contract constants invalidate stored card work while reusing the guide, and the unchanged benchmark reproduces the expected capability set.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.