Skip to content

fix: surface pending child reviews on X draft runs - #401

Open
hamitarsln wants to merge 1 commit into
tin-computer:mainfrom
hamitarsln:codex/x-draft-review-handoff
Open

hamitarsln wants to merge 1 commit into
tin-computer:mainfrom
hamitarsln:codex/x-draft-review-handoff

Conversation

@hamitarsln

Copy link
Copy Markdown
Contributor

What and why

An X draft waiting for its style guide review still said working in MCP, with no result link. The agent had to find and read the child run to learn where the review was.

Return the child's review links from the shared HTTP/MCP facts. MCP shows waiting for you and links to that guide. The parent still runs while it waits; approval belongs to the child. Stopped parents show no pending review link.

Verification

  • Reproduced twice with local HTTP/MCP and a real test database.
  • 175 local tests passed, no skips: X draft/style, worker order, public MCP, onboarding and errors.
  • Checked the public MCP response too. Parent approval actions stay disabled.
  • Ruff, import boundaries and diff checks passed.

Notes

No guide was approved and no post was sent. This fixes the review handoff, not a model/extract failure.

@hamitarsln
hamitarsln requested a review from a team as a code owner October 12, 2026 09:13
Copilot AI balanced review requested due to automatic review settings October 12, 2026 09:13

Copilot AI 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.

🟢 Approval recommended

The focused implementation matches the documented behavior and includes appropriate regression coverage.

0 open findings

What changed in this PR

Surfaces active X style-guide child reviews through parent run facts for HTTP and MCP.

Changes:

  • Adds child review links and MCP “waiting for you” status.
  • Suppresses links after the parent stops.
  • Adds regression coverage and documentation.
File Description
src/​tin_lite/​x_draft.py Projects pending child review links.
src/​tin_lite/​mcp_server.py Exposes links and waiting status.
src/​tin_lite/​api.py Supplies settings to shared facts.
src/​tin_lite/​procedure_control.py Updates the facts call signature.
tests/​test_x_draft.py Tests active and stopped parents.
docs/​x-workflow.md Documents review handoff behavior.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants