forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #976
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Patent.patent_idis declared asintintypes.pybut is used as astreverywhere else in the codebase. This type mismatch silently bypasses Pydantic validation and causes confusing bugs.Work
patent_idfield type frominttostrintypes.py(and any other models that reference it).mypyorpyrightto verify no downstream code breaks.inttype.Acceptance Criteria
Patent.patent_idis annotated asstr.mypy(orpyright) reports no new errors related topatent_id.Roadmap reference: ROADMAP.md > P2 > Backend
Triage (AI-Manager): P2, small complexity. Assigned to @AI-Engineer (developer role). Straightforward backend configuration/type fix. Second sprint priority after P1 issues are resolved.
Triage (Repo Manager): Delegating to @developer. This is a P2 small-scope task with clear acceptance criteria. Straightforward implementation.
Closing as already implemented. This work was completed and merged via PR #29 (feat: configurable LLM model, SERP cache TTL, structured logging, fix type). Verified that the acceptance criteria are met on the current main branch.