Repository navigation
[flows-tinyflows] flows+cron: split oversized KEEP files #67
Copy link
Copy link
Closed
Labels
priority: p3Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.refactorStructural code change without a primary behavior change.Structural code change without a primary behavior change.rust-coreCore Rust runtime in src/: CLI, core_server, shared infrastructure.Core Rust runtime in src/: CLI, core_server, shared infrastructure.
Description
Moved from tinyhumansai#8045, which is closed in favour of this issue. Part of tinyhumansai#8055.
Mechanical splits, no behaviour change:
cron/scheduler.rs(505) →scheduler/{dispatcher,live_agents,manual_run}.rs.cron/schemas.rs(492) → declarations vs handlers.flows/schemas.rs(538) → move the registered-controller vec (:349-496) into theschemas/groups.flows/schemas_handlers.rs(568,include!d) →schemas/handlers/{definition,run,builder,draft}.rs.flows/tinyflows/caps/agent.rs(578) → moveAgentRoute,route_for_agent_ref,route_custom_entry_lookup,harness_model_default_override(:121-170,:289-306) toflows/agent_route.rs.
ops/builder.rs and ops/builder_gates.rs are split by #69 / #74. RPC names unchanged.
Done when: the rows above are gone from crates/openhuman-core/src/flows/ / crates/openhuman-core/src/cron/ (moved, deleted or reduced to the stated host adapter), with their tests moved alongside. Gates: cargo check (root + crates/openhuman-app), pnpm rust:layout, node scripts/ci/check-feature-forwarding.mjs, pnpm debug rust flows|cron, and the touched crates' tests. RPC namespace strings, model-facing tool names and DomainEvent variant names stay unchanged.
Agent brief
- Files to consider (paths under
crates/openhuman-core/src/unless rooted):cron/scheduler.rs,cron/schemas.rs,flows/schemas.rs,flows/schemas_handlers.rs,flows/tinyflows/caps/agent.rs - Research: None.
- Workflow: an
implementing-an-epicstep. - Subagent:
tdd-implementer. - Dependencies: [flows-tinyflows] flows delete: shims, re-exports and dead code #58, [flows-tinyflows] cron delete: completion_owner side-channel and dead code #60.
Blocked by #58
Blocked by #60
Parent: tinyhumansai#8055
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p3Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.refactorStructural code change without a primary behavior change.Structural code change without a primary behavior change.rust-coreCore Rust runtime in src/: CLI, core_server, shared infrastructure.Core Rust runtime in src/: CLI, core_server, shared infrastructure.
Activity
senamakel commentedon Oct 17, 2026
Implementation ordering update for epic tinyhumansai#8055: #60 is merged. The file splits in this issue do not require the aliases deleted by #58. Under the current bus-only host boundary, the adoption leaves (#68/#69/#70/#71/#72/#74) retire the implementations and callers that #58 originally expected to replace through direct library imports. We will therefore complete these mechanical splits before adoption and reconcile the full #58 cleanup afterward; #58 remains open until every listed row is gone. This preserves both issues' full scope.
The Schedule v5 cutover in #75 will follow these splits before the new module registry is consumed by other host adopters, preserving cron compatibility during the module upgrade.
senamakel commentedon Oct 17, 2026
Merged in #169 (86c1ad8). Mechanical split and existing registrations preserved; builds/static checks passed, broad flow tests 622 passed/1 ignored, and strict Clippy matches the recorded 38-diagnostic baseline. Six parallel profile lease failures are disclosed; all seven lease tests passed serially.