Repository navigation
Conversation
…adable; trim docs to what ran
…d budgets Review blocker (fail-open class: unbounded-read-as-evidence): a file source that is a FIFO, a device or a link to one could block the open or never reach EOF and hang the run. A file source is now read only when it is a regular file: it is checked before the open, opened with O_NONBLOCK, and fstat-checked after. Anything else is unreadable, as is a file over 256 MiB (also while it grows during the read). Tests cover a FIFO, a link to it, /dev/null and the size cap. CI: deployment imported up into runtime.effects.local_state, and the eager runtime.effects export loaded one more module for ir and receipt than their budgets allow. The typed source models move to openadapt_flow/local_state_sources.py (policy layer, and added to the protected-path manifest beside runtime/effects/**). The verifier is a lazy export of openadapt_flow.runtime, like Replayer. local_state reads sys.platform without binding the sys namespace, so the lazy export is no new import-layer debt site. No budget or debt row changed. The deployment schema snapshot is regenerated on Pydantic 2.13.4 for the new effects.local_state field (#2424).
… public artifact inventory
# Conflicts: # packages/flow/docs/EFFECT_KIT.md
…robes + everyday quickstart tasks
Independent adversarial review: REQUEST CHANGESFrom: Claude Scope: What holds up: unreadable sources raise P1
P2
|
…rsion, opt-in baseline, withhold unknown revert, honest docs
|
Addressed all 6 P1s and P2s in
Verified: |
Independent adversarial review: REQUEST CHANGESFrom: Claude Scope: a delta re-review against my earlier review (#2584 (comment)). I read the files at the head through Note: #2420 merged at 15:37 UTC and this PR now targets Earlier P1s
Earlier P2s
New or remaining P1P1-A. The
P1-B. The PR cannot merge, and CI has not run. GitHub reports New P2
Protected pathThe PR changes Verdict: REQUEST CHANGES. Fix P1-A, then rebase and get CI green (P1-B). The other findings are fixed or are P2. |
… add --event-uid, require FullAccess (3)
|
Addressed P1-A, P1-B, and P2 EventKit write-only findings at
|
Independent adversarial review: APPROVEFrom: Grok This is a cross-vendor delta review of Claude's REQUEST CHANGES at P1-A: the calendar revert no longer targets an event the user already had. Fixed.
P1-B: merge and CI. Fixed.
P2 (write-only EventKit access): fixed. The script now requires Protected
Tests at this head (Linux, Python 3.12, fresh venv with editable types, flow and launcher):
Generality: passes. The engine ( Non-blocking items to track:
Owner review still required: the PR changes Not run: macOS and Windows live probes ( |
Builds directly on #2420 (
claude/local-state-check) to add two built-in OS everyday tasks anyone can try with zero sample apps and zero logins:1. Read-only OS state probes extending
local_statemacos_night_shift(MacosNightShiftSource): Read-onlyCoreBrightness(CBBlueLightClient.getBlueLightStatus:) via pure stdlibctypes/libobjc.A.dylib(zero third-party dependencies, zero writes). Returns booleanenabled/value; fails closed (INDETERMINATE) if unavailable or on non-macOS hosts.windows_night_light(WindowsNightLightSource): Read-onlywinreg(KEY_READ) read ofHKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.bluelightreductionstate\windows.data.bluelightreduction.bluelightreductionstateDatabytes (byte 180x15enabled vs0x13disabled). Fails closed (INDETERMINATE) on missing keys/values, truncated/unexpected bytes, or non-Windows hosts.macos_calendar_event(MacosCalendarEventSource): Fixed read-only AppleScript probe via/usr/bin/osascriptwithargvparameters (calendar_name,title,start_iso— zero string interpolation, never mutates Calendar). Fails closed (INDETERMINATE) if the calendar does not exist, permission is denied, or on non-macOS hosts.2. Parameterized everyday task definitions & CLI wiring
openadapt/quickstart/everyday.pyand wiredopenadapt quickstart --task night-shiftand--task calendar-block(--title,--calendar,--start,--duration,--recurrence,--revert/--no-revert).verify.yaml, optionalrevert_verify.yaml(default on so the machine is left clean), andtask.json.packages/flow/examples/local_state/, updatedLOCAL_STATE_CHECKS.md,public-artifacts.json,openadapt_flow.deployment.jsonschema surface, and added capability rowcapabilities/04-the-core-a-checked-entry-every-time/0096-verify-built-in-os-everyday-tasks-night-shift.md.3. Verification
pytest packages/flow/tests/test_local_state_verifier.py packages/flow/tests/test_everyday_local_state_probes.py tests/test_everyday_quickstart.py tests/test_quickstart_command.py packages/flow/tests/test_schema_surface.py -k 'not openadapt_flow.ir': 74 passed, 1 skipped (including live read-only macOSCoreBrightnessprobe).mypy --follow-imports=silenton new/changed source modules: 0 issues.ruff check,ruff format --check,scripts/check_source_boundary.py,scripts/build_capabilities.py --check-pr origin/claude/local-state-check, andgitleaks protect --staged --redact: all pass.