Repository navigation
ProjectLens: use it on your own schedules and updates - #27
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…d work) Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…guide for your own schedules Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…finish dates Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Adds three sets of real GMPP year-on-year pairs (Open Government Licence, sources in bench/real-cases/SOURCES.md). npm run bench scores the narrative check per label, lists every miss, and fails if a set drops below its floor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y shell Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d finding sentences (round 4) Programme-level on-track claims count again, month and quarter end-date claims feed the published-date check, and the CLI, GMPP page and change assurance share the same finding sentences. A follow-up pass restored every explained and no-move result. Real-case bench: set 2 27/35 (contradictions 8/13, was 2), set 3 22/35 (contradictions 5/13, was 2), no new false alarms. Implemented by Codex; verified with npm test (108), make test (53), browser tests and the bench. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntences Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ore on unseen set 4 The GMPP pipeline now calls the shared JavaScript engine instead of keeping its own Python copy of the claim rules (CI provisions Node 22), and dead helpers are removed: about 323 fewer lines of code with identical results. Adds the unseen real-case set 4 to the benchmark (22/30) and freezes floors at 32, 27, 22, 22. Done by Codex; verified with npm test (108), make test (53) and npm run bench. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each contradiction or published-date check now carries the sentence, the matched phrase and both dates, shown in the CLI, the change-assurance page and the GMPP page. Bench: sets 1-4 at 32, 29, 28, 28 with no fall in explained or no-move; unseen set 5 scores 29/40 (contradictions 3/10). Built by Codex; verified with npm test (142), make test (53), browser tests and the bench. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
ProjectLens can now be used on other people's real schedules and progress updates, not only the built-in example.
docs/engine/projectlens-engine.js), and the GMPP pipeline calls it too, instead of keeping a Python copy of the rules.node bin/projectlens.mjs compare --previous a.xer --current b.xer --narrative update.txtandbatch --dir monthly/(CSV history). Exit code 1 means a contradiction was found.A simplicity pass removed the duplicate Python rules and dead helpers: about 320 fewer lines with identical results. CI now sets up Node 22 for the pipeline.
How it was checked
npm test(142),PYTHON=python3.12 make test(53) and the browser tests pass.compareandbatchon the worked example.npm run benchscores five sets of real UK Government Major Projects Portfolio year-on-year pairs (Open Government Licence; sources inbench/real-cases/SOURCES.md). It fails if any set drops below its floor.Honest accuracy
The narrative check rarely raises a false alarm (17 of 18 explained moves and 8 of 8 unmoved projects left alone in set 5), but on unseen narratives it catches only 3 of 10 contradictions. The rules fit the cases they were built from much better than new ones, so treat it as a prompt to read, not a detector. Schedule comparison itself (dates, float, constraints, links) is reliable on the real P6 files tested.
Limits
🤖 Generated with Claude Code