Skip to content

Run omitted checks and fix Git and docs validation gaps - #910

Closed
Gajesh2007 wants to merge 32 commits into
masterfrom
refactor/repository-tooling
Closed

Gajesh2007 wants to merge 32 commits into
masterfrom
refactor/repository-tooling

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

The aggregate checks omitted admin, landing and most Python tooling tests, console PR CI omitted Vitest, and Git hooks could inspect the wrong bytes or skip pushed commits. This change includes those suites in shared Make targets and repairs the hook and docs-validation paths.

  • make tooling-test prepares pinned NumPy in .venv/tooling and runs script packages, offline numerical references, owned-process helpers and release/signing fixtures. CI runs the same CPU target. Requirements or mise.toml changes clear and rebuild the environment with the activated toolchain; unchanged inputs reuse it. Admin lint/types/tests/build, landing tests and console Vitest join their aggregate and CI paths.
  • Pre-push considers every pushed ref, handles new branches through remote tracking refs and fails if a comparison cannot run. Direct path-list classification prevents SIGPIPE from skipping large pushes. Pre-commit checks staged Go blobs in both coordinator/ and e2e/, including partially staged files and paths with spaces; the formatting table describes that behavior.
  • Docs existence and navigation checks share one parser process and one parse per file. A shared destination reader handles balanced parentheses, angle wrappers and escaped punctuation. Bare inline destinations follow the renderer's 32-level limit; reference destinations and literal parentheses keep their existing behavior. Reference definitions are recognized only at paragraph starts, including within list/quote containers, and consume their complete optional titles. The same ordered list/quote projection governs literal block classification and continuation, including mixed nested containers. Inline scanning receives the projected paragraph while preserving original suffix bytes, so wrapped quote links and tabs in targets retain their meaning. Declaration markers follow GitHub GFM's distinct block/inline uppercase rules. Code, HTML literals, image alt text and link titles cannot invent navigation. Valid nested labels, soft wraps, reference precedence and clickable images retain their tested behavior.
  • Orphan detection follows navigation from the five existing documentation entry files. A self-link or disconnected cycle no longer hides an unreachable page; nested indexes must also be reachable. Private pages retain their exemption, and explicit-file checks skip orphan detection. Parser/traversal failures fail the check, and temporary output is cleaned up.
  • The Linux owned-grandchild fixture adopts and reaps its recorded orphan inside an isolated subreaper owner. Failure cleanup signals the known process group before stopping the owner. Production lifecycle code is unchanged. Numerical fixtures retain an independent FP64 attention formula and bound the actual rounded-reference report by operator tolerance plus one output-dtype ULP.
flowchart TD
  subgraph Before
    C[Aggregate targets and CI] --> O[Several existing suites omitted]
    G[Partial staging or large multi-ref push] --> S[Wrong bytes or skipped checks]
    E[Requirements or Python pin change] --> V[Stale environment]
    D[Docs links and code examples] --> R[Repeated processes and incorrect navigation]
    I[Unreachable pages link to each other] --> A[Orphan check passes]
  end
  subgraph After
    C2[Shared targets and CI] --> O2[Web and CPU tooling suites included]
    G2[Same Git operations] --> S2[Exact staged blobs and complete ref comparisons]
    E2[Changed bootstrap input] --> V2[Clear and rebuild; reuse unchanged inputs]
    D2[Docs files] --> R2[One parse pass handles destinations, definitions and literals]
    I2[Documentation entry files] --> A2[Traverse actual navigation and reject disconnected pages]
  end
Loading

Validation at implementing source 36f9ab80a, published head a2de52685:

  • macOS, Python 3.12.13 / NumPy 2.4.2: make tooling-test passes 379 tests, zero failures or skips, including 76 docs, 7 bootstrap, 7 Git-hook and 34 testbed tests. All 68 docs methods from the preceding published head are AST-identical. Earlier reference-fixture corrections add the paragraph separators required by rendering while retaining their assertions. make docs-check passes 278 files. Frozen source hashes stayed unchanged during the gate; source/docs commits are signed and verified.
  • Wrapped-container fixtures reproduce 35 failures on 042f2993a, then all 51 cases pass and agree with independent Markdown rendering. A temporary body.append(content) mutant fails both real tab-containing asset-path checks; the final code preserves the original suffix bytes. Separate block-boundary and inline-token controls prevent joining distinct paragraphs or promoting image alt text, code, comments or titles.
  • Declaration fixtures reproduce 16 failures on 042f2993a, then all 38 cases agree with GitHub's actual GFM rendering API. Block openers require an uppercase initial letter; inline names require uppercase letters followed by GFM whitespace. Tests retain valid declarations, terminators and following navigation. These fixtures run offline. Independent peers reviewed both changed regions and every added method.
  • Docs checks cover complete destination/reference targets, nested labels, link/image precedence, actual paragraph-leading definitions and continuation titles, code/HTML exclusion, depth boundaries, and mixed container exits. Graph fixtures reject self-links, disconnected cycles and unreachable nested indexes while preserving private and explicit-file exemptions. A 22-page fixture verifies one parser invocation; starts fell from 562 to 1 on the earlier 278-page checkout. All retained methods execute in the current full gate; historical renderer-control sets overlap.
  • Bootstrap proof includes failing Python-pin refresh, unchanged-input reuse, retry, custom environments, and real offline package removal from both import lookup and distribution metadata. A real Git index with 4,098 paths (>512 KiB) previously skipped checks in four new/update-ref and success/failure combinations; the fixed hook invokes every required tool and propagates failure. A corrupt rounded-report mutant passes the former numerical oracle and fails the restored tolerance bound.
  • Console Vitest previously passed 694 cases with merged Restore complete console TypeScript validation #902, and the admin production build passed without a supplied ADMIN_DB_URL; those paths are unchanged by these review fixes. The branch is based on master 93337ef05 after Fix doctor pipe deadlocks and attestation canonical bytes #993, preserving its incoming source/doc changes and all four build-doc/twenty test-doc lines. Replayed commits are signed.

