refactor(sandbox-policy): remove capability family registries

This commit is contained in:
Tianyi Cui
2026-07-31 13:28:02 +08:00
parent e6407477a7
commit e088cfa59d
112 changed files with 260 additions and 403 deletions

View File

@@ -110,8 +110,9 @@ describe('parent-only override inheritance snapshot', () => {
const policyContexts = [...runtimeContexts(parent), ...runtimeContexts(child)]
expect(policyContexts).toHaveLength(2)
for (const context of policyContexts) {
expect(context).toContain('The write and edit tools cannot modify files in the standing mode.')
expect(context).toContain('do not refuse a required modification from this standing mode alone')
expect(context).toContain('Any available operation enforced by the DSH file sandbox cannot modify files in the standing mode.')
expect(context).toContain('Do not refuse a required modification from this policy alone')
expect(context).not.toContain('write and edit tools')
expect(context).not.toContain('one-shot bash commands')
expect(context).not.toContain('terminal sessions')
}