Skip to content

fix(check): exempt pip's resolver-conflict notice when the install completes - #343

Merged
atrawog merged 6 commits into
mainfrom
feat/scanner-pip-allowance
Aug 19, 2026
Merged

atrawog merged 6 commits into
mainfrom
feat/scanner-pip-allowance

Conversation

@atrawog

@atrawog atrawog commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

The bed-diagnostics gate (candy/plugin-check/bed_diagnostics.go) scans every step log
for error:/warning: lines and fails the step on any non-allowlisted error-tier line
(errors_fatal: true). pip's dependency resolver prints this notice when the environment
ALREADY carries packages that conflict with the install's requirements:

ERROR: pip's dependency resolver does not currently take into account all the packages
that are installed. This behaviour is the source of the following dependency conflicts.

…then installs anyway and exits 0. The notice is a description of the environment, not a
swallowed failure — but the severity-prefix recognizer matches the ERROR: prefix, so
every image build that runs pip against a pre-populated environment failed its step. This
surfaced live in box/fedora's check-jupyter-ml-pod bed (2026.231.0749): vllm's pinned
requirements vs the pixi.toml loose pins produced the notice, the install completed
(Successfully installed SecretStorage-3.5.0 … fastmcp-3.4.7 …), the build tagged the
image — and the gate failed the step anyway.

  • candy/plugin-check/bed_diagnostics.go — adds the conditional error-tier allowance
    pip-resolver-conflict-recovered, following the pacman-mirror-retrieval-recovered
    precedent: the line is exempt ONLY when the same step log proves the install completed
    (Successfully installed …). If pip never reports success, the entry does not claim the
    line and the step still fails — the error tier keeps its teeth. The Match is anchored to
    the exact fixed pip sentence (never a broad shape), and its RecoveredBy is pip's own
    success line for the same invocation. Because the notice names no package, there is no
    token to tie the recovery to — so allowanceRecovered now treats the %s subject-tie
    as OPTIONAL: an entry whose RecoveredBy carries %s keeps the token-tied form (pacman),
    and one that omits it uses the recovery pattern as-is, still conditional on the same step
    log proving the operation recovered. The step boundary is the tie: a step log is one pip
    invocation.
  • candy/plugin-check/bed_diagnostics_test.go — TestPipResolverConflictAllowanceIsConditional
    drives the entry three ways: the notice + Successfully installed … is exempt; the notice
    alone is fatal; an unrelated ERROR: line is NOT discharged by a pip success. The existing
    TestErrorTierEntriesAreConditional / TestConditionalErrorFailsWithoutRecovery /
    TestAllowlistEntriesAreWellFormed all still pass, so the pacman entry's token-tied
    behavior is unchanged.
  • CHANGELOG/2026.231.1026.md — the cutover narrative, R10 section in past tense with the
    actual result.

Change class

