Skip to content

v1.92.79.0 fix: /plan-tune stops reporting mismatches with no observed answers behind them (#3436) - #3856

Merged
capy-ai[bot] merged 5 commits into
mainfrom
garrytan/gsta216-l4-mismatch-evidence
Nov 2, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
garrytan/gsta216-l4-mismatch-evidence

Conversation

@garrytan

@garrytan garrytan commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3856,
  "head": "205379a830fbdca57587e9f9b04ad9697e1a7e80",
  "version": "1.92.69.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 166,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "db851f749724ac309d2bf4a4486a4785aafa168b",
  "product_patch_id": "928c74b1e2655ef8186968a91893d8f417abc238",
  "gstack_version": "1.92.69.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 28,
    "rules": "551486253e156572",
    "base": "7762c39a4ecdba8268c1ffc2b0384bccc04b3fa6",
    "registry": "7762c39a4ecdba8268c1ffc2b0384bccc04b3fa6",
    "gate_scan": {
      "tagged": 0,
      "head": "205379a830fbdca57587e9f9b04ad9697e1a7e80"
    },
    "reasons": [
      "runtime=28"
    ],
    "risk": []
  },
  "pregate": "requires-remote cleared @db851f749724 (1 checks, current for 205379a830fb)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41425764012",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41425764134",
    "pregate.json/remote_gate: remote-gate tree=db851f749724 tests=18862"
  ],
  "issues": {
    "fixes": [
      3436
    ],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "AGENTS.md, CLAUDE.md, README.md, CONTRIBUTING.md, docs/, plan-tune/ and office-hours/ templates; changelog.d fragment reviewed"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 3,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "dispatches": {
      "specialist": 8
    }
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (Captain)",
    "date": "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",
    "reason": "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": {
      "head": "205379a830fbdca57587e9f9b04ad9697e1a7e80",
      "findings": 0,
      "files": [
        "bin/gstack-developer-profile",
        "test/gstack-developer-profile.test.ts",
        "changelog.d/garrytan-gsta216-l4-mismatch-evidence.md"
      ]
    }
  },
  "review_targeted": {
    "classes": [
      "gate"
    ],
    "rules": "c82addff6fb60fa0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "928c74b1e2655ef8186968a91893d8f417abc238",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

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-profile now 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, --gap and the gap that --derive stores.

  • --check-mismatch still needs 10 logged answers overall. Below the per-dimension floor it prints no observed evidence or too little evidence (n of 3 events) instead of a gap.
  • --gap lists those dimensions under a new low_evidence field.
  • A profile derived before contributing_events existed keeps the old comparison until its next derive. gstack-question-log runs a derive after every logged answer, so that happens at the next answer.
  • The /plan-tune "Show gap" and "Inspect profile" steps and docs/designs/PLAN_TUNING_V0.md say "not enough observed answers yet" for these dimensions.

Proof

  • Failing first on main at 7762c39. Two new tests fail there: --check-mismatch printed scope_appetite: declared 0.9 vs inferred 0.5 (gap 0.4) for a dimension that no logged answer touched, and --gap reported 0.4 for it (l4-failing-first-main.log: 0 pass, 2 fail). Both pass on this branch.
  • A regression found in review and fixed in 205379a. Three same-day answers that agree with a declared 0.9 printed 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.
  • Focused lane: 166 pass, 0 fail. Guard lane (parity, skill size, gen-skill-docs, host config): 606 pass, 1 skip, 0 fail.
  • Remote pregate (Ubicloud): tree db851f7, 18,862 tests, 0 failed, $0.08, VM destroyed. The macOS and Windows lanes were cleared with this PR's CI runs.
  • Paid probe 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/workflows or any setup, install or upgrade script. $MIN_EVIDENCE is 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_events counts 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).
  • The low-evidence lines print under the MISMATCH: header with the same indent as flagged dimensions.
  • The Inspect profile rule for fewer than 3 answers applies only when contributing_events is present. A profile from before that field existed is still compared until its next derive.
  • At 10 or more answers overall, a strong declaration backed by only 3 same-day answers can still be flagged, because the per-day clamp caps one day's movement at about 0.06. Counting distinct days per dimension would fix it. Main has the same behavior at 10 same-day answers.

Documentation

Status: current. The docs already match the change; nothing was edited.

Audited scope: garrytan/gsta216-l4-mismatch-evidence, base 7762c39a to head 205379a8: 4 commits and 6 files (bin/gstack-developer-profile, plan-tune/SKILL.md.tmpl, generated plan-tune/SKILL.md, docs/designs/PLAN_TUNING_V0.md, the changelog fragment and test/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_evidence and 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]
--gap low_evidence field ✅ PLAN_TUNING_V0.md ✅ plan-tune Show gap ❌ ✅ PLAN_TUNING_V0.md
--check-mismatch thin-evidence lines ✅ PLAN_TUNING_V0.md ❌ ❌ ✅ PLAN_TUNING_V0.md
3-answer per-dimension floor ✅ PLAN_TUNING_V0.md ✅ plan-tune skill ❌ ✅ PLAN_TUNING_V0.md

Documentation Debt

  • Common gap: no skill or how-to calls --check-mismatch, so its new no observed evidence and too little evidence (n of 3 events) lines are documented only in the design doc and the changelog fragment (how-to).
  • Common gap: the design doc doesn't say that a profile derived before contributing_events existed 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 ~/.gstack file 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, --gap and the stored gap are /plan-tune itself and these tests. The low_evidence field 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

garrytan and others added 4 commits November 2, 2026 09:37
…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>
@trunk-io

trunk-io Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions github-actions Bot changed the title v1.92.69.0 fix: /plan-tune stops reporting mismatches with no observed answers behind them (#3436) v1.92.79.0 fix: /plan-tune stops reporting mismatches with no observed answers behind them (#3436) Nov 2, 2026
@capy-ai
capy-ai Bot merged commit 322906a into main Nov 2, 2026
45 checks passed
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.

plan-tune: --check-mismatch and --gap ignore inferred.contributing_events

1 participant