feat: enhance optimize-sorting T2 researcher and archive prompts with stage timing - #1433
Closed
colehurwitz wants to merge 1 commit into
Closed
colehurwitz wants to merge 1 commit into
colehurwitz wants to merge 1 commit into
Conversation
… stage timing - Replace _RESEARCHER_T2_PROMPT: instruct researcher to read .stage_timing from baseline.json as ground-truth measured times, rank stages by measured time (highest first), and output baseline_mean/baseline_std/pct_of_total schema instead of estimated_pct - Replace _archive_prompt(): add stage_timing_deltas computation using union of baseline and result stage names — stages in both get normal delta, new stages marked 'new', removed stages marked 'removed'. Add stage_timing_deltas to JSONL field list. Add per-stage timing table to PR comment for keep verdicts. - Add 10 new test methods to TestPromptContent validating both changes Graph topology unchanged: 31 nodes, 39 edges, 2 reloop edges.
Sentrux Quality ReportAbsoluteDiff (vs base branch) |
Collaborator
Author
|
Superseded by unified PR — see #1443 |
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.
Changes
T2 Researcher Prompt (
_RESEARCHER_T2_PROMPT): Updated to instruct the researcher to read.stage_timingfrombaseline.jsonas ground-truth measured times and rank stages by measured time (highest first), replacing the old "estimate from code" approach. Output schema changed fromestimated_pcttobaseline_mean/baseline_std/pct_of_total.Archive Prompt (
_archive_prompt(), all 3 tiers): Addedstage_timing_deltascomputation that iterates over the union of baseline and result stage names:baseline_mean - result_time)"new""removed"stage_timing_deltasto JSONL field listTests: Added 10 new test methods to
TestPromptContentvalidating both changesGraph topology unchanged
definitions.py)