Skip to content

feat: metadata conventions + cargo fmt fix (spec 17)#44

Merged
DarlingtonDeveloper merged 2 commits into
mainfrom
feat/spec-17-metadata-conventions
Mar 15, 2026
Merged

feat: metadata conventions + cargo fmt fix (spec 17)#44
DarlingtonDeveloper merged 2 commits into
mainfrom
feat/spec-17-metadata-conventions

Conversation

@DarlingtonDeveloper
Copy link
Copy Markdown
Contributor

Summary

  • cargo fmt fix: Formats all Rust files from specs 12-16 that were committed without running cargo fmt, fixing the CI cargo fmt --check failures
  • conventions.rs: New cortex-core module with check_conventions() validation, well-known metadata key constants (entity_type, aliases, parent_agent, task_id, source_url, content_type, language, expires_reason), and entity type constants — 13 unit tests
  • CLI: --metadata (JSON) and --check-conventions flags on cortex node create
  • Python SDK: EntityType constants, store_entity() on Cortex + MockCortex — 10 new tests
  • TypeScript SDK: EntityType enum, StoreEntityOptions, storeEntity() on Cortex + MockCortex — 8 new tests
  • metadata-conventions.md: Reference doc for all well-known metadata keys

Test plan

  • cargo fmt --all -- --check passes (previously failing)
  • cargo clippy --workspace -- -D warnings clean
  • cargo clippy --workspace --no-default-features -- -D warnings clean
  • cargo test --workspace --no-default-features — 527 tests pass
  • TypeScript: npm test — 37/37 pass
  • Python: blocked by pre-existing protobuf version mismatch (gencode v6 vs runtime v5)

🤖 Generated with Claude Code

DarlingtonDeveloper and others added 2 commits March 15, 2026 20:05
Fixes CI cargo fmt --check failures for files from trust scoring,
entity layer, briefing roles, briefing scope, and legacy rule
deprecation implementations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add conventions.rs with check_conventions() for well-known metadata keys
(entity_type, aliases, parent_agent, task_id, source_url, content_type,
language, expires_reason) and entity type constants.

CLI: add --metadata and --check-conventions flags to node create.

Python SDK: add EntityType constants, store_entity() on Cortex and
MockCortex, 10 new tests.

TypeScript SDK: add EntityType enum, StoreEntityOptions, storeEntity()
on Cortex and MockCortex, 8 new tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DarlingtonDeveloper DarlingtonDeveloper merged commit 7a2d492 into main Mar 15, 2026
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