Skip to content

hardening(skills): skill ledger gaps — deleting the ledger forgets revokes, adopt pre-ledger approvals, embedders skip the ledger #879

Closed

Description

@ajianaz

Context

Follow-up of #600 (slice 3a, the skills pin). The skills ledger (skill-ledger.jsonl, append-only, written before skill-approvals.json) makes a revoked or hash-drifted skill stay refused even if the approvals file is restored by hand. These gaps were found in review and are documented as residuals.

Gaps

  1. Deleting the ledger forgets every revoke. With no ledger every approval becomes "unrecorded" and loads. There is no tamper check beyond the same residual as the plugin ledger (a process that can rewrite both files is not stopped). Consider a checkpoint or a hash chain, or keeping a minimal revoke tombstone elsewhere (and refusing to start when the ledger is missing but the approvals file lists skills that were once recorded).
  2. Approvals made before the ledger stay "unrecorded" until they are approved again. A one-shot owner-only command that adopts the current approvals into the ledger would remove the noise and close gap 1 for them.
  3. Embedders can call Approvals::approve / save without writing a ledger line. Consider making the core API write the ledger (or documenting that embedders must).
  4. tole plugin list does not flatten newlines in a lock key (plugin audit does). Small output hardening: apply the same one-line rule to list.

Refs #600, #594.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions