Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

improvement: make pseudocode SNR better - #73

Closed
sidkmenon wants to merge 1 commit into
mainfrom
sm/pseudo
Closed

sidkmenon wants to merge 1 commit into
mainfrom
sm/pseudo

Conversation

@sidkmenon

Copy link
Copy Markdown
Contributor

No description provided.

Agent-Session: beda0994-f79e-4d8c-86d2-1e91557d62cc
@sidkmenon sidkmenon closed this Oct 5, 2026
sidkmenon added a commit that referenced this pull request Oct 5, 2026
The prompt picks a shape per body: plain-word steps, a call tree, or a
component tree. The text is a placeholder until it is reworded.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
sidkmenon added a commit that referenced this pull request Oct 5, 2026
The prompt picks a shape per body: plain-word steps, a call tree, or a
component tree. The text is a placeholder until it is reworded.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
sidkmenon added a commit that referenced this pull request Oct 5, 2026
* Use the draft pseudocode prompt from #73

The prompt picks a shape per body: plain-word steps, a call tree, or a
component tree. The text is a placeholder until it is reworded.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Summarize only new tests

Modified and unchanged tests keep their ordinary fold labels.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Share the test queries between summarize and test-bodies

No behavior change. Each shared pattern sets both plugins' test tags,
so the two plugins agree on what a test is.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Tag integration and end-to-end test files

Classify adds `integration` or `e2e` to a test file when its path or its
first lines say so. Other test files count as unit tests.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Keep integration tests open

Test-bodies skips files tagged `integration` or `e2e`, and single tests
marked with `@pytest.mark.integration` or a leading `testing.Short()` check.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Show test files by default

Test-bodies now decides which tests collapse, so classify no longer
hides test files.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Tint collapsed folds that hide changes

A collapsed paired fold that hides a change takes the theme's
`diff.delta` tint, and its row counts the changed lines.

AI-assisted implementation with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b

* Rework the summarize prompt

Pick a shape per body (steps, call tree, component tree, test phases),
with a fenced example for each. Tests compare against the manifest's
default prompt instead of its first words.

AI-assisted with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8

* Summarize in plain text and head with the docstring

The model replies with only the pseudocode: one body per request left
the JSON schema with nothing to do. The docstring's first line heads
the label, and a summary must have at most half the body's
non-whitespace characters. Drop the tests for plumbing a reader never
sees.

AI-assisted with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8

* Rebuild the context and removed-runs plugins

#84 committed these components before its last source changes, so
tests/wasm.rs rebuilt them on every run.

AI-assisted with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8

* Keep summaries up to two thirds of the body

Half rejected reasonable summaries that repeat a test's data, and the
model's replies vary in length from run to run.

AI-assisted with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8

* Quote multi-line labels between a body's opener and closer

A collapsed syntax body whose label spans lines, such as pseudocode,
shows one '> ' row per line at the body's indent instead of joining
them onto the opener's line.

AI-assisted with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8

* Fix the spelling of pseudocode in the summarize prompt

AI-assisted with Claude Code.

Agent-Session: ea775653-fef8-47be-96ea-16815bdff22c
Agent-Session: d72470a3-1f93-4201-8e6d-2730c798e92b
Agent-Session: 82924cb5-dcfa-42e4-abb0-ef40393249f8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant