Skip to content

feat(caas): port production Context-as-a-Service from internal#66

Merged
imran-siddique merged 1 commit intomainfrom
feat/port-caas-production
Mar 7, 2026
Merged

feat(caas): port production Context-as-a-Service from internal#66
imran-siddique merged 1 commit intomainfrom
feat/port-caas-production

Conversation

@imran-siddique
Copy link
Member

Summary

Ports the production CaaS (Context-as-a-Service) features from the internal agent-governance repository to the public OSS toolkit.

New Modules

Module Lines Purpose
\�nrichment.py\ 124 MetadataEnricher — solves the Flat Chunk Fallacy by enriching chunks with parent section metadata
\pragmatic_truth.py\ 434 Pragmatic Truth system — SourceDetector, ConflictDetector, CitationFormatter. Philosophy: provide REAL answers, not just OFFICIAL ones
\gateway/trust_gateway.py\ 455 Enterprise-grade private cloud router with deployment modes (on-prem, hybrid, air-gapped), security policies, and audit logging
\ingestion/structure_parser.py\ 183 Content tier assignment (Tier 1 High / Tier 2 Medium / Tier 3 Low) with configurable weight boosting

Updated Init Files

  • \gateway/init.py: Re-exports TrustGateway, DeploymentMode, SecurityPolicy, SecurityLevel, AuditLog, DataRetentionPolicy
  • \ingestion/init.py: Re-exports StructureParser

Tests

  • \ est_pragmatic_truth.py\ (305L): Source detection, conflict resolution, citation formatting
  • \ est_context_triad.py\ (364L): Hot/warm/cold context management
  • 106 tests pass (+14 new), 0 regressions

Closes #58

…al repo

New source files:
- enrichment.py (124L): MetadataEnricher solving the Flat Chunk Fallacy
- pragmatic_truth.py (434L): SourceDetector, ConflictDetector, CitationFormatter
- gateway/trust_gateway.py (455L): Enterprise-grade private cloud router with audit
- ingestion/structure_parser.py (183L): Content tier assignment (High/Medium/Low)

Updated init files:
- gateway/__init__.py: Re-export TrustGateway and security models
- ingestion/__init__.py: Re-export StructureParser

New test files:
- test_pragmatic_truth.py (305L): Source detection and conflict resolution tests
- test_context_triad.py (364L): Hot/warm/cold context management tests

106 tests pass (+14 new), 0 regressions from pre-existing baseline.

Closes #58

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added the tests label Mar 7, 2026
@github-actions
Copy link

github-actions bot commented Mar 7, 2026

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions bot added the size/XL Extra large PR (500+ lines) label Mar 7, 2026
@imran-siddique imran-siddique merged commit 9417a44 into main Mar 7, 2026
25 checks passed
@imran-siddique imran-siddique deleted the feat/port-caas-production branch March 7, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Extra large PR (500+ lines) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Port production CaaS (Context-as-a-Service) from internal

1 participant