docs(tasks): narrow invariant rationale

This commit is contained in:
pku-xht
2026-08-11 23:25:12 +08:00
parent 38922cbbb9
commit 26891ce5ca
+5 -4
View File
@@ -15,10 +15,11 @@ export const name = 'tasks-local-invariant'
export const inject = ['invariants'] export const inject = ['invariants']
/** /**
* No runtime invariant: the Service Definition companion in `@deepseek-ai/dsh-tasks` validates * No runtime invariant: `@deepseek-ai/dsh-tasks/invariant` owns per-snapshot identity, status,
* every published snapshot. `LocalTaskService.start()` enforces this provider's configured * timestamp, and owner checks. This provider's admission decision uses private configuration and
* admission limit synchronously before producer execution; repeating that aggregate check here * must fail before a backend starter runs; `LocalTaskService.start()` enforces it synchronously
* would expose provider-private configuration solely to this companion. * for current producers. Repeating an aggregate after publication would expose private
* configuration solely to this companion and would not verify the fail-closed pre-start guarantee.
*/ */
const install: InvariantInstaller = () => {} const install: InvariantInstaller = () => {}