Skip to main content

psyche-network-rules-reference

Deep reference for the separate `.rules` heartbeat signal: authorized atomic writes, consumption, replacement, persistence, verification, and boundaries.

설치로 이동

소스 정보

저장소
Lingtai-AI/lingtai-kernel
최근 소스 활동
2026년 9월 9일 07:48
감지된 SKILL.md 언어
영어
스타
11
포크
14

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
psyche-network-rules-reference
last_changed_at
2026-09-09T00:00:00.000Z
description
Deep reference for the separate `.rules` heartbeat signal: authorized atomic writes, consumption, replacement, persistence, verification, and boundaries.
related_files
["src/lingtai/intrinsic_skills/psyche-manual/SKILL.md","src/lingtai/kernel/base_agent/lifecycle.py","src/lingtai/kernel/base_agent/__init__.py","src/lingtai/tools/avatar/manual/SKILL.md","tests/test_avatar_rules.py"]
maintenance
Keep this reference synchronized with `_check_rules_file` and Avatar's signpost. `.rules` is not a Psyche action; preserve its distinct mechanism, consumption, and authorization boundary.
# Psyche network-rules reference `.rules` is a heartbeat signal, not a Psyche action or generic instruction API. The agent heartbeat (`_check_rules_file`) consumes it, unlike ordinary durable edits, which require file→`context.rebuild`. ## Write and consume Write the complete approved UTF-8 body atomically to the explicitly authorized agent workdir root (POSIX example; use the active shell’s equivalent elsewhere): ```sh target='/absolute/path/to/authorized-agent' body='/absolute/path/to/approved-rules.txt' tmp=$(mktemp "$target/.rules.XXXXXX") && cat "$body" > "$tmp" && mv "$tmp" "$target/.rules" ``` A failed command requires inspection of that exact temporary file; do not blindly replay or announce success. Confirm each target separately—there is no descendant broadcast. Do not substitute `system/rules.md` for this live signal. The next runnable heartbeat reads and unlinks `.rules` before deciding whether to apply it. Read/unlink failure leaves it unconsumed and stops processing, so disappearance alone is not proof of success. A nonempty body completely replaces `system/rules.md` and the protected `rules` section; whitespace-only content is a consumed no-op. Identical content is consumed without rewrite or flush. Changed content persists and flushes, logging `rules_loaded`; a canonical-file write failure aborts before prompt mutation and logs `rules_write_error`. Boot and every full rebuild/refresh/molt reread `system/rules.md` independently; a missing or empty canonical file removes the section. Identical comparison ignores leading/trailing whitespace. A pending `.rules` file is not yet applied, and an empty signal cannot clear existing rules. Verify the canonical file on disk and the effective protected section only after that agent's heartbeat processed the signal (or after later reconstruction). ## Boundary Writing another reachable agent's `.rules` file is an ordinary filesystem write, not a dedicated avatar authorization path. Reachability is not permission: only actual human scope and the target's real accessibility authorize the write. Keep this distinction visible when operating across agents.
GitHub에서 보기