Skip to content

AGENTS.md rule 14: check code lists; count_list_codes --code - #399

Merged
valbert4 merged 4 commits into
mainfrom
fix/codelist-membership-rule
Oct 14, 2026
Merged

valbert4 merged 4 commits into
mainfrom
fix/codelist-membership-rule

Conversation

@valbert4

Copy link
Copy Markdown
Member

Edited AGENTS.md: new rule 14, check code lists after adding a code or changing its relations; scripts/codelists entry documents the new option
Edited scripts/codelists/count_list_codes.py: --code <code_id> lists the code lists that contain a code and those that miss it while containing a relative
Motivated by PR #398: 3d_xyz_color has no color-code ancestor, so list_color misses it

🤖 Generated with Claude Code

Tamara and others added 2 commits October 13, 2026 09:47
…ew or reparented codes

- count_list_codes.py: list_members() returns the member set (count_codes wraps it);
  --code <code_id> prints the lists containing the code, then the lists that contain
  a parent, child, or cousin of it but not the code itself
- AGENTS.md: rule 14 asks for that check after adding a code or changing relations,
  and documents the option under scripts/codelists/

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ecks children and cousins only

The site build accepts only manual_code_list (its predicate schema rejects
manual_code_ids), so the script and the list_all.yml comment now use it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Comment thread codelists/list_all.yml
Tamara and others added 2 commits October 13, 2026 21:14
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@valbert4
valbert4 merged commit 4196adb into main Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant