feat(acms): add context request protocol models #505

Merged
freemo merged 1 commit from feature/m6-acms-crp-models into master 2026-03-02 14:37:31 +00:00
Owner

Summary

Add CRP (Context Request Protocol) domain models for the Advanced Context Management System and built-in context skill stubs.

  • Models: DetailLevel, DetailLevelMap, FragmentProvenance, ContextBudget, ContextFragment, ContextRequest, AssembledContext -- all Pydantic BaseModel with field validators
  • Skill: builtin/context with stubbed tools (request_context, query_history, get_context_budget) wired to future ACMS pipeline
  • Tests: 42 BDD scenarios, 8 Robot smoke tests, ASV benchmark
  • Docs: docs/reference/crp.md with field descriptions and examples

Quality Gates

  • lint: PASS
  • typecheck: PASS (Pyright strict -- 0 errors)
  • unit_tests: PASS (7552 scenarios)
  • integration_tests: PASS
  • coverage_report: PASS (100% on all new files)

Closes #190

## Summary Add CRP (Context Request Protocol) domain models for the Advanced Context Management System and built-in context skill stubs. - Models: DetailLevel, DetailLevelMap, FragmentProvenance, ContextBudget, ContextFragment, ContextRequest, AssembledContext -- all Pydantic BaseModel with field validators - Skill: builtin/context with stubbed tools (request_context, query_history, get_context_budget) wired to future ACMS pipeline - Tests: 42 BDD scenarios, 8 Robot smoke tests, ASV benchmark - Docs: docs/reference/crp.md with field descriptions and examples ### Quality Gates - lint: PASS - typecheck: PASS (Pyright strict -- 0 errors) - unit_tests: PASS (7552 scenarios) - integration_tests: PASS - coverage_report: PASS (100% on all new files) Closes #190
feat(acms): add context request protocol models
All checks were successful
CI / lint (pull_request) Successful in 14s
CI / benchmark-publish (pull_request) Has been skipped
CI / typecheck (pull_request) Successful in 33s
CI / quality (pull_request) Successful in 25s
CI / build (pull_request) Successful in 15s
CI / security (pull_request) Successful in 53s
CI / unit_tests (pull_request) Successful in 3m18s
CI / integration_tests (pull_request) Successful in 3m55s
CI / docker (pull_request) Successful in 40s
CI / coverage (pull_request) Successful in 3m42s
CI / benchmark-regression (pull_request) Successful in 22m48s
7687c5e9b0
Add CRP domain models for the Advanced Context Management System:
- ContextRequest: Focus-driven context retrieval with breadth, depth,
  strategy, temporal_scope, and skeleton_ratio parameters
- ContextFragment: Retrieved context with UKO URI, provenance,
  relevance score, token count, and detail level metadata
- ContextBudget: Token budget management with reservation support
- DetailLevel: Five-tier enum (skeleton through full)
- DetailLevelMap: Name-to-integer resolution registry with inheritance

Add builtin/context skill with stubbed tools (request_context,
query_history, get_context_budget) wired to future ACMS pipeline.

ISSUES CLOSED: #190
freemo added this to the v3.4.0 milestone 2026-03-02 07:59:24 +00:00
freemo force-pushed feature/m6-acms-crp-models from 7687c5e9b0
All checks were successful
CI / lint (pull_request) Successful in 14s
CI / benchmark-publish (pull_request) Has been skipped
CI / typecheck (pull_request) Successful in 33s
CI / quality (pull_request) Successful in 25s
CI / build (pull_request) Successful in 15s
CI / security (pull_request) Successful in 53s
CI / unit_tests (pull_request) Successful in 3m18s
CI / integration_tests (pull_request) Successful in 3m55s
CI / docker (pull_request) Successful in 40s
CI / coverage (pull_request) Successful in 3m42s
CI / benchmark-regression (pull_request) Successful in 22m48s
to d3b182e10e
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 14s
CI / build (pull_request) Successful in 14s
CI / quality (pull_request) Successful in 19s
CI / security (pull_request) Successful in 30s
CI / typecheck (pull_request) Successful in 35s
CI / unit_tests (pull_request) Successful in 2m58s
CI / integration_tests (pull_request) Successful in 3m8s
CI / docker (pull_request) Successful in 41s
CI / coverage (pull_request) Successful in 4m19s
CI / lint (push) Successful in 17s
CI / quality (push) Successful in 18s
CI / security (push) Successful in 31s
CI / typecheck (push) Successful in 38s
CI / build (push) Successful in 21s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 2m28s
CI / docker (push) Successful in 38s
CI / integration_tests (push) Successful in 3m13s
CI / coverage (push) Successful in 3m38s
CI / benchmark-publish (push) Has been cancelled
CI / benchmark-regression (pull_request) Successful in 26m30s
2026-03-02 14:32:33 +00:00
Compare
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-02 14:32:44 +00:00
freemo merged commit d3b182e10e into master 2026-03-02 14:37:31 +00:00
freemo deleted branch feature/m6-acms-crp-models 2026-03-02 14:37:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core!505
No description provided.