Repository navigation
feat(brief): quote reStructuredText documentation sections - #1214
Merged
Merged
Conversation
…dget score_brief.py gains freeze-home (the probes a binary built at a commit embeds, hashed), --probe-home, and pinned (two binaries or two probe sets on frozen homes, then compare). report.json records the probe identity, the route and the question SHA-256; compare flags runs that differ in more than one input. The default route is now the prompt-submit hook's brief-only payload (3 s window, probe floor, all parts): the brief command gave probes 750 ms and no floor, and config-registry timed out on one run and not the next. Refs #906
A test-bodies probe (append, kind tests or a prompt naming tests) quotes the test cases whose name or body carries the prompt's subject: Python def test_*, JS it/test, Rust fn under #[test] including inline modules. Candidates are the test files the brief names, then those whose path names the subject; word weights come from how many cases carry a word, not from a word list. Registered in bundled_probes.rs; the install tests derive their counts from the allowlist. Closes #1196
…es without quoting it error-origin ran only on a quoted message, and none of the seven error-origin questions of the public bench quotes one. It now also takes the short string literal that carries the most of the prompt's words, each weighed by how few source lines carry it, with the call and function that emit the string counted beside it. A string longer than the window is a manual, not a message; a JSON catalogue entry is followed to the code that names its key; inline test modules are skipped. CI installs ripgrep for the probes' own tests. Closes #1197
…tion names flow-rank followed the entry the brief's trace guessed, which for 'when I call requests.get' was auth.py's __call__. It now takes the entry the question names in code form (a dotted name, snake_case or camelCase) when the graph defines it: a path holding the leading parts first, a function before a method, no tests. From a named entry, a level where fewer than two callees carry the question's words keeps its best three, since a narrow chain is the path. It also runs for a 'walk me through' prompt the brief did not classify as flow. Closes #1198
A run on daemons left in the clones by pixel calls outside the harness answered 7 of 56 briefs differently from its two replays (an op left unanswered, flow-rank empty). activate now stops the clone's daemon before prepare-repo, so every run is served by a daemon it started. Refs #1201
doc-sections split only Markdown, so a project documented in .rst (flask, requests) never had a section quoted: requests-01's docs/api.rst and flask-03's docs/config.rst went unseen. Underlined .rst titles now make sections too; a transition rule after a blank line is not a title. Closes #1200
…zen-probe harness Refs #1200
# Conflicts: # docs/bench/brief-public-acceptance-2026-10-17/README.md # probes/error-origin/probe # probes/error-origin/tests/test_probe.py
This was referenced Oct 18, 2026
LivioGama
pushed a commit
that referenced
this pull request
Nov 25, 2026
* chore(bench): freeze the probe home and score briefs on the hook's budget score_brief.py gains freeze-home (the probes a binary built at a commit embeds, hashed), --probe-home, and pinned (two binaries or two probe sets on frozen homes, then compare). report.json records the probe identity, the route and the question SHA-256; compare flags runs that differ in more than one input. The default route is now the prompt-submit hook's brief-only payload (3 s window, probe floor, all parts): the brief command gave probes 750 ms and no floor, and config-registry timed out on one run and not the next. Refs #906 * feat(brief): quote the bodies of the tests a tests question asks about A test-bodies probe (append, kind tests or a prompt naming tests) quotes the test cases whose name or body carries the prompt's subject: Python def test_*, JS it/test, Rust fn under #[test] including inline modules. Candidates are the test files the brief names, then those whose path names the subject; word weights come from how many cases carry a word, not from a word list. Registered in bundled_probes.rs; the install tests derive their counts from the allowlist. Closes #1196 * docs(bench): record the test-bodies pack on the frozen-probe harness Refs #1196 * feat(brief): find the origin of an error message the question describes without quoting it error-origin ran only on a quoted message, and none of the seven error-origin questions of the public bench quotes one. It now also takes the short string literal that carries the most of the prompt's words, each weighed by how few source lines carry it, with the call and function that emit the string counted beside it. A string longer than the window is a manual, not a message; a JSON catalogue entry is followed to the code that names its key; inline test modules are skipped. CI installs ripgrep for the probes' own tests. Closes #1197 * docs(bench): record the error-origin pack on the frozen-probe harness Refs #1197 * feat(brief): start a walkthrough's call chain from the entry the question names flow-rank followed the entry the brief's trace guessed, which for 'when I call requests.get' was auth.py's __call__. It now takes the entry the question names in code form (a dotted name, snake_case or camelCase) when the graph defines it: a path holding the leading parts first, a function before a method, no tests. From a named entry, a level where fewer than two callees carry the question's words keeps its best three, since a narrow chain is the path. It also runs for a 'walk me through' prompt the brief did not classify as flow. Closes #1198 * chore(bench): stop a clone's leftover daemon before scoring on it A run on daemons left in the clones by pixel calls outside the harness answered 7 of 56 briefs differently from its two replays (an op left unanswered, flow-rank empty). activate now stops the clone's daemon before prepare-repo, so every run is served by a daemon it started. Refs #1201 * docs(bench): record the flow-rank named-entry pack on the frozen-probe harness Refs #1198 * feat(brief): quote reStructuredText documentation sections doc-sections split only Markdown, so a project documented in .rst (flask, requests) never had a section quoted: requests-01's docs/api.rst and flask-03's docs/config.rst went unseen. Underlined .rst titles now make sections too; a transition rule after a blank line is not a title. Closes #1200 * docs(bench): record the reStructuredText doc-sections pack on the frozen-probe harness Refs #1200 * test(setup): list the test-bodies probe in the setup goldens and agents data Refs #1196
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 #1200
Stack (L7, #906): #1208 (#1201) ← #1209 (#1196) ← #1210 (#1197) ← #1211 (#1198) ← this PR (#1200). Base:
brief/1198-flow-chain. GitHub linksCloses #1200only once the PR targetsmain.Summary
On the live hook budget (#1201), documentation oracle lines are already covered at 9.2 % on
main(the issue's 2 % came from the starvedbriefcommand route), and thedoc-sectionsprobe is the docs pack. Its remaining blind spot: it split only Markdown. Projects documented in reStructuredText never had a section quoted, for examplerequests(docs/api.rst,docs/user/advanced.rst) andflask(docs/config.rst). Underlined.rsttitles now make sections too.Evidence
Before → after, frozen-probe harness, same binary (
main7887b9e6). Probes frozen at31086a92(brief: flow/impact pack — the call chain with hop bodies (flow 7%, impact 6%) #1198) vs4cd7de05:file_recall/region_cov/ lineconfigcategoryfile_recall7 sessions gain and none lose:
requests-030.26 → 0.37 line (file recall 0.67 → 1.00),requests-080.05 → 0.10,flask-030.15 → 0.19, plusrequests-02,requests-04,flask-02,flask-07. The base reproduces brief: flow/impact pack — the call chain with hop bodies (flow 7%, impact 6%) #1198's head exactly (56/56).requests-01's 240 lines ofdocs/api.rststay unquoted: no heading there carries two of the question's words.Test that fails without the change.
probes/doc-sections/tests/test_probe.py(3 cases: the matching.rstsection is quoted with its exact range, a transition rule is no title, Markdown unchanged). Against the previous probe:probe-test.py --guardon 21 overview, config and lookup prompts: the only refusals are oracle path stems (CHANGELOG,HISTORY,CHANGES) from the probe's existingSKIPlist, identical on the previous probe.--check-all: ok.Not run: the live Codex A/B.
Merge Danger
Door: one-way for installs (
pixel setuprewrites~/.pixel/plugins/doc-sections/); a revert ships the old copy back on the next setup.Blast radius: low. Same gating and the same two-section limit; it only gains
.rstcandidates, and it appends.Docs touched
.github/changelog.d/doc-sections-rst.changed.md,docs/bench/brief-public-acceptance-2026-10-17/README.md(pack table).ARCHITECTURE.md: unchanged.Need help on this PR? Tag
@codesmith-botwith what you need.