Skip to content

feat: egress schema for the crabbox local-container config (crabbox-yaml) - #3

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/crabbox-yaml-egress
Sep 7, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/crabbox-yaml-egress

Conversation

@atrawog

@atrawog atrawog commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Egress schema for the rendered crabbox local-container config (~/.config/crabbox/config.yaml) that the new config: plan-step verb produces (contract: opencharly/spec#117 + sdk emitter opencharly/sdk#237).

  • egress-schemas/egress_crabbox.cue: #CrabboxYaml — types the docs/providers/local-container.md surface (non-empty provider; localContainer.{runtime,image,user,workRoot,cpus,memory,network,dockerSocket,noHostname,volumes} typed; noHostname/dockerSocket REAL bools). The ... tolerances keep upstream field additions from hard-failing while still catching type errors.
  • main.go: registers the kind ("crabbox-yaml": "#CrabboxYaml").
  • crabbox_egress_test.go: good minimal / good noHostname-bool / string-bool rejected / missing-provider rejected.

How tested

$ go build ./...
$ go test ./... -run TestEgress -count=1 -v
--- PASS: TestEgressCrabboxYaml (0.02s)
--- PASS: TestEgressValidate (0.02s)
PASS
ok  github.com/opencharly/plugin-egress/candy/plugin-egress 0.040s
$ go test ./... -count=1
?   github.com/opencharly/plugin-egress/candy/plugin-egress/cmd/serve [no test files]
ok  github.com/opencharly/plugin-egress/candy/plugin-egress

Rulebook compliance (per-rule dispositions)

  • R1 (RCA every anomaly): N/A — no failure/anomaly observed; the schema mirrors the upstream local-container.md contract.
  • R2 (finish the cutover): N/A — additive egress schema; no cutover in this repo.
  • R3 (no duplication): the schema follows the existing package-less egress-schema pattern (concatenated def set + kindDefPaths) — no parallel mechanism (HOW: single registration in kindDefPaths).
  • R4 (no workarounds): no sleeps/retries/bypasses (HOW: pure schema + registration).
  • R5 (delete legacy): N/A — nothing removed.
  • R6 (git safety): branch-per-change PR, no force-push (HOW: feat/crabbox-yaml-egress only).
  • R7 (prove the gate): build + both egress tests pasted above (HOW: test run output).
  • R8 (emitted artifacts): N/A — no Containerfile/artifact emission touched.
  • R9 (binary equals source): N/A — this repo has no deployed binary (plugin compiled into consumers).
  • R10 (fresh disposable proof): N/A for this repo alone — the end-to-end disposable proof lands in the distro-cachyos bed R10 (check-crabbox-e2e-pod) once the wave's charly re-pin merges; the schema's live execution is proven here by the egress test suite.

Change classification

  • Class: plugin-egress schema (contract consumer). Verification gate: egress test suite green. Attribution: fully tested and validated.

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

…aml)

Registers the crabbox-yaml egress kind (#CrabboxYaml) so the config: verb's
validate: option can gate rendered crabbox.yaml bytes: typed localContainer
surface (noHostname/dockerSocket real bools), non-empty provider, tolerant of
upstream field additions. Tests: good/bad cases.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: bab267b4481b (branch: feat/egress-crabbox-yaml)

Change class: plugin-egress schema (code/config — Go + CUE).

Security screen: PASS — no scope mismatch (all 3 files accounted for in the body), no secrets/exfiltration, no weakened guardrails, no new dependencies.

Blocks

  1. A1/A2 — "How tested" describes results but pastes no output. The body claims go build ./... clean and go test ./... -run TestEgress -count=1 -v → TestEgressCrabboxYaml + TestEgressValidate PASS, but supplies only a prose description of the outcome — no actual pasted command output. A1 requires pasted output (not a promise), and A2 requires a runtime/code change to carry a fresh-rebuild run with pasted output. Per ground rule 4, a missing re-run cannot pass on the author's word alone. The claimed tier fully tested and validated is therefore not justified by the evidence as presented. Fix: paste the real go build ./... and go test ./... -run TestEgress -count=1 -v output (showing the new TestEgressCrabboxYaml case passing) into the body.

Verdict: BLOCK


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

View action run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: ea326e05d59a (branch: feat/egress-crabbox-yaml)

Change class: plugin-egress schema (code/config — Go + CUE).

Security screen: PASS — no scope mismatch (all 3 files accounted for in the body), no secrets/exfiltration, no weakened guardrails, no new dependencies, no embedded directives.

Blocks

  1. A1 — incomplete rule-compliance section. The body's Rulebook compliance section answers only R3 and R7. For a code/config change, the remaining applicable rules (R1, R2, R4, R5, R6, R8, R9, R10) must each be answered with a one-line HOW or an explicit N/A — <reason> where the change class excludes them. The body supplies neither. Add the missing per-rule dispositions (e.g. N/A — no runtime cutover / no removed identifiers / no generated Go / no deployed binary / no disposable targets).

  2. B18 — gofmt-dirty file. candy/plugin-egress/crabbox_egress_test.go ends with \ No newline at end of file; gofmt enforces a trailing newline and would reformat this file. Add the trailing newline (same for egress_crabbox.cue).

Comment intake

  • github-actions[bot] (id 5568609219) — stale-superseded: its sole finding (missing pasted gate output) is resolved — the current body now pastes go build ./... and go test ./... output showing TestEgressCrabboxYaml and TestEgressValidate PASS, which is internally consistent with the diff.

Verdict: BLOCK


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

View action run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 430a93004a3c (branch: feat/egress-crabbox-yaml)

Change class: plugin-egress schema (code/config — Go + CUE).

Security screen: PASS — no scope mismatch (all 3 files accounted for in the body), no secrets/exfiltration, no weakened guardrails, no new dependencies, no embedded directives.

Blocks

  1. B18 — gofmt-dirty files (missing trailing newline). Both new files end with \ No newline at end of file in the CURRENT diff:

    • candy/plugin-egress/crabbox_egress_test.go (last line })
    • candy/plugin-egress/egress-schemas/egress_crabbox.cue (last line })

    gofmt (and cue fmt) enforce a trailing newline and would reformat both files. This is a NEW finding visible in the diff that the formatting gates would catch — BLOCK regardless of CI status. Add the trailing newline to both files.

Comment intake

  • github-actions[bot] (id 5568609219) — stale-superseded: its sole finding (missing pasted gate output) is resolved — the current body pastes go build ./... and go test ./... output showing TestEgressCrabboxYaml and TestEgressValidate PASS, internally consistent with the diff.
  • github-actions[bot] (id 5568713317) — finding 1 (incomplete rule-compliance section) stale-superseded: the current body now carries a full R1–R10 per-rule disposition section. Finding 2 (gofmt-dirty / missing trailing newline) verified-blocking: still present in the current diff (block fix: remove the stray charly submodule; fetch charly at CI time into a temp checkout #1 above).

Verdict: BLOCK


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

View action run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 42070991df5a (branch: feat/egress-crabbox-yaml)

Security screen: PASS — no scope mismatch (all 3 files accounted for in the body), no secrets/exfiltration, no weakened guardrails, no new dependencies, no embedded directives.

Checklist: All applicable rules PASS or NA.

  • A1/A2 — Body accounts for all 3 files; pasted go build ./... and go test ./... output showing TestEgressCrabboxYaml + TestEgressValidate PASS, internally consistent with the diff; full R1–R10 per-rule dispositions present; ends with the exact *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)* footer.
  • A3 — fully tested and validated justified: the new crabbox-yaml validation path executed live against the fresh build in the test suite.
  • B13 SDD — CUE schema compiled at runtime via newProvider() (existing package-less pattern); no generated Go required; no hand-written wire types; no banned patterns.
  • B16 — placement CORRECT: capability (new egress kind) lives in the candy (plugin-egress), not core/sdk.
  • B18 — trailing-newline finding resolved by the final style: trailing newlines commit; current diff shows no \ No newline at end of file markers.

Comment intake:

  • github-actions[bot] (5568609219) — stale-superseded: missing-pasted-output finding resolved; body now pastes real gate output.
  • github-actions[bot] (5568713317) — stale-superseded: incomplete rule-compliance section now filled (R1–R10); trailing-newline finding fixed by last commit.
  • github-actions[bot] (5568784305) — stale-superseded: trailing-newline finding fixed by the style: trailing newlines (B18) commit; current diff shows no missing-newline markers.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 7, 2026 09:51
@github-actions
github-actions Bot merged commit 3d9c241 into main Sep 7, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 7, 2026
@atrawog
atrawog deleted the feat/crabbox-yaml-egress branch September 7, 2026 14:21
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