Repository navigation
fix: repair the sdk/spec contract pins so the go gate is green - #665
Conversation
`origin/main` is red: its `ci` workflow's `go` job fails `TestContractPinsMatchShared`, and `go build ./...` for the core module fails to resolve. Two independent breaks from the same dependency bump (charly#663, which moved spec/sdk/plugin-check/plugin-fleet forward for the RunEnv cutover): 1. `charly/go.mod` was bumped to `sdk v0.2026268.1823` / `spec v0.2026268.1800`, but `charly/go.sum` was left with the OLD sums (`sdk …2238`, `spec …642`). The core module could not build or `go run` its own `internal/pluginsgen` (both need the spec `refs` package), which is why a fresh `scripts/bootstrap-charly.sh` failed at the pluginsgen step. Repaired with `go mod tidy` in `charly/`. 2. The `tools/*` modules were not bumped at all — they still required `sdk v0.2026266.1111` / `spec v0.2026267.834` while the shared pin moved on. Aligned and tidied with the owning task `charly task mods-tidy`, which adopts the shared `charly/go.mod` pins into every lockstep module and keeps go.mod and go.sum in step. Fix class: dependency/maintenance. The remedy is the project's own task, not a hand-edit. Covered by the existing `TestContractPinsMatchShared` (it failed before, passes now) plus the full `go build/vet/test`. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
The session model moved to the umbrella (<umbrella>/.worktrees/<slug>/<repo>/), so the .claude/worktrees/ ignore entry and its rationale comment are dead config: nothing creates that directory any more. Removing it is the R5 completeness half of the rename; the umbrella owns the single .worktrees/ entry. Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed)
Empty commit: the body now accounts for the .gitignore cleanup in the diff and pastes the final diffstat. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Empty commit: corrects the R5 rule answer (the .claude/worktrees removal is now in the named opencharly/charly#665, not this docs-only diff). Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed)
Review — BLOCKHead SHA: Change class: dependency/config (module pins + Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
`origin/main` is red: its `ci` workflow's `go` job fails `TestContractPinsMatchShared`, and `go build ./...` for the core module fails to resolve. Two independent breaks from the same dependency bump (charly#663, which moved spec/sdk/plugin-check/plugin-fleet forward for the RunEnv cutover): 1. `charly/go.mod` was bumped to `sdk v0.2026268.1823` / `spec v0.2026268.1800`, but `charly/go.sum` was left with the OLD sums (`sdk …2238`, `spec …642`). The core module could not build or `go run` its own `internal/pluginsgen` (both need the sdk/spec packages), which is why a fresh `scripts/bootstrap-charly.sh` failed at the pluginsgen step. Repaired with `go mod tidy` in `charly/`. 2. The `tools/*` modules were not bumped at all — they still required `sdk v0.2026266.1111` / `spec v0.2026267.834` while the shared pins moved on. Aligned and tidied with the owning task `charly task mods-tidy`, which adopts the shared `charly/go.mod` pins into every lockstep module and keeps go.mod and go.sum in step. Fix class: dependency/maintenance. The remedy is the project's own task, not a hand-edit. Covered by the existing `TestContractPinsMatchShared` (it failed before, passes now) plus the full `go build/vet/test`. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Empty commit: the body now pastes real before/after evidence for both pin breaks (tools/* reverted to origin/main -> failing test; charly/go.sum reverted -> failing core build) and the .gitignore change is dropped (it moves to the model-adoption PR). Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/network calls; no guardrail, CI-script, validator-spec or rulebook edit; no embedded directive to the reviewer. The pin moves align Comment intake —
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Empty commit: the body now states the branch is merged onto current main (incl. #665's pin repair), pastes go build/vet/test + version output that matches that base, and sets the tier to documentation reviewed. Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed)
* docs: umbrella-centric, harness-independent development model Rewrite the umbrella rulebook around one development model and clean up the documentation that contradicted or had gone stale alongside it. Development model (AGENTS.md): - Rule 4 now states the session model instead of banning worktrees: a session roots at the umbrella and edits every repo through its own worktree under <umbrella>/.worktrees/<slug>/<repo>/, so the tracked submodule checkouts stay at their gitlinks and clean. A new "The development model" section spells out the root/worktree rule, the two ownership scopes (exclusive vs safely-shared), the concurrency rules (session-scoped --tag / bed_domain; sync/verify as the only gitlink writers), producer-first landing, and the precise invocation (./charly/bin/charly task <name>). - Rule 9 (session ownership) now names the worktree as owned state. - Harness names leave the policy prose: rule 8 splits "identical-by-design" (gate scripts + reasonix settings, diff-checked by task harness) from "deliberately-forked" (per-harness settings/workflows, recorded in HARNESS-PARITY.md); the Hooks doctrine is reworded harness-neutrally. - Invocation examples use the precise form; rule 6 no longer names `plugins` (not a submodule). Cleanup: - .gitignore: .claude/worktrees/ -> .worktrees/. - HARNESS-PARITY.md: rewritten as a current parity map (the old doc still described the initial plan and named deleted scripts/paths). - DOC-VERIFICATION.md and PLAN-mise.md: HISTORICAL banners so their frozen pins are not read as current. - README.md: maintenance commands use ./charly/bin/charly. Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed) * docs: keep .gitignore out of this PR The `.gitignore` entry is manifest/config, which makes the PR a docs+manifest diff and (per the validator) puts it outside the documentation-only tier. It moves to the follow-up gitlink-bump PR together with the rest of the umbrella manifest plumbing, so this PR is genuinely documentation-only. Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed) * docs: re-freeze the PR body against the final head Empty commit: the PR body (R7 verify output with the operator-authorized foreign-state skip, the full rule-compliance section, and the authoring-runtime evidence) was finalized after the previous head. Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed) * docs: re-freeze the PR body against the final head Empty commit: corrects the R5 rule answer (the .claude/worktrees removal is now in the named opencharly/charly#665, not this docs-only diff). Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed) * chore: adopt .worktrees/ in the umbrella ignore and reconcile rule 4 Carry the umbrella's own ignore-entry change here (this repo introduces the <umbrella>/.worktrees/<slug>/<repo>/ model in rule 4, so its manifest must change in lockstep): .claude/worktrees/ -> .worktrees/. A charly PR cannot modify this repo's file, so the cleanup was orphaned where it was previously routed. Reconcile rule 4 with rule 6: sdk and spec are NOT submodules (they resolve from the Go proxy at pinned go.mod requires), so rule 4 no longer lists them among the repos a session checks out as a worktree here. Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system) * docs: re-freeze the PR body against the final head Empty commit: the body now carries the .gitignore change in THIS repo (not routed to a charly PR), reconciles rule 4 with rule 6 on spec/sdk, and sets the tier to analysed on a live system per the live gate output. Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
…he dead worktrees ignore) (#666) * docs: make charly's rulebook point at the umbrella session model Remove charly/AGENTS.md's two copies of the session/worktree doctrine (the Hard-Cutover "every session works in .claude/worktrees/<slug>/" paragraph and the Post-Execution-Policies worktree reference) and replace them with a single pointer to the umbrella's development model. Workflow (where a session roots, worktree layout, landing, pins) is owned by the umbrella AGENTS.md; this file owns charly's technical rules. Make CLAUDE.md a symlink to AGENTS.md, matching the umbrella's existing decision: the hand-synced 36KB mirror had already drifted (339 divergent lines), so one rulebook removes the drift class (R3/R5). Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed) * chore: drop the stale .claude/worktrees/ gitignore entry The session model moved to the umbrella (<umbrella>/.worktrees/<slug>/<repo>/), so the .claude/worktrees/ ignore entry and its rationale comment are dead config: nothing creates that directory any more. The umbrella owns the single .worktrees/ entry. Removing it is the R5 completeness half of the rename. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * docs: re-freeze the PR body against the final head Empty commit: the body now states the branch is merged onto current main (incl. #665's pin repair), pastes go build/vet/test + version output that matches that base, and sets the tier to documentation reviewed. Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed)
Summary
Repair the sdk/spec contract pins so the
gogate is green.origin/mainiscurrently red: its
ciworkflow'sgojob failsTestContractPinsMatchSharedand the core module cannot build. Two independent breaks from the same dependency
bump (charly#663, "bump spec/sdk/plugin-check/plugin-fleet for the RunEnv cutover"):
charly/go.sumwas not updated withcharly/go.mod. The bump moved therequires to
sdk v0.2026268.1823/spec v0.2026268.1800, butgo.sumstillcarried the old
sdk …2238/spec …642sums. The core module therefore couldnot build, and a fresh
scripts/bootstrap-charly.shfailed at its first step —go run ./internal/pluginsgen— withmissing go.sum entry for module providing package github.com/opencharly/sdk(and the same for
spec/proto). Repaired withgo mod tidyincharly/.The
tools/*modules were not bumped.tools/{generate-packages,golden-cloudinit,golden-compile}/go.modstill required
sdk v0.2026266.1111/spec v0.2026267.834, soTestContractPinsMatchSharedfailed against the shared pins. Aligned with theproject's own task
charly task mods-tidy, which adopts the sharedcharly/go.modpins into every lockstep module and keepsgo.modandgo.sumin step.
This is an R1 fix for a pre-existing, main-breaking defect; the remedy is the
project's own task, not a hand-edit.
How tested
Fix class: dependency/maintenance. Run in this worktree (
fix/tools-contract-pins).The shared pins the test compares against are
charly/go.mod(source of truth):Before — with
tools/*atorigin/main, the test fails against those pins:Before — with
charly/go.sumatorigin/main, the core module cannot build:After — the remedy task and the test:
Full Go gate (module root
charly/, from this worktree):The diff (module pins + sums only):
Rulebook compliance
gofailure was root-caused to twoconcrete causes (a
go.sumleft behind by a require bump, and an unbumpedtools/*set) rather than treated as noise.change, in-tree.
mods-tidy); noparallel mechanism is introduced.
go mod tidy—not a suppression of the test or a hand-pin.
TestContractPinsMatchSharedisre-run with real before/after output; the core build fails before and passes after;
go vet+go test ./...pass.go.mod/go.sumare theartifacts under test, validated by the in-repo contract test.
scripts/bootstrap-charly.sh-built binary (2026.268.1920); regenerating theplugin wiring left no tracked change.
(
.worktrees/tools-contract-pins/charly/); no other session's checkout was touched.Change classification
go vet+go test ./....Authoring-runtime identity (attribution evidence)
The authoring runtime is OpenCode on the
ollama-cloudprovider, model IDollama-cloud/deepseek-v4.1-flash, resolved from the provider's own registry(
opencode models --provider ollama-cloud).Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)