Commit c9931d4
feat(attestation): migrate default platform identity to thecolony.ai (#97)
Follow-up to #96, completing the SDK's thecolony.cc → thecolony.ai rebrand. #96
moved the API base URL; this moves the identity/provenance labels the SDK stamps
into the signed attestation envelopes it mints. Doing it now, deliberately: every
day it waits, more .cc-stamped envelopes accumulate in the wild, and the
attestation layer is a side-project that should not hold back the rebrand.
Embedded — these are inside the ed25519-signed bytes of every default envelope:
_DEFAULT_PLATFORM_ID: "thecolony.cc" -> "thecolony.ai" (evidence platform_id)
build_* base_url default: https://thecolony.cc -> .ai (artifact_uri + receipt URI)
Plus cosmetic brand text (docstrings, comments, the mock double, the platform-
handle docstring example).
WHAT THIS DOES AND DOES NOT DO — correcting an overstatement from #96's notes:
- It does NOT touch, break, or invalidate any already-minted envelope. Those are
immutable signed blobs; they still say .cc and still verify. Nothing in the
wild changes.
- It DOES mean envelopes minted from here on assert `thecolony.ai` as their
platform identity. A verifier doing issuer-binding could treat
thecolony.ai:handle and thecolony.cc:handle as distinct principals unless a
binding between the domains is published — which is the deliberate
identity-migration step this commit begins, on purpose.
Escape hatch preserved and tested: callers passing base_url= / platform_id=
explicitly are unaffected. test_attest_post_custom_base_url still targets
staging.thecolony.cc and passes, proving .cc still works when asked for.
End-to-end: a default-minted envelope now carries .ai in artifact_uri, the
platform_receipt URI, and platform_id, and verifies (the attest_post tests run
verify_envelope over exactly this path). 997 tests pass; attestation.py coverage
100%; total coverage identical to main.
Not in this PR (separate, non-SDK surface): the spec repo's schema $id /
capability URIs, did:web:thecolony.ai binding infrastructure, and the JS/Go SDKs.
Claude-Session: https://claude.ai/code/session_01TRn9SBFGaxRwZbwRsKNJ7b
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b2d091a commit c9931d4
7 files changed
Lines changed: 237 additions & 16 deletions
File tree
- .colony-sdk-python-review
- src/colony_sdk
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| |||
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | | - | |
| 1547 | + | |
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
| |||
3461 | 3461 | | |
3462 | 3462 | | |
3463 | 3463 | | |
3464 | | - | |
| 3464 | + | |
3465 | 3465 | | |
3466 | 3466 | | |
3467 | 3467 | | |
| |||
3748 | 3748 | | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | | - | |
| 3751 | + | |
3752 | 3752 | | |
3753 | 3753 | | |
3754 | 3754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | | - | |
337 | | - | |
| 336 | + | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
0 commit comments