Skip to content

[codex] Emit loop decision envelopes#34

Merged
Svaag merged 1 commit into
mainfrom
codex/loop-decision-envelope-runtime
Jul 2, 2026
Merged

[codex] Emit loop decision envelopes#34
Svaag merged 1 commit into
mainfrom
codex/loop-decision-envelope-runtime

Conversation

@Svaag

@Svaag Svaag commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • append a validated LoopDecisionEnvelope trace event to Engineering Loop trace emission
  • preserve existing file/collector trace delivery while carrying change, PR, workflow, governance, and proposed action metadata in the envelope
  • extend trace tests for file and collector delivery

Validation

  • uvx ruff check src tests
  • uv run --group dev mypy --strict src
  • uv run --group dev python -m pytest -q

@Svaag Svaag marked this pull request as ready for review July 2, 2026 22:56
@Svaag Svaag merged commit 1c3b6cc into main Jul 2, 2026
4 checks passed
@Svaag Svaag deleted the codex/loop-decision-envelope-runtime branch July 2, 2026 22:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c52bad9ca2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".



def _context_refs(state: Mapping[str, Any]) -> list[dict[str, str]]:
context = state.get("knowledge_context") or state.get("context_pack")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Read the actual knowledge context pack

When knowledge context is enabled, the loop stores the pack under state["knowledge_context_pack"] (see build_feature_state) and GraphState only defines that key, but this helper looks for knowledge_context/context_pack instead. In those runs the new envelope's retrieved_context and context-derived evidence_refs are always empty, dropping the source metadata the decision envelope is meant to carry for replay/audit; read knowledge_context_pack here and handle its included_refs shape.

Useful? React with 👍 / 👎.

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