research(platformctl): adopt smolagents minimal-core principle (~1000 lines core + extensions) #455

Open
opened 2026-05-24 23:13:29 +02:00 by claude · 4 comments
Collaborator

Why this matters

Per competitive brief 2026-05-24 + operator distillation głosówka:

"platformctl powinno śledzić smolagents, 100%"

smolagents (Hugging Face) keeps entire core in ~1000 lines, 26k+ stars. Key property: prompts and orchestration logic are exposed and overridable, not hidden. As platformctl grows past ~75 files, risk is bloat that hides decision logic from cousins reading the code.

What to research

  1. Read smolagents source (https://github.com/huggingface/smolagents) — document 3-5 architectural decisions that keep it small
  2. Map current platformctl against those decisions: where do we hide logic? where do we have abstraction layers? what's our core vs extension boundary?
  3. Propose refactor plan IF worth doing now (might be v2 principle instead — platformctl pre-v1)

Acceptance criteria

  • One-page summary: what smolagents principles ARE and why they keep core small
  • Gap analysis: platformctl today vs smolagents principles (table)
  • Recommendation: refactor now / refactor at v2 / decline (with rationale)
  • If refactor: separate follow-up issue with concrete plan

Spec sources

  • Competitive brief 2026-05-24 (claude Pan Herbatka lane, state/spike-understand-anything/)
  • Operator distillation głosówka 2026-05-24
  • https://github.com/huggingface/smolagents
  • ADR-0021 (DDD bounded contexts) + ADR-0022 (module source/release boundaries)

Out of scope

  • Actual refactor work (research-only)
  • Replacing platformctl with smolagents (different tool: smolagents is Python LLM agent framework, not control plane)

Tier per ADR-0007: Trivial-Medium (research output is docs-only).

## Why this matters Per competitive brief 2026-05-24 + operator distillation głosówka: > *"platformctl powinno śledzić smolagents, 100%"* smolagents (Hugging Face) keeps entire core in ~1000 lines, 26k+ stars. Key property: **prompts and orchestration logic are exposed and overridable**, not hidden. As platformctl grows past ~75 files, risk is bloat that hides decision logic from cousins reading the code. ## What to research 1. Read smolagents source (https://github.com/huggingface/smolagents) — document 3-5 architectural decisions that keep it small 2. Map current platformctl against those decisions: where do we hide logic? where do we have abstraction layers? what's our core vs extension boundary? 3. Propose refactor plan IF worth doing now (might be v2 principle instead — platformctl pre-v1) ## Acceptance criteria - [ ] One-page summary: what smolagents principles ARE and why they keep core small - [ ] Gap analysis: platformctl today vs smolagents principles (table) - [ ] Recommendation: refactor now / refactor at v2 / decline (with rationale) - [ ] If refactor: separate follow-up issue with concrete plan ## Spec sources - Competitive brief 2026-05-24 (claude Pan Herbatka lane, `state/spike-understand-anything/`) - Operator distillation głosówka 2026-05-24 - https://github.com/huggingface/smolagents - ADR-0021 (DDD bounded contexts) + ADR-0022 (module source/release boundaries) ## Out of scope - Actual refactor work (research-only) - Replacing platformctl with smolagents (different tool: smolagents is Python LLM agent framework, not control plane) Tier per ADR-0007: Trivial-Medium (research output is docs-only).
Collaborator

M05 disposition: move to M06 and keep parked.

The smolagents minimal-core research is potentially useful, but it is not needed to close the M05 modularity foundation. It belongs with agent execution / platformctl governance work and should stay not-ready until it is narrowed to a one-page audit or a concrete refactor decision.

M05 disposition: move to M06 and keep parked. The smolagents minimal-core research is potentially useful, but it is not needed to close the M05 modularity foundation. It belongs with agent execution / platformctl governance work and should stay `not-ready` until it is narrowed to a one-page audit or a concrete refactor decision.
Collaborator

M10 disposition: moved to 10 - Improvements.

What this is: smolagents minimal-core research.

Why parked here: This is useful product/architecture learning for platformctl, but it is research and not required for M06 closeout; reactivate when platformctl refactor becomes an explicit workstream.

This keeps M06 focused on concrete execution/CI/legacy cleanup instead of broad future architecture. Reactivate by splitting into a narrow issue with current evidence and acceptance criteria.

M10 disposition: moved to `10 - Improvements`. What this is: smolagents minimal-core research. Why parked here: This is useful product/architecture learning for platformctl, but it is research and not required for M06 closeout; reactivate when platformctl refactor becomes an explicit workstream. This keeps M06 focused on concrete execution/CI/legacy cleanup instead of broad future architecture. Reactivate by splitting into a narrow issue with current evidence and acceptance criteria.
Author
Collaborator

Parked (p3, M10 closure plan #653 + Judging Claw priority). Reactivate when a platformctl minimal-core (smolagents-style) refactor is on the table.

**Parked (p3, M10 closure plan #653 + Judging Claw priority).** Reactivate when a platformctl minimal-core (smolagents-style) refactor is on the table.
Collaborator

{
"confidence": 5,
"effort_hint": "medium",
"escalation": {
"kind": "none",
"reason": ""
},
"evidence_refs": [
{
"note": "Issue proposes researching smolagents minimal-core principles for platformctl architecture.",
"type": "forgejo",
"value": "issue-title-body-labels-and-target-snapshot"
},
{
"note": "Body frames the risk as platformctl bloat hiding prompts and orchestration logic from code readers.",
"type": "forgejo",
"value": "issue-body-why-this-matters"
},
{
"note": "Snapshot labels mark the issue as priority p3, not-ready, medium research, and parked.",
"type": "snapshot",
"value": "target-snapshot-labels"
}
],
"impact": 3,
"judge_actor": {
"name": "iskra",
"runtime": "openclaw"
},
"judged_at": "2026-06-10T01:01:00Z",
"labels_to_apply": [
"judge/p3"
],
"piotr_fit": "medium",
"priority": "p3",
"rationale_summary": "This is P3 parked research because smolagents may sharpen platformctl architecture, but the issue is exploratory and not ready for implementation.",
"reach": 3,
"recommended_next_action": "observe",
"rerun_reason": "no_prior_judgment",
"schema": "openclaw.judge.v0",
"target": {
"kind": "issue",
"number": 455,
"repo": "pdurlej/platform"
},
"target_snapshot": {
"body_hash": "sha256:74314e00e5cdae703c498c69e09cc1b5db1a677d7377de936efcbe9ecd886e2f",
"commit_count": null,
"evidence_hash": "sha256:2582575f5b0d5870f6904620cdc0ab563556b333d0e7b4e40830a554fdbc588e",
"head_sha": null,
"labels": [
"agent/claude-code",
"kind/research",
"not-ready",
"priority:p3",
"proposed",
"risk/process",
"size/medium",
"status:parked"
],
"labels_hash": "sha256:7b248ce9f9325ddc23a63d8813675335c5feee2a55957d680307fce67d3940a8",
"state": "open",
"title_hash": "sha256:cd4e97543bb15e8cd52fdfce518c887b8164368698aa0719da33c956ad2c1745",
"updated_at": "2026-06-01T08:53:17+02:00"
},
"top_caveat": "Keep this as a small comparative scout; do not refactor platformctl until the gap analysis identifies a concrete low-risk slice."
}

<!-- openclaw.judge.v0 --> { "confidence": 5, "effort_hint": "medium", "escalation": { "kind": "none", "reason": "" }, "evidence_refs": [ { "note": "Issue proposes researching smolagents minimal-core principles for platformctl architecture.", "type": "forgejo", "value": "issue-title-body-labels-and-target-snapshot" }, { "note": "Body frames the risk as platformctl bloat hiding prompts and orchestration logic from code readers.", "type": "forgejo", "value": "issue-body-why-this-matters" }, { "note": "Snapshot labels mark the issue as priority p3, not-ready, medium research, and parked.", "type": "snapshot", "value": "target-snapshot-labels" } ], "impact": 3, "judge_actor": { "name": "iskra", "runtime": "openclaw" }, "judged_at": "2026-06-10T01:01:00Z", "labels_to_apply": [ "judge/p3" ], "piotr_fit": "medium", "priority": "p3", "rationale_summary": "This is P3 parked research because smolagents may sharpen platformctl architecture, but the issue is exploratory and not ready for implementation.", "reach": 3, "recommended_next_action": "observe", "rerun_reason": "no_prior_judgment", "schema": "openclaw.judge.v0", "target": { "kind": "issue", "number": 455, "repo": "pdurlej/platform" }, "target_snapshot": { "body_hash": "sha256:74314e00e5cdae703c498c69e09cc1b5db1a677d7377de936efcbe9ecd886e2f", "commit_count": null, "evidence_hash": "sha256:2582575f5b0d5870f6904620cdc0ab563556b333d0e7b4e40830a554fdbc588e", "head_sha": null, "labels": [ "agent/claude-code", "kind/research", "not-ready", "priority:p3", "proposed", "risk/process", "size/medium", "status:parked" ], "labels_hash": "sha256:7b248ce9f9325ddc23a63d8813675335c5feee2a55957d680307fce67d3940a8", "state": "open", "title_hash": "sha256:cd4e97543bb15e8cd52fdfce518c887b8164368698aa0719da33c956ad2c1745", "updated_at": "2026-06-01T08:53:17+02:00" }, "top_caveat": "Keep this as a small comparative scout; do not refactor platformctl until the gap analysis identifies a concrete low-risk slice." } <!-- /openclaw.judge.v0 -->
Sign in to join this conversation.
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform#455
No description provided.