docs(scope,agent-presets): standing-mount model, parent chain, and the Agent Note

This commit is contained in:
Yichen Jiang
2026-08-08 18:08:20 +08:00
parent e18aa2745c
commit d770fb21cc
13 changed files with 111 additions and 36 deletions

View File

@@ -166,8 +166,8 @@ describe('scope parent chain', () => {
expect(scopeParentOf(preset)).toBeUndefined()
expect(scopeChainOf(agent)).toEqual([agent, preset])
expect(scopeChainOf(undefined)).toEqual([])
expect(() => setScopeParent(preset, agent)).toThrow(/cycle/)
expect(() => setScopeParent(preset, preset)).toThrow(/cycle/)
expect(() => { setScopeParent(preset, agent) }).toThrow(/cycle/)
expect(() => { setScopeParent(preset, preset) }).toThrow(/cycle/)
})
it('re-links to a different parent (the blank-session recompose path)', () => {