Commit graph

13 commits

Author SHA1 Message Date
91ca883ccb chore: untrack __pycache__/pyc/uv.lock, extend gitignore
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 03:50:25 +02:00
83cda680d2 wedge: T026 integration tests (real ledger via uvicorn, real bundle, temp HOME)
Written inline after two headless workers died on API errors. Tests caught a
real cross-slice bug: ledger grants stored the full install ref as listing_id,
breaking GET /license/{op}/{listing} — fixed by parsing the listing prefix per
the ref convention in contracts/ledger-api.md. Also pinned the indexer test's
schema path (venv-installed package resolved outside the repo) — its earlier
pass was vacuous without jsonschema installed. 27 tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 03:34:21 +02:00
aeba02f287 wedge: T013 property tests + T014 Dockerfile merged; fix zero-amount install rows
T013 worker found record_install violating CHECK(amount>0) when platform_pct
rounds cut or seller_amount to zero (unhandled IntegrityError -> HTTP 500).
Fixed: skip zero rows, grant references the paying tx; regression test added.
9 ledger tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 03:17:07 +02:00
bc650ea4ee merge: T014 ledger Dockerfile + deploy notes 2026-07-02 03:15:54 +02:00
f283069ab1 T014: ledger Dockerfile + deploy notes 2026-07-02 03:14:18 +02:00
b8d4fa9728 T013: ledger property tests 2026-07-02 03:05:25 +02:00
68f3544513 wedge: US1 wave 2 converged (T012/T015/T021/T023-T025) + fix m2core-sync class name
Verified on master: 14 tests green (schemas+cli+indexer); ledger API exercised
end-to-end via TestClient (grant admin-only, install 200/409/402, refund
restores balance, auth 401); adapter factory resolves local + raises
RailsNotLanded on the stub.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 03:02:28 +02:00
be4ade5ea7 T012: ledger API routes per contract 2026-07-02 02:45:41 +02:00
b994572dde wedge: US1 wave 1 converged (T010/T011/T016-T020) + T022 stub adapter inline
Smoke-verified on master: install debit/cut/grant math exact, dup-ref and
insufficient-funds guarded, refund compensates, InstallState atomic round-trip,
adapter factory + all package imports green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 02:43:48 +02:00
516293e118 merge: ledger-auth (US1 wave 1) 2026-07-02 02:42:58 +02:00
1ad50fc4a5 T011: ledger X-API-Key auth (service/admin) 2026-07-02 02:34:09 +02:00
0cef16beb8 T010: ledger models — append-only tx, derived balances 2026-07-02 02:32:49 +02:00
ec98e294a7 wedge(T001-T003): monorepo skeleton, uv workspaces, ruff+pytest config
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 02:19:47 +02:00