Skip to content

feat: record configured rollout declarations on headless sessions - #5260

Merged
Trecek merged 18 commits into
developfrom
impl-issue-4653-rollout-marker-20261010-191233
Oct 11, 2026
Merged

Trecek merged 18 commits into
developfrom
impl-issue-4653-rollout-marker-20261010-191233

Conversation

@Trecek

@Trecek Trecek commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Headless session records currently lack an explicit declaration of the change being evaluated and its expected effect. Configure rollout.active to attach change_id, an intentional UTC effective_at, descriptive skills/backends/roles scope, and a required nonblank expected_effect to Claude Code and Codex headless runs.

The executor captures the declaration and logical run start after final launch admission, then preserves that snapshot through contract nudges, terminal logging, and crash recovery. Summary and index records carry the same marker; inactive runs write null and historical records without markers remain readable. Session index schema 17 and trace enrollment schema 3 carry the additions.

Documentation covers declaring predictions before cutover, retaining a stable declaration across the observation window, and streaming retained-index comparisons using exact parsed timestamps. Before/after deltas prompt investigation and do not establish causality.

Validation passed:

  • pre-commit run --all-files
  • Configured test_check gate (task test-local-gate)
  • Independent task test-check

Closes #4653.

@Trecek
Trecek enabled auto-merge October 10, 2026 23:17
@Trecek
Trecek added this pull request to the merge queue Oct 11, 2026
Merged via the queue into develop with commit 8344a03 Oct 11, 2026
13 of 15 checks passed
@Trecek
Trecek deleted the impl-issue-4653-rollout-marker-20261010-191233 branch October 11, 2026 00:39
Trecek added a commit that referenced this pull request Oct 13, 2026
)

Headless session records currently lack an explicit declaration of the
change being evaluated and its expected effect. Configure
`rollout.active` to attach `change_id`, an intentional UTC
`effective_at`, descriptive skills/backends/roles scope, and a required
nonblank `expected_effect` to Claude Code and Codex headless runs.

The executor captures the declaration and logical run start after final
launch admission, then preserves that snapshot through contract nudges,
terminal logging, and crash recovery. Summary and index records carry
the same marker; inactive runs write null and historical records without
markers remain readable. Session index schema 17 and trace enrollment
schema 3 carry the additions.

Documentation covers declaring predictions before cutover, retaining a
stable declaration across the observation window, and streaming
retained-index comparisons using exact parsed timestamps. Before/after
deltas prompt investigation and do not establish causality.

Validation passed:

- `pre-commit run --all-files`
- Configured `test_check` gate (`task test-local-gate`)
- Independent `task test-check`

Closes #4653.
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