INNER CODE UNIT · JavaScript

writeWitness

asklokesh/loki-mode · src/audit/index.js:226

function writeWitness(opts) {
  if (!_initialized) init();
  return crosslink.writeWitness(Object.assign({ projectDir: _projectDir }, opts || {}));
}

/**
 * Link the run manifest (loki-run.json bill-of-materials) into the agent
 * audit chain so it becomes tamper-evident and verifiable against the
 * evidence chain. No-op (honest) when the manifest is absent.
 * See src/audit/crosslink.js (linkManifest).
 */
function linkManifest(opts) {
  if (!_initialized) init();
  return crosslink.linkManifest(Object.assign({ projectDir: _projectDir }, opts || {}));
}

/**
 * Verify the run-manifest link: agent chain integrity AND the on-disk

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…