Skip to content

chore: bump spec v0.2026246.554 → v0.2026248.128 (refs git-op deadline + retry) - #208

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/spec-0.2026248.128-refs-timeout
Sep 5, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
chore/spec-0.2026248.128-refs-timeout

Conversation

@atrawog

@atrawog atrawog commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Pins github.com/opencharly/spec v0.2026246.554 → v0.2026248.128 (spec PR #94). The new spec version bounds every network git subprocess in the @github ref resolution with a context deadline + bounded retry: refs.GitResolveRef / GitLatestTag / GitDefaultBranch / GitClone (commit-fetch + branch-clone paths) / populateSubmodules now run through an internal runGitOp runner — 30s deadline for ref metadata (ls-remote), 60s for transfer (clone/fetch/submodule), 2 retries with 500ms/1s backoff, re-issuing on a deadline kill or on git's transient-network signatures ("RPC failed / HTTP/2 stream reset", connection reset, "Empty reply from server", 5xx). The pre-fix path used a bare exec.Command with no deadline, so a connection killed in a GitHub HTTP/2 reset window (curl error 92 CANCEL) blocked the pre-deploy @github resolution FOREVER (r9 wave forensics: 3 eval lanes froze before deploy-add — 21 threads, 20x futex_wait + 1x do_epoll_wait on a dead socket). Permanent failures (repo not found / 404 / 403) fail fast without retry.

No sdk code change: the refs API surface is unchanged (the runner is internal to spec/refs); loaderkit's version-less latest-tag resolution, EnsureRepoDownloaded, GitClient warm-up and kit's DefaultDownloader all pick up the bounded resolution through this pin.

How tested

go build ./... → ok (10 packages)
go vet ./...  → clean
go test ./... → 10 packages ok, 0 FAIL
  ok  github.com/opencharly/sdk	0.084s
  ok  github.com/opencharly/sdk/agentkit	0.378s
  ok  github.com/opencharly/sdk/buildkit	0.008s
  ok  github.com/opencharly/sdk/candywalk	(cached)
  ok  github.com/opencharly/sdk/deploykit	4.868s
  ok  github.com/opencharly/sdk/enginekit	0.005s
  ok  github.com/opencharly/sdk/kit	2.044s
  ok  github.com/opencharly/sdk/loaderkit	0.892s
  ok  github.com/opencharly/sdk/packagekit	0.013s
  ok  github.com/opencharly/sdk/vmshared	0.119s

The deadline/retry behavior itself is covered by spec PR #94's fault-injection suite (refs/git_op_timeout_test.go) — a real git http-backend server whose first connection hangs/drops: the fetch times out, retries, and succeeds on the retry; a permanently-hanging server is bounded; a 404 is not retried.

Rulebook compliance

R1: the dead-socket freeze root-caused from the r9 wave forensics; R3: no duplicated logic (one runner in spec/refs, all call sites route through it); R4: real deadline + retry, no workaround; R6: git-safe — clean branch from origin/main, no force-push; go build/vet/test green. Change classification: chore / dependency pin (fix landed in spec PR #94). Verification gate: full unit-test suite on the bumped tree. Follow-up note: the sdk's own pinned consumers (charly, plugins) pick the new spec up via their own go.mod bumps.

Assisted-by: pi ollama-cloud/deepseek-v4-flash:0731 (fully tested and validated)

…ne + retry)

The bump pulls in spec PR #94: every network git subprocess in the @github
ref resolution (refs.GitResolveRef / GitLatestTag / GitDefaultBranch /
GitClone / gitCloneByCommit / populateSubmodules) now runs through a
bounded runner — a context deadline (30s ref metadata / 60s transfer) plus
2 bounded retries with backoff — so a connection killed in a GitHub HTTP/2
reset window (curl error 92 CANCEL / "RPC failed; HTTP/2 stream 5 reset")
re-resolves instead of hanging the pre-deploy phase forever (r9 wave
forensics: 3 eval lanes froze on a dead socket — 20x futex_wait + 1x
do_epoll_wait). Permanent failures (repo not found / 404) fail fast
without retry.

No sdk code change: the refs API surface is unchanged (the runner is
internal to spec/refs); loaderkit's collection + EnsureRepoDownloaded and
kit's DefaultDownloader pick up the bounded resolution through the pinned
spec version.
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: dcc23f1ca0a8cd4f393195c8bf785a7690eb643c (branch: chore/spec-bump)

Security screen: PASS — minimal dependency pin (spec v0.2026246.554 → v0.2026248.128) in go.mod/go.sum only; no new module, no secrets, no scope mismatch, no guardrail changes. go.sum hashes updated consistently with go.mod.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body complete, names the gate (full unit suite on bumped tree), pasted output internally consistent (10 packages, all ok), attribution footer present and not inflated for a dependency pin.
  • R1/R3/R4: real RCA (dead-socket freeze forensics), single runner in spec/refs, deadline+retry not a workaround.
  • R6: git-safe stated; R8/R9/R10-bed NA (no generation change, no target exercise, dependency pin not a runtime sdk change).
  • B13/B16/B18: no candy/schema/Go-code change; placement CORRECT (refs API surface unchanged).
  • No comments on thread to adjudicate.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 5, 2026 01:29
@github-actions
github-actions Bot merged commit d381c71 into main Sep 5, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 5, 2026
@aitrawog
aitrawog deleted the chore/spec-0.2026248.128-refs-timeout branch September 25, 2026 19:06
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