Avatar for the Nagato-Yuzuru user
Nagato-Yuzuru
predylogic
BlogDocsChangelog

Performance History

Latest Results

feat(spec): spec generation * feat(schema): add predylogic native workspace spec generation Introduces generate_workspace_spec() and SchemaGenerator.generate_spec() as the spec format for the planned Rust CLI and PyO3 DSL parser — replacing model_json_schema() as the bridge between Python registries and the Rust toolchain. * refactor(schema): type the spec layer with dataclasses Replaces dict[str, Any] across the spec chain with frozen slotted dataclasses. Type nodes collapse the six payload-less scalars into a single AtomType(kind=Literal[...]) and keep list/dict/union/unknown as their own structs, so "tag decides fields" stays an enforced invariant. ParamSpec/RuleSpec/RegistrySpec/WorkspaceSpec type the tree; None-valued optionals are dropped at serialize time via an asdict dict_factory rather than a post-hoc recursive walk. * refactor(typedefs): centralize spec Literal aliases in typedefs Moves AtomKind (extracted from AtomType's inline literal) and ParamKind into typedefs.py alongside the existing LogicBinOp/PredicateNodeType vocabulary. spec.py and schema.py consume them as annotation-only imports (TYPE_CHECKING-gated); the public ParamKind re-export is sourced directly from typedefs so it stays a real runtime object. * chore(lint): enforce PLC0415 in tests, hoist function-local imports The per-file-ignores block for sdks/python/tests/* listed PLC0415, which suppressed import-outside-top-level in the very files most likely to hide lazy imports — even a CLI --select couldn't override it (per-file-ignores apply after selection). Drop it so the rule (already on via the "PLC" group) actually fires in tests. Fix the 5 now-flagged violations by moving function-local imports to module top level: - test_spec_generation.py: datetime, inspect, typing - test_rule_compilation.py: RuleSetManifest (merged into the existing top-level import from the same module; not a circular-import guard)
main
25 days ago

Latest Branches

CodSpeed Performance Gauge
0%
Feat/spec generation#61
25 days ago
c513533
feat/spec-generation
CodSpeed Performance Gauge
0%
1 month ago
ccc6ca0
dependabot/github_actions/actions-640176b5ab
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs