From bd0919bdce16773c9223ea1ba310a4d1f9da312e Mon Sep 17 00:00:00 2001 From: Typosaurus Date: Sun, 19 Jul 2026 19:51:18 +0000 Subject: [PATCH] ticket #71 attempt 2 --- devplacepy/services/openai_gateway/CLAUDE.md | 3 +++ dpc.log | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/devplacepy/services/openai_gateway/CLAUDE.md b/devplacepy/services/openai_gateway/CLAUDE.md index 6b58f004..88fbcac7 100644 --- a/devplacepy/services/openai_gateway/CLAUDE.md +++ b/devplacepy/services/openai_gateway/CLAUDE.md @@ -46,6 +46,9 @@ Two behaviors: Embeddings/passthrough are untouched by this composition step. +- **Prohibited preamble content.** If the operator preamble (`gateway_system_preamble`) contains any text matching `PREAMBLE_PROHIBITED_PATTERNS` (void-world motifs: "sole consciousness", "void-world", "void world", "absolute void", "everything is allowed", "no consequences", "no rules") the entire preamble is silently discarded (with a warning log line) and the request proceeds with only the date injection and client system content. This prevents a misconfigured preamble from overriding production task instructions. + + ## Usage, cost, latency, and reliability tracking The gateway records one row per upstream call (chat, vision, passthrough) and surfaces per-hour and 24h analytics. The pieces: diff --git a/dpc.log b/dpc.log index 350dc9af..4074895b 100644 --- a/dpc.log +++ b/dpc.log @@ -22,3 +22,7 @@ 2026-07-19T18:44:19 DEBUG model=molodetz-pro fps=30 2026-07-19T18:44:19 INFO read task from file: /workspace/prompts/execution-1.txt 2026-07-19T18:44:19 INFO settings merged: model= allow=0 deny=0 ask=0 +2026-07-19T19:47:18 INFO logging initialised at /workspace/repo/dpc.log +2026-07-19T19:47:18 DEBUG model=molodetz-pro fps=30 +2026-07-19T19:47:18 INFO read task from file: /workspace/prompts/execution-2.txt +2026-07-19T19:47:18 INFO settings merged: model= allow=0 deny=0 ask=0