charly Go code (the compiled-in command:check plugin's bed-diagnostics gate).

Closes / relates to: the check-jupyter-ml-pod failure at 2026.231.0749 (fedora PR #18
roster). Relates to the pacman-mirror-retrieval-recovered precedent it extends.

Breaking change + rollback: none — adds one conditional allowance entry and makes the
%s subject-tie optional in allowanceRecovered (an entry that omits %s uses the
recovery pattern as-is; the pacman entry's token-tied form is unchanged). Rollback is a
plain revert.

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: charly Go code → go test ./... + go vet +
    task build:charly (R9 freshness + charly version check), then charly check run <bed>
    for the bed whose kind matches the touched code path. The touched path is the
    bed-diagnostics scanner — the gate is the consuming image's build, check-jupyter-ml-pod
    in box/fedora, the EXACT bed that failed at 2026.231.0749.
  • Binary: R9 — task build:binary, charly version = 2026.231.0715 (the worktree
    binary carrying this fix; the bed's own update leg is a fresh rebuild).
  • R10: disposable: true target, fresh rebuild. The stale image + build-cache layers
    were purged (charly clean --invalidate '*jupyter-ml*' + charly clean --deep) so the
    fresh build reproduces the notice. Result:
    [image-build] PASS after 8m40.729s [allowlisted=1 cache=27/279], summary reports
    errors: 0, warnings: 0, allowlisted: 1 with allowlisted: pip-resolver-conflict-recovered,
    and the bed passed all 13 steps (exit 0).
  • Did the CHANGED code path execute live? Yes — the fresh build reproduced the notice
    and the allowance claimed it, which is the changed path executing.
  • Concurrency: single bed; no shared-state concurrency path touched.

1. Unit gate:

$ go test ./candy/plugin-check/ -run 'TestPipResolverConflictAllowanceIsConditional|TestErrorTierEntriesAreConditional|TestConditionalErrorFailsWithoutRecovery|TestAllowlistEntriesAreWellFormed' -v
ok  	github.com/opencharly/charly/candy/plugin-check	...

2. Fresh-rebuild gate output:

$ ./bin/charly version
2026.231.0715
[image-build] PASS after 8m40.729s [allowlisted=1 cache=27/279]
summary: errors: 0, warnings: 0, allowlisted: 1 (pip-resolver-conflict-recovered)
check-jupyter-ml-pod: 13/13 steps, exit 0

Attribution tier

fully tested and validated. The changed path executed live on a disposable target
with a fresh rebuild, zero warnings, and unit coverage that fails without the change.

Harness rulebook compliance

  • R0 skills: /charly-check:check, /charly-internals:strict-policy,
    /charly-internals:go, /charly-internals:git-workflow, /charly-internals:plugin.
  • R1 RCA + zero warnings: the pip notice was root-caused — it is a description of the
    environment, not a swallowed failure (the install completes and exits 0). The fix is
    conditional on the same log proving recovery, so an unrecovered notice still fails the
    step. Zero errors and zero warnings on the R10 run.
  • R2 no out-of-scope: single cutover; nothing parked.
  • R3 no duplication: the pip entry follows the pacman precedent as a new allowance
    entry; the %s-optional tie is one shared abstraction in allowanceRecovered.
  • R4 no workaround: a conditional allowance, not a suppression — the error tier keeps
    its teeth (an install that never reports success still fails).
  • R5 hard cutover + grep: pip-resolver-conflict-recovered appears only in the
    defining code, the test, and CHANGELOG/; no transitional paths.
  • R6 git safety: origin/main merged into the branch (b173d8a) to drop stale
    duplicate commits; no force-push, no pushed-history rewrite.
  • R7 runtime gate: the consuming image's build, not go test.
  • R8 artifact invariants: N/A — no generation change in this repo.
  • R9 binary == source: rebuilt; charly version matches; no new runtime OS dep.
  • R10 disposable + coverage: disposable: true, fresh rebuild, zero warnings. Coverage
    fails without the change — remove the allowance and the reproduced notice fails the step
    (the unit tests pin the same three-way behavior).
  • RDD / ADE / SDD: RDD — the notice was observed live in the failing bed before the fix
    was written. ADE — N/A, no candy plan authored. SDD — N/A, no schema.
  • Hard cutover: one atomic commit per repo; no Phase 2.
  • Kernel/plugin boundary law: N/A — no charly/*.go touched; the change is inside
    the compiled-in command:check plugin (candy/plugin-check).
  • Disposable-only autonomy: the only destroy/rebuild was this disposable: true bed.
  • Clean architecture + Go gates: gofmt clean, go vet clean, golangci-lint 0
    issues, go test ./... green.
  • CHANGELOG: CHANGELOG/2026.231.1026.md present, valid CalVer, R10 section in past
    tense with the actual result.

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)

The google-chrome-stable RPM's %post scriptlet runs rpm --import to install
Google's signing key while dnf still holds the transaction lock. The import
fails with 'can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock'
and 'key N import failed', tripping the charly build gate (errors_fatal: true)
on every Fedora bed that composes the chrome candy.

Add option: [--setopt=tsflags=noscripts] to the candy's distro.fedora block.
The key is still installed by the repo: gpgkey: at repo-add time, outside the
transaction, so package verification is unaffected. RDD confirmed no
scriptlet-created artifact is lost.

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
…mpletes

The bed-diagnostics gate (candy/plugin-check/bed_diagnostics.go) scans every
step log for error:/warning: lines and fails the step on any non-allowlisted
error-tier line (errors_fatal: true). pip's dependency resolver prints this
notice when the environment ALREADY carries packages that conflict with the
install's requirements, then installs anyway and exits 0. The
severity-prefix recognizer matches the ERROR: prefix, so every image build
that runs pip against a pre-populated environment failed its step — observed
live in box/fedora's check-jupyter-ml-pod bed (2026.231.0749): vllm's pinned
requirements vs the pixi.toml loose pins produced the notice, the install
completed, the image tagged — and the gate failed the step anyway.

A conditional error-tier allowance `pip-resolver-conflict-recovered`,
following the pacman-mirror-retrieval-recovered precedent: the line is
exempt ONLY when the same step log proves the install completed
(`Successfully installed ...`). If pip never reports success, the entry
does not claim the line and the step still fails.

The %s subject-tie in allowanceRecovered is now OPTIONAL: an entry whose
RecoveredBy carries %s keeps the token-tied form (pacman), and one that
omits it uses the recovery pattern as-is, still conditional on the same step
log proving the operation recovered. The step boundary is the tie: a step
log is one pip invocation.

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
@atrawog

atrawog commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: code/config (Go — candy/plugin-check/bed_diagnostics.go)

Head SHA validated: d1fe7e160452c353aad97ab4384014d9555e42ab

The pip allowance change itself is correct and well-proven

I re-derived everything independently. The core change is sound:

  • Code: allowanceRecovered now treats the %s subject-tie as optional (strings.Contains(pattern, "%s") guard) — the pacman entry keeps its token-tied form, the pip entry uses its recovery pattern as-is, both still conditional on the same step log proving recovery. The pip entry's Match is anchored to the exact fixed pip sentence with a capture group (satisfying TestErrorTierEntriesAreConditional), and RecoveredBy is (?m)^Successfully installed . strings is imported. Correct.
  • Unit tests: I re-ran all five claimed tests plus the full package — all pass, including the three-way TestPipResolverConflictAllowanceIsConditional (recovered / no-recovery-fatal / unrelated-error-not-discharged).
  • Go gates: gofmt -l empty, go vet clean, golangci-lint run ./candy/plugin-check/ = 0 issues (isolated GOLANGCI_LINT_CACHE).
  • R10 evidence is REAL: box/fedora/.check/check-jupyter-ml-pod/2026.231.1050/summary.yml exists and reports errors: 0, warnings: 0, allowlisted: 1 with allowlisted: pip-resolver-conflict-recovered, all 13 steps ok: true, total_seconds: 967. image-build.log line 4321 carries the exact pip notice and line 4338 carries Successfully installed SecretStorage-3.5.0 … fastmcp-3.4.7 …. The binary (2026.231.0715, built 12:27) is newer than the source (12:24) and the bed ran at 13:07 — the changed path executed live against a binary containing the fix. The bed is the correct gate: it is the exact bed that failed at 2026.231.0749 with this notice.
  • R5 grep self-test: pip-resolver-conflict-recovered appears only in the CHANGELOG and the defining code. Clean.
  • Architecture placement: CORRECT — the bed-diagnostics gate is a check-run mode body living in the compiled-in command:check plugin (candy/plugin-check/), not core. No charly/*.go changes.

Blocking findings

F1 — Two cutovers in one PR; the second is already landed on main; the body does not document it (T3 scope mismatch; git-workflow "one cutover per PR").

The PR's diff (vs merge-base 90a39bd5) includes candy/chrome/charly.yml + CHANGELOG/2026.231.0714.md — the chrome candy tsflags=noscripts change. That change is already on main: origin/main:candy/chrome/charly.yml is byte-identical (sha256 7846ca4f…) and origin/main:CHANGELOG/2026.231.0714.md is byte-identical (sha256 f63b839d…), landed via 68ae138e "fix(candy): skip google-chrome-stable's %post scriptlet on Fedora". The PR branch carries the original chrome commits (44e67cd7, 450245ae) because it was created from a stale base and never refreshed. The PR body's Summary describes only the pip allowance and never mentions the chrome files. This is a description↔code mismatch (T3 FAIL) and two cutovers sharing one PR (forbidden by the git-workflow skill). The branch must be recreated from current main with only the pip change (or otherwise refreshed so the diff contains only the pip cutover), and the body must account for every file in the diff.

F2 — The PR's own CHANGELOG contradicts the PR body's R10 claim (R1 documentation divergence in the cutover's own new prose).

CHANGELOG/2026.231.1026.md (added by this PR) says, in the Verification section: "It re-runs against this tag once the fedora submodule reconciles to it (B6 step 4); the pip notice must report allowlisted: 1, errors: 0 and the bed must pass." — future tense, describing the R10 as pending. The PR body claims the R10 passed at 2026.231.1050, and the on-disk summary.yml confirms it. The CHANGELOG is stale: it describes the verification as not-yet-done when it is done. Per R1, a false/outdated claim in the cutover's own new narrative is blocking — the CHANGELOG's R10 section must state the actual result (past tense, with the 2026.231.1050 outcome) or be reconciled with the body.

F3 — Attribution footer not in the required italicized form.

The body ends with Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) — no asterisks. The required form is the italicized *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)* line. The footer must be wrapped in asterisks.

Checklist

  • [FAIL] 0. security & anti-tampering (T1–T4): no exfiltration / weakened-gate / supply-chain / manipulation finding, but F1 is a description↔code scope mismatch (undocumented files in the diff)
  • [FAIL] 1. description complete: body does not account for the chrome files (F1); footer not in the required italicized form (F3)
  • [PASS] 2. change-class gate: R10 bed is the correct gate (check-jupyter-ml-pod, the exact bed that failed at 0749); evidence real and fresh
  • [FAIL] 3. attribution tier: "fully tested and validated" is inconsistent with the PR's own CHANGELOG, which describes the R10 as pending (F2)
  • [PASS] 4. R0 skills honored: check / strict-policy / go / go-quality / git-workflow loaded and applied
  • [FAIL] 5. R1 RCA / zero warnings: F2 — documentation divergence in the PR's own new CHANGELOG prose
  • [PASS] 6. R2 no pre-existing/out-of-scope split: no deferral framings
  • [PASS] 7. R3 no duplication: pip entry follows the pacman precedent as a new allowance entry; the %s-optional tie is one shared abstraction
  • [PASS] 8. R4 no ad-hoc workaround: no sleeps/retries/magic numbers
  • [PASS] 9. R5 hard cutover + grep self-test: clean
  • [PASS] 10. R6/R8/R9 artifact + binary integrity: no destructive git actions; no generation changes; binary freshness verified
  • [PASS] 11. R10 disposable-only, fresh-rebuild, zero-warning, coverage: verified on disk (summary.yml + image-build.log), correct bed, changed path executed live
  • [PASS] 12. RDD/ADE/SDD: no schema changes; no new candy authoring in the pip part
  • [PASS] 13. concurrency mandate + anti-cheat: no shared-state concurrency path touched
  • [FAIL] 14. hard cutover — one atomic commit: F1 — two cutovers share one PR
  • [PASS] 15. ARCHITECTURE GATE — placement: CORRECT (candy/plugin-check is the compiled-in command:check plugin); no charly/*.go changes, so no per-item trace required
  • [PASS] 16. disposable-only autonomy: R10 ran on a disposable: true bed
  • [PASS] 17. clean architecture + go gates: gofmt/vet/golangci-lint/test all clean
  • [PASS] 18. CHANGELOG present: CHANGELOG/2026.231.1026.md present, valid CalVer format, placeholder free — but its R10 content is the F2 defect

Comments considered: none — the PR carried no comments.

Cross-PR interactions considered: opencharly/charly has only this PR open; plugins/sdk/docs have none; opencharly/distro-fedora #18 (ollama bed) — no file overlap or interaction with this change, verified-non-blocking.

Decision: FAIL — not merged. The author must fix:

  1. Refresh the branch so the PR contains only the pip cutover (the chrome change is already on main — recreate the branch from current main with only the pip commit, or otherwise drop the already-landed chrome commits from the PR's diff), and update the body to account for every file in the diff.
  2. Fix CHANGELOG/2026.231.1026.md's R10 section to state the actual passed result (past tense) instead of describing the R10 as pending.
  3. Wrap the body's attribution footer in asterisks: *Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)*.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

The R10 gate ran at 2026.231.1050 and passed; the changelog described it
as pending. Past tense with the actual result.
@atrawog

atrawog commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: code/config (Go — candy/plugin-check/bed_diagnostics.go)

Head SHA validated: 2cb35fe509e0e6bd9ca8eac0880baca33f60e4ab

The change itself is sound — all three prior findings are fixed

I re-derived everything independently; I did not trust the author's claims.

  • F1 (two cutovers in one PR): FIXED. git diff --stat $(git merge-base HEAD origin/main)..HEAD shows ONLY the pip cutover: CHANGELOG/2026.231.1026.md, candy/plugin-check/bed_diagnostics.go, candy/plugin-check/bed_diagnostics_test.go. The chrome change is gone from the diff; the merge commit b173d8aa brought the branch current with main (0 behind, 5 ahead).
  • F2 (CHANGELOG future-tense R10): FIXED. CHANGELOG/2026.231.1026.md's Verification section now records the actual passed result in past tense: "Result: [image-build] PASS after 8m40.729s [allowlisted=1 cache=27/279], summary reports errors: 0, warnings: 0, allowlisted: 1 … and the bed passed all 13 steps (exit 0)."
  • F3 (footer not italicized): FIXED. The body ends with the italicized *Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)*.

The code is correct

  • The pip allowance entry's Match is anchored to the exact fixed pip sentence with a capture group; RecoveredBy: (?m)^Successfully installed (no %s placeholder); the Why documents the conditional nature.
  • allowanceRecovered now treats the %s subject-tie as OPTIONAL (strings.Contains(pattern, "%s") guard) — the pacman entry keeps its token-tied form, the pip entry uses its recovery pattern as-is, both still conditional on the same step log proving recovery.
  • Unit tests: TestPipResolverConflictAllowanceIsConditional (three ways) + the existing conditional-error tests all pass (go test -count=1 ./candy/plugin-check/ = ok).
  • Go gates: gofmt -l empty, go vet clean, golangci-lint run ./candy/plugin-check/ = 0 issues (isolated GOLANGCI_LINT_CACHE).

R10 evidence is REAL

  • box/fedora/.check/check-jupyter-ml-pod/2026.231.1050/summary.yml exists: all 13 steps ok: true, errors: 0, warnings: 0, allowlisted: 1 with allowlisted: pip-resolver-conflict-recovered, total_seconds: 967.
  • image-build.log line 4321 carries the exact pip notice; line 4338 carries Successfully installed SecretStorage-3.5.0 … fastmcp-3.4.7 ….
  • The bed is disposable: true (box/fedora/charly.yml) and is the exact bed that failed at 2026.231.0749 with this notice.
  • Binary freshness: the worktree bin/charly (2026.231.0715, built 12:27) is newer than the source (12:24); the bed ran at 12:59–13:07; the allowance being applied in the summary proves the running binary contained the fix (the older ~/.local/bin/charly from 07:54 predates the source change and would have failed the step).
  • R5 grep: pip-resolver-conflict-recovered appears only in the CHANGELOG and the defining code.
  • CHANGELOG CalVer: 2026.231.1026.md matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-equal, placeholder free on main.

Blocking finding

F4 — The PR body is not in the template format and is missing the mandatory project-rulebook rule-compliance section (item 1).

The template (opencharly/.github/.github/PULL_REQUEST_TEMPLATE.md) requires, and the validator spec item 1 concretely requires, ALL of: a Summary of changes, a How R10-tested block, an Attribution tier, AND the project-rulebook rule-compliance section with EVERY applicable rule (R0–R10 + the pillars) answered with a one-line HOW (or N/A — <reason>). The body has ## Summary / ## The fix / ## Verification but:

  • No rule-compliance section — no R0–R10 + pillars answered with one-line HOWs. Both recently merged PRs carry this section (#287 "Harness rulebook compliance", #309 R0–R10 bullets); this body does not.
  • No Change class section (the template requires picking ONE: docs-only | candy/box-config | charly-or-sdk Go | hook/workflow | cross-repo).
  • No Closes/relates-to and no Breaking change + rollback lines (or none).
  • No structured How R10-tested blocks — the Verification section covers the gate and pasted output, but does not explicitly state the disposable: true target, the R9 binary-rebuild confirmation (task build:binary + charly version), or the evidence blocks (fresh-rebuild gate output / changed code path executing).
  • No Attribution tier section (the footer line is present, but the tier-justification section is not).

The change itself is correct and fully proven; the body must be restructured to the template format with the rule-compliance section filled in.

Checklist

  • [PASS] 0. security & anti-tampering (T1–T4): no exfiltration / scope-mismatch / weakened-gate / supply-chain / manipulation finding; the diff is exactly the 3 files, all accounted for in the body
  • [FAIL] 1. description complete: body missing the rule-compliance section and the template's structured sections (F4)
  • [PASS] 2. change-class gate: R10 bed is the correct gate (check-jupyter-ml-pod, the exact bed that failed at 0749); evidence real and fresh
  • [PASS] 3. attribution tier: "fully tested and validated" justified by the R10 evidence
  • [PASS] 4. R0 skills honored: check / strict-policy / go / go-quality / git-workflow loaded and applied
  • [PASS] 5. R1 RCA / zero warnings: zero warnings in the gate output; the pip notice root-caused (environment description, not a swallowed failure)
  • [PASS] 6. R2 no pre-existing/out-of-scope split: no deferral framings
  • [PASS] 7. R3 no duplication: pip entry follows the pacman precedent; the %s-optional tie is one shared abstraction
  • [PASS] 8. R4 no ad-hoc workaround: no sleeps/retries/magic numbers
  • [PASS] 9. R5 hard cutover + grep self-test: clean
  • [PASS] 10. R6/R8/R9 artifact + binary integrity: no destructive git actions; no generation changes; binary freshness verified
  • [PASS] 11. R10 disposable-only, fresh-rebuild, zero-warning, coverage: verified on disk (summary.yml + image-build.log), correct bed, changed path executed live
  • [PASS] 12. RDD/ADE/SDD: no schema changes; no new candy authoring
  • [PASS] 13. concurrency mandate + anti-cheat: no shared-state concurrency path touched
  • [PASS] 14. hard cutover — one atomic commit: the PR is one cutover (the merge commit is a main refresh, not a second cutover)
  • [PASS] 15. ARCHITECTURE GATE — placement: CORRECT (candy/plugin-check is the compiled-in command:check plugin); no charly/*.go changes, so no per-item trace required
  • [PASS] 16. disposable-only autonomy: R10 ran on a disposable: true bed
  • [PASS] 17. clean architecture + go gates: gofmt/vet/golangci-lint/test all clean
  • [PASS] 18. CHANGELOG present: CHANGELOG/2026.231.1026.md present, valid CalVer format, H1 byte-equal, placeholder free, R10 section in past tense

Comments considered: one comment — the previous validator's CHANGES REQUESTED verdict (atrawog). Its three findings (F1 two-cutovers, F2 CHANGELOG future-tense, F3 footer form) are all verified-fixed at the current head. Disposition: verified-non-blocking (findings resolved).

Cross-PR interactions considered: opencharly/charly has only this PR open; plugins/sdk/docs have none; opencharly/distro-fedora #18 (ollama bed) — different repo, no file overlap with this change, verified-non-blocking.

Decision: FAIL — not merged. The change itself is correct and fully proven; the three prior findings are fixed. The author must restructure the PR body to the template format: add the project-rulebook rule-compliance section (R0–R10 + pillars, one-line HOW each or N/A — <reason>), the Change class section, the Closes/relates-to and Breaking change + rollback lines, the structured How R10-tested blocks (including the explicit disposable: true target and the R9 binary-rebuild confirmation), and the Attribution tier section.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

@atrawog

atrawog commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly Go code (the compiled-in command:check plugin's bed-diagnostics gate)

Head SHA validated: 2cb35fe509e0e6bd9ca8eac0880baca33f60e4ab (remote ref, git ls-remote)

The change

The bed-diagnostics gate (candy/plugin-check/bed_diagnostics.go) scans every step log for error:/warning: lines and fails the step on any non-allowlisted error-tier line. pip's dependency resolver prints ERROR: pip's dependency resolver does not currently take into account all the packages that are installed… when the environment already carries conflicting packages, then installs anyway and exits 0. The severity-prefix recognizer matched the ERROR: prefix, so every image build running pip against a pre-populated environment failed its step — observed live in box/fedora's check-jupyter-ml-pod bed at 2026.231.0749.

The PR adds the conditional error-tier allowance pip-resolver-conflict-recovered (following the pacman-mirror-retrieval-recovered precedent): the line is exempt ONLY when the same step log proves the install completed (Successfully installed …). Because the notice names no package, there is no token to tie the recovery to — so allowanceRecovered now treats the %s subject-tie as OPTIONAL (strings.Contains(pattern, "%s") guard): an entry whose RecoveredBy carries %s keeps the token-tied form (pacman), one that omits it uses the recovery pattern as-is. The step boundary is the tie.

Independent re-derivation (trusting none of the author's claims)

  • Allowance entry — Match anchored to the exact fixed pip sentence with a capture group; RecoveredBy: (?m)^Successfully installed (no %s); Why documents the conditional nature. Verified in the committed file at the PR head.
  • allowanceRecovered — the %s-optional guard is present: pattern := a.RecoveredBy; if strings.Contains(pattern, "%s") { pattern = fmt.Sprintf(pattern, regexp.QuoteMeta(m[1])) }. The strings import is present. The pacman entry keeps its token-tied form.
  • Unit tests — TestPipResolverConflictAllowanceIsConditional drives the entry three ways (recovered → exempt; notice alone → fatal; unrelated ERROR not discharged by pip success). Re-ran: go test -count=1 ./candy/plugin-check/ = ok.
  • Go gates — re-ran: gofmt -l empty, go vet ./... clean, golangci-lint run ./... = 0 issues (isolated GOLANGCI_LINT_CACHE).
  • R10 evidence on disk — box/fedora/.check/check-jupyter-ml-pod/2026.231.1050/summary.yml exists: all 13 steps ok: true, errors: 0, warnings: 0, allowlisted: 1 with allowlisted: pip-resolver-conflict-recovered, total_seconds: 967. image-build.log line 4321 carries the exact pip notice; line 4338 carries Successfully installed SecretStorage-3.5.0 … fastmcp-3.4.7 …. The bed is disposable: true (box/fedora/charly.yml) and is the exact bed that failed at 2026.231.0749.
  • Binary freshness (R9) — the worktree bin/charly (2026.231.0715, built 12:27 from a dirty tree at commit 450245a with the fix uncommitted) is newer than the source (12:24); the bed ran 12:59–13:07; the allowance being applied in the summary proves the running binary contained the fix. The compiled Go code matches the final committed code (2cb35fe only touched the CHANGELOG). This is the dirty-tree build case scripts/calver.sh explicitly supports.
  • Branch cleanliness — git diff --stat $(git merge-base HEAD origin/main)..HEAD shows ONLY the pip cutover: CHANGELOG/2026.231.1026.md, candy/plugin-check/bed_diagnostics.go, candy/plugin-check/bed_diagnostics_test.go. The two stale duplicate commits (44e67cd, 450245a) contribute zero net diff (already on main); the merge b173d8aa brought the branch current (0 behind, 5 ahead). Remote reflog shows only normal "update by push" entries — no force-push.
  • R5 grep — pip-resolver-conflict-recovered appears only in the defining code, the test, and CHANGELOG/.
  • CHANGELOG — 2026.231.1026.md matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-equal (# 2026.231.1026 — bed diagnostics: exempt pip's resolver-conflict notice when the install completes), placeholder free on main, R10 section in past tense with the actual result.

Checklist

  • [PASS] 0. security & anti-tampering (T1–T4): no exfiltration / scope-mismatch / weakened-gate / supply-chain / manipulation finding; the diff is exactly the 3 files, all accounted for in the body
  • [PASS] 1. description complete: full template — Summary of changes, Change class (with Closes/relates-to + Breaking change/rollback), How R10-tested (disposable target, R9 binary confirmation, pasted output, changed-path-executed), Attribution tier, Harness rulebook compliance (R0–R10 + pillars, one-line HOW each), body ends with the italicized *Assisted-by: …* footer
  • [PASS] 2. change-class gate: R10 bed is the correct gate (check-jupyter-ml-pod, the exact bed that failed at 0749); evidence real and fresh
  • [PASS] 3. attribution tier: fully tested and validated justified — the changed path executed live on a disposable target with a fresh rebuild, zero warnings, coverage that fails without the change
  • [PASS] 4. R0 skills honored: check / strict-policy / go / go-quality / git-workflow / cutover-policy loaded and applied
  • [PASS] 5. R1 RCA / zero warnings: zero warnings in the gate output; the pip notice root-caused (environment description, not a swallowed failure); the fix is conditional on recovery
  • [PASS] 6. R2 no pre-existing/out-of-scope split: no deferral framings
  • [PASS] 7. R3 no duplication: pip entry follows the pacman precedent; the %s-optional tie is one shared abstraction
  • [PASS] 8. R4 no ad-hoc workaround: a conditional allowance, not a suppression — the error tier keeps its teeth
  • [PASS] 9. R5 hard cutover + grep self-test: clean
  • [PASS] 10. R6/R8/R9 artifact + binary integrity: no destructive git actions; no generation changes; binary freshness verified
  • [PASS] 11. R10 disposable-only, fresh-rebuild, zero-warning, coverage: verified on disk (summary.yml + image-build.log), correct bed, changed path executed live
  • [PASS] 12. RDD/ADE/SDD: no schema changes; no new candy authoring
  • [PASS] 13. concurrency mandate + anti-cheat: no shared-state concurrency path touched
  • [PASS] 14. hard cutover — one atomic commit: the PR is one cutover (the merge commit is a main refresh, not a second cutover)
  • [PASS] 15. ARCHITECTURE GATE — placement: CORRECT (candy/plugin-check is the compiled-in command:check plugin); no charly/*.go changes, so no per-item trace required
  • [PASS] 16. disposable-only autonomy: R10 ran on a disposable: true bed
  • [PASS] 17. clean architecture + go gates: gofmt/vet/golangci-lint/test all clean (re-ran)
  • [PASS] 18. CHANGELOG present: CHANGELOG/2026.231.1026.md present, valid CalVer format, H1 byte-equal, placeholder free, R10 section in past tense

Comments considered:

  • atrawog (validator round 1, head d1fe7e1) — CHANGES REQUESTED: F1 two-cutovers-in-one-PR, F2 CHANGELOG future-tense, F3 footer form. All three verified-fixed at the current head. Disposition: verified-non-blocking.
  • atrawog (validator round 2, head 2cb35fe) — CHANGES REQUESTED: F4 PR body not in template format / missing rule-compliance section. Verified-fixed: the body now has the full template (Summary, Change class, How R10-tested, Attribution tier, Harness rulebook compliance R0–R10 + pillars, italicized footer). Disposition: verified-non-blocking.

Cross-PR interactions considered:

Decision: PASS — merged. The change is correct, fully proven, and in full rulebook compliance. The three prior findings (F1–F3) and the round-2 finding (F4) are all verified-fixed at the current head.

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)

…alVer 2026.231.1222

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
@atrawog
atrawog merged commit 826800e into main Aug 19, 2026
2 checks passed
@atrawog
atrawog deleted the feat/scanner-pip-allowance branch August 19, 2026 12:34
@atrawog

atrawog commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — merge outcome

Merged (squash) as 826800ebe6626c87520ad78114d99d7910d80a36, tagged v2026.231.1222 on the merged HEAD. The landed CHANGELOG/2026.231.1222.md H1 byte-equals the minted CalVer; the squash-merge trailer parses exactly to Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated).

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)

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.

1 participant