Commit Graph

464 Commits

Author SHA1 Message Date
Jeffrey Phillips Freeman ae40bb24c0 feat(uow): wire lifecycle repositories 2026-02-15 09:04:17 +00:00
Jeffrey Phillips Freeman 5691858d46 feat(repo): add lifecycle plan repository 2026-02-15 08:29:31 +00:00
Jeffrey Phillips Freeman 6183ee3230 feat(db): rebaseline plan phase/state enums for Action and Apply terminal states 2026-02-15 06:16:19 +00:00
freemo 039ab87b52 feat(domain): rebaseline plan phases and apply states 2026-02-15 00:12:07 -05:00
Jeff (CTO) 2277ac1b8e feat(tool): add built-in file tools 2026-02-14 14:03:28 -05:00
freemo 2d345ae31c feat(tool): add tool lifecycle runtime
Implement the four-stage tool lifecycle (discover/activate/execute/deactivate)
with capability enforcement, per-plan activation caching, JSON Schema validation,
execution tracing, and cancellation propagation.

New modules:
- tool/context.py: ToolExecutionContext, BoundResource, Change, CancellationToken
- tool/lifecycle.py: ToolRuntime, ToolInstance protocol, ToolLifecycleCache
- tool/schema_validator.py: JSON Schema input/output validation

Tests: 57 Behave scenarios, 6 Robot smoke tests, 5 ASV benchmarks
Coverage: context 100%, schema_validator 100%, lifecycle 94%, overall 97%
2026-02-14 18:55:48 +00:00
Jeff (CTO) 156e3ffde9 feat(cli): stabilize action/plan output formats 2026-02-14 13:51:12 -05:00
Jeff (CTO) 18482b938f feat(tool): add tool runtime core 2026-02-14 13:46:10 -05:00
freemo 65988669a6 feat(cli): align plan use/list/status flags
- plan use: accept positional PROJECT args, add --automation-profile,
  --invariant (repeatable), and actor override flags
- lifecycle-list: add --state/--processing-state, --action filters,
  optional positional REGEX for name filtering, Action column in output
- plan status: enhanced detail view with processing state, project
  links, arguments order, automation profile provenance, actor
  overrides, automation level, and full timestamps
- Add docs/reference/plan_cli.md reference documentation
- Add Behave feature (17 scenarios) with mock service steps
- Add Robot smoke test (7 cases) with import-safe helper
- Add ASV benchmarks for plan use/list/status commands
2026-02-14 13:42:02 -05:00
Jeff (CTO) d98666651f feat(cli): align action commands to spec
- Enforce config-only 'action create --config <file>' (remove legacy
  inline flags: --name, --strategy-actor, --execution-actor,
  --definition-of-done, --arg)
- Load config via ActionConfigSchema.from_yaml_file() then
  Action.from_config() with clear validation error surfacing
- Remove 'action available' subcommand (no draft state; actions are
  available by default)
- Add REGEX positional arg to 'action list' for name filtering
- Add Short Name and Definition of Done summary to all CLI outputs
- Add 'action list --namespace/-n' and '--state/-s' filters
- Update existing tests to match new config-only create flow
- Add features/action_cli_spec_alignment.feature (19 scenarios)
- Add robot/action_cli_spec.robot smoke tests
- Add benchmarks/action_cli_bench.py ASV benchmarks
- Add docs/reference/action_cli.md
2026-02-14 12:16:39 -05:00
freemo a64687f2a2 Docs: Updated specification to clear up a few inconsistencies 2026-02-14 10:59:06 -05:00
Jeff 20321f21ee feat(skill): add skill domain model and resolver 2026-02-14 03:54:14 +00:00
Jeff eb1638a84e feat(session): add session domain models and contracts 2026-02-14 03:50:40 +00:00
freemo da8e5f716d feat(db): add resource registry tables 2026-02-13 22:46:03 -05:00
Jeff dfb91781aa feat(tool): add tool and validation domain models 2026-02-14 00:35:04 +00:00
brent.edwards 89e6bdaf35 fix(qa): merge min-coverage into adv-security and resolve conflicts 2026-02-13 22:38:44 +00:00
brent.edwards bb3c4ffaef fix(qa): resolve merge conflicts with master and fix coverage threshold test
Merged master into feature/q0-min-coverage. Resolved conflicts in:
- benchmarks/coverage_report_bench.py: combined AST and regex benchmarks
- docs/development/testing.md: merged both versions into comprehensive guide
- robot/coverage_threshold.robot: merged test cases from both branches
- implementation_plan.md: kept both Brent and Luis notes

Fixed coverage_threshold_config test that failed because it expected
a literal --fail-under=97 but our noxfile uses the COVERAGE_THRESHOLD
constant via f-string. Updated step to resolve the constant via AST.
2026-02-13 22:25:16 +00:00
brent.edwards d451d05bcc Merge branch 'master' into feature/m1-action-schema
Resolve merge conflict in implementation_plan.md: keep master's
action-model commit (Jeff/A2b.alpha) and plan-model commit
(Luis/A2b.beta), then apply feature branch's completion of the
Aditya A2b.gamma action-schema COMMIT item.
2026-02-13 21:21:32 +00:00
CoreRasurae f528d6c3a8 feat(domain): align plan model with spec
Step A2.beta
2026-02-13 20:34:57 +00:00
brent.edwards 75dc57845a feat(qa): align security scans with nox 2026-02-13 19:24:24 +00:00
brent.edwards 35c74d1a52 feat(qa): enforce coverage >=97% in CI 2026-02-13 18:54:15 +00:00
freemo 9b30421b34 feat(db): add spec-aligned action and plan tables with migrations, ORM models, and benchmarks 2026-02-13 13:05:20 -05:00
freemo fd6d41b371 feat(domain): align action model with spec 2026-02-13 09:41:28 -05:00
aditya 8da7bd1e56 docs(action): add action YAML schema and examples 2026-02-13 19:01:55 +05:30
brent.edwards 5da6de97ac Merge branch 'master' into feature/q0-min-ci 2026-02-13 04:46:07 +00:00
freemo 36b4ec2b8d feat(domain): align plan model with spec 2026-02-12 22:58:15 -05:00
brent.edwards 3e3530de48 ci(git-merge): Merging from master 2026-02-12 23:01:35 +00:00
brent.edwards e801eb1ee8 feat(ci): add nox-based PR validation workflow
- Rewrite .forgejo/workflows/ci.yml to route all jobs through nox sessions
- Fix coverage_report nox session: serial behave mode replaces broken parallel
  mode (22% -> 97% accuracy), raise fail-under from 85% to 97%
- Pass posargs through format nox session for CI --check support
- Add 11 CI workflow validation scenarios (Behave) + Robot smoke test + ASV bench
- Add 108 new Behave scenarios covering 6 largest coverage gaps to reach 97%:
  yaml_template_engine, actor/config, actor/registry, message_router,
  context_analysis, context_service
- Update docs/development/ci-cd.md with nox-based CI docs and 97% threshold
- Restore implementation_plan.md verbose style, check off completed CI tasks

Verified: 1673 scenarios pass, 97% coverage, lint clean, typecheck clean
2026-02-12 22:01:51 +00:00
freemo 3d96c3d9ff Docs: made the glossary a little less verbose 2026-02-12 16:29:40 -05:00
freemo 453c1479de Docs: Fixed several descrepencies within the specification document 2026-02-12 14:48:30 -05:00
freemo ea81a5856b Docs: updated the glossary to make it more succinct 2026-02-12 14:20:29 -05:00
freemo 6c7a48e7dc Docs: split out some sections from the specification 2026-02-12 14:04:10 -05:00
freemo a4b56fa308 Docs: Cleaned up some minor issues like docs not being in nav 2026-02-12 11:08:54 -05:00
freemo f9d3aa6f3a Docs: Made the ACMS more extensible 2026-02-12 11:02:10 -05:00
freemo e4febab61e Docs: Updated the depth / detail level concept to be more extensible with additional levels as well 2026-02-12 10:07:37 -05:00
freemo bce6109e2f Docs: First iteration of ACMS added 2026-02-12 08:54:01 -05:00
freemo 013408961a Docs: Removed Context section as we are about to rewrite it in the next commit 2026-02-12 08:53:57 -05:00
brent.edwards 04070ca3ff Merge branch 'master' into Q0-quality-automation
# Conflicts:
#	implementation_plan.md
2026-02-12 06:05:43 +00:00
freemo 4363fbe7c4 Docs: moved implementation plan here 2026-02-12 00:23:19 -05:00
freemo bb7d71f3bb Docs: removed the concept of drafts 2026-02-11 20:30:43 -05:00
freemo f01d1d6170 Docs: fixed a few inconsistencies in the documentation 2026-02-11 20:23:17 -05:00
freemo ab561adc6c Docs: Cleaned up the lead in a bit. 2026-02-11 19:27:02 -05:00
freemo 6b5e3e816b Docs: Removed the notes on permiassions as they are forward looking post-serverE 2026-02-11 19:15:01 -05:00
freemo 93be2664fe Docs: Cleaned up some of the redundant sections 2026-02-11 19:14:01 -05:00
freemo 4a1bb5fbfa Docs: Refined the calidation attachment semantics a bit 2026-02-11 19:02:14 -05:00
freemo 1838a62800 Docs: Removed the tag concept 2026-02-11 18:44:11 -05:00
freemo 654248f4f6 Docs: Removed the optional overriding arguments on most of the add commands, for now this will exclusively be handled via the respective config files. 2026-02-11 18:16:18 -05:00
freemo 1cb1d9f95b Docs: Reworked the validation to make it an extension of a tool 2026-02-11 17:27:19 -05:00
freemo 0ef6e2a73a Docs: Updated the details around the verbosity flag and added some related config items 2026-02-11 14:22:30 -05:00
freemo a4dafc58bb Docs: Fixed some improperly indented bullet point items. 2026-02-11 14:21:43 -05:00