Build your own Local DN
The Application owns Pulse, Intention and Signal definitions. Your DN package references the absorbed and emitted Signal forms by identity and digest; it does not redefine them.
1 · Start with the package structure
DN_MyAction/1.0.0/ ├── dn.local.json ├── contracts/ │ ├── S_MyInput.signal-form.json │ └── S_MyOutput.signal-form.json ├── implementations/ │ └── javascript/perform.mjs └── fixtures/basic.json
2 · Copy the canonical Signal forms
Copy the exact forms from the Application package into contracts/ as execution references. Calculate their hashes:
shasum -a 256 contracts/S_MyInput.signal-form.json shasum -a 256 contracts/S_MyOutput.signal-form.json
The copied forms are verification material. The Application catalogue remains the semantic authority.
3 · Implement one Signal-in/Signal-out action
let body = "";
for await (const chunk of process.stdin) body += chunk;
const inputSignal = JSON.parse(body);
// Perform one bounded verb action.
const outputSignal = {
signalId: "S_MyOutput",
intentionId: "I_MyOutputReady",
instanceId: crypto.randomUUID(),
pulses: [{ phrase: "P_result", tv: "Y", responses: ["complete"] }]
};
process.stdout.write(JSON.stringify(outputSignal));Another language is acceptable if an adapter accepts and returns the same complete Signal documents.
4 · Declare dn.local.json
{
"schemaVersion": "intention-space-local-dn-package/1",
"artifactType": "local-dn-package",
"dnId": "DN_MyAction",
"version": "1.0.0",
"contract": {
"absorbs": { "signalFormId": "S_MyInput", "path": "contracts/S_MyInput.signal-form.json", "sha256": "sha256:..." },
"emits": { "signalFormId": "S_MyOutput", "path": "contracts/S_MyOutput.signal-form.json", "sha256": "sha256:..." }
},
"implementations": {
"javascript": { "runtime": "node", "command": ["node", "implementations/javascript/perform.mjs"] }
},
"defaultImplementation": "javascript",
"files": { "contracts/S_MyInput.signal-form.json": "sha256:..." }
}Every contract, fixture and executable file must appear in files with its digest.
5 · Add a conformance fixture
fixtures/basic.json contains one complete inputSignal and the exact expectedSignal. Then verify, test and install:
node sdk/local-dn/cli.mjs verify path/to/DN_MyAction/1.0.0 node sdk/local-dn/cli.mjs run-test path/to/DN_MyAction/1.0.0 path/to/DN_MyAction/1.0.0/fixtures/basic.json node sdk/local-dn/cli.mjs install path/to/DN_MyAction/1.0.0 node sdk/local-dn/cli.mjs resolve DN_MyAction 1.0.0
6 · Production boundary
The current runner proves package integrity and semantic output. Production activation will pass the resolved implementation through IS-DNHOST/1.0 so cancellation, size limits, capability injection, receipts and lifecycle rules remain enforced.