Skip to content

uf.unleash Swarm path: pass forge spawn-subtask classification/skill parameters (delegation contract consumer update) #830

Closed

Description

@jflowers

Parent

Background

The delegation-skill-enforcement change (#787) extended
uf_delegate_command with the delegation parameter contract --
task_classification (deterministic | judgment), skill
(a skill name resolved against the skill directories, or a
repo-relative script path, existence-verified), and
skill_absent_reason -- enforced fail-closed at the tool
boundary before any child session spawns.

On the /uf.unleash Swarm parallel path, [P] tasks delegate
through replicator_forge_spawn_subtask, which has no
classification parameters. The change recorded that posture in
the command template (.opencode/commands/uf.unleash.md,
implement step, parallel execution): the subtask description
MUST carry the classification and the skill/script reference,
and "The spawn tool has no classification parameters, so the
description is the contract's carrier on this path." Tool-level
validation on the Swarm path was a design Non-Goal
(Replicator-owned, cross-repo), tracked by
unbound-force/replicator#143 so the deferral has a closure path.

unbound-force/replicator#143 closes the tool-side gap: the
forge spawn-subtask tool gains the equivalent parameter-level
validation -- a task_classification parameter, an
existence-verified skill/script reference, an absence-reason
escape hatch, and the deterministic-requires-reference-or-reason
rule, fail-closed before the subtask spawns.

Gap

This issue tracks the consumer side, which currently has no
tracked closure. Once the replicator release carrying
unbound-force/replicator#143 ships, the Swarm path's
prose-only carrier is exactly the posture the parent change
closed on uf_delegate_command, and the template's statement
of fact is stale:

  • .opencode/commands/uf.unleash.md (implement step,
    parallel execution, spawn call block): instructs the
    description-carrier contract and asserts the spawn tool has
    no classification parameters -- false after the replicator
    release; the prose carrier bypasses the new tool contract
  • internal/scaffold/assets/opencode/commands/uf.unleash.md:
    the scaffold mirror carries the same stale text
    (drift-detection enforced); hero repos receive the fix only
    via uf init scaffold sync
  • .opencode/uf/packs/determinism.md (DE-008) and
    .opencode/agents/divisor-guard.md (Deterministic
    Delegation Discipline checklist): assess whether the wording
    should name the spawn tool's parameter contract now that
    tool-level validation exists on both delegation paths

Requested change

Implement after (or alongside) the replicator release that
ships unbound-force/replicator#143:

  1. Update the /uf.unleash.md parallel-execution spawn call
    block to pass task_classification and the verified
    skill/script reference (or skill_absent_reason) to
    replicator_forge_spawn_subtask as tool parameters,
    mirroring the uf_delegate_command call blocks; delete the
    description-carrier prose and the "no classification
    parameters" sentence
  2. Update the scaffold mirror byte-identically;
    drift-detection tests stay green
  3. Assess DE-008 and the divisor-guard checklist section for
    wording updates naming the spawn tool's parameter contract;
    bump the pack version if rule text changes
  4. Sequencing/compatibility notes: Go's json.Unmarshal
    ignores unknown fields, so an updated template against an
    old replicator binary is a no-op pass-through. The reverse
    direction is NOT compatible: task_classification is
    schema-required and fail-closed in the replicator#143
    release, so an old template against a new binary fails
    closed with a self-describing error
    (task_classification is required (accepted values: deterministic, judgment)) until this template update
    lands. The failure is non-destructive (no subtask spawns,
    zero partial state), but the template update should land
    alongside (or before) rollout of the replicator release so
    the Swarm path does not regress in the window between the
    two.

Per the spec workflow, this is an agent/template change
requiring its own OpenSpec change when picked up; this issue is
its tracking vehicle and originating issue.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions