ticket #71 attempt 2

This commit is contained in:
Typosaurus 2026-07-19 19:51:18 +00:00
parent 4f9796a162
commit bd0919bdce
2 changed files with 7 additions and 0 deletions

View File

@ -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:

View File

@ -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=<default> 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=<default> allow=0 deny=0 ask=0