Ch 2, Architecture Flashcards: The Claw AI Agent Ecosystem (Ava S. Barron)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Concept flashcards for Ch 2, Architecture, based on The Claw AI Agent Ecosystem by Ava S. Barron (ISBN 979-8-2526-0474-9).

25 Terms

1
New cards

Internal event object

The standard format every input is normalized into, so a Telegram message and a cron job are handled by identical downstream logic.

2
New cards

Four event types

Message, scheduled, webhook, and heartbeat.

3
New cards

Heartbeat event

Internal runtime signal, every 30 minutes by default, that triggers a light self-check and queued background work; it needs no external reply.

4
New cards

dmPolicy

Direct-message setting per channel: allowlist (only IDs in allowFrom), open (anyone who finds the bot), or disabled.

5
New cards

groupPolicy

Group-chat setting per channel: mention (respond only when @mentioned), all (process every message), or disabled.

6
New cards

allowFrom identifiers

Use platform user IDs (numeric Telegram IDs, Slack member IDs), never usernames or display names, because those can change.

7
New cards

HMAC-SHA256 webhook auth

Recommended webhook method: the caller signs each payload with a shared secret. Unlike a bearer token, the signature is bound to the content.

8
New cards

Sequential event processing

One event at a time per session. Prevents races in tool calls and memory writes, but a slow tool call blocks later events.

9
New cards

Stable prefix

Assembly steps 1-7: identity files, MEMORY.md, daily logs, tool schemas. Unchanged between turns in a session, so it can be prompt-cached.

10
New cards

Variable suffix

Session history plus the incoming event. Grows each turn and is not cached, so volatile content belongs at the end.

11
New cards

Primary cost control lever

Governing workspace file size. An ungoverned workspace after six months can cost about $165/month in input tokens versus about $13 governed.

12
New cards

Silent skip of missing files

Absent context files are skipped without error. An AGENTS.md startup check can turn a missing SOUL.md into an explicit alert.

13
New cards

Credentials and context

Keep secrets out of every context file, since the model can read all of it. Put them in environment variables used by tool code.

14
New cards

What SOUL.md must answer

How the agent communicates, what wins when values conflict, what it will never do, and how it handles ambiguous instructions.

15
New cards

AGENTS.md role

Operational runbook: files to load at session start, safety defaults, confirmation rules, memory governance, group chat and tool/channel policies.

16
New cards

SOUL.md vs AGENTS.md conflict

On an edge-case conflict, SOUL.md wins because it sets the frame the model uses to interpret everything else.

17
New cards

fallbacks array

Ordered list of alternate models tried in sequence when the primary is unavailable from rate limits, outages, or budget caps.

18
New cards

Tool in OpenClaw

A directory under skills/ holding a SKILL.md (description, input schema, behavioral notes) plus the implementation code.

19
New cards

Five-stage tool pipeline

Schema validation, permission check, sandbox check, execution, result normalization.

20
New cards

SKILL.md is not enforced

Behavioral notes are read by the model, not checked by the execution layer. Put high-stakes constraints in the tool code as well.

21
New cards

Specific confirmation gates

Gates that name exact details (recipient, file path, event) remove the gap left when the model interprets a vague word like destructive.

22
New cards

Result compression

A cheap model summarizes large tool output before it enters context, so later calls carry a short summary instead of the full payload.

23
New cards

Three memory layers

Session history (current conversation), daily logs in memory/YYYY-MM-DD.md, and curated long-term MEMORY.md.

24
New cards

Memory drift

MEMORY.md facts that were true when written but are now outdated; the model still acts on them confidently. Dating entries makes drift visible.

25
New cards

Null channel

Setting channel to null runs a task with no external message, which suits housekeeping such as the daily log write.