Add Presence Layer connector: OTP-gated execution of computed returns#6
Open
beepboop2025 wants to merge 3 commits into
Open
Add Presence Layer connector: OTP-gated execution of computed returns#6beepboop2025 wants to merge 3 commits into
beepboop2025 wants to merge 3 commits into
Conversation
- Add LLM_MODEL_OVERRIDE setting: forces a single model across all per-task routing (blank = use routing table). Lets a credit-less deploy point at a free OpenRouter model without code changes. - Update Claude model IDs to current OpenRouter slugs (claude-sonnet-4.6, claude-haiku-4.5) in routing + cost tables. - Pricing verified against current Anthropic rates (Haiku 4.5 $1/$5, Sonnet 4.6 $3/$15). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bridges OperatorOS computations to a real portal submission via the Presence Layer (farmctl presence/): a farm of Indian-SIM devices receives the portal OTP, reads it off the device, and completes login + filing. Moves OperatorOS from advice to execution. Dry-run by default; real submission needs confirm=True AND dry_run=False; real portals blocked unless PRESENCE_ALLOW_REAL=1; hash-chained audit returned per call. Runs against the Presence Layer mock portal until a per-portal AppPortalDriver recipe is wired. For consented client automation only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ost accounting) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Adds
backend/app/services/presence_filing.py, bridging OperatorOS computations to a real portal submission via the Presence Layer (beepboop2025/farmctl,presence/). A farm of Indian-SIM devices receives the portal OTP, reads it off the device, and completes login + filing.This moves OperatorOS from advice → execution.
How it works
PresenceFilingService.file_return(...)runs: login → OTP (read from device SMS) → (optionally) file, returning{ok, message, receipt, audit}with a hash-chained audit trail.Verified end-to-end against the Presence Layer's mock portal:
ACCEPTEDSafety rails
dry_run=Falseandconfirm=True.PRESENCE_ALLOW_REAL=1.Status
Prototype connector. Runs against the mock portal until a per-portal
AppPortalDriverrecipe + a live Indian-SIM device (farmctl connect) are wired. No DB/route changes in this PR — service layer only.🤖 Generated with Claude Code