Skip to content

Structured registries, pseudocode alignment, and pattern deduplication#15

Merged
discreteds merged 3 commits intomainfrom
feature/platform-api-restructure
Apr 27, 2026
Merged

Structured registries, pseudocode alignment, and pattern deduplication#15
discreteds merged 3 commits intomainfrom
feature/platform-api-restructure

Conversation

@discreteds
Copy link
Copy Markdown
Member

Summary

  • Platform API restructure: Replace 6 prose-based reference files with structured PlatformSpec type system, 6 per-platform data files, and 13 deterministic lookup functions in lib/references/platform-api.md
  • Rubric check alignment: Fix 4 tool_name() calls to use canonical operations, inline 7 opaque functions, unify retired synonyms across all 6 rubrics, create pseudocode principles doc
  • Pattern deduplication: Replace hardcoded platform data in 5 pattern files with REGISTRY lookups; add marketplace_path to PlatformSpec and platform_for_spec/platform_for_hooks reverse-lookup functions
  • Shape & Template registries: Create lib/references/uplift-targets/registry.md (3 entries) and lib/references/templates/registry.md (12 entries) with lookup functions; update all consumers
  • Manifest-generation rewrite: Per-schema sections rewritten as pseudocode GENERATE() functions using template registry lookups
  • Cleanup: Move gemini-extension.json.tmpl into gemini-cli/ directory for consistent structure; move principles doc to lib/principles/

44 files changed, reconciliation matrix items 31-54 all resolved.

Test plan

  • Verify grep -rn 'manifests/gemini-extension.json.tmpl' lib/ returns zero (no stale gemini path refs)
  • Verify ls -d lib/templates/manifests/*/ shows 6 platform directories
  • Verify grep -c 'schema:' lib/references/templates/registry.md returns 14 (12 data + type + function)
  • Verify all verification commands in reconciliation matrix pass
  • Verify no ALLOWED_CATEGORIES, resolve_target_path, tool_name.*"Task", find_file(, count( in live files

🤖 Generated with Claude Code

discreteds and others added 3 commits April 28, 2026 00:37
Principles are a distinct concept from patterns — give them their own
directory. Updated cross-reference in rubric-framework.md.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds registry section: when to create one (same-shaped data referenced
from multiple files), structure (TYPE + DATA + FUNCTION in own directory),
when NOT to create one. Tier 1 generalized from platform-api.md to any
named registry. No catalog of specific registries — they're self-documenting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All 6 platforms now have consistent manifest template structure:
lib/templates/manifests/<platform>/. Updated rubric and template
registry references.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@discreteds discreteds merged commit 97fd412 into main Apr 27, 2026
2 of 3 checks passed
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