feat: add versioned returns and deterministic calculation foundation - #62
Merged
Merged
Conversation
…zed dependency installation
…ctor scripts, configuration validation, and CI workflows.
…tooling, setup scripts, and configurable Docker services
…ions, and reformat source files
…service orchestration, and updated documentation
…ovenance, and standardized build gates
…gates, and document formal release management procedures.
… contract linting while upgrading to Go 1.25.0
…ract validation, and Go 1.25 upgrade
…th Redocly, and update CI workflows for schema validation and CodeQL.
…ping for cross-tenant data safety
…, period, and context models
…diction, and actor validation
…ability requirements in the architecture and development guidelines.
… to application scope, and enhance API error reporting.
…approval, and audit support
…and field definition versioning
…ycle API with observability metrics
…deterministic calculation, and authorization controls
…ulation, and immutability
lahiruudayakumara
enabled auto-merge (squash)
July 26, 2026 01:36
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
DRAFT → VALIDATED → CALCULATED → SUBMITTEDlifecycle.Closes #12
Risk and security impact
Risk is critical because this establishes foundational filing and calculation behavior.
Controls introduced include:
All included forms, rules, rates, currencies, and amounts are fictional examples.
Database, API, event, or country-pack changes
Database
API
Added or expanded:
POST /api/v1/returnsGET /api/v1/returns/{returnId}POST /api/v1/returns/{returnId}/validatePOST /api/v1/returns/{returnId}/calculatePOST /api/v1/returns/{returnId}/submitPOST /api/v1/returns/{returnId}/amendGET /api/v1/returns/{returnId}/historyEvents
Added:
ReturnCalculatedUpdated contextual events:
ReturnCreatedReturnValidatedReturnSubmittedReturnAmendedCountry packs
sample-income-v1.fictional-flat-rate-v1.HALF_AWAY_FROM_ZERO_TO_MINOR_UNITrounding policy.Verification