Skip to content

Take the start inventory beside the startup, not before it - #33

Merged
daniel-rossier merged 1 commit into
mainfrom
startup-inventory-background
Nov 23, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
startup-inventory-background

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

The inventory walks every declared tree, and every registered corpus is one:
on a workstation with 27 of them spear-chat took 78 s and 2 GB to show its
prompt, --help included, because the import already binds a workspace.

The walk and the pristine pins that follow it now run on a thread; whatever
reads the inventory or the pins waits for it. Nothing changes in the
session before its first tool call, and an object made during the walk can
only be taken for a start object, which refuses it to cleanup rather than
handing it over. A tree inside another one already walked is not walked
again.

The inventory walks every declared tree, and every registered corpus is one:
on a workstation with 27 of them spear-chat took 78 s and 2 GB to show its
prompt, --help included, because the import already binds a workspace.

The walk and the pristine pins that follow it now run on a thread; whatever
reads the inventory or the pins waits for it. Nothing changes in the
session before its first tool call, and an object made during the walk can
only be taken for a start object, which refuses it to cleanup rather than
handing it over. A tree inside another one already walked is not walked
again.
@daniel-rossier
daniel-rossier merged commit 270d2e1 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant