Imported from eshu-hq/eshu (
go/internal/coordinator/planner/aws/scheduled/AGENTS.md). Install upstream withnpx skills add eshu-hq/eshu --skill scheduled. Copyright stays with the author.
scheduled — scoped agent instructions
Read first
./README.mdfor what this package owns and its split fromfreshness.../../../AGENTS.mdfor coordinator-wide invariants, including the recorded decision that AWS target-scope parsing has a single definition.../freshness/README.md— the sibling this package calls into.
Invariants
- Call
freshness.ParseTargetScopes; never copy the shared configuration parser. KeepawsScheduledTargetAllowedlocal because scheduled global and regional service pairing is distinct from freshness-trigger authorization. - Keep the local
scheduled_scan_enableddecode (ScanEnabled) here. It is the sibling flag to target-scope parsing, and root calls it rather than keeping its own copy. Do not decodescan_intervalhere: that field is kind-neutral and root'sscheduled_work.goreads it once for every scheduled planner. - Do not import the root
coordinatorpackage; root imports this one to wire theAWSScheduledPlannerport, and the reverse import cycles. aws_bindings_test.gomust stay. It is the only thing populating the AWS scanner registry for this package's test binary.
Anti-patterns
- Do not widen the export surface past
PlanRequest,WorkPlanner, andScanEnabled. - Do not move the
Service.Runcases here; they need root'sfakeStore. - Do not "deduplicate"
ScanEnabledintofreshness; the two flags are decoded by the family that owns them.