feat(project): add context policy model #274

Closed
opened 2026-02-22 23:40:48 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit: feat(project): add context policy model
  • Branch: feature/m3-project-context-model

Subtasks

  • Add ProjectContextPolicy model with default/strategize/execute/apply view inheritance rules.
  • Add validation for include/exclude resources, include/exclude path globs, and size limits.
  • Add docs/reference/project_context_policy.md with view inheritance examples.
  • Tests (Behave): Add scenarios for view inheritance, empty policy defaulting, and invalid values.
  • Tests (Robot): Add Robot test that serializes a policy and validates structure.
  • Tests (ASV): Add benchmarks/project_context_policy_bench.py for validation overhead.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes.
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.

Section: ### Section 4: Projects & Resources [WORKSTREAM B - Hamza Lead]
Status: Completed

## Metadata - **Commit**: `feat(project): add context policy model` - **Branch**: `feature/m3-project-context-model` ## Subtasks - [x] Add `ProjectContextPolicy` model with `default`/`strategize`/`execute`/`apply` view inheritance rules. - [x] Add validation for include/exclude resources, include/exclude path globs, and size limits. - [x] Add `docs/reference/project_context_policy.md` with view inheritance examples. - [x] Tests (Behave): Add scenarios for view inheritance, empty policy defaulting, and invalid values. - [x] Tests (Robot): Add Robot test that serializes a policy and validates structure. - [x] Tests (ASV): Add `benchmarks/project_context_policy_bench.py` for validation overhead. - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes. - [x] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. - [x] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. **Section**: ### Section 4: Projects & Resources [WORKSTREAM B - Hamza Lead] **Status**: Completed
freemo added this to the v3.0.0 milestone 2026-02-22 23:40:48 +00:00
freemo self-assigned this 2026-02-22 23:40:48 +00:00
Sign in to join this conversation.
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.

Blocks
#353 Epic: Projects & Resources B0-B2
cleveragents/cleveragents-core
Depends on
#91 ten-branches
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#274
No description provided.