Skip to content

Extract the bounded Git history analyzer - #2

Merged
konard merged 9 commits into
mainfrom
issue-1-7390a1335a24
Nov 18, 2026
Merged

konard merged 9 commits into
mainfrom
issue-1-7390a1335a24

Conversation

@konard

@konard konard commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Fixes #1

What changed

  • Extracted the bounded Git history analyzer and its original Git fixture tests from Code Quality. The typed library and CLI report file, function, and class identities, structural hashes, hotspots, repeated transformations, change coupling, and suggestions with commit and source evidence.
  • Added a Links UI report viewer at /evolution/. It opens local JSON reports and ships with a sample generated from a reproducible five-commit Git history.
  • Documented ambiguous matches, history bounds, grammar provenance, and alternatives in the case study. The implementation retains the upstream public-domain license and the MIT notice for the borrowed Meta Language alias helper.

Reproduce locally

npm ci
node bin/code-evolution.js /path/to/git/repository --max-commits 10 --output report.json
npm ci --prefix examples/universal-app
npm run example:web:dev

Open /evolution/ in the example app and use Open JSON to inspect report.json. The included sample can be regenerated with node examples/evolution-report/generate.mjs.

Code Evolution report viewer

Verification

  • The Git fixture tests cover identity continuity, renames, ambiguous declarations, truncated history, and CMake definitions whose identity cannot be resolved. Additional tests exercise the thirteen language modes and the reproducible demo report.
  • CI checks out Code Quality at e0e2e03d8e78fee2119e6d272ebee4aef2505682 and runs node examples/code-quality-consumer/verify.mjs <code-quality-checkout>. It compares the original library, CLI, and HTTP behavior with the same consumers after installing the packed candidate pinned by SHA-512. Coverage includes normal and truncated reports and HTTP 400 for an invalid ref.
  • Chromium smoke testing covered local JSON input, invalid JSON recovery, filters, keyboard navigation to each exact evidence row, and a 390-pixel viewport.

The original Code Quality PR retains its inline implementation. This PR verifies the dependency cutover in a temporary consumer checkout. npm publication and Pages deployment are separate operations. Code Quality PR #2

Library, CLI and demo guide · Extraction case study

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #1
@konard konard self-assigned this Nov 18, 2026
@konard konard changed the title [WIP] Extract the inline Git evolution engine from code-quality Extract the bounded Git history analyzer Nov 18, 2026
@konard
konard marked this pull request as ready for review November 18, 2026 06:59
@konard

konard commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Working session summary

PR #2 is ready for review. It extracts the bounded Git history analyzer and its original fixtures into a typed JavaScript package and CLI, adds a Links UI report viewer, and documents ambiguous identity matching and history limits. Case study · Demo screenshot

All five GitHub Actions workflows passed on 9d47efb, including all nine Node, Bun, and Deno jobs across Linux, macOS, and Windows. An integrity-pinned package installed in a temporary Code Quality checkout produced matching library, CLI, and HTTP results. The original Code Quality PR retains its inline engine as requested. CI checks


This summary was automatically extracted from the AI working session output.

@konard

konard commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-6.2 Sol
  • Provider: OpenAI
  • Public pricing estimate: $6.034222

📊 Context and tokens usage:

  • 507.0K input tokens across requests (cumulative, larger than the 272K context window, so not one request's context), 68.3K / 128K (53%) output tokens

Total: (507.0K + 14.9M cached) input tokens, 68.3K output tokens, $6.034222 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-6.2-sol
  • Thinking level: xhigh (~31999 tokens)
  • Model: GPT-6.2 Sol (gpt-6.2-sol)

📎 Log file uploaded as Gist (2548KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
konard merged commit 2722ecc into main Nov 18, 2026
44 checks passed
@konard

konard commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

🎉 Auto-merged

This pull request has been automatically merged by hive-mind.

  • All CI checks have passed

Linked issues

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.

Extract the inline Git evolution engine from code-quality

2 participants