Skip to content

Propose independent precommit review - #313

Open
vshvedov wants to merge 14 commits into
google:mainfrom
vshvedov:docs/precommit-review
Open

vshvedov wants to merge 14 commits into
google:mainfrom
vshvedov:docs/precommit-review

Conversation

@vshvedov

@vshvedov vshvedov commented Nov 5, 2026 •

Copy link
Copy Markdown

Contribution Type

Track: Feature / Architectural Change -- Stage 1: Design Doc PR

Refs #295. Scope approval and design-ready are pending. Implementation stays in draft #293 until the design merges and the issue receives pr-ready.

Summary of Key Changes

Separates the design proposal from #293, as requested in review. It defines fresh review of staged, unstaged and untracked changes, with a finding ledger and an optional bounded fix-and-recheck loop.

Adds only docs/designs/precommit_review.md and its index entry, covering goals, non-goals, host limits and validation. Adapted from my elephant-goldfish and ClaudeFlows workflows.

Specified how the reviewer excludes prior run artifacts while retaining other untracked source, and clarified host dispatch and audit limits.

Suggested label: docs.

The formal review led to a separate architecture overview and implementation plan, explicit outcome rules, and a concrete evidence and verification contract.

Updated implementation targets for the current homepage and skill reference, canonical archive packaging and Windsurf routing.

Human Accountability Affirmation

  • I am a human contributor. I have personally reviewed, understood, and can explain every line of this change in review (using AI tools to write code is welcome, but human understanding of the submitted change is required).

Verification

  • Passed: python -m pytest tests/unit: 340 passed, 2 optional native-host probes skipped, including relative-link checks.
  • Passed: git diff --check; only the proposal and design index differ from the base.
  • Not applicable: live harness tests for this documentation-only PR. Implementation validation is recorded in Add independent precommit review #293.

Formal egm-review completed all five stages on 1aa96ae. The revision addresses the main findings. Documentation checks pass, and the file plan matches #293.

Latest validation: relative-link checks (2) and git diff --check passed. Only the design proposal and its index entry differ from current main.

Added the concrete staged permission inversion hidden by a corrected working copy: the combined diff is empty and working-copy tests pass while the index retains the defect. The design identifies read-only review of the two layers as the first scope candidate; the ledger and fix loop remain proposals pending the scope decision. #312 gets the first pilot, and #293 stays draft.

Updated against main 7d1b721. Latest validation: 388 unit tests passed, two optional native-host probes skipped; Ruff 0.17.4 and git diff --check passed. Only the design proposal and its index entry differ from main.

@vshvedov vshvedov mentioned this pull request Nov 5, 2026
1 task done

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 773d313. Track 2 Stage 1 fits the template: Refs #295, the design doc and the index row. #295 has no design-ready yet, as the description says, and the Stage 1 /egm-review pass has not run. One [P2] and six [P3] items inline. I ran tests/unit at this head on Python 3.15 (336 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass.

Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/README.md Resolved

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 09f64ca. My seven 773d313 threads are addressed, including the prior-run exclusion with its lookalike guard. One [P3] and one nit inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
@vshvedov

vshvedov commented Nov 5, 2026

Copy link
Copy Markdown
Author

Thanks for the re-review, @n3wth. I pushed the two follow-ups on #313. Could you confirm whether the scope on #294 and #295 is ready for design-ready, or point me to the maintainer who handles that? The design PRs are #312 and #313.

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 2ebf0d8. Both 09f64ca threads are addressed: the inventory now lists untracked files individually, and line 170 is re-wrapped. One nit inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

Comment thread docs/designs/precommit_review.md Resolved

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 1aa96ae. The 2ebf0d8 nit is addressed; line 84 now says the repository state can move between checks. The rest of the document is unchanged since that head. No new findings.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 5cbafbe. The document is restructured since 1aa96ae into problem, architecture, an outcome table, a plan, target files and verification. My earlier threads still hold in the new structure, and the target-files table matches the 35 files and actions in #293. Four [P3] items and two nits inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
@n3wth n3wth mentioned this pull request Nov 6, 2026
1 task done

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 49ddf6d. All six 5cbafbe threads are addressed, and the target-files table still matches the 35 files in #293, which now includes skill_icons.md. One [P3] inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

Comment thread docs/designs/precommit_review.md Resolved

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 97f08ca. The 49ddf6d thread is addressed: step 1 now creates scope.md with a capture-in-progress note before any evidence is saved, and this matches evidence.md and the interrupted-run case in test_claude_precommit.py at #293 c5a1428. One [P3] and one nit inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

Comment thread docs/designs/precommit_review.md Resolved
Comment thread docs/designs/precommit_review.md Resolved
@n3wth n3wth added the docs Improvements or additions to documentation label Nov 6, 2026
@vshvedov
vshvedov requested a review from n3wth November 6, 2026 14:22

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 4d24307. Both 97f08ca threads are addressed: the outcome table now maps a failed evidence capture or write to incomplete, and the interrupted-run marker has one name at lines 111, 131 and 207. The rest of the document is unchanged since that head. No new findings.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #295 still has no design-ready, as the description says.

@vshvedov
vshvedov requested a review from a team as a code owner November 7, 2026 17:30
@briansuchy
briansuchy requested review from a team and kolla and removed request for a team, briansuchy, drensin, eewing314, quinnjim and tearseb November 11, 2026 20:04
@n3wth n3wth changed the title docs(design): propose independent precommit review Propose independent precommit review Nov 12, 2026
@vshvedov
vshvedov requested a review from n3wth November 12, 2026 14:51

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 9625093.

One update against current main: the target-files table lists site/src/components/Skills.astro, which no longer exists. Please point it at the current skill listing in site/src/components/Home.astro. This prevents the implementation plan from naming a deleted write target.

@n3wth

n3wth commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

@vshvedov, I’d give #312 the first pilot. For this design, could you show a case where a normal diff review misses something because staged and working-copy changes differ? That would tell us whether a review of those two layers is enough before adding a ledger or fix loop.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants