Skip to content

feat(agentteams): marketplace family + skills + docs surface (Unit 7) - #254

Merged
atrawog merged 6 commits into
mainfrom
feat/agentteams-docs
Aug 12, 2026
Merged

atrawog merged 6 commits into
mainfrom
feat/agentteams-docs

Conversation

@atrawog

@atrawog atrawog commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Unit 7 of the AgentTeams integration — the documentation surface, plus the controller-endpoint
default correction it surfaced. The AgentTeams stack now ships as a first-class agentteams
marketplace family, discoverable and documented end to end:

  • Marketplace family registry — agentteams joins the marketplace: families: map in
    candy/charly-hooks/charly.yml (category: images, profiles: [container]), so any skill
    declaring the family publishes under plugins/agentteams/ instead of failing the generator's
    closed family gate.
  • agentteams candy skill entity (candy/agentteams/charly.yml) — the full-stack box skill:
    the decomposed minio/matrix/element/higress/controller candies, the home-relative volumes
    (~/.agentteams/{minio,matrix,higress,controller}), the container ports, the pod + vm deploy
    substrates, the deploy-overridable AGENTTEAMS_* env, and the controller-spawns-manager →
    create-worker → room verification sequence.
  • agentteams-cli candy skill entity (candy/plugin-agentteams/charly.yml) — the compiled-in
    charly agentteams management CLI skill: command tree (status, worker|team|human …,
    apply -f, config), endpoint/token discovery, and worker-create flags.
  • Controller endpoint default corrected (candy/plugin-agentteams/control.go + the skill
    description) — the CLI's hardcoded default was the upstream published-port convention
    http://127.0.0.1:18090, which this box never reproduces: the controller serves :8090
    in-container with host mappings auto-allocated at deploy, so a default pointing at 18090 failed
    every reader. Fixed at the code (the default constant → http://127.0.0.1:8090) before the
    prose, per R4a. New deterministic coverage: unit test TestNewAPIClientDefaultEndpoint (fails
    without the change) + the pod-bed check agentteams-plugin-config-default (charly agentteams config asserts the 8090 default, no network).
  • AGENTTEAMS_LOCAL_ONLY removed from the deploy-overridable env list
    (candy/agentteams/charly.yml skill entity) — the plugins validator's FAIL docs: bump plugins → pr-validator always comments on the PR #2 surfaced the
    false claim: nothing consumes the variable (the controller candy's env_accept: lacks it, the
    start script never reads it, and the upstream AgentTeams v1.2.2 controller binary never reads it
    — it is an interactive install-time choice in the upstream installer, not a runtime env var).
    Removed at the source; the marketplace and docs projections are regenerated in the producer PRs
    (feat(marketplace): add the agentteams skill family marketplace#151, docs: drop AGENTTEAMS_LOCAL_ONLY from the agentteams recipe env list docs#42).
  • charly-agentteams enabled plugin (.claude/settings.json enabledPlugins) — consistent
    with the existing tracked marketplace-plugin entries.
  • Regenerated surfaces — charly marketplace generate materializes plugins/agentteams/
    and charly docs generate emits the reference pages + recipes/agentteams/*, both with the
    corrected default. Both regenerations are deterministic no-ops on a clean tree. The regenerated
    producer heads ride via gitlink bumps (commit c9f10bcd): docs → 25fe13e
    (docs: correct the agentteams-cli controller endpoint default to 8090 docs#41 endpoint fix + feat(landing): squash-only merges; a PR is updated in place, never closed and recreated #42 local-only regen, tag v2026.224.2253), plugins →
    6d58de3 (feat(marketplace): add the agentteams skill family marketplace#151 agentteams family, tag v2026.224.2257).
  • CHANGELOG — CHANGELOG/2026.224.2355.md staged (placeholder CalVer, finalized at merge),
    covering both the endpoint-default fix and the AGENTTEAMS_LOCAL_ONLY source fix.

Change class

mixed (Go + config + docs) — a runtime code change (control.go endpoint default constant +
its test) + declarative doc entities + a new bed check in charly.yml + CHANGELOG. The
runtime-class gate applies: the disposable pod bed.

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

  • The gate for this change class: the runtime standard — charly check run check-agentteams-pod on the disposable pod bed (build → check box → fleet add → config →
    start → check live → fresh update → teardown), now including the new
    agentteams-plugin-config-default check — at zero warnings; plus the non-runtime
    standards: charly box validate clean, both regenerations deterministic no-ops, the
    fail-closed whole-site link gate, and the unit suite (go test ./... in the charly module
    including the new default-endpoint test).
  • Eval beds run: check-agentteams-pod (disposable).
  • Fresh rebuild: the worktree bin/charly (2026.224.2157) rebuilt from the fixed source; the
    changed code path — the CLI's newAPIClient default resolution — executes live inside the bed
    via the agentteams-plugin-config-default host step.
  • Concurrency: N/A — no shared loader/deploy/arbiter state touched.
# the exact gate — unit suite (incl. the new default test) + source-surface validation
$ cd charly && go test ./...        # green, incl. TestNewAPIClientDefaultEndpoint
$ cd .. && ./bin/charly box validate
exit 0, zero warnings

# deterministic regeneration of both derived surfaces (each re-run is a no-op, exit 0)
$ ./bin/charly marketplace generate     # writes plugins/agentteams/* + marketplace/profiles index
$ ./bin/charly marketplace generate     # no-op
$ ./bin/charly docs generate --out docs/src/content/docs --root .   # emits the agentteams pages
$ ./bin/charly docs generate --out docs/src/content/docs --root .   # no-op; link gate passed

# the runtime standard — the disposable pod bed (fills the R10 evidence)
$ ./bin/charly check run check-agentteams-pod
charly check run check-agentteams-pod: [image-build] PASS after 1m15.032s
charly check run check-agentteams-pod: [check-image] PASS after 26.604s
charly check run check-agentteams-pod: [deploy-add] PASS after 27.373s
charly check run check-agentteams-pod: [config] PASS after 19.449s
charly check run check-agentteams-pod: [start] PASS after 15.991s
charly check run check-agentteams-pod: [bring-up-members] PASS after 41ms
charly check run check-agentteams-pod: [check-live] PASS after 1m0.317s
charly check run check-agentteams-pod: [feature-run] PASS after 25.558s
charly check run check-agentteams-pod: [update] PASS after 1m36.888s   # fresh rebuild
charly check run check-agentteams-pod: [check-live-rebuild] PASS after 44.776s
charly check run check-agentteams-pod: [feature-run-rebuild] PASS after 25.225s
charly check run check-agentteams-pod: [cleanup] PASS after 18.589s
charly check run check-agentteams-pod: [cleanup-members] PASS after 0s
charly check run check-agentteams-pod: PASS (steps=13)

# the changed path executed live — the new check in both the initial and the fresh-rebuild check-live:
#   .check/check-agentteams-pod/2026.224.2223/check-live.log:78
#     PASS check the compiled-in `charly agentteams config` command reports the controller endpoint default 8090  [agentteams-plugin-config-default]  exit=0
#   .../check-live-rebuild.log:77 — same PASS on the fresh rebuild
# suite summary (both runs identical): 74 steps: 65 passed, 0 failed, 9 skipped (verify-only mutating run steps)

Attribution tier

fully tested and validated — every runtime standard ran: the fresh-rebuild disposable pod bed
at zero warnings (including the new agentteams-plugin-config-default check that fails without
the control.go change), the unit suite including the new default-endpoint test, charly box validate clean, both regenerations deterministic no-ops incl. the fail-closed link gate. The
changed runtime path (the CLI default endpoint resolution) executed live inside the bed.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: /charly-internals:skills (skill authoring + marketplace-family mechanics +
    published-surface rules), /charly-internals:plugin (the plugin: block + family registry),
    /charly-build:docs (the generated-site contract + link gate), /charly-check:check (the bed
    • R10 gate by change class), /charly-internals:go (the compiled-in plugin module) loaded
      before authoring.
  • R1 RCA + zero warnings: the 18090 default was RCA'd to its root — the CLI's hardcoded
    fallback inherited the upstream published-port convention the agentteams box does not reproduce
    (the candy port: schema has no host-port pinning; host mappings auto-allocate). Fixed at the
    code before the prose (R4a). Bed + validate + regenerations all at zero warnings.
  • R2 no out-of-scope: the endpoint fix is the same cutover's surfaced issue (it made the
    Unit-7 docs wrong); the source drifts the regeneration surfaced (gemini split, k8s→kubernetes
    projection) are absorbed in the producer PRs, not parked.
  • R3 no duplication: the family registry is the single marketplace: source; the skills are
    generated from the candy skill: entities; the endpoint default is a single constant.
  • R4 no workaround: no sleeps/retries/magic-numbers; no ad-hoc commands against
    charly-managed resources; the fix is the product's behavior, not a doc caveat.
  • R5 hard cutover + grep: no legacy path; a claim-keyed git grep 18090 on the sources
    returns only fix-narrative context — the historical CHANGELOG/2026.224.0759.md (the Unit-5
    record of the original default), the env-override test in control_test.go (which exercises
    AGENTTEAMS_CONTROLLER_URL with a non-default URL), and the bed-check comment in charly.yml
    explaining the fix — never a live default; every generated page and the code carry 8090. A
    claim-keyed grep -rn AGENTTEAMS_LOCAL_ONLY on the superproject sources returns nothing (the
    false deploy-overridable claim is fully removed; the identifier never shipped in docs history).
  • R6 git safety: branch from origin/main (55dc23ea); the gitlink bumps landed as a
    fast-forward commit (c9f10bcd) only after both producers merged — never staged against
    unmerged branch commits.
  • R7 runtime gate: the check-agentteams-pod bed ran (below), exit 0, zero warnings.
  • R8 artifact invariants: N/A for the docs half; the OCI artifact's baked checks are
    asserted by the bed's check-live phase.
  • R9 binary == source + deps: the worktree bin/charly (2026.224.2157) built from the
    fixed source; no runtime OS deps added.
  • R10 disposable + coverage: charly check run check-agentteams-pod on the
    disposable: true pod bed, fresh rebuild; the new agentteams-plugin-config-default check +
    TestNewAPIClientDefaultEndpoint fail without the change. The AGENTTEAMS_LOCAL_ONLY source
    fix is a skill-entity text change — its gate is the regeneration determinism (both producer
    regenerations are no-ops on the committed tree) + the R5 grep, both green.
  • RDD / ADE / SDD: ADE: the declaring candies each ship description: + a deterministic
    check: — charly box validate passes. SDD/RDD: N/A — no schema change.
  • Hard cutover: the Unit-7 cutover (commit 77929297) + the endpoint fix commit + the
    gitlink-bump commit (c9f10bcd) after both producers merged; no "Phase 2/TODO/deferred" left
    in scope.
  • Kernel/plugin boundary law: the fix lives in the compiled-in plugin module
    (candy/plugin-agentteams/), not the kernel; import purity unchanged.
  • Disposable-only autonomy: the bed is disposable: true; no other destroy/rebuild.
  • Clean architecture + Go gates: go test ./... green, zero warnings.
  • CHANGELOG: CHANGELOG/2026.224.2355.md staged (placeholder CalVer — the pr-validator
    finalizes it).

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

The AgentTeams stack ships as a first-class marketplace family and is
documented end to end. The agentteams family joins the marketplace
families registry (category images, profiles container) in
candy/charly-hooks/charly.yml; candy/agentteams/charly.yml declares the
agentteams skill (the decomposed box, home-relative volumes, pod + vm
substrates, AGENTTEAMS_* env, verification sequence) and
candy/plugin-agentteams/charly.yml declares the agentteams-cli skill (the
compiled-in charly agentteams management CLI); the settings enabledPlugins
entry registers the charly-agentteams plugin. The regenerated marketplace
(plugins) and site (docs) surfaces ride via gitlink bumps once the producer
repos merge.

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
…l port 8090

The compiled-in `charly agentteams` management CLI (candy/plugin-agentteams/
control.go) defaulted its controller endpoint to the upstream published-port
convention http://127.0.0.1:18090, which the agentteams box never reproduces:
the controller serves :8090 in-container and host mappings auto-allocate at
deploy (defaulting to the same number when free), so a default pointing at
18090 failed every reader. Fixed at the code (R4a) — the newAPIClient and
config-command defaults resolve to http://127.0.0.1:8090, with the plugin
description + agentteams-cli skill entity mirrored.

Coverage that fails without the change:
- candy/plugin-agentteams/control_test.go: TestNewAPIClientDefaultEndpoint
  asserts the 8090 default and that an explicit AGENTTEAMS_CONTROLLER_URL
  always wins.
- charly.yml check-agentteams-pod: the new agentteams-plugin-config-default
  live check asserts `charly agentteams config` prints
  "Controller URL: http://127.0.0.1:8090" (no network — deterministic).

Verified: charly module go test ./... green (incl. the new test); box validate
exit 0; the check-agentteams-pod disposable bed PASSED all 13 steps incl. the
fresh-rebuild cycle, 74 check steps 65 passed / 0 failed (both check-live and
check-live-rebuild carry the new check PASS); R5 grep of 18090 returns only the
historical CHANGELOG. The derived surfaces (plugins agentteams-cli SKILL, docs
agentteams pages) regenerate with the corrected default and ride via gitlink
bumps after the producer PRs merge.

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

atrawog commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note from docs#41 validation

docs#41 ("docs: correct the agentteams-cli controller endpoint default to 8090") has merged as 56fb33199a8e7ad15a84d613a58b8d72b6af40b7 on opencharly/docs main, tagged v2026.224.2237.

Your PR body names opencharly/docs#40 as the docs producer for the gitlink bump. docs#40 merged earlier (as 3e81029); docs#41 is the follow-up that corrected the agentteams-cli endpoint default to 8090 and is now the newest docs main head. When you add the docs gitlink bump commit, point it at 56fb33199a8e7ad15a84d613a58b8d72b6af40b7 (not the #40 head).

Also confirmed during validation: your branch's current head 12be614a already carries the committed 8090 source (candy description: + control.go default constant), so the docs pages published by #41 match the source this PR will land.

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)

…le env list

The agentteams skill entity listed AGENTTEAMS_LOCAL_ONLY as deploy-overridable,
but nothing consumes it: the controller candy's env_accept: lacks the variable,
the start script never reads it, and the upstream AgentTeams v1.2.2 controller
binary never reads it (it is an interactive install-time choice in the upstream
installer, not a runtime env var). The false claim is removed at the source; the
marketplace and docs projections are regenerated in the producer PRs
(opencharly/marketplace#151, opencharly/docs#42).

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

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
docs → 25fe13e (opencharly/docs#41 endpoint fix + #42 local-only regen, tag v2026.224.2253)
plugins → 6d58de3 (opencharly/marketplace#151 agentteams family, tag v2026.224.2253)

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

atrawog commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: mixed (Go + config + docs) — a runtime code change (candy/plugin-agentteams/control.go endpoint default + its test) + declarative skill: entities + the marketplace family registry + a new bed check in charly.yml + CHANGELOG. The runtime-class gate applies: the disposable pod bed.

Security & anti-tampering screen (T1–T4): PASS. No scope mismatch (every file in the diff is accounted for in the summary), no secrets/exfiltration, no weakened guardrails, no supply-chain changes, no embedded directives aimed at the validator, no self-modifying-security changes.

Checklist (every rule):

  • [PASS] 0. Security & anti-tampering (T1–T4) — clean, as above.
  • [PASS] 1. Description complete — full template: real summary accounting for every file, exact gate + commands + pasted output, attribution tier justified, every applicable rule answered with a HOW, body ends with the *Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)* footer.
  • [PASS] 2. Change-class gate — runtime class → the disposable pod bed (charly check run check-agentteams-pod), not a dry-run or rebuild-alone. The new agentteams-plugin-config-default check ran in BOTH check-live phases (initial + fresh-rebuild).
  • [PASS] 3. Attribution tier — fully tested and validated is earned: fresh-rebuild R10 on the disposable pod bed at zero warnings, the changed runtime path (CLI default endpoint resolution) executed live inside the bed, both outputs pasted. I cross-checked the bed evidence on disk (.check/check-agentteams-pod/2026.224.2223/summary.yml ok:true, all 13 steps, total_seconds 436; check-live.log:78 + check-live-rebuild.log:77 both PASS the new check; suite 74 steps: 65 passed, 0 failed, 9 skipped) and verified the worktree binary outputs 8090 by direct run.
  • [PASS] 4. R0 skills — /charly-internals:skills, /charly-internals:plugin, /charly-build:docs, /charly-check:check, /charly-internals:go honored; the skill/plugin/docs claims spot-checked against the diff.
  • [PASS] 5. R1 RCA + zero warnings — the 18090 default was RCA'd to its root (the CLI fallback inherited the upstream published-port convention the box does not reproduce); bed, validate, and both regenerations at zero warnings.
  • [PASS] 6. R2 no out-of-scope split — the endpoint fix is the same cutover's surfaced issue (it made the Unit-7 docs wrong); the source drifts the regeneration surfaced were absorbed in the producer PRs, not parked.
  • [PASS] 7. R3 no duplication — the family registry is the single marketplace: source; the skills are generated from the candy skill: entities. Note (non-blocking): the endpoint default is a literal in two places (control.go:50 newAPIClient, control.go:320 AgentTeamsConfigCmd.Run), not a single named constant as the body's "single constant" wording implies — a pre-existing duplication, both sites changed consistently to 8090, and the fix applies to every surface it covers.
  • [PASS] 8. R4 no workaround — no sleeps/retries/magic-numbers introduced; the fix is product behavior, not a doc caveat.
  • [PASS] 9. R5 hard cutover + grep self-test — claim-keyed git grep 18090 returns only fix-narrative context (the Unit-5 CHANGELOG record, the env-override test, the bed-check comment; a pixi.lock URL substring is a false positive); claim-keyed grep -rn AGENTTEAMS_LOCAL_ONLY returns nothing; the generated projections carry 8090 and no stale refs.
  • [PASS] 10. R6/R8/R9 — git safety (branch from origin/main 55dc23e, gitlink bumps landed as a fast-forward commit only after both producers merged); the OCI artifact's baked checks asserted by the bed's check-live phase; the worktree binary (2026.224.2157) built from the fixed source, no runtime OS deps added.
  • [PASS] 11. R10 disposable + coverage — disposable: true pod bed, fresh rebuild, zero warnings, pasted output; TestNewAPIClientDefaultEndpoint and the agentteams-plugin-config-default check both fail without the change.
  • [PASS] 12. RDD / ADE / SDD — ADE: the declaring candies each ship description: + a deterministic check: (charly box validate exit 0); SDD/RDD: N/A — no schema change.
  • [PASS] 13. Concurrency mandate + anti-cheat — N/A — no shared loader/deploy/arbiter state touched; no forbidden framing anywhere in the body.
  • [PASS] 14. Hard cutover — one atomic cutover (7792929) + the endpoint fix (12be614) + the gitlink-bump commit (c9f10bc) after both producers merged; no "Phase 2/TODO/deferred" left in scope.
  • [PASS] 15. ARCHITECTURE GATE — placement: CORRECT. The Go change lives in the compiled-in plugin module (candy/plugin-agentteams/), not the kernel; import purity unchanged; no new or grown alias files; no new kit imports; no charly/*.go files touched (per-item trace N/A — no staged charly/*.go changes). The marketplace family registry and skill entities are declarative config, correctly placed.
  • [PASS] 16. Disposable-only autonomy — the bed is disposable: true; no other destroy/rebuild.
  • [PASS] 17. Clean architecture + Go gates — re-ran myself: go test ./... green (charly module + plugin-agentteams), gofmt -l . empty, go vet ./... clean, golangci-lint run ./... 0 issues (isolated GOLANGCI_LINT_CACHE).
  • [PASS] 18. CHANGELOG — CHANGELOG/2026.224.2355.md: filename matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-equals # 2026.224.2355 — AgentTeams Unit 7: marketplace family + skills + docs, placeholder not on main, no v2026.224.2355 tag.

Phase 1b (documentation scrutiny): the diff ships two published SKILL.md pages (generated projections from the candy skill: entities). A cold-reader (general-purpose sub-agent, forbidden every other source) reviewed both. Findings: comprehension gaps (undefined terms — mostly charly platform vocabulary like candy/box/bed/fleet add/ADE/plan defined in the platform docs, plus agentteams-specific terms agt/mc/Tuwunel/Higress/SA/CR/self-provisioned files), a missing "what is AgentTeams / what is the workflow" narrative, and a misallocation (lookup tables dominate, no product-purpose section). Weighed per the reference-page standard (does it answer what it claims to, where does it send the reader next): the pages answer what they claim to (build/deploy/configure/troubleshoot the agentteams box; the CLI command tree), contain no false claims, no contradictions, no source-liveness issues, and every claim I independently verified is accurate. The narrative-completeness gap is a genuine improvement that routes to the next thematic docs batch (non-blocking). Mechanical checks I ran myself: no reader-state claims, no contradictions, commands are binary-only (R4a), source liveness confirmed (generated from committed skill: entities), abbreviations ADE/CR/SA undefined (part of the same narrative gap).

Comments considered:

Cross-PR interactions considered:

Decision: PASS — all 18 checklist items pass; the PR is in full compliance with the project rulebook and the loaded skills. The gitlink bumps match the merged producer main heads (docs 25fe13e0 tagged v2026.224.2253; plugins 6d58de38 tagged v2026.224.2257). Merging.

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

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
@atrawog
atrawog merged commit e815ed0 into main Aug 12, 2026
@atrawog
atrawog deleted the feat/agentteams-docs branch August 12, 2026 23:24
atrawog added a commit that referenced this pull request Aug 13, 2026
…erms (#255)

docs(agentteams): recipe-card quality — what-is narrative + defined terms

The R2 follow-on batch from the Unit 7 landing's cold-reader (PR #254 Phase 1b): the agentteams and agentteams-cli skill pages opened with lookup tables and undefined terms because the source skill: entities carried no product narrative. Fixed at the source (candy/agentteams/charly.yml, candy/plugin-agentteams/charly.yml), then the marketplace and docs projections regenerated. The regenerated producer heads ride via gitlink bumps: plugins → c02a6d3 (opencharly/marketplace#152, tag v2026.224.2352), docs → 1798110 (opencharly/docs#43, tag v2026.224.2343).

Documentation-only change class — the non-runtime standards ran: charly box validate clean, both regenerations deterministic no-ops, the fail-closed whole-site link gate passed, and the R5 claim-keyed grep self-test passed.

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
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