Run journalCompatibility state
Run lifecycle, results and immutable manifest remain backward readable.
Developer notes
The implementation keeps the pipeline state machine stable while adding durable ledgers, explicit operator controls and deterministic static output.
Runtime boundaries
/Public marketingNo operator bootstrap→/loginAuthenticationSame-origin redirects only→/dashboard/Operator UIFlask data + React/shadcnSource of truth
Run journalRun lifecycle, results and immutable manifest remain backward readable.
usage-ledger.sqlite3Request-level token, stage, model and event-time rate evidence.
operations.sqlite3Run events, articles, maintenance operations and publish attempts.
JSON repositoriesClusters, authors and duplicate-index metadata use revision-aware mutations.
Code ownership
app/pipeline.pyKeyword execution order, Ghost handoff, local commit and batch linker entry point.
web/routes/Authentication, validation, CSRF-protected mutations and sanitized bootstrap payloads.
web/runner.pyImmutable manifests, background execution, cooperative cancellation and recovery.
frontend/src/React/shadcn pages consume server truth; they do not invent pipeline state.
core/usage.pyEvent-time catalog pricing, attribution scopes and ledger summaries.
services/ghost_client.pySingle-shot writes, safe reads and uncertain-publish reconciliation support.
services/static_site_builder.pyPublished-post snapshot, Node renderer invocation and immutable artifact evidence.
tools/build_railway_marketing.mjsGenerates repository-owned Railway marketing and product documentation shells.
Extension rules
Local verification
python -m pytest
npm run lint
npm run typecheck
npm run build
npm test --workspace=static_generator
npm run build:railway-marketing
npm run test:e2e --workspace=frontendCI additionally verifies the Python lock, dependency integrity, compilation, committed-secret policy, generated-asset cleanliness and the production entry point.
Release gates
Compilation, locked dependencies, audits, secret scanning, renderer security, frontend reproducibility, accessibility, branch coverage and the Railway deployment SHA must pass before staging evidence is accepted.