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-workspace-monitor
Watches the workspace and sweeps it on a schedule
Facts
- Package
- @playform/hook-dsh-workspace-monitor
- Version
- 0.2.1
- Kind
- hook
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/hook-dsh-workspace-monitor
What it does
Watches the workspace and sweeps it on a schedule.
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 no watch entry
- Transcript monitor: watch /repo/src/a.ts version 1 (tsc,format)
52 character changed, from 14 to 52.
- Property
- A change watch
- Knob
- enabled, off in the bundle patch
- Seam
- fs/observed
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 fs/observed
why
The event is the watch, and it is also the sweep's checkpoint.
- 02Read the path and the version, and classify the path into its check sets
why
The shipped catalog is tsc, format, cargo, and governance, and no command is ever run.
- 03branch The actor is the hook's own, the path is excluded, or it is outside include
why
The three guards run in order, before any entry is touched.
- 04fail ignored <path> (own actor | excluded | not included)
why
A malformed event is caught on the same path, and ledgered as failed rather than thrown.
- 05Record the watch entry: the version, the clock stamp, the check sets, and the debounce deadline
why
The deadline is computed from the module's clock, and a version change bumps the count.
- 06branch The watch map is over maxWatch
why
The oldest entry is the map head.
- 07fail capped <path> (maxWatch <n>)
why
The drop is ledgered, never silent.
- 08Sweep the deadlines the clock has passed
why
There is no setTimeout and no setInterval anywhere; the next event is the bound.
- 09store ~/.dsh/playform/hook-dsh-workspace-monitor.log
why
The health counters ride the probed state instead of the ledger.
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 fs/observed as a emit and already has listeners there: fs-observation-policy, skill-filesystem, workspace-files.
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.
| Kind | Name | What |
|---|---|---|
| listener | fs/observed | on the ROOT context (the factory's Wire registration) is the watch recorder (synchronous: no awaits, no subprocess work, and no file content ever read). |
| tool | is no | There is no tool and no provided service, and the monitor never executes a command. |
Install
The package as the profile adds it.
pnpm add @playform/hook-dsh-workspace-monitorConfiguration
Every knob this plugin documents, with its default.
| Field | Type | Default | Meaning |
|---|---|---|---|
| enabled | false | the master switch (IDLE-forever) | |
| log | true | the ledger switch (shared cell) | |
| logFile | ~/.dsh/playform/hook-dsh-workspace-monitor.log | the ledger | |
| domain | workspace_monitor | the KV domain name | |
| debounceMs | 250 | the watch debounce deadline | |
| sweepIntervalMs | 600000 | the sweep schedule interval | |
| maxWatch | 500 | the watch entry cap | |
| policy.* | D6 defaults | the per-action allowlist (see below) |
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 9 answers at fs/observed, in the order the family registers them.
| Answer | Effect | Position |
|---|---|---|
| hook-dsh-cargo-governor | rewrite | neighbour |
| hook-dsh-package-governor | rewrite | neighbour |
| hook-dsh-package-pinner | rewrite | neighbour |
| hook-dsh-workspace-approve | record | neighbour |
| hook-dsh-workspace-audit | record | neighbour |
| hook-dsh-workspace-journal | record | neighbour |
| hook-dsh-workspace-merge | rewrite | neighbour |
| hook-dsh-workspace-monitor | record | this package |
| hook-dsh-workspace-observe | record | neighbour |
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-workspace-monitor.
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 effect and not the record: the line that testifies to what happened sits in a file, and the page prints the line rather than a screen that shows it.
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 fs/observed listener and the state probe on the context.
The watch and the sweep, with the next event as the only clock.
- Records a watch entry per observed write, with its check sets and its debounce deadline
- Classifies a path into the shipped check sets, and never executes one
- Sweeps the deadlines the clock passed, inside the event rather than on a timer
- Caps the watch map, and ledgers the entry it drops
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
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.