Commit Graph
107 Commits
Author SHA1 Message Date
BigBodyCobainandClaude Opus 5.5 591645992b Keep secure mail sessions working across backend restarts
A node that restarted lost the private half of the MLS key package in its
published bundle, so a welcome built from it could never be joined and the
sender's session stayed stuck with no way to reset it. Restarts also wiped
working sessions in two more ways. Fixes, each covered by a test:

- privacy-core: the saved DM state (v2) now carries every DM alias identity
  and its newest unused key packages (at most 16, unexpired), not only
  identities that already have a session. v1 state still loads. A new
  export call takes the identity list; older library builds fall back to the
  old export.
- The key package is saved as soon as it is created for the bundle.
- A session joined as the node's DM identity records that identity, so
  loading no longer drops it for lacking a per-contact identity.
- Re-reading mail already read (spent key) or mail from another group fails
  that message only; it no longer marks a restored session stale and wipes
  the conversation. A restored session that works is no longer suspect.
- A sender whose session is still unanswered checks the peer's bundle (at
  most every 5 minutes) and starts over if the key package changed; the
  peer rejoins from the welcome that rides along, keeping the new session
  only if it reads the message. Welcomes already joined are refused, so an
  old one replayed cannot roll a session back.
- /api/wormhole/dm/reset for a contact also drops its MLS session.

Verified with two fresh Docker nodes: mail sent after the receiver
restarted, a reply after the receiver restarted again, and mail after the
sender restarted all arrived readable on the original session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:11:42 -07:00
BigBodyCobainandClaude Opus 5.5 90d3fa370b Make secure mail work between two fresh nodes
Mail between two nodes that had just exchanged contact addresses never
arrived readable. Fixes along the whole path, each covered by a test:

- Status: the web UI's own requests get the full wormhole status, so it
  stops treating a ready node as not ready.
- Invites: the owner node named in an invite is asked first, with an
  onion-sized timeout; an import that could not reach it finishes in the
  background and replaces the keyless contact it left behind.
- Aliases: no one-sided mailbox alias is made up on compose; both sides
  address mail by node id until an alias is agreed.
- Signing: each mailbox request is signed once, keeping polls under the
  sign rate limit.
- MLS: the welcome is sent with the mail until the peer answers, and the
  receiver joins as the identity whose key package the sender used, with
  that identity's DH key.
- Sender seal: a seal addressed to the node's DM identity opens even when
  the browser names the node's transport identity.
- Gate rooms: the chat controller restarted the live stream and the room
  long-poll on every status refresh, about 60 requests a second, which
  exhausted local ports; it now reacts only to access changes, and the
  stream waits a minute between tries when there is no admin session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:17:48 -07:00
BigBodyCobainandClaude Opus 5.5 0a32c3ba13 Let the web UI create a DM contact address without an admin login
Secure Messages' Create Address calls GET /api/wormhole/dm/invite, which
was still on require_local_operator in both the router and main.py. On a
fresh Docker install the browser reaches the backend through the proxy,
so the button failed with "This needs operator access". It now takes the
operator-client token like the other DM routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:04:47 -07:00
BigBodyCobainandClaude Opus 5.5 7a15c7fbda Make Infonet usable on a fresh install without an admin login
A fresh-clone Docker test showed that joining Infonet worked after #760,
but everything after it did not:

- Gates and DMs still needed the admin key. Every gate, DM and identity
  route the web UI calls now takes the proxy's operator-client token
  (require_operator_client, or the new require_operator_client_or_admin
  for routes that also take scoped admin tokens). Both copies of routes
  defined in main.py and in routers/wormhole.py are switched, and an
  unguarded duplicate of GET /api/wormhole/gate/{gate_id}/key is guarded.
  Wormhole restart and the review, witness-import and transparency
  publish tools stay admin-only.
- The backend only trusted browser origins on port 3000. The proxy sends
  the token only after its own same-origin check passed, so the token now
  stands for that check and a UI on any port works.
- LAN mode shares the dashboard with other devices, which can send any
  Host header, so there the proxy withholds the token and the backend
  ignores it: every browser signs in with the admin key, as before.