The reference-length review example required no code change: GitHub's own GFM API renders the exact a plus 999 spaces reference as a real Page.md anchor, and the current checker correctly permits that navigation. The result was independently repeated with present/missing targets and documented in the review reply; a raw-length rejection would incorrectly hide that rendered link.

Hosted Linux Tooling Tests at final head a2de52685 also pass 379 tests, zero failures or skips, including all 34 testbed tests and the subreaper/reaping assertion. Final-head docs lint passes 278 files. The prior findings are addressed and resolved. The next review completed with two further GFM-extension findings: footnote reference semantics and table-cell boundaries. Those fixes are in progress, with no fresh approval claimed.

The final-head Threat Model Review job stopped before review because Anthropic returned 401 authentication_error (API key is invalid). No threat-model approval is claimed. These are CPU tooling checks; no live model or deployment validation is implied.

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 13, 2026 3:21am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 13, 2026 3:21am UTC
d-inference-landing Ready Ready Preview Sep 13, 2026 3:21am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-13T03:32:31.097914Z a2de526 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Gajesh2007

Copy link
Copy Markdown
Member Author

The new Linux tooling job exposed an existing test's invalid rounding assumption: independent FP64 and FP32 attention outputs near an FP16 midpoint can round to adjacent native values (observed gap0.00048828125) even when their unrounded difference is much smaller than2e-5.

Fixed the test to retain2e-5 as a strict elementwise bound (rtol=0) between the unrounded FP32 implementation and the independent FP64 oracle for every dtype combination. Existing relative-L2 and planted wrong-layout/head-map/dropped-token checks remain. A deterministic midpoint regression demonstrates the native rounding discontinuity. No runtime/reference implementation or model release gate changed. All127 benchmark CPU tests pass locally; Linux CI is rerunning on the corrected test.

@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: 8702754137

ℹ️ 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".

Comment thread Makefile Resolved
Comment thread scripts/docs-check.sh Resolved
Comment thread docs/developer/build.md Resolved

@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: 56993eb6be

ℹ️ 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".

Comment thread docs/developer/build.md Resolved
Comment thread .githooks/pre-push Resolved
Comment thread Makefile Resolved
@Gajesh2007

Copy link
Copy Markdown
Member Author

Addressed all three review findings: ordinary admin builds use the same nonconnecting database default as CI; docs navigation resolves actual reference uses and excludes unused definitions/code examples; the target table and admin build instructions now match Make. Added reference-resolution fixtures, ran all 306 Python tests, and built admin with ADMIN_DB_URL explicitly unset. Rebased onto the latest #902 and master GPT-OSS changes.

@codex review

@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: 32bb1be6bc

ℹ️ 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".

Comment thread scripts/docs-check.sh Resolved
Comment thread Makefile Resolved
Comment thread scripts/docs-check.sh Resolved

@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: 53ca88ce7d

ℹ️ 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".

Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved

@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: 31dbdf1e41

ℹ️ 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".

Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved

@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: 042f2993aa

ℹ️ 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".

Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved
Comment thread scripts/docs-check.sh Resolved

@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: a2de52685d

ℹ️ 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".

Comment thread scripts/docs-check.sh
definition = read_definition(lines, line_index, content, containers)
if definition is not None:
identifier, target, skip_through = definition
definitions.setdefault(identifier, target)

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 Exclude footnotes from reference navigation

When GitHub footnote syntax is used, such as [^note] with [^note]: Page.md, this records the footnote definition as a normal link definition and later treats the footnote reference as navigation to Page.md. GitHub instead renders Page.md as plain footnote content, so a page reachable only through this construct incorrectly passes the orphan check; footnote definitions must remain visible for parsing their body but must not enter the reference-link map.

AGENTS.md reference: docs/AGENTS.md:L139-L143

Useful? React with 👍 / 👎.

Comment thread scripts/docs-check.sh
Comment on lines +557 to +560
for target, navigates in rendered_targets(text, definitions):
all_targets.append(target)
if navigates:
navigation.append(target)

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 Respect GFM table cell boundaries

When bracket syntax crosses an unescaped table-cell delimiter, for example | [not | link](Page.md) | in a valid GFM table, the renderer splits the text into separate cells and produces no link, but this whole-document inline scan still emits Page.md as navigation. A page referenced only by such table fragments therefore incorrectly passes the orphan check; tokenize table rows into cells, honoring escaped delimiters, before collecting rendered targets.

AGENTS.md reference: docs/AGENTS.md:L139-L143

Useful? React with 👍 / 👎.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head a2de52685d44075ef8837b353a389b78b4a5e9bd is preserved in aggregate 9d2160bb370e8a0dbf3810e61a5e48fe66345651, along with the relevant review fixes. Continue review and merge at #1096 (after provider #1094 and web #1095). Closing this duplicate merge path; the source branch and review history are retained.

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference-console-ui-dev — a2de5268 Deployed Sep 13, 2026 by vercel[bot]
Preview – d-inference — a2de5268 Deployed Sep 13, 2026 by vercel[bot]
Preview – d-inference-landing — a2de5268 Deployed Sep 13, 2026 by vercel[bot]
benchmarks — a2de5268 Deployed Sep 13, 2026 by Gajesh2007 via E2E Benchmarks #1121
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