monogram boot reconstructs the initialization sequence that Monogram can observe from an indexed JavaScript/TypeScript application. It connects import order, global registration, DOM event handlers, configured priority arrays, and guarded initialization paths, then routes each finding back into the ordinary graph commands.
Documents the public OpenCLIs release monogram 0.98.6.
Quick start
What the trace answers
- Which ESM modules evaluate before the entry point completes?
- Which
window.*globals and event handlers are registered, and from where? - In what import-registration order do
DOMContentLoadedhandlers appear? - Which configured initializer objects run by priority?
- Which configured init functions are guarded by bootstrap flags?
Phase 1: ESM evaluation
Monogram walks the indexed import graph from the entry and reports module evaluation order with relevant registration events.Phase 2: DOM handlers
DOMContentLoaded handlers are shown in the registration order implied by module evaluation, with calls made by each handler.
Phase 3: configured priorities
When.monogram/boot.toml describes a priority array, Monogram reads its objects and displays the initialization order.
Phase 4: configured guards
Guard rules identify candidate init functions whose execution is controlled by bootstrap flags.grep, provenance, context, and chain.
Configuration
Generate it
priority fields, and init-style functions with window-flag guards. It writes:
Refine it manually
Drill from boot into structural proof
Boot is the overview; use the regular commands for the owning path.[NEXT] trail retains the file, graph, and rank evidence.
CLI and MCP boundary
MONOGRAM_PREPARED_INDEX=1 blocks non-JSON boot init with the protected-index guard. Read-only tracing remains available against the prepared snapshot.