360 Secure SkillHub
360 安全技能中心

Rejection Logger

核心功能是按指定格式记录Agent评估后拒绝执行的请求、工具或方案,生成标准化日志条目存入.learnings/REJECTIONS.md,包含时间戳、目标、拒绝原因及替代方案等信息。典型场景包括拒绝用户不合规请求、多工具选型弃用部分选项、代码重构放弃特定库等,可提升决策透明度、增强信任,辅助Agent自我修正决策边界。

balkanblbn
balkanblbn
热度 56.76
最近更新 2026-05-17 12:56:41
分类:协作依赖:读写文件应用场景:工作流 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add rejection-logger
Metadata
name
rejection-logger
description
Captures and logs choices, options, or prompts that the agent evaluated and decided NOT to execute. Use whenever you skip a task, reject an approach, or choose one method over another to provide transparency into your reasoning.

Rejection Logger

Transparency isn't just about showing what you did; it's about explaining what you didn't do. This skill helps you document rejected paths.

Core Workflow

1. Identify Rejection

When you evaluate multiple ways to solve a problem and pick one, or when you decide a user request is unsafe/out of scope, log it.

2. Log Entry

Append to .learnings/REJECTIONS.md (create if missing):

## [REJ-YYYYMMDD-XXX] <short_title>

**Timestamp**: ISO-8601
**Target**: <What was requested or considered>
**Decision**: REJECTED
**Reason**: <Why it was rejected (e.g., safety, complexity, better alternative)>
**Alternative**: <What was done instead>

When to Use

  • When a user asks for something and you say "No" or "I can't".
  • When you consider two tools and pick one.
  • When you refactor code and decide against a specific library.

Benefits

  • Audit Trail: Humans can see your internal deliberation.
  • Trust: Showing rejections proves you are thinking, not just guessing.
  • Self-Correction: Reviewing rejections helps you refine your decision boundaries.