Skip to content

kiso 0.57.0

Latest

Choose a tag to compare

@vincemakes vincemakes released this 29 Nov 08:38
· 41 commits to main since this release
415e797

kiso 0.57.0. Every package on npm is at 0.57.0, and there are now 19: this release is the first publish of @vincemakes/kiso-secrets.

  • One secret detector, @vincemakes/kiso-secrets. The credential-file set, the child-environment strip, the secret-location deny list and shape-only content patterns, in one package with zero dependencies. kiso-tools-node and kiso-runtime use it.
  • Permission authority binds by invocation. A recorded approval authorizes a call only by its invocation number, on fresh runs and on resume. A decision from an older log no longer authorizes on resume.
  • Groundwork, off by default: session records (ADR-0063 M2) and session leases (ADR-0064 A2, the new @vincemakes/kiso-runtime/lease subpath).
  • kiso web finishes a Work delete that was interrupted, at its next start.
  • A new top-level folder made in a git repository is said in write_file's result.

For hosts

  • @vincemakes/kiso-secrets is published for the first time.
    • It is one secret detector: the credential-file set (isCredentialName, isCredentialPath), the child-environment
      strip (SHELL_STRIP_EXACT, strippedShellEnv), isSecretLocation and findSecret.
    • It has zero dependencies and zero imports.
    • kiso-tools-node and kiso-runtime now depend on it, so install all three at 0.57.0 together.
    • kiso-tools-node still re-exports the moved functions; no import changes.
  • Permission authority on resume (#546).
    • A permission_decided now authorizes a call only by invocationSeq, on fresh and resume paths.
    • A legacy decision (from logs before invocationSeq) no longer authorizes on resume. It also no longer forces
      an ask: the current approval chain decides the call.
    • Legacy execution and receipt evidence stays conservative, so an old side effect is never repeated.
    • Legacy events stay readable.
  • A new subpath, @vincemakes/kiso-runtime/lease (A2, 3 names), for session leases.
    • context_bootstrap is a new core event kind. It is valid only as a session's first event, and a lease session
      carries it.
    • A host that reads event kinds should ignore an unknown kind, as it already must.
  • Session records (M2b): off by default.
    • With ContextPolicy.records.enabled (CLI: KISO_SESSION_RECORDS=1), an extra extraction side call runs after
      each compaction, and its usage and cost appear in the trace.
    • Nothing changes for a host that does not enable it.
    • context_records is a new core event kind, written only when it is enabled.
  • kiso web finishes interrupted Work deletes (#548). A tombstoned id whose files were half-removed is completed at
    host start. A sidecar written after the delete is left alone, and so is a tombstone with no time.
  • loop internals are unchanged for hosts. #545 is a zero-behaviour refactor with its terminal bytes pinned.
  • Still in force from 0.56.x:
    • await Agent.close(), SessionStore.close() and closeAll();
    • act on the delivered terminal event, await handle.done or hooks.onSettled;
    • don't start the next run in the same microtask chain as the terminal event;
    • an abort before a persisted call's handler is errorKind: "precondition".