Skip to content

fix: make /office-hours verify design-doc premises against the codebase - #1738

Closed
mvanhorn wants to merge 1 commit into
garrytan:mainfrom
mvanhorn:fix/1644-office-hours-verify-premises-against-codebase
Closed

mvanhorn wants to merge 1 commit into
garrytan:mainfrom
mvanhorn:fix/1644-office-hours-verify-premises-against-codebase

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Summary

Updates /office-hours so it verifies design-doc premises against the codebase before producing review output. Previously the skill could green-light a doc that named files/functions that did not actually exist.

Why this matters

Issue #1644 reported three concrete cases where /office-hours signed off on design docs whose premises were stale: (1) a doc referencing a function that had been renamed two releases ago, (2) a doc relying on a flag that had been removed, (3) a doc claiming an architectural property that was no longer true. Each case wasted reviewer time because the LLM happily reasoned about premises that were already wrong.

Changes

  • office-hours/SKILL.md.tmpl adds a Premise Verification step that grep/codesearch checks every named file path, function, class, flag, and module against the active workspace
  • New verification output is appended to the review report under a ## Premise Verification section
  • Three gaps documented: file existence, symbol existence, and feature-flag presence

Testing

Added test/office-hours-premise-verification.test.ts. 3/3 pass.

Fixes #1644

@mvanhorn
mvanhorn force-pushed the fix/1644-office-hours-verify-premises-against-codebase branch from 45d11ca to 49d9ab2 Compare May 27, 2026 14:05
@time-attack

Copy link
Copy Markdown
Contributor

@16francej — recommend closing this PR because #973 supersedes this older implementation and owns the current office-hours work. It conflicts with the newer office-hours source layout, and its tests do not establish grounded codebase reads. Please credit its Codebase Surface idea and carry the grounded-read requirements into #973.

@mvanhorn

Copy link
Copy Markdown
Contributor Author

Closing — superseded by #973. Thanks @time-attack!

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.

/office-hours: design doc passes review without verifying premises against code (incident + 3 fixes)

2 participants