SDK contract probe: a policy mod whose module throws at load

<h1>nixie</h1>
A personal assistant platform that its owner runs and controls: every rule readable and editable, every decision recorded, and personal data kept on the owner's own hosts.
<a href="./docs/README.md">Documentation</a> • <a href="./docs/README.md#decisions">Decisions</a> • <a href="./AGENTS.md">Agent Guidelines</a>
nixie is in Phase 2, Research, and has no product code. The work runs in 4 phases: brainstorm, research, design, and decide. Decisions are recorded as research settles each question.
bun install
bun run check # every check CI runs
hooks/register.js 21 lines1// The module throws as it loads, so neither its command nor its policy ever registers.
2throw new Error('nixie-throw-load: module failed at load');
3
4export function register(on) {
5 on('session.start', handleSessionStart);
6 on('tool.call', handleToolCall);
7}
8
9async function handleSessionStart($, event, next) {
10 await $.command.register({
11 description: 'Report that the nixie policy mod is loaded',
12 immediate: true,
13 name: 'nixie-alive',
14 });
15 return next(event);
16}
17
18function handleToolCall() {
19 return { deny: 'nixie-throw-load denied this command.' };
20}
21