- A missing default local bootstrap manifest was reported as a bootstrap
  error, so every new node showed "bootstrap warning". The file is
  optional (peers come from the bundled seed and the signed swarm
  manifest); a manifest path the operator configured must still exist.
- The README Docker quick start never created ADMIN_KEY, so the first
  `docker compose pull` failed. It now creates one (bash and PowerShell)
  and says what the key is for.

Tests that bypassed auth by overriding the old guards also override the
new ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:32:31 -07:00
BigBodyCobainandClaude Opus 5.5 68667e07a7 Let the operator's own UI join Infonet without an admin-key login
Joining Infonet from the UI failed with "operator authentication required"
unless the user had first unlocked admin with the admin key. That is the
first thing a new user does, so it hit everyone.

The frontend proxy now presents an HMAC of the admin key in
X-SB-Operator-Client, only when the page was reached by a name people use
for their own node (localhost, an IP, a LAN or single-label name, a
Tailscale name, or a configured host), and strips any copy of that header
a browser sends. The backend's new require_operator_client accepts that
token from an allowed origin, and otherwise falls back to the admin-key
check. Only /api/wormhole/join uses it; admin controls still need the key,
and a caller reaching the backend directly still gets 403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 03:31:35 -07:00
BigBodyCobainandClaude Opus 5.5 8c7aca8810 Keep Tor as the backbone; add opt-in maximum privacy and a Tor-down choice
With Reticulum on, DMs and gate posts used to wait until both Tor and
Reticulum were ready. Now:

- Normal mode needs Tor only. DMs keep going through the Tor relay, gate
  posts publish over Tor first, and Reticulum joins in when it is up.
- Maximum privacy (off by default, labelled slow) sends DMs and gate posts
  only over Reticulum inside Tor and waits while either is down. It never
  falls back to the relay, and this node's own gate posts are not served
  over the Tor peer push or pull, so no peer can tell which node wrote
  them.
- When Tor is down, queued DMs and gate posts ask right away whether to
  send over a direct Reticulum link, saying what that gives up (the hub
  sees your IP address; watchers see you use Shadowbroker; content stays
  end-to-end encrypted and the recipient still cannot see your IP).
  "Send over Reticulum" covers everything already waiting. "Don't ask me
  again" asks "Are you sure?" first, then makes the direct link the
  automatic backup. The direct link opens only after that consent and
  closes as soon as Tor is back.
- Settings has the maximum-privacy switch and a way to be asked again.
- A hub node also offers its hub port on its onion address.
- Only the primary backend runs Reticulum, and Tor-tier checks read its
  status in-process, so one node does not announce two identities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:34:51 -07:00
BigBodyCobainandClaude Opus 5.5 3a956f0434 Accept ledger event ids on gate peer sync and put operator peers first
Gate posts are committed to the private Infonet ledger, whose event id
hashes the previous ledger hash with the signed content. Gate peer push and
pull sent that id without the ledger link, and receivers checked it against
a different formula, so every current gate post was rejected as an event_id
mismatch. Senders now attach prev_hash for events in their local ledger, and
receivers accept the provided id when it matches the ledger hash; any other
id is still rejected. Wire copies also drop local-only payload fields.

Operator-added peers now sort ahead of peers whose only priority is a
success from weeks ago, so the per-pass contact cap reaches them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:33:07 -07:00
BigBodyCobainandClaude Opus 5.5 cb87208f02 Keep signed gate fields on peer push and run contact requests off the loop
The gate peer-push router dropped transport_lock from the event payload,
and the immediate push built its body without envelope_hash, gate_envelope,
transport_lock and reply_to. All of these are covered by the gate event
signature, so receivers rejected pushed posts as invalid and posts only
crossed through the slower pull path. Both paths now keep every signed field.

The connect-contact endpoint called a blocking function that makes HTTP
calls back into the same server directly on the event loop; it now runs in
a worker thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:33:07 -07:00
BigBodyCobainandClaude Opus 5.5 2cbec30cae Keep the DM relay hint and stop peer store lost updates
- The routed /api/mesh/dm/prekey-bundle and /api/mesh/dm/pubkey
  handlers dropped lookup_peer_url, so every invite lookup ignored the
  relay the sender named and fell back to a fleet-wide search that
  could run for many minutes. Pass it through.
