Commit Graph
7 Commits
Author SHA1 Message Date
Ubuntu 510d85bde5 netpol: allow edge 4647 from node2 kilo gateway IP
Cross-cluster mesh traffic arrives SNATed through the node2 kilo
gateway (10.4.2.1), not with the original node2 pod CIDR source —
confirmed via tcpdump on node4 kilo0. /32 on the gateway preserves the
outpost-only restriction while letting the Authentik proxy outpost
through.
2026-10-23 12:43:36 +00:00
Ubuntu 7503bdaa10 dockerfile: single stage, direct CDN download with optional HTTPS_PROXY build-arg
build-and-push / build (push) Successful in 16m42s
Replace the local agent-cache COPY trick with a direct pinned download
from downloads.cursor.com (same package layout the official installer
uses). Optional HTTPS_PROXY build-arg covers egress-constrained build
hosts (socks5h:// works — curl honors it); CI runners with direct
egress omit it. Drop the now-unneeded agent-stage multi-stage plumbing.
2026-10-23 10:31:49 +00:00
Ubuntu c0d758249c security: split internal/edge access, harden sandbox, fix follow-up matching
- server: two listeners — :4646 internal (PROXY_INTERNAL_TOKEN only,
  X-Authentik-Username no longer trusted) and :4647 edge (Authentik
  outpost only; requires X-Authentik-Username; NetworkPolicy-restricted)
- session-manager: strip PROXY_INTERNAL_TOKEN & friends from the ACP
  child env (allowlist + proxy vars), dedicated agent HOME, resolved
  tool_call tracking so findSessionForFollowUp ignores already-answered
  results (no more cross-turn log spam / stale matches)
- ask_question auto-answer picks the SAFE option (deny/reject/last),
  never options[0] — root cause of the allow-all config drift
- bootstrap: force-rewrite deny-all cli-config on every boot into BOTH
  proxy and agent HOME (PVC drift self-heals), strip agent-authored hooks
- cli-config: deny all 22 built-in tools (Shell/Read/Write/Grep/Glob/
  WebFetch/WebSearch/Task/...), allow Mcp(*) only
- deploy: edge Service + ServiceExport, NetworkPolicy (4646 open+token,
  4647 only from node2 pod CIDR), readOnlyRootFilesystem, no SA token,
  agent-home + tmp emptyDirs
- Dockerfile: pin cursor-agent 2026.10.22-27dcf5f from build cache (deny
  enforcement verified), non-root, dedicated agent home
- e2e: auth-surface matrix + built-in Read leak check + bridge egress

Closes infra-yip
2026-10-23 10:11:39 +00:00
Ubuntu bc0c9680f5 chore(deploy): raise ACP_REQUEST_TIMEOUT_MS to 1500000
Vision-heavy turns (5-image TTN extraction with structured submit) run
10+ minutes end-to-end; 300s ACP request timeout killed them mid-turn.
Matches the turn-deadline fix (TURN_DEADLINE_MS default 900s + margin).
2026-09-27 13:45:27 +00:00
Ubuntu 15fa287e1b fix(session): turn-deadline TTL separate from idle TTL
build-and-push / build (push) Successful in 3m55s
Long thinking-heavy turns (multi-image vision extraction) legitimately
run >120s without emitting chunks; the idle TTL killed cursor-agent
mid-turn, surfacing to HTTP clients as an empty assistant turn.

- TURN_DEADLINE_MS (default 900s) applies while a prompt is in flight;
  SESSION_TTL_MS (idle, 120s) applies between turns
- _touchTimer() re-arms on every session/update (chunks, thoughts)
- _finishTurn clears _promptInFlight and re-arms the idle TTL

Verified with the real 11-photo TTN replay that previously died with
'LLM stream returned empty assistant turn' after mid-turn TTL kills.
2026-09-27 13:43:58 +00:00
Ubuntu b467998ba4 feat(api): enforce OpenAI tool_choice contract (required/named/none)
build-and-push / build (push) Successful in 4m59s
- normalizeToolChoice maps OpenAI tool_choice values to internal shapes
- required/named: prepend a mandatory-tool directive block; buffer text
  deltas and only flush when a tool call actually arrives; on plain-text
  turn, retry in-process with a nudge block (max 2 retries) instead of
  emitting the violating text (streaming + non-streaming paths)
- none: prepend a no-tools directive
- unit tests for all new mapping/directive helpers (32 passing)

Verified live against cursor-agent ACP with model=auto: image+required
yields clean tool_calls chunks with no text pollution; follow-up turns
resolve parked MCP tool calls and retry on invalid observations.
2026-09-27 12:02:40 +00:00
Ubuntu 57ea555684 fix(flux): ImagePolicy numerical order asc for run_number tags
Was stuck on 1-* while 5-* existed in DCR; align with onboarding howto.
2026-09-24 08:19:09 +00:00