דלג לתוכן הראשי

מקור טכני באנגלית, מסונכרן אוטומטית מהמאגר. GitHub

Feature 022 — armable plans and clear operational status

Status: staged implementation. No household activation authorized. Observation-only runs and drafts must remain unchanged during development. Feature 018 remains the deployed lighting-only scheduler until explicitly superseded by tested stages below.

Functional requirements​

  • AW-FR-001: Planner actions follow Plan → executable Preview → Arm → persisted Armed status, with observation-only as an independent path. Save/preview/navigation never activate control or schedule observation. Group secondary actions rather than rendering a flat row of every command.
  • AW-FR-002: The sticky planner action bar is a native collapsible disclosure. Initially collapse on mobile (600 CSS px or less); retain the user's preference for this browser tab. A collapsed bar keeps a labeled Actions control and draft readiness visible. All actions remain reachable by keyboard. Collapse after mobile section-navigation commands; do not collapse automatically during form input.
  • AW-FR-003: Show a read-only plan-page overview separating browser draft readiness, scheduled control, plan observations and climate studies. Display authoritative persisted statuses and local dates, controlled/excluded device counts, next pending event where available, and attention indicators. Distinguish approved-but-not-armed from armed/running. Unknown status must not be presented as no active run.
  • AW-FR-004: Link overview to existing control review/disarm management and retained reports. Refresh on explicit request, visible-page polling and focus without re-rendering unrelated input fields or modifying runs. Preserve prior data with a visible stale/error warning after a failed refresh.
  • AW-FR-005: Extend scheduled control to explicitly qualified HVAC power and independent room fans. Support device-remembered power and captured-setting preservation; bind policy/capabilities/baseline to review identity. Never infer a heat/cool mode. Explicit temperature-setting profiles and outlet appliances remain excluded until separately implemented and qualified.
  • AW-FR-006: Reuse persisted successful rehearsal evidence after owner confirmation, tied to physical mapping/provider, tested On/Off behavior and settings policy. Rehearsal alone never arms a plan. Invalidate incompatible/stale evidence and show missing coverage rather than asking for repeated prose by default.
  • AW-FR-007: Replace unrelated per-device automation questionnaires for scheduled review with bounded target-aware conflict analysis. Same-target unattended ownership conflicts require an explicit resolution; leave-under-existing-automation is an exclusion, not silent dual control. No automation is disabled or edited automatically. Unresolved reach remains visibly uncertain and cannot be cleared by guessed relevance.
  • AW-FR-008: Provide one readiness checklist and final included/excluded-device summary with dates, deadline, policies, rehearsal coverage and conflict outcomes. Approval and arming remain distinct guarded backend operations composed by a single authenticated Arm click; no separate consent checkbox or weekly questionnaire. Support a room/device pilot subset; never arm an all-away plan.
  • AW-FR-009: Clearly distinguish the editable draft from the immutable armed snapshot. Detect and show un-applied draft changes using authoritative digests; viewing the armed plan opens its frozen snapshot. Editing a draft does not mutate, replace or disarm an active run.
  • AW-FR-010: Keep next actions, failures/skips/blocks, direct disarm, execution ledger, linked observation report and JSON/PDF exports discoverable. Disarm has explicit scope and leaves current physical states unchanged. Per-period feedback proposes future changes without applying them.
  • AW-FR-011: Lead scheduled review with devices that have preview events. Offer bulk selection for eligible devices, keep entries with zero events in a separate collapsed list, and group unresolved automation questions by source with answers only for selected devices. Keep the existing approval and arming checks until target-aware conflict analysis is implemented.

Nonfunctional requirements​

  • AW-NFR-001: EN/HE parity, RTL, keyboard-operable disclosures, visible focus, labeled controls and touch targets. At 360px width the collapsed sticky action bar must not consume more than 80 CSS px at normal text size. Expanded menus are bounded and scrollable, do not cover focused controls, and are absent from PDF/print.
  • AW-NFR-002: Overview is read-only with compact responses, no full inventories/histories, one request in flight, at most one visible-page poll per 30 seconds, focus refresh throttled to five seconds. Failures retain prior evidence with explicit staleness; no status inferred solely from wall-clock time.
  • AW-NFR-003: Persist immutable approvals, intent-before-dispatch and context-confirmed outcomes. Extend restart, missed-event, manual-intervention, capability-drift, idempotency and bounded-recovery tests before qualifying scheduled HVAC/fans. No tight-loop retries or replay of old transitions.
  • AW-NFR-004: Use fictional fixtures and no new dependencies. No production arming, device tests, saved observation changes or restarts as part of development. Deploy separately when appropriate; record stage-specific test/deployment evidence rather than claiming the whole feature complete.

Acceptance stages​

  1. Clear commands and read-only status: mobile disclosure, independent observe/control states, counts/next action, stale handling. No added actuation support.
  2. Qualification and conflict review: evidence reuse, actual target reach, immutable snapshot/draft comparison, readiness checklist.
  3. Scheduled HVAC/fan adapters and recovery: service-spy verification on supported HA versions, then owner-supervised timed weekday pilot.
  4. Final activation UX, reports, adoption guide/brochure and owner acceptance. No automatic promotion of drafts or observation runs.

