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.
hook / Classic
hook-dsh-lesson-nudge
Turns the idle moment after a turn into a self-review
Facts
- Package
- @playform/hook-dsh-lesson-nudge
- Version
- 0.2.1
- Kind
- hook
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/hook-dsh-lesson-nudge
What it does
Turns the idle moment after a turn into a self-review.
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 |
Change
The one line that differs with this package installed, transcribed from its source by the dissection.
- Model every idle edge starts a review
- Transcript hook-dsh-lesson-nudge: cap reached (1 reviews)
46 character changed, from 31 to 46.
- Property
- A review budget
- Knob
- maxReviewsPerSession, 1 by default
- Seam
- agent/status
This package ships disabled: the left side of the pair is what the harness does with the package installed but inactive, and enabling it is one line in the profile's bundle patch.
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 agent/status
why
The status emit. Only the idle edge is a moment a review may run.
- 02The switch, the edge, and the agent
why
enabled, then status is idle, then the payload carries an agent.
- 03branch The lesson service is absent, or its tick says no review is due
why
The service is probed at every transition, because it may load after this hook.
- 04fail No lesson service: one warning per process
why
The nudge is inert until the service loads, and the emit is never broken.
- 05branch The session has reached maxReviewsPerSession
why
The hook's own runaway guard, on top of whatever interval the service reports.
- 06fail cap reached (<n> reviews): the edge passes unnudged
why
The line carries the count, so a mis-set interval is visible rather than silent.
- 07Claim the idle phase through agent.runMaintenance
why
The review never shares the endpoint with the live turn.
- 08Snapshot from the service, run the review, and ledger what it applied and queued
why
One digest per session, because the projection is the review package's seam.
- 09fail The review task rejects
why
The task is detached from the emit, so the rejection is warned rather than unhandled.
- 10store ~/.dsh/playform/hook-dsh-lesson-nudge.log
why
The activation line, the cap line, and one line per review.
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.
The harness dispatches agent/status as a emit and already has listeners there: acp, agent-team, compaction-basic, goal-round-driver, server, session-controller.
An emit listener observes a fact that already happened, so the harness's own listeners can record it and cannot change it. This package records beside them, or acts on the world rather than on the payload.
Surface
Every listener, tool, service, and knob the README documents.
No surface
The README documents no listener, tool, service, or configuration, so this package registers nothing a page can list.
Install
The package as the profile adds it.
pnpm add @playform/hook-dsh-lesson-nudgeConfiguration
Every knob this plugin documents, with its default.
No configuration
The README documents no knob, so the package reads no field and takes no option.
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 lists 1 answer at agent/status, in the order the family registers them.
| Answer | Effect | Position |
|---|---|---|
| hook-dsh-lesson-nudge | advise | this package |
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-hook-dsh-lesson-nudge.
It registers the same listeners in the same order and composes the same ledger strings; the ledger file's name, which carries the package identity, and the factory base import are the only differences.
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 note arrive as context rather than as content, so the result it is about reads exactly as it did before.
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 agent/status event on its idle edge, and the lesson service that plugin-dsh-lesson-review provides.
The idle edge of the agent's status turned into a self-improvement review.
- Applies four gates in order: the switch, the idle edge, the service, and the cadence
- Claims the idle phase through agent.runMaintenance, so the review never shares the live turn
- Detaches the maintenance task, so a rejected review cannot break the status publication
- Caps its own reviews per session, on top of whatever interval the service reports
- Its flow is the interesting part: the value is where the review runs, not what it says
Its shape machine belongs to Person.
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
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. | absent |
| 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.