Skip to content

[codex] enforce Console activity logging#5

Merged
ape-rture merged 1 commit into
mainfrom
codex/console-activity-log-policy
Jun 17, 2026
Merged

[codex] enforce Console activity logging#5
ape-rture merged 1 commit into
mainfrom
codex/console-activity-log-policy

Conversation

@ape-rture

@ape-rture ape-rture commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add --require-console-log and INDEXING_CO_REQUIRE_CONSOLE_LOG for activity-producing CLI commands
  • preflight strict mode before mutations when no Console session is active
  • fail strict mode when neither the supplemental activity write nor the server-side Console rail event is visible
  • accept strict mode when the API/server has already produced the matching rail event, avoiding false failures and duplicate lifecycle noise
  • mark existing domain-event commands as activity-producing so the rail stays concise

Verification

  • npm test
  • npm run lint
  • git diff --check
  • GitHub Actions CI passed for Node 18, 20, and 22

Live smoke

Fresh naive agent cloned the pushed branch at 9c995fb and built it from scratch.

Prod Console:

  • session: 019ed51c-9240-7aa2-9d40-9466f794d401
  • filter: cor_1858_strict_prod_v2_20260617164007
  • strict create/add/remove all exited 0 with empty stderr
  • agent doctor connected true and found 3 matching rail events
  • browser rail showed Created filter + two Updated filter cards, 16 events total

Staging Console:

  • session: 019e8efe-7962-7f6c-a7d5-71e458028ed8
  • filter: cor_1858_strict_staging_v2_20260617164033
  • used repo-documented/default API base https://app.indexing.co/dw because no staging API env was configured
  • strict create/add/remove all exited 0 with empty stderr
  • agent doctor connected true and found 3 matching rail events
  • browser rail showed Created filter + two Updated filter cards, 6 events total

No live block tests, deploys, or backfills were run.

@ape-rture ape-rture force-pushed the codex/console-activity-log-policy branch from 26aa675 to 9c995fb Compare June 17, 2026 14:38
@ape-rture ape-rture marked this pull request as ready for review June 17, 2026 14:42
@ape-rture ape-rture merged commit c3f8bad into main Jun 17, 2026
6 checks passed
@ape-rture ape-rture deleted the codex/console-activity-log-policy branch June 17, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant