Status

NeoLabHQ/context-engineering-kit/plugins/fpf/skills/status

作者 NeoLabHQ23e2428e809d77717f8acc9659c374a3a1fcb93e无许可证收录于 2026年10月9日更新于 2026年10月9日

Display the current state of the FPF knowledge base

AI 生成的概览

显示 FPF 知识库的当前状态,统计假设、证据和决策。

功能
检查 .fpf/ 目录结构,并报告所需的子目录是否存在。它按知识层(L0、L1、L2、invalid)统计假设文件数量,根据 valid_until 日期检查证据的新鲜度,并统计决策文件数量。随后输出状态报告,包含检测到的工作流阶段、数量、证据状态、警告和近期决策。
适用场景
当你需要了解 FPF 知识库的当前状态或工作流阶段时使用。它也适合在决定下一步(如验证、确认、审计或衰减审查)之前使用。
运行要求
无需脚本,仅为说明性指令。它读取本地 .fpf/ 目录,其中包含 knowledge、evidence 和 decisions 子目录,并需要当前日期来判断证据新鲜度。

Status Check

Display the current state of the FPF knowledge base.

Action (Run-Time)

  1. Check Directory Structure: Verify .fpf/ exists and contains required subdirectories.
  2. Count Hypotheses: List files in each knowledge layer:
    • .fpf/knowledge/L0/ (Proposed)
    • .fpf/knowledge/L1/ (Verified)
    • .fpf/knowledge/L2/ (Validated)
    • .fpf/knowledge/invalid/ (Rejected)
  3. Check Evidence Freshness: Scan .fpf/evidence/ for expired evidence.
  4. Count Decisions: List files in .fpf/decisions/.
  5. Report to user.

Status Report Format

markdown
## FPF Status
### Directory Structure- [x] .fpf/ exists- [x] knowledge/L0/ exists- [x] knowledge/L1/ exists- [x] knowledge/L2/ exists- [x] evidence/ exists- [x] decisions/ exists
### Current PhaseBased on hypothesis distribution: ABDUCTION | DEDUCTION | INDUCTION | DECISION | IDLE
### Hypothesis Counts
| Layer | Count | Status ||-------|-------|--------|| L0 (Proposed) | 3 | Awaiting verification || L1 (Verified) | 2 | Awaiting validation || L2 (Validated) | 1 | Ready for decision || Invalid | 1 | Rejected |
### Evidence Status
| Total | Fresh | Stale | Expired ||-------|-------|-------|---------|| 5 | 3 | 1 | 1 |
### Warnings
- 1 evidence file is EXPIRED: ev-benchmark-old-2024-06-15- Consider running `/fpf:decay` to review stale evidence
### Recent Decisions
| DRR | Date | Winner ||-----|------|--------|| DRR-2025-01-15-use-redis | 2025-01-15 | redis-caching |

Phase Detection Logic

Determine current phase by examining the knowledge base state:

ConditionPhaseNext Step
No .fpf/ directoryNOT INITIALIZEDRun /fpf:propose-hypotheses
L0 > 0, L1 = 0, L2 = 0ABDUCTIONContinue with verification
L1 > 0, L2 = 0DEDUCTIONContinue with validation
L2 > 0, no recent DRRINDUCTIONContinue with audit and decision
Recent DRR existsDECISION COMPLETEReview decision
All emptyIDLERun /fpf:propose-hypotheses

Evidence Freshness Check

For each evidence file in .fpf/evidence/:

  1. Read the valid_until field from frontmatter
  2. Compare with current date
  3. Classify:
    • Fresh: valid_until > today + 30 days
    • Stale: valid_until > today but < today + 30 days
    • Expired: valid_until < today

If any evidence is stale or expired, warn the user and suggest /fpf:decay.

Example Output

## FPF Status
### Current Phase: DEDUCTION
You have 3 hypotheses in L0 awaiting verification.Next step: Continue the FPF workflow to process L0 hypotheses.
### Hypothesis Counts
| Layer | Count ||-------|-------|| L0 | 3 || L1 | 0 || L2 | 0 || Invalid | 0 |
### Evidence Status
No evidence files yet (hypotheses not validated).
### No Warnings
All systems nominal.

来源与署名

来源:NeoLabHQ/context-engineering-kit位于plugins/fpf/skills/status提交23e2428

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架