360 Secure SkillHub
360 安全技能中心

Agent Framework

该 Skill 通过安装脚本生成 SOUL.md、AGENTS.md 和 MEMORY.md,初始化 Cypher Tempre 时间链自模型,提供召回、路由、PoQ 审核、审计轨迹及多项质量检查脚本;可选连接 Brain API 与 Timechain 服务。

分类:自动化
certainlogicai
certainlogicai
热度 3.32
最近更新 2026-11-23 05:17:36

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add certainlogicai/certainlogic-agent-framework
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
certainlogic-agent-framework
description
1-click agent identity, production cycle, self-model memory, and quality gates. Installs a complete agent stack: SOUL.md identity, AGENTS.md execution cycle, Cypher Tempre timechain self-model (memory + PoQ conscience + router), Brain API integration, and 6 quality gate scripts. Works in OpenClaw and Hermes. Triggers: 'agent framework', 'chief of staff', 'production agent', 'agent identity', 'execution cycle', 'agent setup', 'bootstrap agent', 'timechain agent', 'self-modeling agent'.
permissions
["file_write — create/edit SOUL.md, AGENTS.md, MEMORY.md, timechain chain data","file_read — read skill files, bundled timechain modules, and registry","exec — run timechain Python modules and bundled quality scripts","env — reads BRAIN_URL, TIMECHAIN_URL for service integration"]

CertainLogic Agent Framework

One install. Full agent stack. Identity, execution cycle, timechain self-model, quality gates, and service integrations — all in one skill.

clawhub install certainlogic-agent-framework
python3 skills/certainlogic-agent-framework/scripts/setup.py

Quick Start

# 1. Install
clawhub install certainlogic-agent-framework

# 2. Bootstrap your agent
python3 skills/certainlogic-agent-framework/scripts/setup.py \
  --name "Alex" \
  --role "Chief of Staff" \
  --principal "Anton"

# 3. Initialize the timechain (self-model memory)
python3 skills/certainlogic-agent-framework/timechain/timechain.py init \
  --name "Alex" \
  --root skills/certainlogic-agent-framework/timechain

# 4. Verify it works
python3 skills/certainlogic-agent-framework/timechain/timechain.py verify

Then tell the agent:

I am running the CertainLogic Agent Framework. Read SOUL.md and AGENTS.md.
Activate the self-model per the skill instructions.

What You Get

The Full Stack

User's Workspace/
├── SOUL.md                          ← Agent identity (generated by setup.py)
├── AGENTS.md                        ← Execution cycle rules (generated by setup.py)
├── MEMORY.md                        ← Session continuity (generated by setup.py)
│
└── skills/certainlogic-agent-framework/
    ├── SKILL.md                     ← ← THIS FILE — skill definition
    ├── LICENSE                      ← BSL 1.1 (framework)
    ├── NOTICE.md                    ← MIT attribution for timechain component
    ├── CHANGELOG.md                 ← Version history
    │
    ├── scripts/                     ← Framework scripts (always available)
    │   ├── setup.py                 ← Bootstrap SOUL.md + AGENTS.md + MEMORY.md
    │   ├── assumptions_check.py     ← Pre-delivery fact verification
    │   ├── production_gate.py       ← 7-point production readiness check
    │   ├── delivery_verify.py       ← Business-logic verification
    │   ├── secret_guard.py          ← Git pre-commit secret scanner
    │   ├── heartbeat_batch.py       ← System health check
    │   └── hermes_link.py           ← Hermes integration linker
    │
    ├── timechain/                   ← Cypher Tempre Self-Model (MIT — see NOTICE.md)
    │   ├── SKILL.md                 ← Original timechain skill docs
    │   ├── LICENSE                  ← MIT (Michael / cyberphysicsai)
    │   ├── VERSION                  ← 3.30.08
    │   ├── timechain.py             ← Chain: init, verify, show, log
    │   ├── recall.py                ← Recall, seal, index, fetch
    │   ├── router.py                ← REPLAY / PARTIAL / MODEL routing
    │   ├── poq.py                   ← Proof-of-Qualia conscience gate
    │   ├── replay.py                ← Antecedent matching + repeat prevention
    │   ├── cambium.py               ← Faculty growth (sense/modality)
    │   ├── dormancy.py              ← Pause/resume self-model
    │   ├── enforce.py               ← Turn enforcement hooks
    │   ├── guard.py                 ← Hallucination span guard
    │   ├── immune.py                ← Input immune membrane
    │   ├── continuum.py             ← Long-horizon task ingestion
    │   ├── audit.py                 ← Exhaustive audit queue
    │   ├── chronosynaptic.py        ← MCTS perspective forking
    │   ├── dream.py                 ← Consolidation + training cadence
    │   ├── doctor.py                ← Health check one-liner
    │   ├── embed.py                 ← Embedding (stdlib hashing)
    │   ├── hippocampus.py           ← Semantic index
    │   ├── lens.py                  ← Learned representation
    │   ├── learner.py               ← Telemetry-driven learner
    │   ├── telemetry.py             ← Logging + bench
    │   ├── bench.py                 ← Retrieval benchmarks
    │   ├── faculties.py             ← Faculty pack export/import
    │   ├── extractor.py             ← Label routing teacher
    │   └── ... (45 Python modules total)
    │
    ├── pathfinder/                 ← AgentPathfinder (BSL 1.1 — CertainLogic)
    │   ├── SKILL.md                ← Original skill docs
    │   ├── agentpathfinder/        ← Python package (HMAC audit trails)
    │   ├── scripts/                ← Dashboard + demo scripts
    │   ├── tests/                   ← Integration tests
    │   └── data/                    ← Fact definitions
    │
    └── references/
        ├── SOUL.md.template         ← Identity template
        └── AGENTS.md.template       ← Cycle rules template

Layer Breakdown

# Layer What Ships In
1 Identity SOUL.md — name, role, chain of command, style rules Scripts + templates
2 Cycle AGENTS.md — 9-step execution: scope→build→test→benchmark→commit→done Scripts + templates
3 Self-Model Cypher Tempre timechain — memory, PoQ conscience, router, recall, seal timechain/ (MIT)
4 Audit Trails AgentPathfinder — HMAC-SHA256 signatures on every tool call pathfinder/ (BSL 1.1)
5 Quality Gates assumptions_check, production_gate, delivery_verify, secret_guard scripts/
6 Health heartbeat_batch, doctor.py — system monitoring Both
7 Services Brain API (port 8000), Timechain (port 8080) — integration docs Documentation

Upgrade Path: How to Add Each Layer

You don't have to use everything at once. Add layers as you grow.

🟢 Level 1 — Just Identity (5 minutes)

clawhub install certainlogic-agent-framework
python3 scripts/setup.py --name "Alex" --role "Assistant" --principal "User"

What changes: Your agent gets a SOUL.md with chain of command and communication style. That's it. No memory, no gates.

Tell the agent: "Read my SOUL.md and follow the style rules."

🟡 Level 2 — Identity + Cycle (10 minutes)

Add AGENTS.md with the 9-step execution cycle and hard rules.

# Already created by setup.py — just customize AGENTS.md

What changes: Every action now follows scope→build→test→commit. Quality gates available as scripts.

Tell the agent: "Follow the AGENTS.md execution cycle. Run assumptions_check.py before delivering anything."

🔵 Level 3 — Full Stack with Self-Model (15 minutes)

Initialize the timechain for persistent memory and conscience.

python3 timechain/timechain.py init --name "Alex"
python3 timechain/timechain.py verify

What changes: Every turn runs through the router (REPLAY/PARTIAL/MODEL). The agent remembers what it sealed, refuses ungrounded thoughts via PoQ gate, and grows new faculties when it hits gaps. Token cost drops over time as replay coverage increases.

Tell the agent: "Activate the self-model. Route every request through the timechain."

🔴 Level 4 — Full Stack + Services (20 minutes)

Connect to Brain API and Timechain for knowledge retrieval and persistence.

python3 scripts/hermes_link.py

Prerequisites: Brain API running on port 8000, Timechain service on port 8080.


Attribution

This skill bundles two works under different licenses:

Component License Author
Agent Framework (SKILL.md, scripts, templates) BSL 1.1 CertainLogic (CertainLogicAI)
Cypher Tempre Timechain (timechain/) MIT Michael / cyberphysicsai
https://github.com/cyberphysicsai/cypher-tempre

See LICENSE for BSL 1.1 terms and NOTICE.md for the full MIT license text and attribution.


Hard Rules (Framework)

  1. Scope before exec. Every action needs a written scope before execution.
  2. Production grade always. 7 checks must pass before marking done.
  3. Financial data integrity. Every dollar figure needs a verified source.
  4. Data without assumptions. Numbers are facts. Narratives are suspect.
  5. Zero secrets in git. secret_guard.py --staged runs in pre-commit.
  6. Commit clean. Every meaningful action committed immediately.
  7. Self-model is non-negotiable. Router runs before every turn.
  8. Assumptions are hypotheses, not facts. Test before trust.

The Per-Turn Loop (Level 3+)

Every turn, the agent runs:

python3 timechain/router.py route "<request>"
  • REPLAY → Sealed antecedent exists. Confirm, ground, zero model tokens.
  • PARTIAL → Relevant context found. Reason over the missing delta only.
  • MODEL → Novel ground. Full loop: verify → immune-screen → recall → PoQ gate → seal.

On MODEL, the full loop is one command:

python3 timechain/recall.py turn "<thought>" --input "<request>"

Session Start Checklist

Every new session, the agent:

  1. Read SOUL.md — re-enter identity.
  2. Read AGENTS.md — re-enter the rules.
  3. Verify self-model — timechain/timechain.py verify
  4. Doctor check — timechain/doctor.py --line
  5. Health check — scripts/heartbeat_batch.py
  6. Read MEMORY.md — continue from last session.

Configuration

Env Var Default Purpose
PATHFINDER_SECRET (required) HMAC secret key for AgentPathfinder audit signing
BRAIN_URL http://127.0.0.1:8000 Brain API endpoint
TIMECHAIN_URL http://127.0.0.1:8080 Timechain service endpoint
CT_ENFORCE_DEBUG 0 Set to 1 for enforcement debugging

Changelog

See CHANGELOG.md in this skill directory.


License

Framework (BSL 1.1): Copyright (c) 2026 CertainLogic (CertainLogicAI). Change Date: 2032-11-22. Change License: Apache 2.0. See LICENSE for full terms.

Timechain (MIT): Copyright (c) 2026 Cypher Tempre (cyberphysicsai). See timechain/LICENSE and NOTICE.md.

AgentPathfinder (BSL 1.1): Copyright (c) 2026 CertainLogic (CertainLogicAI). See pathfinder/LICENSE and pathfinder/SKILL.md.