Skip to content

forge spawn-subtask: parameter-level task classification and skill/script reference validation (delegation contract parity) #143

Closed

Description

@jflowers

Parent

Background

The parent change extended uf_delegate_command -- the OpenCode
plugin tool that delegates commands and tasks to a content agent --
with a delegation parameter contract:

  • task_classification (deterministic | judgment)
  • skill (a skill name resolved against the skill directories, or a
    repo-relative script path, existence-verified)
  • skill_absent_reason (the recorded justification when
    deterministic work has no applicable repo skill or script)

Enforcement is fail-closed at the tool boundary, before any child
session spawns: a deterministic-classified delegation with no skill
reference and no recorded absence reason fails with
SKILL_REFERENCE_REQUIRED; an unresolvable reference fails with
SKILL_NOT_FOUND. Supplied skills are injected into the composed
prompt as a tool-rendered directive, and the classification, the
resolved reference, and any justification are recorded in the
checkpoint data and success envelope for audit.

Gap

The /uf.unleash Swarm parallel path delegates [P] tasks through
replicator_forge_spawn_subtask. Classification and skill
references currently live only inside the spawn-prompt prose -- a
template-level requirement in the command file plus Guard review
flagging (the divisor-guard Code Review checklist flags Swarm-path
spawn prompts for deterministic [P] tasks that omit them). Nothing
at the tool level validates them. This mirrors the exact prose-only
posture the parent change closed on uf_delegate_command: agent
compliance with no detection when a spawn skips the reference
(post-compaction drift, a hurried re-run, or a future command simply
repeats the defect).

Tool-level validation on the Swarm path is Replicator-owned and was
recorded as a design Non-Goal in the parent change; this issue is
its tracked closure.

Requested change

Add equivalent parameter-level validation to the forge
spawn-subtask tool, mirroring uf_delegate_command's contract:

  • a task_classification (deterministic | judgment) parameter
  • a skill/script reference parameter (skill name resolved against
    the project's skill directories, or a repo-relative script path,
    existence-verified)
  • an absence-reason parameter recording the justification when
    deterministic work has no applicable skill or script
  • the deterministic-requires-reference-or-reason rule: a
    deterministic-classified spawn without a verified skill/script
    reference or a recorded absence reason fails closed
  • existence verification of supplied references before the subtask
    spawns

References

Activity

  1. jflowers commented on Oct 25, 2026

    @jflowers
    ContributorAuthor

    Consumer-side follow-up is now tracked: unbound-force/unbound-force#830 records the /uf.unleash Swarm-path template update that passes the new spawn parameters once this ships — command template + scaffold mirror + drift tests, DE-008/Guard wording assessment, and sequencing notes (updated template against an old binary is a no-op pass-through; schema-optional parameters keep old templates working).

  2. self-assigned this
    on Oct 25, 2026
  3. added a commit that references this issue on Oct 25, 2026
    270d7c6
  4. added a commit that references this issue on Oct 26, 2026
    32f73ae
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