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

Merged
freemo merged 1 commits 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
freemo added 1 commit 2026-03-02 07:57:37 +00:00
feat(acms): add context request protocol models
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 the
Type
Feature
label 2026-03-02 07:58:00 +00:00
freemo added this to the v3.4.0 milestone 2026-03-02 07:59:24 +00:00
freemo added a new dependency 2026-03-02 08:01:27 +00:00
freemo force-pushed feature/m6-acms-crp-models from 7687c5e9b0 to d3b182e10e 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
freemo added the
State
Completed
label 2026-03-04 00:41:42 +00:00
freemo removed a dependency 2026-03-04 01:55:17 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#505