Repository navigation
Conversation
… a job posting page
examples/llm-job pairs a saved job posting HTML page with a recorded
LLM-style extraction in the {value, quote} format used by
examples/llm. Five of six fields ground cleanly; the sixth
(signingBonus) is a deliberate hallucination whose quote appears
nowhere in the page, so the receipt flags it quote-not-found.
run.mjs grounds the candidate against the page as a text/html source
and compares the receipt with the committed expected-receipt.json
(the clock is pinned through options.now, so the receipt is
reproducible byte for byte).
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.
Closes #33
What's added —
examples/llm-job/page.html— a saved job posting page (Data Platform Engineer at Brightpath Analytics) with the posting's title, company, location, employment type, and salary range in the visible body text.llm-response.json— a recorded LLM-style candidate in the same{value, quote}format asexamples/llm. Five fields are supported by the page;signingBonusis deliberately hallucinated — its quote appears nowhere in the posting.run.mjs— grounds the candidate against the page as atext/htmlsource (same pattern asexamples/llm/run.mjs), prints coverage and the rejection, and compares the receipt against the committed expected receipt.expected-receipt.json— the expected receipt: coverage 5/6 and a singlequote-not-foundissue at/signingBonus. The clock is pinned viaoptions.now, so the receipt (including its hash) is reproducible byte for byte.Verification
node examples/llm-job/run.mjs—coverage: { grounded: 5, total: 6, invalid: 1 },REJECT /signingBonus: quote-not-found,PASS receipt matches expected-receipt.jsongrounded-json verify examples/llm-job/expected-receipt.json examples/llm-job/page.html—PASS 5/6 fields reproduced from the source snapshotoxfmt --check examples/llm-job/andoxlint examples/llm-job/— cleancli.test.ts > runs the zero-setup demo) is a 5s subprocess timeout in my sandbox — the demo itself runs fine directly (4.4s wall here) and is unrelated to this change, which only adds example files.