Skip to content

docs(bench): record the configuration pack as tried and dropped - #1215

Merged
navidemad merged 20 commits into
mainfrom
docs/1199-config-dropped
Oct 18, 2026
Merged

navidemad merged 20 commits into
mainfrom
docs/1199-config-dropped

Conversation

@navidemad

@navidemad navidemad commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1199

Stack (L7, #906): … ← #1214 (#1200) ← this PR (#1199). Base: brief/1200-docs-rst. Docs only.

Summary

Records the configuration pack as tried and dropped, as the issue's acceptance asks for a pack that does not move its number. No probe is added.

Evidence

  • The premise no longer holds. On the hook route (bench(brief): freeze the probe home and pin score_brief.py runs so #906 packs compare like for like #1201), main 7887b9e6 covers 371/979 config oracle lines (37.9 %), against the issue's 9 % (90/979), which came from the brief command route (750 ms, no probe floor). config-registry already prints each key's definition, default value or fallback, declaration and read site.
  • What was tried. A config-sites prototype (scratchpad, not committed) quoted the enclosing definition behind each code pointer of a config brief's files: line (for example crates/core/flags/hiargs.rs:857, lib/application.js:63), gated like config-registry. It was evaluated offline on the saved hook briefs of feat(brief): start a walkthrough's call chain from the entry the question names #1211's head, with the native merge of probe-test.py:
    • config oracle lines: 371 → 371 (unchanged)
    • config category line coverage 8.2 % → 10.9 %, on 2/7 questions only (ripgrep-03 1.1 % → 8.7 %, express-03 0.5 % → 11.6 %)
    • all: file_recall 0.436 → 0.436, region_cov 0.099 → 0.100
  • Verdict. It does not move the targeted figure, and its gain is too narrow to justify a fifteenth probe running on every prompt that names a setting. Dropped, and the hypothesis is recorded in docs/bench/brief-public-acceptance-2026-10-17/README.md.
  • Not run: a frozen-harness run of the prototype (offline replay only); live Codex.

Merge Danger

Door: two-way (docs only).

Blast radius: none.

Docs touched

docs/bench/brief-public-acceptance-2026-10-17/README.md (pack table row and paragraph). No changelog fragment: nothing ships.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…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
On the hook route main already covers 37.9% of the config oracle lines
(the 9% came from the brief command route), and config-registry gives
each key's definition, default, override and read site. A prototype that
quoted the definition behind each code pointer of a config brief moved
two of seven questions and the config line count not at all.

Closes #1199
@navidemad
navidemad changed the base branch from brief/1200-docs-rst to main October 18, 2026 17:39
# Conflicts:
#	docs/bench/brief-public-acceptance-2026-10-17/README.md
#	probes/error-origin/probe
#	probes/error-origin/tests/test_probe.py
@navidemad
navidemad merged commit e2057cd into main Oct 18, 2026
4 checks passed
@navidemad
navidemad deleted the docs/1199-config-dropped branch October 18, 2026 17:41
navidemad added a commit that referenced this pull request Oct 18, 2026
One paired live pass of the 56 public questions on main 904d957 (the
packs of #1208-#1215, probes frozen), then two repeats of the 22 pairs
whose brief answer used no tool and passed source review on both arms.

- First pass: 64 brief calls against 231 control calls (2026-10-17:
  78/235); 34/56 zero-call brief answers; delivery 3/3 parts, none late.
- 18/56 accepted (2026-10-17: 9/56): three repeats fell back to a tool,
  fd-06's r2 brief answer failed review. The control failed no review.
- brief-zero-calls.py takes the `codex` on PATH and refuses to start
  without one: a first pass errored on all 112 sessions because it looked
  only in ~/.local/bin.

Refs #906
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

* docs(bench): record the configuration pack as tried and dropped

On the hook route main already covers 37.9% of the config oracle lines
(the 9% came from the brief command route), and config-registry gives
each key's definition, default, override and read site. A prototype that
quoted the definition behind each code pointer of a config brief moved
two of seven questions and the config line count not at all.

Closes #1199

* test(setup): list the test-bodies probe in the setup goldens and agents data

Refs #1196
LivioGama pushed a commit that referenced this pull request Nov 25, 2026
One paired live pass of the 56 public questions on main 3bf8d7a (the
packs of #1208-#1215, probes frozen), then two repeats of the 22 pairs
whose brief answer used no tool and passed source review on both arms.

- First pass: 64 brief calls against 231 control calls (2026-10-17:
  78/235); 34/56 zero-call brief answers; delivery 3/3 parts, none late.
- 18/56 accepted (2026-10-17: 9/56): three repeats fell back to a tool,
  fd-06's r2 brief answer failed review. The control failed no review.
- brief-zero-calls.py takes the `codex` on PATH and refuses to start
  without one: a first pass errored on all 112 sessions because it looked
  only in ~/.local/bin.

Refs #906
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.

brief: configuration pack — definition, default, override and read sites of a setting (config 9%)

1 participant