test(8565): idea_key is a named exception to the caller contract, and the topic test finds the idea under its family record
CI & Build / TypeScript typecheck (push) Successful in 11s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m46s
CI & Build / Build & push image (push) Successful in 38s

idea_key translates an id the caller passed; access is checked on its result
by every caller. The topic test listed ideas by the project record's id, which
promotion now moves onto a family record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 15:22:08 -05:00
co-authored by Claude Opus 5.5
parent 6c0481ef9c
commit 198bf110c2
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -473,8 +473,9 @@ async def test_an_idea_links_to_its_topic_and_its_reads_name_the_rules(family, t
idea = await family_svc.get_idea(family["owner"], family["note"]) idea = await family_svc.get_idea(family["owner"], family["note"])
assert idea["topic"]["rulebook_id"] == topics["rulebook"] assert idea["topic"]["rulebook_id"] == topics["rulebook"]
assert len(idea["topic"]["rules"]) == 2 assert len(idea["topic"]["rules"]) == 2
[listed] = [i for i in await family_svc.list_ideas(family["owner"]) # Promotion lifted the idea onto its family record.
if i["note_id"] == family["note"]] key = await family_svc.idea_key(family["note"])
[listed] = [i for i in await family_svc.list_ideas(family["owner"]) if i["note_id"] == key]
assert listed["topic"] == {"id": topics["norms"], "title": "distribution", assert listed["topic"] == {"id": topics["norms"], "title": "distribution",
"rulebook_id": topics["rulebook"]} "rulebook_id": topics["rulebook"]}
+2
View File
@@ -31,6 +31,8 @@ NEEDS_NO_CALLER = {
"design_systems": {}, "design_systems": {},
"family": { "family": {
"next_version": "numbers a canon version inside a write that has checked the caller", "next_version": "numbers a canon version inside a write that has checked the caller",
"idea_key": "translates an id the caller passed to the id its idea is kept under; "
"every caller checks access on the result next",
}, },
"family_adoption": { "family_adoption": {
"family_reference_ids": "the coverage refresh's mechanical read for a project", "family_reference_ids": "the coverage refresh's mechanical read for a project",