Skip to content

Extend @policy to attention and migrate feature examples - #60

Merged
sujaydavalgi merged 3 commits into
mainfrom
feat/at-policy-examples
Jul 10, 2026
Merged

Extend @policy to attention and migrate feature examples#60
sujaydavalgi merged 3 commits into
mainfrom
feat/at-policy-examples

Conversation

@sujaydavalgi

@sujaydavalgi sujaydavalgi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • @policy(kind: "attention") parses (Rust + TS) alongside existing homeostasis form.
  • Lint library-shaped-decl warns only on legacy homeostasis_policy / attention_policy (legacy_syntax).
  • Feature examples, gps_loss_full_stack workflow, getting-started / 101 / homeostasis / attention docs use @policy.

Still deferred: std.policies.* package APIs, hard-remove of keywords.

Test plan

  • cargo test -p spanda-core --test export_trait_generics at_policy
  • cargo test -p spanda-lint --lib at_policy
  • spanda check on migrated feature examples + gps_loss_full_stack.sd
  • CI Fast green

Parse `@policy(kind: "attention")` alongside homeostasis; mark legacy
`*_policy` decls with legacy_syntax so preferred attribute forms stay quiet.
@sujaydavalgi
sujaydavalgi merged commit fd66cdb into main Jul 10, 2026
26 checks passed
@sujaydavalgi
sujaydavalgi deleted the feat/at-policy-examples branch July 10, 2026 17:19
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