- Give an onion relay hint a circuit-sized connect timeout; 5 s was
  shorter than building a circuit to an onion service.
- PeerStore.save() now merges with what other writers saved since its
  load, so concurrent loops and endpoints no longer drop each other's
  changes (an operator-added peer was being lost to a swarm refresh).
- Merge a swarm manifest with one load and one save instead of one per
  peer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:33:02 -07:00
BigBodyCobainandClaude Opus 5.5 58faf59a9f Fix DM first-contact lookup timeouts and connect-contact stall
- The registered GET /api/mesh/dm/prekey-bundle route (routers/mesh_dm.py)
  dropped lookup_peer_url, so the UI's invite lookup fanned out to every
  known peer instead of asking the invite owner, and could run for minutes.
  Forward it to the main handler.
- The hinted invite lookup used a fixed (5, 20) s timeout and a single try,
  shorter than the onion timeout and often shorter than a Tor round trip to
  a busy node. The invite owner's peer now gets its transport's normal
  timeout and one retry on a transport failure, bounded by the existing
  lookup deadline. Definitive answers ("not found") are not retried.
- POST /api/wormhole/dm/connect-contact ran send_contact_request on the
  event loop. That makes blocking HTTP calls back into the same server, so
  the API stalled until the call timed out. Run it in a worker thread, as
  the gate invite routes already do.
- openclaw_infonet._run_async called asyncio.run() inside a running loop in
  both branches, which raises RuntimeError. Run the coroutine on its own
  loop in a helper thread when a loop is already running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:42:00 -07:00
