Repository navigation
Improve compress text skill with structural compaction - #1
Merged
Merged
Conversation
Extend the compress-text skill with three named, complementary lenses and wire them through the procedure, output template, success criteria, and guardrails: - Semantic: merge paraphrases and entailments into the single most specific statement (meaning-level dedup, even when wordings differ). - Statistical: consolidate repeated n-grams / near-duplicate sentences and cut low information-density filler, reporting redundancy removed alongside size. - Supersession (pivots): in transcripts, dictation, drafts, and chat, drop self-correction markers and the passages they supersede, keeping only the final intent; ambiguous pivots are kept and flagged. Add eval cases 12 (pivot-corrections) and 13 (redundancy-stats), two triggering rows, and update README/CHANGELOG/RESULTS and plugin/marketplace keywords. Both new cases verified 7/7; static suite green at 13/13 cases, 0 failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Build a deterministic functional eval harness and apply one validation-gated SkillOpt round (microsoft.github.io/SkillOpt) to the compress-text skill. Harness (evals/run_functional.py, stdlib-only): - --selftest scores a golden reference per case (wired into scripts/validate.sh) - --model runs the skill live; --grade DIR scores rollout outputs - --split train|val|all separates design cases from held-out cases - checks + golden refs in evals/functional_checks.json (18 cases) SkillOpt round 01 (rollout -> reflect -> bounded edit -> validate): - 5 fresh held-out val cases (14-18) in unseen domains gate edits on generalization - baseline rollout failed case 18 (kept vacuous status-padding sentiment) - bounded edit: Statistical lens now treats upbeat status-padding as low-density filler, with a caveat to keep load-bearing sentiment - held-out 4/5 -> 5/5, train anchors 3/3 (no regression) -> edit accepted - trajectories in evals/skillopt/, write-up in evals/OPTIMIZATION_LOG.md Docs: README/CHANGELOG/RESULTS/evals-README updated; .gitignore ignores __pycache__. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refresh the saturated held-out set with 4 new val cases (19-22) probing untested failure modes: buried negations/exceptions, conditional branches, exact numeric fidelity, and factual contradictions that must be kept-and-flagged. Frozen-agent rollout of the committed skill scored 4/4 behavioral fidelity but 2/4 on the word-ratio gate: aggressive cases 19 (0.68) and 20 (0.77) preserved full meaning yet left repeated long noun phrases and scope-setting context uncut. Bounded edit (2 lines) sharpens aggressive mode to shorten repeated long noun phrases after first mention and cut scope-setting context that states no distinct rule, fact, number, or constraint - with a caveat never to drop a load-bearing qualifier. Re-rollout: held-out 2/4 -> 3/4 (case 20 crossed, 19 0.68->0.65), no fidelity regression, over-cut anchors 04/09 clean. Self-test 18/18 -> 22/22. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…skill change) Refresh the SkillOpt held-out gate with 4 new val cases (23-26) probing modal obligation (must/should/may), numeric quantifier-bounds, first-use acronym expansion, and authority/precedence rules. Baseline rollout of the committed skill scored 1/4 on the ratio-gate (full behavioral fidelity), revealing a consistent under-tightening of low-density prose (opener greetings, redundant intensifiers, restatements). A bounded low-density-tightening edit was drafted and rolled out, but the frozen agent's run-to-run variance exceeded the edit's effect, so the held-out gate did not improve (1/4 -> 0/4) despite the restraint anchors (03/04/16) staying clean. Per the SkillOpt acceptance rule (held-out must improve), the edit is REJECTED and reverted: SKILL.md is unchanged. The 4 cases are retained as standing held-out probes; 24/25/26 document an unaddressed under-tightening gradient. Self-test 22/22 -> 26/26; static validator green (26 cases). Also fixes a case-25 check artifact (business[ -]day regex vs faithful hyphenated compound). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…killOpt round 04, accepted) SkillOpt round 04 (accepted edit). Adds a 4th compression lens that treats related documents/sections as one whole-context MECE tree of key points: shared points hoist to their nearest common ancestor and cross-document duplicates collapse to a single node, while the union of distinct points is preserved and contradictory "duplicates" are kept and flagged. This codifies a behavior the prior skill already exhibited emergently, making it explicit, reliable, and discoverable. Validation (deterministic, reproducible via --grade): - New held-out val cases 27 (cross-context hoist + collapse repeats) and 28 (merge runbooks into shared-core + per-target deltas) with max_count_ci dedup checks and per-branch must_contain guards; prompts are method-neutral. - Held-out gate: baseline (committed skill) 1/2 -> candidate (edited skill) 2/2. Case 28 tipped 0.79 -> 0.754 by explicitly hoisting the shared core into one statement; case 27 also tightened (0.57 -> 0.47). - No-regression anchors 03/04/16/09: 4/4 clean (single-text compression and the single multi-section doc unchanged). - Self-test 26/26 -> 28/28; static validator PASS (28 cases). SKILL.md: +Structural lens in Compression techniques (Four complementary lenses), procedure steps 3/5 hooks, guardrail, when-to-use, parameters note, success criterion, keywords; description 1022 chars (<=1024). Docs updated (OPTIMIZATION_LOG round 04, RESULTS, CHANGELOG, READMEs). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SkillOpt round 05 (accepted edit). Adds split-focused held-out probes for mixed single-draft structural nodes and tightens the skill's output shape so split or merged structural outputs stay compact instead of copying source headings and padding short branch deltas. Validation (deterministic, reproducible via --grade): - New val cases 29 (mixed operations procedure: incident vs vendor access with shared portal/audit setup) and 30 (partner launch: API vs marketing with shared owner/checklist) assert all branch specifics survive, shared points appear once, and output crosses a ratio gate. - Baseline (committed 56d1145): 0/2. It split/hoisted correctly but failed ratio due to copied source H1 body headings, verbose nested headings/lists, and a separation-only instruction restated after structure already enforced it. - Candidate (edited skill): 2/2. No-regression anchors 03/04/09/16/27/28: 6/6. - Self-test 30/30; static validator PASS (30 cases); SKILL description unchanged at 1022 chars and no angle brackets. SKILL.md: Structural lens now emphasizes compact shared-core plus branch deltas, omits separation-only instructions once structure enforces them, and the Output template says not to repeat the source title after the compressed-text heading and to prefer compact branch-delta bullets when order is not load-bearing. Docs and SkillOpt round-05 rollout artifacts updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Validation
python evals/run_functional.py --selftest→ 30/30 PASSpython evals/run_evals.py→ PASS