Repository navigation
docs(plan): Mecatl Studio schedules acceptance plan - #1757
Conversation
fc03cb9 to
cb7d03e
Compare
098afa0 to
df793de
Compare
Review findings addressed: DST round-trip, terminal status, int32 boundsAll three confirmed and fixed in this plan, with the implementation in #1758. P1, one-shot times across a daylight-saving transition. Reproduced before fixing: an instant of The contract now makes the ISO instant with its offset the only one-shot representation that crosses the API, and the browser resolves the ambiguity rather than passing it on:
AC4.5 and AC4.6 name the proofs, including the ambiguity test you asked for. They are pinned in a fixed zone and pass under P2, completed schedules represented as P2, numeric validation beyond int32. The plan's risks section records that these three answer review findings. |
df793de to
708e16d
Compare
Follow-up addressed: AC4.3 promised a round-trip the rule forbidsCorrect, and the contradiction was mine: AC4.3 claimed a one-shot instant "survives an edit round-trip ... including across a daylight-saving transition" while the interface contract and AC4.6 canonicalise an edited ambiguous wall clock to the earlier occurrence. A schedule stored at the later occurrence does move once its wall clock is edited or reconfirmed. That is the intended rule, and it is not a round-trip.
|
708e16d to
a8d90c5
Compare
a8d90c5 to
5ae1def
Compare
5ae1def to
ca461d9
Compare
ca461d9 to
d3300a6
Compare
Bounded plan for the second Studio feature layer: the capability-gated schedule inventory, create/update mapping onto the SDK spec with the unexposed fields preserved, lifecycle actions and fire history, and the browser cron builder and phrase parser with their ported tests as proofs. Tracking: #1736 Signed-off-by: Samuele Verzi <[email protected]>
d3300a6 to
b2a8bea
Compare
Summary
Adds
docs/acceptance/studio-schedules.md(Bounded): the capability-gated schedule inventory, create/update mapping onto the SDK spec with the unexposed fields preserved, lifecycle actions and fire history, and the browser cron builder and phrase parser.Review focus
501 schedule_unsupported.carryContext,fireTimeout,limits,misfire,parts,selector,singleton) are carried over untouched.Checker:
check-acceptance-plan.shpasses;task docspasses. Stacked delivery: nothing in this series merges until the whole stack is reviewed; the plan's approval-by-merge event is deferred to the end, as its Delivery line records.Amended after review
Three findings against the first draft of this contract:
datetime-localacross a daylight-saving transition. That control carries no offset, so both occurrences of an ambiguous local time serialize identically and saving an edited form could move a one-shot by an hour. Reproduced: an instant of2026-10-25T01:30Zrenders02:30inEurope/Romeand re-parses as00:30Z. The contract now makes the ISO instant with its offset the only representation that crosses the API, keeps the schedule's original instant and re-sends it unchanged while the displayed wall clock is unedited, and fixes the resolution rule for an edited one: the earlier occurrence when a local time happens twice, the first valid instant after the gap when it does not exist, with the resolved absolute time shown beside the field. AC4.5 and AC4.6 name the proofs, including the ambiguity test.scheduled. The status enum gainscompleted, derived when the daemon reports no next fire after at least one fire, which covers both a fired one-shot and a cron that reachedmaxFires. AC3.5 covers both, and asserts a never-fired schedule with no next fire staysscheduled.maxFiresandoneShotMaxRetriesare now bounded to0..2147483647and reject non-safe integers before any SDK call. AC2.5 names the proof.The risks section records the review origin.
Contract amendments
409 schedule_trigger_immutablewhen it differs, because the daemon keeps the stored next fire on update. The form locks the trigger of an existing schedule (AC2.6).400 invalid_schedule, since the daemon would silently run it in UTC. An empty timezone is labelled UTC. A one-shotatmay carry a numeric offset (AC2.7).completedbeforepaused, because the daemon disables a schedule in the same write that finishes it. Run now is offered only forscheduledandclaimedschedules, and Pause and Resume never for acompletedone (AC3.5, AC3.6).Development stage
Contract linkage
/api/v1/schedules…) inside the boundary ADR 0351 fixedgh stack) delivery for the whole Studio series: nothing merges until every layer is reviewed, so the plan's approval-by-merge event is deferred to the end (recorded in each plan's Delivery line), and each implementation layer records the exact plan commit it built against.docs/acceptance/studio-schedules.mdInterface conformance
/api/v1/schedules…routes, live capability gating (supported: falselist,501 schedule_unsupportedmutations), the trigger/mode/profile mapping, and the update rule that carries unexposed spec fields over untouched. No gRPC, Go, CLI, or tool-schema change.Issue relationship
Relates to #1748 (parent #1736; stack #1766). Non-closing: the step completes when both of its layers merge.
Type of change
Test plan
Baseline checks
task lint)task test)go run ./cmd/mecademo)task docs)Plan layer: the acceptance-plan checker and
task docspass. The Studio gates (task studio:check,task ac-trace) run on the implementation layer above, since this layer adds noapps/code.User-facing change
None — a plan document and, for the bootstrap, ADR 0351.
Special notes for reviewers
Part of a fourteen-layer stack; review bottom-up. Nothing merges until the whole series is reviewed.