Repository navigation
feat(core): land platform API symbols as typed stubs (XWING-2206) - #7
Merged
Merged
Conversation
smith-xyz
force-pushed
the
feat/symbol-pass
branch
6 times, most recently
from
October 15, 2026 18:37
d716c03 to
c78b307
Compare
This was referenced Oct 15, 2026
smith-xyz
force-pushed
the
feat/symbol-pass
branch
from
October 15, 2026 19:25
c78b307 to
b767043
Compare
9 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Land the full platform API surface in
traust_core.v1as typed stubs: models (typed IDs, contracts vocabulary, shared types, every domain's entities with behaviour on the model), repository and provider ports, and one service per domain withprepare/recordskill doors and reads, plus onboarding, insight (dashboards), lint, ledger, provider catalog, migrations. 224 stubs, each naming the legacy code it replaces; everything already implemented keeps working.Replace the 18 per-domain stub tests with
tests/v1/test_stubs.py, which discovers every stub and checks it raises and is fully typed. Mark agreed-but-unbuilt platform needs in code as# NEED(<topic>):(config, SQLite-as-index local mode, local→server migration, query-first storage, vendor-agnostic object storage, UUIDv7 ids, optional ledger, identity verification, REST/SDK direction).House cleaning: core is the dependency hub (only code dependency: the traust-ledger client inside the ledger adapter); HTTP is in scope (outbound in providers, inbound as a thin adapter); remove release machinery (
release.py,VERSION, release workflow, bump targets) — consumers pin a commit SHA. Renames: providersProvenance→Acquisition, publisherArtifactIndex→BindingIndex;TransitionPolicyfolds intoDisposition.Make the design rules explicit for contributors and agents: a Design rules section at the top of
AGENTS.md(one owner per capability, one service per domain, behaviour placed by responsibility, domain boundaries, typed IDs, shared method shapes,JobResultonly at adapters, find the owner before adding a symbol);traust-core-patternsrecipes (service.md,repository.md,SKILL.md) and README rewritten to match; legacy worked examples flagged as mechanics-only.Test plan
make lint— cleanmake test— 638 passed, 18 deselected (integration)grep -rn "NEED(" srclists the open platform needs