# Behavior traces — microsoft/rushstack

> Canonical page: https://codevetter.com/unpack/rushstack/behavior-traces

# Behavior traces — microsoft/rushstack

Scanned commit 1e18b16f029299f53a966878aff2ce187dd65a51 (2026-10-01). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Source inspection followed API extraction, Markdown documentation generation, and Lockfile Explorer loading and bookmark persistence across their participating files. Additional traces expose Rush graph construction, Heft startup, build-cache lookup, and pnpmfile execution. These are execution-order descriptions derived from code, not runtime observations. Conditional branches materially change warnings, filesystem writes, process reuse, and lifecycle handling.
- API extraction startup constructs ApiExtractorCommandLine, registers InitAction/RunAction, and executes the parser; RunAction.onExecuteAsync loads an explicit config or discovers one from '.', then calls Extractor.invoke. — [apps/api-extractor/src/start.ts#L18-23](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-extractor/src/start.ts#L18-L23) [apps/api-extractor/src/cli/ApiExtractorCommandLine.ts#L55-57](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-extractor/src/cli/ApiExtractorCommandLine.ts#L55-L57) [apps/api-extractor/src/cli/RunAction.ts#L120-153](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-extractor/src/cli/RunAction.ts#L120-L153)
- Inside Extractor.invoke, Collector.analyze → DocCommentEnhancer.analyze → ValidationEnhancer.analyze → buildApiPackage precedes model/report/rollup output; success ignores warnings locally but includes them in production failure. — [apps/api-extractor/src/api/Extractor.ts#L277-305](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-extractor/src/api/Extractor.ts#L277-L305) [apps/api-extractor/src/api/Extractor.ts#L321-359](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-extractor/src/api/Extractor.ts#L321-L359)
- Markdown CLI startup executes ApiDocumenterCommandLine → MarkdownAction.onExecuteAsync → buildApiModel → MarkdownDocumenter.generateFiles; generation optionally initializes a plugin, deletes old output, writes the model page, and invokes onFinished. — [apps/api-documenter/src/start.ts#L20-22](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-documenter/src/start.ts#L20-L22) [apps/api-documenter/src/cli/MarkdownAction.ts#L19-27](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-documenter/src/cli/MarkdownAction.ts#L19-L27) [apps/api-documenter/src/cli/BaseAction.ts#L55-76](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-documenter/src/cli/BaseAction.ts#L55-L76) [apps/api-documenter/src/documenters/MarkdownDocumenter.ts#L97-119](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/api-documenter/src/documenters/MarkdownDocumenter.ts#L97-L119)
- Explorer startup constructs ExplorerCommandLineParser → onExecuteAsync → init before changing cwd; it registers static/API handlers and listens, while React App invokes readLockfileAsync → fetch /api/graph → deserializeFromJson → dispatch(loadEntries). — [apps/lockfile-explorer/src/start-explorer.ts#L8-11](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer/src/start-explorer.ts#L8-L11) [apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts#L106-120](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts#L106-L120) [apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts#L165-172](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts#L165-L172) [apps/lockfile-explorer-web/src/App.tsx#L24-33](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer-web/src/App.tsx#L24-L33)
- Bookmark persistence follows addBookmark → saveBookmarkToLocalStorage → JSON parse/update/stringify/setItem; subsequent loadEntries reads stored IDs and attaches matching graph entries, while removeBookmark removes both Redux and stored entries. — [apps/lockfile-explorer-web/src/store/slices/entrySlice.ts#L43-51](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer-web/src/store/slices/entrySlice.ts#L43-L51) [apps/lockfile-explorer-web/src/store/slices/entrySlice.ts#L101-111](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer-web/src/store/slices/entrySlice.ts#L101-L111) [apps/lockfile-explorer-web/src/helpers/localStorage.ts#L8-28](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer-web/src/helpers/localStorage.ts#L8-L28)
- Rush phased execution applies graph/sharding/shell/validation plugins, fires session hooks, calls createOperationsAsync, captures input snapshots, constructs OperationGraph, fires onGraphCreatedAsync, then executes; watch mode creates ProjectWatcher and waits for abort. — [libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L776-830](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L776-L830) [libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L1038-1055](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L1038-L1055) [libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L1129-1144](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L1129-L1144) [libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L1239-1265](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts#L1239-L1265)
- Heft startup constructs its parser; executeAsync normalizes cwd, initializes InternalHeftSession, registers phase/watch actions and validated aliases, and delegates argument execution to the shared parser. — [apps/heft/src/start.ts#L8-18](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/heft/src/start.ts#L8-L18) [apps/heft/src/cli/HeftCommandLineParser.ts#L119-153](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/heft/src/cli/HeftCommandLineParser.ts#L119-L153) [apps/heft/src/cli/HeftCommandLineParser.ts#L156-190](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/heft/src/cli/HeftCommandLineParser.ts#L156-L190)
- Cache lookup rejects missing IDs or disabled caching, queries the local provider, returns immediately for a matching output receipt, and queries cloud storage only on local miss; Explorer’s package-spec path loads JSON, invokes an optional pnpmfile worker, and disposes it in finally. — [libraries/rush-lib/src/logic/buildCache/OperationBuildCache.ts#L227-265](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/libraries/rush-lib/src/logic/buildCache/OperationBuildCache.ts#L227-L265) [apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts#L221-251](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts#L221-L251) [apps/lockfile-explorer/src/graph/pnpmfileRunnerWorkerThread.ts#L67-95](https://github.com/microsoft/rushstack/blob/1e18b16f029299f53a966878aff2ce187dd65a51/apps/lockfile-explorer/src/graph/pnpmfileRunnerWorkerThread.ts#L67-L95)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
