diff --git a/bin/gstack-skill-start b/bin/gstack-skill-start index 5869d3641..a06c3066d 100755 --- a/bin/gstack-skill-start +++ b/bin/gstack-skill-start @@ -539,7 +539,7 @@ fi # end interactive-onboarding guard (kind != spawned) # actually says "auto-choose". if [ "$_SESSION_KIND" = "spawned" ]; then _emit_block spawned-session < { + test('every hook directive for a spawned session carries the consent rule', () => { + expect(SPAWNED_CONSENT_RULE).toContain('never auto-choose it'); + for (const text of [SPAWNED_ESCAPE_SENTENCE, CONDUCTOR_SPAWNED_DENY_REASON, directiveFor('spawned')]) { + expect(text).toContain(SPAWNED_CONSENT_RULE); + } + }); + + test("skill-start's spawned-session block names consent and off-machine publishing as exceptions", () => { + const start = fs.readFileSync(path.join(ROOT, 'bin', 'gstack-skill-start'), 'utf8'); + const block = start.slice(start.indexOf('_emit_block spawned-session'), start.indexOf('EOI', start.indexOf('_emit_block spawned-session'))); + expect(block).toContain('never grant a consent or choose an option that publishes or syncs data off this machine'); + }); +});