Class SkillAuditLog
java.lang.Object
io.agentscope.harness.agent.skill.curator.SkillAuditLog
Append-only audit log for the skill self-learning loop. Every
skill_manage write,
promotion decision, and curator transition lands as one JSON line in
workspace/skills/.audit/YYYY-MM-DD.jsonl.
This is intentionally separate from OTel / trace spans (which other code paths emit
concurrently). The on-disk JSONL is the recovery / forensic copy: it survives OTel
collector outages and gives operators a queryable record without standing up a metrics
stack. agent.queryAudit(predicate) reads back every entry from the latest day file.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSkillAuditLog(AbstractFilesystem filesystem, WorkspaceManager workspaceManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(SkillAuditLog.Entry entry) Append a new entry.static SkillAuditLog.EntrycuratorEntry(SkillCurator.CuratorRunReport report, String mode) Convenience builder forcurator.run.static SkillAuditLog.EntryConvenience builder for the commonskill_manageentry shape.static SkillAuditLog.EntrypromoteEntry(String reviewer, String name, String decision, String scanVerdict, List<String> environments) Convenience builder for thepromoteaudit entry.query(String dayUtc, Predicate<SkillAuditLog.Entry> filter) Read the audit log for a given day, parse every line intoSkillAuditLog.Entry, then filter via the predicate.
-
Field Details
-
AUDIT_DIR
- See Also:
-
-
Constructor Details
-
SkillAuditLog
-
-
Method Details
-
append
Append a new entry. Best-effort: failures are logged but never thrown. -
query
Read the audit log for a given day, parse every line intoSkillAuditLog.Entry, then filter via the predicate. PassnullfordayUtcto query "today". -
manageEntry
public static SkillAuditLog.Entry manageEntry(String actor, String name, String action, String draftOrMain, String verdict) Convenience builder for the commonskill_manageentry shape. -
promoteEntry
public static SkillAuditLog.Entry promoteEntry(String reviewer, String name, String decision, String scanVerdict, List<String> environments) Convenience builder for thepromoteaudit entry. -
curatorEntry
Convenience builder forcurator.run.
-