Add the session view to the trace page. Read the specimens first, then build the lane strip, the tree, the document, and the inspector from one authored run. The family's plugins must be visible on the records they touch, and the page must read the same run with the family off.
plugin / Classic
plugin-dsh-queue
Turns subagent work into a queue
Facts
- Package
- @playform/plugin-dsh-queue
- Version
- 0.2.1
- Kind
- plugin
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/plugin-dsh-queue
What it does
Turns subagent work into a queue.
Conversation
The turn as a document: the calls every plugin page shares, what this package changes in them, and the order its work happens in.
Conversational
Lane
The same run as time: one row per resource, a bar per span, and the clock every record shares. A wait is drawn as an outline, because nothing is busy.
Session
The tree, the document, and the inspector read one record list. The switch at the top of the document changes the face they read, and the run changes with it.
The turn
The same 3 calls on every plugin page, so a reader who moves between plugins stays in the same frame.
| Seq | Call | Outcome |
|---|---|---|
20 | bash ls -la | ok |
21 | write src/index.ts | ok |
22 | read src/index.ts | ok |
Flow
The order this package's work happens in, with the branch that decides it inline, transcribed from the source; the rule it obeys is the last band of Architecture.
- 01
- seam queue_enqueue, or dshQueue.Enqueue
why
A task carries its spec verbatim, its role, its priority, and its dependencies.
- 02dispatch: dependencies first, then priority, then enqueue order
- 03take a seat from the agent's pool, and flip the state to dispatched
- 04probe dshRoute and resolve the route, silently
why
A missing service or a throw leaves the task unrouted, and the dispatch proceeds.
- 05branch autoSpawn is off
why
The assignment is ledgered, and no spawn line is written at all.
- 06branch the policy's spawn verdict is approve
why
The launch is held, the task keeps its seat, and it waits for the user.
- 07spawn through the harness subagent service
why
The spec goes verbatim, and the resolved route goes as the child's agentOptions.
- 08the child's own result settles the task
why
completed when the child stopped completed, and failed for any other stop reason.
- 09a released seat pulls the next queued task
why
The idle-slot automation, when both knobs are on.
- 10store the ledger and the P5 journal
why
The restart reconcile's raw data.
Harness
The laws the package states, the line it writes when it loads, the seam the harness dispatches with none of the family, and the surface and knobs a run can set.
Default
What the harness does at this package's seam with none of the family installed, so the surface below has something to be a difference from.
No documented seam
The behavior map does not document a seam for this package, so the page cannot show a default to compare against. It is a library, a base, or a package whose work is a tool rather than a listener.
Surface
Every listener, tool, service, and knob the README documents.
| Kind | Name | What |
|---|---|---|
| tool | queue_enqueue | and the dshQueue service (the method table below). |
| service | ctx.subagents.startActivation | subagent launch through the harness's own subagent service (ctx.subagents.startActivation) when autoSpawn is on. |
Install
The package as the profile adds it.
pnpm add @playform/plugin-dsh-queueConfiguration
Every knob this plugin documents, with its default.
| Field | Type | Default | Meaning |
|---|---|---|---|
| enabled | false | Master switch (ships disabled). | |
| log / logFile | true / ~/.dsh/playform/plugin-dsh-queue.log | The plugin's own ledger. | |
| capacity.main / capacity.child | 10 / 2 | The user's capacity model. | |
| autoDispatch | true | Freed slots trigger the next assignment. | |
| routedDispatch | true | Consult dshRoute at dispatch when present. | |
| autoSpawn | false | Actually start the subagent (the approval posture; see below). | |
| spawnProvider | spawn | The harness subagent backend name selected at spawn. | |
| policy.* | see below | The D6 per-action allowlist (the OUTER gate). |
Family
The neighbours at the same seam, the arms beyond it, the twin in the other release tree, and the packages this one needs.
Neighbours
The behavior map documents no seam for this package, so it has no neighbour to name at one.
Arms
The seams its source also registers, beyond the one its README documents.
Its source registers no seam beyond the one its README documents.
Twin
The same package in the other release tree, when one exists.
Its twin is ets-plugin-dsh-queue.
It registers the same surface under the other runtime, and the two trees differ in the wiring: the Effect tree returns Effect envelopes where this one returns the dispatch envelope.
Dependencies
The packages this one imports, and whether each one is the family's own.
| Package | Role |
|---|---|
| family | |
| family |
Person
What the person waits for, reads, and never sees.
The person sees the effect of a service another package calls, and the contract itself stays invisible until a caller breaks it.
Its shape machine belongs to Architecture.
Architecture
This plugin's own structure: the shape the portrait gives it, the facts its source documents, and the rule its flow obeys.
Shape
Plugs into the ctx.dshQueue service, the queue_enqueue and queue_status tools, and the harness subagent service.
The subagent queue: tasks as data, a seat per slot, and a spawn only when the policy allows it.
- A task queued with its spec verbatim
- Dependencies, then priority, then enqueue order
- A route resolved silently, or an unrouted dispatch
- A spawn held by the policy, and a seat released by the child
- Enqueue queue a task with its spec verbatim
- Dispatch the deterministic next assignment, and the seat it takes
- Capacity the free slots for the main pool or one agent
- Start flip a task to running
- Complete settle a task, and release its seat
- Fail settle a task as failed
- Interrupt settle it, and abort the child
- Reconcile requeue an active task whose agent is gone, and fail it on the second detection
- Flush join the in-flight spawns
- Board the one compiled line the board splices
- Snapshot the full queue record
- the orchestrator, through the queue_enqueue and queue_status tools
- plugin-dsh-batchstate, which projects the board line
- the routing enforcer, which the dispatcher probes
Rule The policy is the outer gate and autoSpawn is the inner one: an approve verdict refuses a launch even with the knob on, and a knob that is off refuses on its own.
Record
The release line, the source, and the files this page was read from.
Release
The versions the package's own changelog records, newest first.
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
Source
The package as the repository holds it.
Origin
The files this page was built from, and what each one supplies.
The files this page was read from 5
| File | Contributed | State |
|---|---|---|
| package.json | The name, the version, the private flag, and the dependencies. | read |
| README.md | The summary, the surface table, and the configuration table. | read |
| CHANGELOG.md | The release lines and their versions. | read |
| cordis.patch.yml | Activation: the bundle entry that mounts the plugin. | read |
| Source/Function/Apply.ts | The listeners, their registration order, and the service the flow calls. | read |
- Data
- The monorepo, read during the build
- Connection
- Build-time read; nothing is fetched at runtime
- Capture
- package.json, README.md, CHANGELOG.md, Source/Function/Apply.ts
Expand provenance source
This page is static. It cannot invoke the plugin, read a ledger, or change a configuration. Every figure comes from those files; a missing README falls back to the manifest's own description, and a package with no surface table shows no surface section.