Skip to content

fix: enforce chat ownership for question requests - #1539

Merged
ulleo merged 1 commit into
mainfrom
codex/chat-question-ownership
Dec 3, 2026
Merged

ulleo merged 1 commit into
mainfrom
codex/chat-question-ownership

Conversation

@ulleo

@ulleo ulleo commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Apply the existing chat ownership rule to question requests in both Chat and MCP.

Chat question โ”€โ”
              โ”œโ”€ question_answer_inner
MCP question โ”€โ”€โ”˜   โ”œโ”€ check chat ownership and workspace
                  โ””โ”€ process question or quick command

Evidence

  • Before. Eight authorization assertions failed against the unchanged baseline (63a9dd0d). Test doubles stopped processing at command parsing.
  • After. All 14 authorization tests passed using FastAPI routes and SQLite. They cover rejection before command parsing and record writes, owner questions and regeneration, and MCP access to the owner's chat in another eligible workspace.
  • The existing workspace model policy and embedded authentication suites passed all 75 tests. Four opt-in PostgreSQL/MCP integration cases were skipped. The new tests use injected identity and model/task doubles.

Merge Danger

Door Two-way. The change adds no schema migration.

Blast radius Chat and MCP question requests. Both apply the same chat ownership check before processing, while session owners continue through the existing flow.

@ulleo
ulleo merged commit 389c9d6 into main Dec 3, 2026
3 checks passed
@ulleo
ulleo deleted the codex/chat-question-ownership branch December 3, 2026 08:10
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