Skip to content

Preserve internal dispatch timings and add AI harness guidance#3

Merged
anth-volk merged 2 commits into
mainfrom
codex/internal-dispatch-timings
Jun 23, 2026
Merged

Preserve internal dispatch timings and add AI harness guidance#3
anth-volk merged 2 commits into
mainfrom
codex/internal-dispatch-timings

Conversation

@anth-volk

@anth-volk anth-volk commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #2

Summary

  • Preserve segment timings from internal Flask dispatch requests on the parent worker operation.
  • Keep non-internal nested request timings isolated so unrelated request contexts do not leak into parent operations.
  • Add regression tests for both timing propagation paths.
  • Add model-agnostic AI harness adapters for agents, Claude, and Copilot.
  • Add canonical engineering skills under docs/engineering/skills/, including the PR rule that AI models must run the formatter and linter before the final commit.
  • Add Towncrier changelog fragments for the runtime fix and AI harness addition.

Root Cause

Internal dispatch requests created their own request-level timing dictionary. Those request logs are intentionally suppressed, so endpoint segment timings could disappear from the visible modal_worker_dispatch or cloud_run_worker_dispatch operation log.

Validation

  • uv run --extra dev ruff format .
  • uv run --extra dev ruff check .
  • uv run --extra dev --extra all coverage run -m pytest
  • uv run --extra dev --extra all coverage report

@anth-volk anth-volk changed the title [codex] Preserve internal dispatch timings Preserve internal dispatch timings and add AI harness guidance Jun 23, 2026
@anth-volk anth-volk marked this pull request as ready for review June 23, 2026 14:04
@anth-volk anth-volk merged commit 658de5a into main Jun 23, 2026
3 checks passed
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.

Preserve internal dispatch segment timings on worker operation logs

1 participant