Skip to content

feat: add allium behavioral specs#812

Open
exilis wants to merge 2 commits into
mainfrom
allium/behavioral-specs
Open

feat: add allium behavioral specs#812
exilis wants to merge 2 commits into
mainfrom
allium/behavioral-specs

Conversation

@exilis

@exilis exilis commented May 27, 2026

Copy link
Copy Markdown

Behavioral Specifications

Machine-distilled from source code using allium-spec-distillation.

trading-api-client

Scope: Alpaca Markets .NET SDK — trading operations and market data
Includes: Account, Asset, Order lifecycle, Position, WatchList,
PortfolioHistory, TradeUpdate, AccountActivity,
OptionContract, Bar, Quote, Clock, IntervalCalendar
Excludes:
- Generated PublicAPI surface snapshot files (api analyzer snapshots)
- HTTP/WebSocket transport implementation details
- Streaming subscription management (connection, subscription registry)

Review notes:

  • [minor] weighted_average_fill_price is called in OrderPartialFill and OrderFilled ensures: expressions but is never defined as a rule or value computation in the spec
  • [minor] OptionContract.status uses an inline anonymous enum active | expired rather than a named enum, inconsistent with all other status fields in the spec

🤖 Generated with allium-spec-distillation

exilis and others added 2 commits May 27, 2026 13:25
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds two GitHub Actions workflows:
- allium-check.yml: validates .allium file syntax via allium-cli 3.0.4.
- allium-drift.yml: thin caller for the reusable drift check in
  alpacahq/alpaca-harness. Auto-detects LLM provider from whichever
  secret is set (ANTHROPIC_API_KEY or CURSOR_API_KEY). Advisory mode
  (required_passing: false) — findings post as PR comments, do not
  block merging.

Prerequisite for drift checks: set one of ANTHROPIC_API_KEY or
CURSOR_API_KEY as a repo secret. Without it, the drift job fails
fast with a clear error.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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