Repository navigation
v1.92.79.0 fix: /plan-tune stops reporting mismatches with no observed answers behind them (#3436) - #3856
Merged
Conversation
…nswers (#3436) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…3436) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he per-dimension floor Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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.
What changed
/plan-tune no longer reports a mismatch between your stated and observed preferences when no observed answers are behind it (#3436).
bin/gstack-developer-profilenow compares a declared value with an inferred one only when at least 3 logged answers moved that dimension (MIN_EVIDENCE=3). The rule covers--check-mismatch,--gapand the gap that--derivestores.--check-mismatchstill needs 10 logged answers overall. Below the per-dimension floor it printsno observed evidenceortoo little evidence (n of 3 events)instead of a gap.--gaplists those dimensions under a newlow_evidencefield.contributing_eventsexisted keeps the old comparison until its next derive.gstack-question-logruns a derive after every logged answer, so that happens at the next answer.docs/designs/PLAN_TUNING_V0.mdsay "not enough observed answers yet" for these dimensions.Proof
--check-mismatchprintedscope_appetite: declared 0.9 vs inferred 0.5 (gap 0.4)for a dimension that no logged answer touched, and--gapreported 0.4 for it (l4-failing-first-main.log: 0 pass, 2 fail). Both pass on this branch.MISMATCH … inferred 0.545 (gap 0.355)once the 10-answer floor was dropped. The new test fails on the unfixed bin with exactly that output and passes with the floor restored.plan-tune-inspect: 1 pass, 0 fail, run locally on 2026-11-02 at 10:04 UTC (log under~/.gstack-dev/eval-runs/). CI dispatch was refused for this gh account.Security read
The change adds no network calls, reads no environment variables or secrets, widens no permissions, and adds no dependencies. It doesn't touch
.github/workflowsor any setup, install or upgrade script.$MIN_EVIDENCEis a constant expanded into the inline JavaScript the bin already runs.Review notes
These are below the blocking floor. They are recorded here and not fixed in this PR:
contributing_eventscounts an answer once for each writer that logged it, so two answers logged by both writers can clear the 3-answer floor. This needs a dedupe key (the plan-tune: {skill}-{slug} question ids never reach a signal (Gate 1 of #2623) #3442 area).MISMATCH:header with the same indent as flagged dimensions.contributing_eventsis present. A profile from before that field existed is still compared until its next derive.Documentation
Status: current. The docs already match the change; nothing was edited.
Audited scope:
garrytan/gsta216-l4-mismatch-evidence, base7762c39ato head205379a8: 4 commits and 6 files (bin/gstack-developer-profile,plan-tune/SKILL.md.tmpl, generatedplan-tune/SKILL.md,docs/designs/PLAN_TUNING_V0.md, the changelog fragment andtest/gstack-developer-profile.test.ts). There were no staged, unstaged or new files. I checked the plan-tune design doc, the skill template, the troubleshooting doc, the TODOS.md E6 entry and the AGENTS.md skill table against the diff.Documentation health:
docs/designs/PLAN_TUNING_V0.md Current (the branch already documents the 3-answer floor,
low_evidenceand the stored-gap omission)plan-tune/SKILL.md.tmpl Current (Inspect profile and Show gap say "not enough observed answers yet" below 3 answers)
docs/troubleshooting.md Current (the new output lines are informational and need no anchor)
AGENTS.md Current (the /plan-tune row is unaffected)
README.md / CONTRIBUTING.md Current (no plan-tune profile surface)
CHANGELOG.md Skipped (ship-owned; the entry is in a changelog.d fragment)
TODOS.md Current (E6 context still accurate; not changed in ship-owned mode)
Documentation coverage:
[entity] [reference] [how-to] [tutorial] [explanation]
--gaplow_evidencefield ✅ PLAN_TUNING_V0.md ✅ plan-tune Show gap ❌ ✅ PLAN_TUNING_V0.md--check-mismatchthin-evidence lines ✅ PLAN_TUNING_V0.md ❌ ❌ ✅ PLAN_TUNING_V0.md3-answer per-dimension floor ✅ PLAN_TUNING_V0.md ✅ plan-tune skill ❌ ✅ PLAN_TUNING_V0.md
Documentation Debt
--check-mismatch, so its newno observed evidenceandtoo little evidence (n of 3 events)lines are documented only in the design doc and the changelog fragment (how-to).contributing_eventsexisted keeps the old comparison until its next--derive; only the changelog fragment does (reference).Diagram drift: none. The only diagram in PLAN_TUNING_V0.md is the
~/.gstackfile tree, and this change doesn't touch it.Summary
/plan-tune's mismatch check no longer reports drift for a dimension when it has fewer than 3 observed answers behind it. Before, it compared your declaration against the untouched 0.5 starting value.
Why
#3436: a user who declares a strong preference on a dimension that none of their logged answers has touched was told their behavior disagreed with it, because the inferred value had never moved from 0.5. The answer log is what /plan-tune learns from, so a false drift report undercuts trust in the profile.
Blast radius
One shell script (
bin/gstack-developer-profile, 23 changed lines), the /plan-tune template and its generated SKILL.md, one design doc, and tests. The only consumers of--check-mismatch,--gapand the storedgapare /plan-tune itself and these tests. Thelow_evidencefield is additive.Pre-Landing Review
REVIEW_LOOP: passes=2 blocking_found=1 deferred=0 noted=3 fixed=1 scope=frozen fix_checks=1
Review-loop exception: accepted by GStack Minder (Captain) 2026-11-02 via GSTA-216 Captain reply: Do it, under rule 23: commit the --check-mismatch fix with its failing-first test, run one scoped fix-check: Round-2 adversarial reader found a Medium false-mismatch regression; one scoped fix-check on the touched hunks, then the red team; findings ship as open notes (fix-check at 205379a, 0 findings)
The false-mismatch regression the round-2 adversarial reader found was fixed under GStack Minder's written grant of one scoped fix-check (2026-11-02). The fix-check, red team and targeted reader all reported NO FINDINGS at 205379a.
Issues
Fixes #3436