caelum0x b011dce423 test+config: connector test suite + service config/docs (manifest files)
Connectors: 22 real pytest modules (186 pass / 7 optional-dep skips) exercising
every connector's dependency-free surface + missing-driver degradation; SSRF
guard verified; errors_connector.py as a thin re-export (no forked taxonomy).
Services: config/{dev,staging,prod,test,limits,logging}.yaml + docs/*.md for
api/gateway/scheduler/worker, mapped to the real config structs; gateway/scheduler
Dockerfiles + scheduler .env/README. All YAML validated.

Closes 66 manifest files (gap 175->109). No source behavior changed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 19:23:14 +03:00

39 lines
1.7 KiB
YAML

# Observability profile for lawsynth-api.
#
# The application links no logging framework. Log routing is owned by the WSGI
# server that hosts it (the Dockerfile runs gunicorn with access and error logs
# on stdout/stderr); the stdlib development server prints one startup line to
# stderr (main.py). The domain core keeps privacy-preserving in-process counters
# (lawsynth_server/telemetry.py) gated by telemetry_enabled. This file documents
# what an operator's log/metrics pipeline should collect; the process does not
# parse it.
# Correlation: every response carries X-Request-ID (generated per request in
# app.py / middleware.py) and every error body repeats it under
# error.request_id. Log lines and traces should key on this id.
correlation:
request_id_header: X-Request-ID
# Where the hosting WSGI server should send its streams.
streams:
access: stdout # gunicorn --access-logfile -
error: stderr # gunicorn --error-logfile -
format: text # not structured JSON; no framework linked
# In-process domain counters (Telemetry.snapshot), enabled by LAWSYNTH_TELEMETRY.
# Keyed as "<operation>:<status>"; counts only, never payload or dataset content.
metrics:
enabled_via: LAWSYNTH_TELEMETRY # "true"/"false"
snapshot_shape: "<operation>:<status_code> -> count"
# Redaction is structural: bearer tokens, Idempotency-Key values, request/response
# JSON bodies, artifact bytes, and the token grant map are never logged. The
# authenticated principal subject is derived as "token:<first 8 chars>" and even
# that is not emitted by the core. Keep it that way in any adapter.
redaction:
never_log:
- authorization_header
- api_tokens
- request_body
- artifact_bytes