ShadowbrokerandClaude Opus 5.5 521c45cc95 Recon: offline IP geolocation from DB-IP Lite (#753)
ip-api.com's free tier refuses HTTPS, so the IP dossier, the subnet
sweep and the entity graph all came back without a location. They now
read the free DB-IP Lite city and ASN databases stored in the data
folder, so the IPs being investigated are never sent to anyone.

- services/geoip_local.py: downloads the two files on the first IP
  lookup (about 65 MB), checks each new file before it replaces the old
  one, and keeps one copy. A daily job fetches a file only when a new
  month's is out and only on installs that already have one.
  SB_GEOIP_AUTO_UPDATE=0 turns downloading off.
- The sweep keeps its scan results when no location is available.
- The dossier credits DB-IP (CC BY 4.0) and no longer shows a risk
  level or proxy flags it does not have.
- Adds maxminddb 3.2.0 to read the files.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:51:54 -07:00
BigBodyCobainandClaude Fable 5.2 ca440160f9 Radar layer: include its items in the dashboard feed again
The map draws radar pins and pass counts from the slow feed, which had
stopped carrying them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 15:37:53 -07:00
BigBodyCobainandClaude Opus 5.5 b79b87b3ba Endpoint hardening
Tighten access checks on a few backend endpoints, remove unused
duplicate route definitions from main.py, and add tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 05:47:22 -07:00
BigBodyCobainandClaude Opus 5.5 735b4ebf22 Add ~4,800 cameras from 10 more feeds and ViriBack C2 panels
Cameras (all keyless public feeds, found in OSIRIS, checked live on
2026-11-18 and sampled through the media proxy):

- Minnesota MnDOT 511 map API: ~1,530 cameras, ~1,250 with live HLS
- DriveBC (British Columbia): ~1,050 stills
- Quebec 511: ~680 MP4 clips (proxy sends the Referer the host needs)
- City of Ottawa: ~400 stills; its MTO highway cameras are skipped
  because 511 Ontario already carries them
- New England 511 (VT, NH, ME): ~360, on the existing IBI 511 ingestor
- City of Toronto: ~340 stills
- City of Calgary: ~220 stills
- Estonia Transpordiamet road-weather cameras: ~180 stills
- Saskatchewan Highway Hotline and PEI 511, on the IBI 511 ingestor

Both media proxy copies allow the new hosts.

Malware C2 layer: adds the ViriBack C2 Tracker (C2 panels reported in the
last 180 days), placed by RIPEstat's GeoLite lookup over HTTPS and cached
for a day; Cloudflare front addresses and unlocatable IPs are skipped.
The dump is reused for 30 minutes and new lookups are capped per poll.
Feodo Tracker stays. The layer panel label now names both sources.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:34:35 -07:00
BigBodyCobainandClaude Opus 5.5 26cf0dfcf0 Add ~27,000 CCTV cameras from 43 new public road-camera feeds
Ports the open, keyless camera feeds found in the MIT-licensed OSIRIS
project (github.com/simplifaisoul/osiris), plus a few more sites found on
the same platforms. Every feed was checked live on 2026-11-15 and sampled
through the media proxy.

Batch 1: 13 IBI 511 sites (AK, AZ, ID, LA, NV, UT, PA, WI, MB, NB, NS, NL,
YT); Ontario and Alberta moved to the working list feed; Spain DGT
catalog; Netherlands RWS via rwsverkeersinfo.

Batch 2: Maryland CHART and DelDOT (HLS); Virginia and South Carolina
(Iteris); TxDOT all 25 districts (base64 JPEG decoded by the proxy);
Indiana, Iowa, Nebraska, Kansas (CARS 511); Finland, Hong Kong,
Queensland, New Zealand.

Batch 3: North Carolina (511 GET query form), Oregon TripCheck statewide,
Edmonton (HLS), Iceland, Taiwan THB, Lithuania, Bizkaia, France (DIR
Centre-Est, DIR Est, Lyon, Inforoute x5, APRR), Autostrade per l'Italia.

De-duplication: WSDOT no longer re-imports its ~66 Oregon TripCheck
cameras, and the Oregon feed skips the Washington and California
cameras that WSDOT and Caltrans already supply.

The media proxy (router and main.py copies) allows the new hosts, with
profiles for Referer-checked hosts, uncompressed MP4 clips and HLS.

Left out: Japan river cameras (site forbids automated access),
Massachusetts (placeholder images, expiring tokens), MN/CO/NY (bot
challenge), Sweden (private site's internal API), YouTube-only lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:58:24 -07:00
BigBodyCobain 68d462b70b Keep OSM basemap responsive and retain standard Docker builds 2026-11-13 19:26:18 -07:00
BigBodyCobain 591730cbde Merge remote-tracking branch 'origin/main' into codex/osm-693 2026-11-13 19:22:49 -07:00
Shadowbroker 012c4eeaf4 Merge pull request #666 from BeauBoorman/sb-fixes-261104
Fix batch: SB_PIN_LAYERS guard, silent-failure logging, agent-shell port, AIS stream reconcile
2026-11-13 19:03:42 -07:00
BigBodyCobain 6f55659a5b Resolve map, operator access, updater, and Gemini Live issues 2026-11-13 18:10:20 -07:00
esmaeelE 28381c19ba Merge remote-tracking branch 'upstream/main' into fix/osm-tile-proxy-pr649 2026-11-07 17:34:08 +03:30
esmaeelE 1030ee85e8 feat(osm): fix PR #649 review requests — add backend tile proxy, remove disabled OSM Source block, clean unused imports, revert cartoTileUrls concatenation 2026-11-07 17:12:55 +03:30
BigBodyCobainandClaude Opus 5.5 c4d7d44f3c Merge origin/main into ui/website-look
Resolve dependency conflicts by keeping the newer version of each package,
except maplibre-gl, which stays on 6.x because this branch migrated the map
worker to MapLibre 6 (main still pins 4.7):

- frontend: framer-motion 14.9, hls.js 1.7.4, lucide-react 1.66,
  maplibre-gl 6.14, @types/node 26, vite 8.3.5, vitest 4.1.12
- backend: apscheduler 3.11.3, cachetools 7.2.8, cryptography 50.0.2,
  keep anyio >= 4.14.2
- package-lock.json and uv.lock regenerated from the resolved manifests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 21:49:47 -07:00
Beau Boorman f25c05de16 layers: SB_PIN_LAYERS env guards pinned layers against dashboard all-off replays
Third occurrence tonight: stale dashboard sessions replay saved all-off layer
state via POST /api/layers on every reload, killing the AIS stream and
cyber_threats. SB_PIN_LAYERS=ships_military,...,cyber_threats makes the
endpoint silently ignore disable requests for pinned layers (logged at WARN).
Unpin = remove env var + restart.
2026-11-04 22:48:40 -06:00
f30e2a1393 Fix empty cyber-threats layer and false AIS outage notices
Both found by @BeauBoorman running Shadowbroker live (#666).

Cyber threats: CISA KEV dateAdded values are date-only ("2026-11-03"), so
fromisoformat() returns naive datetimes and subtracting them from an aware
"now" raised TypeError. The bare except skipped every entry, so the layer
always showed zero recent CVEs from a healthy catalog. Parse them as UTC.

AIS: with every ship layer off the stream is stopped on purpose, but the
banner still blamed AISStream (and suggested an AISHub signup) and
/api/health reported "degraded" when AIS_API_KEY was set. ais_proxy_status()
now reports ship_layers_active; the banner and the health escalation skip
that case. Older backends without the field keep the old behavior.

Tests for both run in the CI backend smoke set; new banner tests cover the
frontend.

Co-Authored-By: Beau Boorman <216379357+BeauBoorman@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:34:35 -07:00
BigBodyCobainandClaude Opus 5.5 46ab6492e1 Add /api/summary for home dashboard widgets (closes #650)
A small, flat JSON summary (global threat level plus headline counts) that
Homepage's Custom API widget, Homarr, Uptime Kuma and similar tools can poll.
/api/live-data is megabytes; this is a few hundred bytes built from counts
already in the store, rate limited to 60/minute.

- Read-only and unauthenticated like /api/health; it only exposes numbers the
  dashboard already shows. Reachable at localhost:3000 through the existing
  /api proxy (not on the privileged-path list, so it also works in LAN mode)
  and directly on :8000.
- Threat level reports UNKNOWN until the first news cycle instead of a
  misleading GREEN.
- docs/HOMEPAGE_WIDGET.md has a ready-to-paste Homepage config and Docker/LAN
  networking notes; linked from the README.
- New tests run in the CI release smoke set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 15:25:58 -07:00
BigBodyCobain 50be1c2402 Restore public camera and satellite access and fix map worker and portrait loading 2026-10-27 19:08:55 -06:00
BigBodyCobain 9e17d80abf Merge latest origin/main while preserving AI missions and operator security 2026-10-27 18:00:40 -06:00
Claude cbf3029138 Share gate keys across nodes over the encrypted DM lane
Gate history is readable on another node only through the gate envelope,
which is keyed from a per-gate secret that every node generated on its
own. Nothing ever moved that secret between members, so two operators in
the same gate could not read each other.

Members can now send the current gate key to a DM contact inside an
end-to-end encrypted DM. The key rides as a control frame that is
stripped on decrypt, so it never reaches the browser or the mailbox. The
recipient's operator accepts or declines it; the previous local key is
archived so existing history stays readable.

Rotation sends the new key to every contact the key was granted to,
minus excluded peers. Recipients apply a rotation automatically only
when it comes from the member they got the key from, and forward it to
their own grantees. Ban/kick rotations now redistribute too, instead of
silently splitting the gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 03:06:11 +00:00
BigBodyCobain f16ded5225 Add persistent mission workspace with specialist roles and confirmed actions 2026-10-14 12:11:40 -06:00
BigBodyCobain 7598af7c13 Open news articles through console and agent tools with grounded UI context 2026-10-14 11:04:41 -06:00
BigBodyCobain 1d29516c1a Connect hosted and local AI models with brokered spoken commands 2026-10-14 01:31:51 -06:00
BigBodyCobain c97dd6b164 Bind voice gateway credentials to the saved provider destination 2026-10-13 22:43:12 -06:00
BigBodyCobain 42a13b651e voice-agent fix: gemini-only text chat via OpenAI-compat endpoint, key clear/replace, fresh Live model list
- chat_completion(): when the resolved provider is gemini_live and VOICE_CHAT_MODEL is empty, dial Google's OpenAI-compatible endpoint (https://generativelanguage.googleapis.com/v1beta/openai/chat/completions, Bearer <VOICE_GEMINI_API_KEY>) instead of failing chat_unconfigured — fixes the typed composer/hud-summary/turn legs for Gemini-only configs. New Settings field VOICE_GEMINI_CHAT_MODEL (default gemini-2.5-flash).
- POST /api/voice/provider accepts {clear:true}: removes the provider's persisted key + its model/URL rows from data/operator_api_keys.env via new _remove_env_values helper, syncs live env with env-var-wins honesty, returns the fresh status shape. Saving again overwrites (upsert verified).
- Curated Gemini Live list refreshed: gemini-3.1-flash-live-preview leads, gemini-2.0-flash-live-001 secondary, gemini-3.5-live-translate-preview added; VOICE_GEMINI_MODEL default updated.
- Deterministic fallback is honest: a realtime-armed console says 'Voice provider armed (<id>) — text chat unavailable right now' instead of 'No model configured'.
- VoiceSetupCard: Replace-key note + Clear button for already-configured providers; i18n keys added in en/fr/fa/zh-CN.
- Tests: compat-dial contract (URL/Bearer/model), clear rows re-read, upsert replace, curated list; frontend clear-button + prefill coverage.
2026-08-26 04:40:42 -06:00
BigBodyCobain c3915fe964 voice-agent ux: Anthropic text-only provider + custom endpoint preset
- Add anthropic_text provider: VOICE_ANTHROPIC_API_KEY registry row, VOICE_ANTHROPIC_BASE_URL setting, resolve_provider candidate ordered after realtime providers and before local_text, and a chat_completion branch that POSTs {base}/v1/messages (x-api-key + anthropic-version headers, system extraction, text-block reply assembly, input/output_tokens usage metering). Model reuses VOICE_CHAT_MODEL (Anthropic has no separate voice model) with the curated-list head as fallback.

Anthropic has NO realtime speech API: anthropic_text behaves like local_text on the media path — the WS relay refuses it (text_only_provider) and the mic keeps the TXT badge, never opening PTT.

- Custom endpoint: 'compat' already accepts arbitrary https base URLs (baseUrl+key+model); the new Custom endpoint preset is a UI alias posting {provider:'compat'}.

Tests: backend/tests/test_voice_anthropic.py (18) plus existing voice suites; frontend voice vitest suite 167 green; tsc clean in touched files. i18n keys added in en/zh-CN/fr/fa.
2026-08-26 03:55:23 -06:00
BigBodyCobain 250f5b4570 voice-agent ux: GET /api/voice/models — live model discovery for compat gateways (OpenRouter/Ollama {base}/models with /v1 fallback, no double-/v1), curated lists for OpenAI/Gemini, honest degradation; 6 tests 2026-08-26 02:36:10 -06:00
BigBodyCobain 7bb73bd483 voice-agent ux: first-class enablement API (opt-in + provider setup endpoints)
POST /api/voice/opt-in and POST /api/voice/provider persist through the sanctioned operator-keys writer (_write_env_values on data/operator_api_keys.env), cache-clear get_settings, and report fresh effective state. Env-var-wins honesty preserved verbatim (managedByEnvironment + note when a real process env var governs a key). VOICE_GEMINI_API_KEY joins API_REGISTRY; behavioral opt-in/coordinate keys ride ALLOWED_ENV_KEYS via an explicit frozenset union (documented why not registry rows). Both endpoints sit inside the MESH_ONLY guard block; responses never echo key material.
2026-08-26 00:53:57 -06:00
BigBodyCobain 1fb3ecfe70 voice-agent U8-gemini: Gemini Live provider #2 — voice_gemini framing adapter (server-authored BidiSetup with grounding-in-system-instruction, 24k->16k mic downsample, upstream event translation to OpenAI-style client frames incl. interrupted->barge-in signal, usage metering), resolve_provider gemini_live candidate, dial URL branch, pump translation branches, geminiKeySet status contract, disclosure extended to cover Google's free-tier audio policy; 19 new tests 2026-08-25 22:41:38 -06:00
BigBodyCobain bdc760d92b voice-agent U6: interrogation, verdicts & polish — §2.7 interrogation relay (correlate_entity/get_entity_profile behind POST /api/voice/interrogate with local target resolution, verbatim evidence pack, tier-gate inheritance, 2-exchange memory cap); §3.8 watchdog_alert context events (bounded per-relay tap + pump, broadcast_to_agents wire-format hook, no watchdog import in voice modules); §2.6 selectedEntity regen trigger via widened page→hook bindings (selection rides sb.grounding.v1 + fingerprint); manual BRIEF NOW affordance; cost/quota UX (daily spend chip, estimated/worst-case/incomplete disclosures on the cost chip, asterisk for any unverified billing); error/reconnect polish (verbatim FAULT reasons through the 6s grace window); text_only E2E + hook-level regen-gate tests; i18n voice keys in all four locales incl. composer.placeholder key fix 2026-08-25 02:52:13 -06:00
BigBodyCobain 0402123b9d voice-agent U5 judge fixes: persisted daily-budget gate (§2.7 429 latched cap) shared by session/hud-summary/turn endpoints via _budget_gate helper; endpoint-level POST /api/voice/turn tests (409/503/200/429) plus hud-summary 429 pin; live map zoom in grounding snapshot view contract via resolveMapZoom (mapControlBus getViewState); selectedEntity trigger deferral recorded on U6 row 2026-08-25 02:14:08 -06:00
BigBodyCobain 8c3d404881 voice-agent U5: model picker + NARRATE — verbatim narration prompts via build_session_config hook, validate-gate-dispatch-feedback picker loop (POST /api/voice/turn), hud-summary endpoint with 30s dedupe, sb.grounding.v1 composer + freshness cadence table + ambient ARM gating + TTS ladder; carried advisories: forward original unlock args in orchestrator dispatch (1), destructive manifest entries advertise requires_confirm (2), NARRATE prompt injection into instructions hook (3) 2026-08-25 01:55:56 -06:00
BigBodyCobain 618cd96300 voice-agent U4: client verbs & console loop — clientTools executors, map control bus, deterministic zero-model loop, mic button + HUD panel 2026-08-25 00:33:08 -06:00
BigBodyCobain 13b2eec0c3 voice-agent U2 hardening: judge required fixes — live-relay kill switch, chat-leg metering, unclaimed-grant reap, tier-2 tps plumbing, sessionId-bound tokens 2026-08-24 23:28:17 -06:00
BigBodyCobain e8f293ee19 voice-agent U2: session plumbing — realtime WS relay, one-time session tokens, REST surface + tool mounts, topology guards 2026-08-24 22:43:20 -06:00
BigBodyCobain 8fa8b13c6a voice-agent U3: tool registry & gates (ACT core) 2026-08-24 22:05:17 -06:00
BigBodyCobain cd6395f5ee fix: complete intelligence layer refreshes and UAP fallback 2026-08-23 20:14:07 -06:00
Shadowbroker 4a39c56949 fix(security): require explicit agent shell websocket credentials 2026-08-17 01:05:44 -06:00
Sylvester Kaczmarek 74aab5611e fix(agent): reject invalid telemetry injection payloads 2026-08-16 10:00:28 +00:00
BigBodyCobainandCursor dc0f69a0b9 Expose AISHub as an optional ships-layer backup when AISStream is silent.
Wire AISHUB_USERNAME into API Keys and onboarding, and surface backup status on the AIS outage banner so operators can keep vessel coverage without changing the AISStream proxy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-09 18:56:30 -06:00
Ethan Morchy 3ef45508b2 Let agents temporarily override native map layer visibility. 2026-08-08 02:04:20 -07:00
BigBodyCobainandCursor 69e8ebbab2 fix: stop truncating live telemetry payloads
Remove sampling, viewport bbox truncation, and buffer ceilings that were cherry-picking ships, flights, and related layers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 20:31:50 -06:00