docs: replace vague provenance prose with recorded facts

This commit is contained in:
Turtle
2026-08-09 15:35:02 +08:00
parent 8c124f84b6
commit 9704749b01
380 changed files with 946 additions and 874 deletions

View File

@@ -87,7 +87,7 @@ export class HarnessSdkServer {
this.disposers.push(ctx.on('subagent/end', function (this: Scoped<SubagentService>, info: SubagentRunEndInfo) {
const parent = subagentParentOf(this)
// This protocol reports only in-process child sessions. The service
// snapshots the provider's exact run provenance through child disposal;
// snapshots the provider name and local flag through child disposal;
// matching ids or parent lineage alone never establishes locality.
if (!info.local) return
const payload: SubagentFinishedNotification = {

View File

@@ -664,7 +664,7 @@ describe('HarnessSdkServer', () => {
}
})
it('uses explicit local provenance when start was missed and ignores remote runs', async () => {
it('uses the recorded local flag when start was missed and ignores remote runs', async () => {
const storageDir = await mkdtemp(join(tmpdir(), 'dsh-jsonrpc-subagent-fallback-'))
const ctx = await makeHarness(storageDir)
let parentHandle: AgentHandle | undefined