Task Description
Review and optimize only the actor-session change set for algorithm efficiency, resource usage, caching opportunities, and unnecessary operations. Apply safe optimizations while preserving the specified legacy provenance migration behavior, GoalSessionExecutor constructor compatibility and validated constructor, mandatory execution-time validation, narrow telemetry serialization, public API/security/error behavior. Run only tests typed_ooda_actor_session_scope, typed_ooda_goal_session_workflow, and typed_ooda_security_regressions. Make no docs, dependency upgrades, unrelated refactors, or commits.
Requirements
Final Requirements
No material ambiguity remains.
- Limit changes to actor-session performance/resource optimizations in
src/typed_ooda/ledger.rs and src/typed_ooda/schema.rs; touch other files only if strictly required for correctness.
- Preserve legacy provenance migration outcomes, transactional behavior, and fail-closed semantics.
- Preserve both
GoalSessionExecutor construction paths and all public interfaces.
- Keep execution-time validation at every existing trust boundary; do not cache validation results.
- Keep telemetry serialization intentionally narrow and secret-safe.
- Preserve security boundaries, error types/messages, and observable behavior.
- Accept only demonstrably safe reductions in allocation, cloning, serialization, hashing, database access, or repeated computation.
- Introduce caching only if session isolation, bounded lifetime, invalidation, and tamper visibility are provably preserved; current analysis indicates no suitable caching opportunity.
- Run only:
typed_ooda_actor_session_scope
typed_ooda_goal_session_workflow
typed_ooda_security_regressions
- Make no documentation, dependency, unrelated refactoring, test-scope expansion, or commit changes.
Decision: Existing staged optimizations are candidates for retention only after confirming they satisfy these invariants and all three permitted test groups pass.
Acceptance Criteria
Classification
Generated via default-workflow recipe
Task Description
Review and optimize only the actor-session change set for algorithm efficiency, resource usage, caching opportunities, and unnecessary operations. Apply safe optimizations while preserving the specified legacy provenance migration behavior, GoalSessionExecutor constructor compatibility and validated constructor, mandatory execution-time validation, narrow telemetry serialization, public API/security/error behavior. Run only tests typed_ooda_actor_session_scope, typed_ooda_goal_session_workflow, and typed_ooda_security_regressions. Make no docs, dependency upgrades, unrelated refactors, or commits.
Requirements
Final Requirements
No material ambiguity remains.
src/typed_ooda/ledger.rsandsrc/typed_ooda/schema.rs; touch other files only if strictly required for correctness.GoalSessionExecutorconstruction paths and all public interfaces.typed_ooda_actor_session_scopetyped_ooda_goal_session_workflowtyped_ooda_security_regressionsDecision: Existing staged optimizations are candidates for retention only after confirming they satisfy these invariants and all three permitted test groups pass.
Acceptance Criteria
Classification
Generated via default-workflow recipe