Conversation
leiklier
force-pushed
the
feat/core
branch
2 times, most recently
from
July 23, 2026 19:10
cb2a6c0 to
ba47c96
Compare
Owner
Author
|
Follow-up commit: |
Pure, event-driven, clock-injected core (no homeassistant imports — ruff TID251 plus a poisoned-import test enforce it). PlantDayLedger accrues from reported truth and splits open blocks at the anchor; visibility.assess implements the §1 priority chain (veto > viewer/hold > asleep > away > refuge); Engine folds snapshots/reports/settings into Decisions with next_review instants so the adapter needs exactly one timer. 33 scenario tests cite spec rules: nominal workday, night movement, WFH refuge, cap exactness, min-block guard, standby accounting, restore seeding, anchor splits. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Stamps the viewer-activity clock without sustaining activity: instant cut, normal clear-hold recovery, level never read. Tests: night pulse cut + hold extension by repeated pulses; a pulse while awake arming the hold across a sleep transition. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Viewer memory now tracks episodes edge-to-edge (active_since, last_end, sustained_end); during confirmed refuge, activity cuts only once continuously active for exposure_grace, short episodes and pulses impose no hold, and only grace-exceeding episodes carry clear_hold. Refuge confirmation is a latch: unconfirmed engagements restart on any dropout, confirmed refuge survives evidence gaps up to refuge_hold (falling edges stamp last-active; the lapse instant is a scheduled review). Asleep/away contexts unchanged. 43 core tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Owner
Author
|
Follow-up commit for rules 1.3c/1.7: viewer memory tracks episodes edge-to-edge (active_since / last_end / sustained_end), refuge confirmation is a latch with hold-across-gaps (falling edges stamp last-active; lapse instants are scheduled reviews). New scenarios: coffee run never toggles, sustained exposure cuts exactly at grace, hold/release/re-confirm, unconfirmed dropout resets, pulse ignored during refuge. 43 core tests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The pure scheduling core (
custom_components/grow_conductor/core/, zero homeassistant imports — ruff TID251 + poisoned-import test):InputSnapshot(tri-state signals),Decision(want_on, state, reason, next_review), display enums.PlantDayLedger: accrues from reported physical state (manual light counts), splits open blocks at the anchor (2.4), seed/restore per rule 5.1.next_reviewinstant so the adapter needs one timer, no polling.Tests
33 scenario tests citing rule numbers: full nominal workday (sleep block → wake cut → away block → cap → anchor reset), night movement with cooldown recovery, WFH via refuge incl. lunch-break flicker handling, veto without release hold, cap exactness, min-block guard, standby accounting, restore seeding (current vs stale day), idempotence.
Part 2 of 3, stacked on #1.
🤖 Generated with Claude Code