feat(reach): implement off-machine nudge delivery and --no-reach switch - #356
Merged
Merged
Conversation
Implements H2 (DRC-4034, DEC-4) allowing Cargento to post off-machine nudge counts (needs_input and finished_unread) to an operator-configured webhook endpoint. Includes: - cargento_runtime.reach module implementing secure webhook dispatch - --reach-url and --no-reach CLI flags with daemon respawn forwarding - strict payload bounds with scalar counts only and zero session metadata - redirect refusal and proxy ignoring per DEC-4 contract - cooldown throttling and lock protection - unit tests and documentation updates across SECURITY.md and HOW_TO_USE.md Signed-off-by: Jared Scott <jared.scott@variable.team>
Contributor
CoverageThreshold: |
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.
Summary
Implements H2 (DRC-4034, DEC-4) to allow Cargento to deliver off-machine reach nudges to an operator-configured webhook endpoint.
When a session needs input or finishes unread while the operator is away from the desk, Cargento can post scalar counts to a webhook URL provided via CLI flag (
--reach-url), environment variable (CARGENTO_REACH_URL), or home store file (~/.cargento/reach_url).Security bounds (DEC-4 contract in SECURITY.md)
{"needs_input": int, "finished_unread": int}. Never carries session IDs, projects, titles, paths, or prompt text.--no-reachdisables all reach delivery for a run regardless of stored settings, and is forwarded across daemon respawns.Verification
ruff check .passedruff format --check .passedmypypassed with 0 errors across 163 filespython3 scripts/lint_embedded.pypassedpython3 scripts/validate_plugins.pypassedpython3 -m unittest discover -s cargento/skills/cargento/tests -t .passed (3504 tests)coverage reportpassed (86.8% total coverage)claude plugin validate ./cargento --strictpassed