Clear arming checkpoint​

  • AW-FR-012: One review shows selected devices that will run and every exclusion with reasons, period, deadline and reused evidence. One explicit confirmation invokes authenticated approval then arming; preview/review/selection are read-only. Partial failure must say not armed; retry uses the same immutable request identity.
  • AW-FR-013: Reuse only context-confirmed On and Off rehearsal outcomes from completed runs within 90 days with identical physical target/provider mapping and binary-lighting contract. Already-correct, simulated, uncertain, interrupted, stale or changed-target results are not proof. Revalidate evidence on submission. Missing coverage is an exclusion, never fabricated prose.
  • AW-FR-014: The streamlined path excludes unresolved automation reach rather than collecting speculative attestations. Known writers and unreadable sources remain blockers. No changes to automations or scheduled HVAC/fan eligibility.
  • AW-NFR-005: The final confirmation resets after selection changes. Server rechecks readiness, immutable identity and existing arming guards. Persisted ARMED/RUNNING state, included count and next action are prominent; a failed status read never implies success.

Sequential release 0.23.0 (supersedes earlier review-screen interaction)​

  • AW-FR-015: Household planning shows one primary stage at a time, with explicit Plan, Preview, and Armed status navigation. Tests and observe-only remain separate secondary destinations. The primary Preview automatically requests server readiness. It lists every eligible chronological action and every excluded device/reason before Arm; there is no second review gate. All eligible devices in this preview are included. Change the plan to change its actions.
  • AW-FR-016: Arm is the single confirmation of exactly the displayed executable events. Reuse server-owned evidence, bind the request to the readiness digest, invalidate on edits, preserve idempotent retries, and never claim armed until persisted activation succeeds. A past deadline or zero eligible actions disables Arm. Persisted status offers the frozen event list, next action, explicit blocks/deviations and disarm. Draft edits do not change the frozen list.
  • AW-FR-017: New sequential activations use scheduled transitions: verify each scheduled action; record between-event deviation without repeated correction or cancellation of subsequent transitions. Disarm cancels future actions. Unknown state at dispatch, unconfirmed commands, identity changes, missed-event grace and storage failures retain explicit safety blocks. Legacy runs retain their existing recovery policy. Restart retains the five-minute wait and 120-second event grace; expired transitions are not replayed.
  • AW-FR-018: Literal HA script calls are resolved recursively through readable raw_config sequences, bounded by 20 levels. Missing definitions, dynamic targets, unsupported service paths and cycles remain unresolved. New activations freeze target-specific ownership fingerprints; proven unrelated writer changes do not cancel selected devices, while relevant or unresolved reach changes block affected devices. No automation is edited or disabled. This is bounded HA-source analysis, not a guarantee against Alexa or other external controllers.
  • AW-NFR-006: Add no runtime dependency. Preserve backward-compatible sealed legacy records. Test preview/event identity, evidence invalidation, retry behavior, drift followed by a later event, relevant/unrelated ownership changes and bounded script failures on both supported HA versions. Verify EN/HE sequential layout and keyboard controls with fictional fixtures.

Scheduled HVAC/fan qualification, full draft-versus-frozen semantic comparison, general template analysis, periodic state maintenance and an owner-supervised live pilot remain deferred. This release must not hide those exclusions or imply deployment arms a plan.

Visual preview correction 0.23.1​

  • AW-FR-019: Preview must preserve the original room/time graphics and planned On/Off event list, focus that section first, and show it even when no device qualifies for arming. Label it as planned timings, not an armed schedule. Below it, show the separate ready-action count and exact executable list; the sole Arm action still binds only those server-reviewed events. Exclusions, test evidence and unresolved-source diagnostics start collapsed instead of replacing the schedule. Never imply all planned events will execute when only a subset is eligible. This supersedes the 0.23.0 choice to hide the original visual preview. A9 A complete plan with zero eligible devices still displays its original graphical schedule. Device diagnostics are collapsed; Arm remains unavailable. A plan with eligible actions retains the exact frozen-event contract.

Command sequence release 0.24.0 — owner-authorized policy replacement​

AW-FR-020: New activations execute the supported preview On/Off sequence without mandatory rehearsal proof or exclusive automation ownership. Known writers, unreadable sources, unknown reach and test history are informational. They cannot invalidate an otherwise unchanged executable review or block dispatch. Preserve legacy run policies. Never disable other automations. Activation is explicit; deployment does not arm. AW-FR-021: Support mapped native climate power events using the most recent known active HVAC mode, sourced from current state or retained recorder history bound to the registered entity lifetime, with matching captured rehearsal baseline only as an identified fallback. Freeze and display the selected mode before arming. Off uses set_hvac_mode(off); On uses the reviewed active mode. Do not choose cool/heat arbitrarily or send temperature/fan/preset changes. A missing/unsupported remembered mode blocks only that device's On-capable sequence. Explicit temperature-setting hvac profiles remain outside this power-only contract. Mapped independent fan power and mapped light/switch On/Off actions are supported; uncontrolled appliances and track-only handoffs remain excluded. AW-FR-022: Store a sealed command-sequence policy and native-device contracts with the exact original events. Continue later events after per-event unavailability, a missed grace window or an unconfirmed attempt; record the failed attempt rather than permanently canceling its device. Retain identity, unsupported-action, persistence, lifecycle, overlapping-run and stale-plan guards. No automatic repeated correction or replay of obsolete commands. AW-NFR-008: Test informational conflicts/proof absence, warning-only changes between review/activation/dispatch, exact event identity, climate mode selection/preservation, unknown mode, mapping changes, legacy compatibility and retry behavior on both supported HA versions. All live verification remains read-only.