Skip to content

feat: persistent ops trail + upgrade guidance for railway postgres - #1055

Merged
paulocsanz merged 1 commit into
masterfrom
pcs/pg-mgmt-06b-ops-trail
Aug 8, 2026
Merged

feat: persistent ops trail + upgrade guidance for railway postgres#1055
paulocsanz merged 1 commit into
masterfrom
pcs/pg-mgmt-06b-ops-trail

Conversation

@paulocsanz

@paulocsanz paulocsanz commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Part 7/9 of the railway postgres pitr/ha/pgbouncer stack (split out of #1032 for reviewability — see that PR for the full context, live-prod e2e evidence, and the test-postgres-cli harness). Each PR is based on the previous one and is independently green (cargo test/clippy/fmt).

Every railway postgres invocation now appends to a local audit trail
(~/.railway/postgres-ops.jsonl, 90-day retention, RAILWAY_POSTGRES_OPS_LOG
override) with the resolved project/environment/service, argv, and outcome —
readable via the new railway postgres history. PITR/HA/PgBouncer compose,
and reconstructing WHICH sequence of operations produced a misconfigured
Postgres needs more than server-side command counters.

Also translates schema-mismatch and "update your CLI" errors from the
backend into railway upgrade guidance instead of a raw GraphQL dump —
these commands drive API operations the backend reserves the right to
evolve.

Part 7/9 of the railway postgres pitr/ha/pgbouncer stack.

@paulocsanz paulocsanz added the release/skip Author no release label Aug 7, 2026
Base automatically changed from pcs/pg-mgmt-06-pitr to master August 8, 2026 00:18
Every railway postgres invocation now appends to a local audit trail
(~/.railway/postgres-ops.jsonl, 90-day retention, RAILWAY_POSTGRES_OPS_LOG
override) with the resolved project/environment/service, argv, and outcome
-- readable via the new `railway postgres history`. PITR/HA/PgBouncer
compose, and reconstructing WHICH sequence of operations produced a
misconfigured Postgres needs more than server-side command counters.

Also translates schema-mismatch and "update your CLI" errors from the
backend into `railway upgrade` guidance instead of a raw GraphQL dump --
these commands drive API operations the backend reserves the right to
evolve.

Part 7/9 of the railway postgres pitr/ha/pgbouncer stack.
@paulocsanz
paulocsanz force-pushed the pcs/pg-mgmt-06b-ops-trail branch from d51861a to 0f52297 Compare August 8, 2026 00:20
@paulocsanz
paulocsanz merged commit 955c584 into master Aug 8, 2026
12 of 13 checks passed
@paulocsanz
paulocsanz deleted the pcs/pg-mgmt-06b-ops-trail branch August 8, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/skip Author no release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant