Commit Graph
5 Commits
Author SHA1 Message Date
adminandClaude Sonnet 5 2ddb21e568 feat(contract): add routing + normalization operationIds per ADR-027
CI (SIAX Cloud) / integration (push) Skipped
masterplan-lock / check (push) Successful in 9s
CI (SIAX Cloud) / security (push) Successful in 21s
masterplan-lock / check (pull_request) Successful in 8s
Security Scan (SIAX Cloud) / security (push) Successful in 29s
CI (SIAX Cloud) / security (pull_request) Successful in 18s
CI (SIAX Cloud) / quality (push) Successful in 47s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 39s
CI (SIAX Cloud) / quality (pull_request) Successful in 45s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m4s
0pt.structure.* registered 5 of ADR-027's 7 areas yesterday (cl0ud
PR#270, grounded at this repo's main@ec48774): entity resolution,
lineage, quality (x4) and parsing-orchestration. routing and
normalization were left out because this repo's own contract had no
operationId/path for either yet, even though both have real,
INTEGRATION_TESTED code in sax3l/0pt-motor
(motor/parsing/routing.py, motor/normalization/{amounts,identifiers}.py)
that is simply not deployed behind an HTTP route.

Adds the two target-status operationIds, following the exact pattern
of 0pt.resolve_entities / 0pt.get_provenance already in this file
(TARGET summary prefix, x-siax-status: target, security: [], dedicated
request/response schemas):

- POST /v1/0pt/parsing/route -> 0pt.route_parsing
  (BTI-DOC-02/03/04/05 parser-routing / selective-OCR decision)
- POST /v1/0pt/normalize -> 0pt.normalize_value
  (BTI-NLP-02/03 amount/percent/date normalization + identifier
  checksum validation, one operationId per ADR-027's "normalization"
  being a single area)

Contract-only change; no route handler exists yet (correctly reflected
by x-siax-status: target). Registering these in cl0ud's capability
registry is deliberately deferred to a follow-up PR in that repo.

projections is NOT touched here -- no code exists anywhere for it, so
it stays unregistered rather than becoming an empty stub.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-26 13:17:58 +02:00
admin 8f47fd3ad3 fix(contract): deklarera internal-er + quality bridge-run med internalToken-scheme — parity-gatens E_PATH_NOT_DECLARED/E_AUTH_SCHEME_UNDECLARED
CI (SIAX Cloud) / security (push) Successful in 13s
Security Scan (SIAX Cloud) / security (push) Successful in 15s
CI (SIAX Cloud) / security (pull_request) Successful in 15s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 14s
CI (SIAX Cloud) / integration (pull_request) Successful in 33s
CI (SIAX Cloud) / quality (pull_request) Successful in 35s
CI (SIAX Cloud) / quality (push) Successful in 1m9s
CI (SIAX Cloud) / integration (push) Successful in 1m38s
services/api/workers/{resolve,quality_bridge}.py anropar båda rutterna med
X-Internal-Token sedan langt tillbaka; rutterna (app/api/0pt/internal/er/
candidates + app/api/0pt/quality/bridge-run) har alltid existerat men
kontraktet shipade dem aldrig. Wire ar sanning — kontraktet matchar nu:
- POST /api/0pt/internal/er/candidates (full request/response-schema ur
  src/er/request-validation.ts + entity-resolution-service.ts)
- POST /api/0pt/quality/bridge-run (flyttad fran ops-losen deklaration till
  internal-gruppen med internalToken-security)
- components.securitySchemes.internalToken (X-Internal-Token header,
  verifyInternalServiceToken)
2026-09-09 01:24:53 +02:00
admin 2d34cb1629 feat(P-001, P-002): 0pt→N0D quality delegation + internal OpenAPI
CI (SIAX Cloud) / security (pull_request) Successful in 16s
CI (SIAX Cloud) / security (push) Successful in 16s
Security Scan (SIAX Cloud) / security (push) Successful in 17s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 23s
CI (SIAX Cloud) / integration (push) Failing after 27s
CI (SIAX Cloud) / integration (pull_request) Failing after 31s
CI (SIAX Cloud) / quality (pull_request) Successful in 42s
CI (SIAX Cloud) / quality (push) Successful in 42s
2026-09-08 22:38:47 +02:00
admin a88ad04867 fix(health): report real per-dependency status instead of hardcoded ok:true
CI (SIAX Cloud) / security (push) Successful in 21s
Security Scan (SIAX Cloud) / security (push) Successful in 21s
CI (SIAX Cloud) / quality (push) Successful in 41s
CI (SIAX Cloud) / security (pull_request) Successful in 22s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 21s
CI (SIAX Cloud) / quality (pull_request) Successful in 41s
BACKLOG P0-3: /api/health only ever checked *presence* of DATABASE_URL/
REDIS_URL and always returned ok:true regardless of whether anything was
reachable -- ARCHITECTURE.md's own words, "an uptime monitor watching HTTP
200 would show green for a dying instance".

lib/health-checks.ts adds real dependency probes:
  - db: a live `select 1` round trip (not just DATABASE_URL presence)
  - engine: a real HTTP call to the FastAPI engine's own GET /health
  - stripe: Stripe's documented lightweight balance.retrieve() liveness call
  - queue: honestly reports "not_integrated" when REDIS_URL is set but
    unused -- no Redis client is wired anywhere in this repo, so reporting
    "ok" would fabricate a check that doesn't exist

/api/health stays a liveness check (always 200 while the process can
respond; the body's `ok` field is the honest signal). New GET /api/ready
fails closed with 503 when the load-bearing dependency (db) isn't both
configured and reachable -- the "no /ready route" gap.

contracts/openapi.yaml, docs/architecture/ARCHITECTURE.md, and docs/slo.md
updated to match. 17 new unit tests (dependency-injected fakes, no real
network/DB) + 5 route-level tests.
2026-08-11 13:49:23 +02:00
admin 9888c0078c feat(contract): OpenAPI 3.1 SSOT (orders/estimates/enrich/resolve/provenance) + AR-4 fixes (drop @vercel/analytics + next/font/google -> self-hosted fontsource) + repo hygiene
Deploy to Coolify / deploy (push) Failing after 2s
CI (SIAX Cloud) / quality (push) Successful in 40s
CI (SIAX Cloud) / security (push) Successful in 19s
2026-08-10 04:10:30 +02:00