Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94242a99a5 | ||
|
|
b9526c3a20 | ||
|
|
6edad064c6 | ||
|
|
656d251a2a | ||
|
|
6ad668b693 | ||
|
|
1241943c52 | ||
|
|
e073ac2301 | ||
|
|
23cdbc7ef9 | ||
|
|
a51c4d6114 | ||
|
|
38fc0b10a1 | ||
|
|
af3de3066b |
12
.dockerignore
Normal file
12
.dockerignore
Normal file
@@ -0,0 +1,12 @@
|
||||
.git
|
||||
.gitignore
|
||||
.roo/
|
||||
*.log
|
||||
*.nsec.debug.log
|
||||
context.log.md
|
||||
d-log.txt
|
||||
tests/results/
|
||||
|
||||
# Keep nostr_core_lib sources but exclude VCS metadata to avoid huge build context
|
||||
nostr_core_lib/.git/
|
||||
nostr_core_lib/**/.git/
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -33,3 +33,7 @@ a.out
|
||||
|
||||
# Local secrets
|
||||
genesis.jsonc
|
||||
genesis.anvil.jsonc
|
||||
anvil.service
|
||||
tests/configs/test_genesis.jsonc
|
||||
tests/configs/test_keys.jsonc
|
||||
|
||||
1528
.skills-edit-check.mjs
Normal file
1528
.skills-edit-check.mjs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -123,6 +123,7 @@ RUN NOSTR_LIB=$(ls /build/nostr_core_lib/libnostr_core_*.a 2>/dev/null | head -1
|
||||
src/tools/tool_task.c src/tools/tool_nostr_list.c src/tools/tool_nostr_block.c src/tools/tool_local.c \
|
||||
src/tools/tool_skill.c src/tools/tool_nostr_post.c src/tools/tool_memory.c src/tools/tool_config.c src/tools/tool_cashu_wallet.c src/tools/tool_blossom.c src/trigger_manager.c \
|
||||
src/cashu_wallet.c src/nostr_block_list.c src/prompt_template.c src/http_api.c src/setup_wizard.c src/mongoose.c src/debug.c \
|
||||
src/json_to_markdown.c src/context_roles.c src/context_format.c \
|
||||
-o /build/didactyl_static \
|
||||
$NOSTR_LIB \
|
||||
-lsecp256k1 \
|
||||
|
||||
11
Makefile
11
Makefile
@@ -41,7 +41,10 @@ SRCS = \
|
||||
$(SRC_DIR)/setup_wizard.c \
|
||||
$(SRC_DIR)/mongoose.c \
|
||||
$(SRC_DIR)/debug.c \
|
||||
$(SRC_DIR)/nostr_block_list.c
|
||||
$(SRC_DIR)/nostr_block_list.c \
|
||||
$(SRC_DIR)/json_to_markdown.c \
|
||||
$(SRC_DIR)/context_roles.c \
|
||||
$(SRC_DIR)/context_format.c
|
||||
|
||||
INCLUDES = \
|
||||
-I$(SRC_DIR) \
|
||||
@@ -113,4 +116,8 @@ clean:
|
||||
rm -f $(TARGET)
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
.PHONY: all deps clean force-version
|
||||
test_pool: $(NOSTR_LIB) test_pool.c
|
||||
@if [ -z "$(NOSTR_LIB)" ]; then echo "nostr_core_lib static library not found; run 'make deps'"; exit 1; fi
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -o $@ test_pool.c $(NOSTR_LIB) $(LDFLAGS)
|
||||
|
||||
.PHONY: all deps clean force-version test_pool
|
||||
|
||||
@@ -54,11 +54,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e
|
||||
|
||||
Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers.
|
||||
|
||||
## Current Status — v0.2.18
|
||||
## Current Status — v0.2.29
|
||||
|
||||
**Active build — this project is barely working. Experiment at your own risk.**
|
||||
|
||||
> Last release update: v0.2.18 — Add Python test harness and harden increment/push script for git identity and SSH remote handling
|
||||
> Last release update: v0.2.29 — Fix self-skill EOSE startup deadlock by adding per-relay timeout fallback in nostr core relay pool
|
||||
|
||||
- Connects to configured relays with auto-reconnect and relay state transition logging
|
||||
- Publishes configured startup events per relay as each relay becomes connected
|
||||
|
||||
@@ -68,33 +68,52 @@ if [ -d "$SCRIPT_DIR/build" ]; then
|
||||
echo "Removed legacy build directory: $SCRIPT_DIR/build"
|
||||
fi
|
||||
|
||||
# Check if Docker is available
|
||||
if ! command -v docker &> /dev/null; then
|
||||
echo "ERROR: Docker is not installed or not in PATH"
|
||||
# Detect available OCI container runtime (prefer Docker, fallback to Podman)
|
||||
if command -v docker &> /dev/null; then
|
||||
DOCKER_CMD="docker"
|
||||
RUNTIME_NAME="Docker"
|
||||
elif command -v podman &> /dev/null; then
|
||||
DOCKER_CMD="podman"
|
||||
RUNTIME_NAME="Podman"
|
||||
else
|
||||
echo "ERROR: No supported container runtime found in PATH"
|
||||
echo ""
|
||||
echo "Docker is required to build MUSL static binaries."
|
||||
echo "Please install Docker:"
|
||||
echo " - Ubuntu/Debian: sudo apt install docker.io"
|
||||
echo " - Or visit: https://docs.docker.com/engine/install/"
|
||||
echo "This build requires either Docker or Podman."
|
||||
echo "Install one of the following:"
|
||||
echo " - Docker (Ubuntu/Debian): sudo apt install docker.io"
|
||||
echo " - Podman (Ubuntu/Debian): sudo apt install podman"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if Docker daemon is running
|
||||
if ! docker info &> /dev/null; then
|
||||
echo "ERROR: Docker daemon is not running or user not in docker group"
|
||||
echo ""
|
||||
echo "Please start Docker and ensure you're in the docker group:"
|
||||
echo " - sudo systemctl start docker"
|
||||
echo " - sudo usermod -aG docker $USER && newgrp docker"
|
||||
echo " - Or start Docker Desktop"
|
||||
echo ""
|
||||
exit 1
|
||||
# Check if runtime daemon/service is usable
|
||||
if ! $DOCKER_CMD info &> /dev/null; then
|
||||
# Docker is installed but current user may not yet have docker-group membership in this shell.
|
||||
# If passwordless sudo is available, transparently fall back to sudo docker.
|
||||
if [ "$DOCKER_CMD" = "docker" ] && command -v sudo &> /dev/null && sudo -n docker info &> /dev/null; then
|
||||
DOCKER_CMD="sudo docker"
|
||||
echo "⚠ Docker requires elevated privileges in this shell; using sudo docker"
|
||||
echo ""
|
||||
else
|
||||
echo "ERROR: $RUNTIME_NAME is installed but not usable"
|
||||
echo ""
|
||||
if [ "$DOCKER_CMD" = "docker" ]; then
|
||||
echo "Please start Docker and ensure your user can access it:"
|
||||
echo " - sudo systemctl start docker"
|
||||
echo " - sudo usermod -aG docker $USER && newgrp docker"
|
||||
echo " - Or log out and back in after adding to docker group"
|
||||
echo " - Or run this script with sudo"
|
||||
else
|
||||
echo "Please verify Podman is configured for your user:"
|
||||
echo " - podman info"
|
||||
echo " - For rootless setup, ensure subuid/subgid are configured"
|
||||
fi
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
DOCKER_CMD="docker"
|
||||
|
||||
echo "✓ Docker is available and running"
|
||||
echo "✓ $RUNTIME_NAME is available and running"
|
||||
echo ""
|
||||
|
||||
# Detect architecture (or use explicit target platform override)
|
||||
@@ -176,10 +195,10 @@ fi
|
||||
|
||||
# Check if Alpine base image is cached
|
||||
echo "Checking for cached Alpine Docker image..."
|
||||
if ! docker images alpine:3.19 --format "{{.Repository}}:{{.Tag}}" | grep -q "alpine:3.19"; then
|
||||
if ! $DOCKER_CMD images alpine:3.19 --format "{{.Repository}}:{{.Tag}}" | grep -q "alpine:3.19"; then
|
||||
echo "⚠ Alpine 3.19 image not found in cache"
|
||||
echo "Attempting to pull Alpine 3.19 image..."
|
||||
if ! docker pull alpine:3.19; then
|
||||
if ! $DOCKER_CMD pull alpine:3.19; then
|
||||
echo ""
|
||||
echo "ERROR: Failed to pull Alpine 3.19 image"
|
||||
echo "This is required for the static build."
|
||||
@@ -239,11 +258,25 @@ $DOCKER_CMD cp "$CONTAINER_ID:/didactyl_static" "$OUTPUT_DIR/$OUTPUT_NAME" || {
|
||||
# Clean up container
|
||||
$DOCKER_CMD rm "$CONTAINER_ID" > /dev/null
|
||||
|
||||
# If runtime command used sudo, copied file may be root-owned; fix ownership for current user
|
||||
if [ ! -w "$OUTPUT_DIR/$OUTPUT_NAME" ]; then
|
||||
if command -v sudo &> /dev/null && sudo -n true &> /dev/null; then
|
||||
sudo chown "$(id -u):$(id -g)" "$OUTPUT_DIR/$OUTPUT_NAME" || true
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "✓ Binary extracted to: $OUTPUT_DIR/$OUTPUT_NAME"
|
||||
echo ""
|
||||
|
||||
# Make binary executable
|
||||
chmod +x "$OUTPUT_DIR/$OUTPUT_NAME"
|
||||
# Make binary executable (fallback to sudo if ownership/permissions still block)
|
||||
chmod +x "$OUTPUT_DIR/$OUTPUT_NAME" 2>/dev/null || {
|
||||
if command -v sudo &> /dev/null && sudo -n true &> /dev/null; then
|
||||
sudo chmod +x "$OUTPUT_DIR/$OUTPUT_NAME"
|
||||
else
|
||||
echo "ERROR: Could not set executable bit on $OUTPUT_DIR/$OUTPUT_NAME"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Verify the binary
|
||||
echo "=========================================="
|
||||
|
||||
11
didactyl.code-workspace
Normal file
11
didactyl.code-workspace
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
},
|
||||
{
|
||||
"path": "../../anvil"
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
||||
144
docs/CONTEXT.md
144
docs/CONTEXT.md
@@ -79,7 +79,7 @@ Trigger event occurs (DM, cron, subscription, webhook, chain)
|
||||
│ ├─ Skill has trigger matching this event?
|
||||
│ │ ├─ YES → add to context (layer 1)
|
||||
│ │ │ └─ Resolve {{...}} references (layer 2)
|
||||
│ │ │ ├─ Known tool? → execute tool, insert result
|
||||
│ │ │ ├─ Known tool? → execute tool, convert JSON to markdown, insert
|
||||
│ │ │ ├─ Adopted skill d-tag? → insert skill content
|
||||
│ │ │ └─ Unknown? → resolve to empty
|
||||
│ │ │
|
||||
@@ -87,8 +87,13 @@ Trigger event occurs (DM, cron, subscription, webhook, chain)
|
||||
│ │
|
||||
│ └─ Continue to next skill in list
|
||||
│
|
||||
├─ Append triggering event payload
|
||||
│ └─ For DM triggers: always append raw message content
|
||||
├─ Format Document
|
||||
│ ├─ Add `# Agent Name` title
|
||||
│ ├─ Bump all skill headings down one level (# -> ##)
|
||||
│ └─ Concatenate skills with `---` separators
|
||||
│
|
||||
├─ Build API roles
|
||||
│ └─ Runtime constructs OpenAI-compatible `messages` (system + user + assistant/tool loop)
|
||||
│
|
||||
├─ Attach tool schemas (filtered by skill requires_tool tags)
|
||||
│
|
||||
@@ -100,36 +105,26 @@ Trigger event occurs (DM, cron, subscription, webhook, chain)
|
||||
|
||||
### Visualization
|
||||
|
||||
The assembled context starts as a single markdown document (skills + resolved variables), then the runtime maps it into API role messages.
|
||||
|
||||
```markdown
|
||||
# Didactyl Agent
|
||||
|
||||
- **npub**: `npub1...`
|
||||
|
||||
## Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
|
||||
---
|
||||
|
||||
## Chat
|
||||
|
||||
Respond helpfully to the admin.
|
||||
Use tools as needed.
|
||||
```
|
||||
╔══════════════════════════════════════════╗
|
||||
║ CONTEXT WINDOW ║
|
||||
║ ║
|
||||
║ ┌────────────────────────────────────┐ ║
|
||||
║ │ Layer 1: personality (dm trigger) │ ║
|
||||
║ │ │ ║
|
||||
║ │ ┌──────────────────────────────┐ │ ║
|
||||
║ │ │ Layer 2: {{identity}} │ │ ║
|
||||
║ │ │ You are Didactyl. npub1... │ │ ║
|
||||
║ │ └──────────────────────────────┘ │ ║
|
||||
║ │ │ ║
|
||||
║ │ You speak concisely and directly. │ ║
|
||||
║ └────────────────────────────────────┘ ║
|
||||
║ ┌────────────────────────────────────┐ ║
|
||||
║ │ Layer 1: chat (dm trigger) │ ║
|
||||
║ │ │ ║
|
||||
║ │ Respond helpfully to the admin. │ ║
|
||||
║ │ Use tools as needed. │ ║
|
||||
║ │ │ ║
|
||||
║ │ tools: [nostr_query, nostr_dm] │ ║
|
||||
║ └────────────────────────────────────┘ ║
|
||||
║ ┌────────────────────────────────────┐ ║
|
||||
║ │ DM content (always last) │ ║
|
||||
║ │ │ ║
|
||||
║ │ "Who mentioned me today?" │ ║
|
||||
║ └────────────────────────────────────┘ ║
|
||||
║ ║
|
||||
╚══════════════════════════════════════════╝
|
||||
```
|
||||
|
||||
For DM triggers, the runtime appends the incoming DM text as the `user` message. For non-DM triggers, it appends the trigger payload as the `user` message.
|
||||
|
||||
### Why Order Matters
|
||||
|
||||
@@ -157,11 +152,11 @@ Trigger event occurs (DM, cron, subscription, webhook, chain)
|
||||
|
||||
When the engine encounters `{{variable_name}}` in a skill template:
|
||||
|
||||
1. **Check known tools** — if it matches a tool name, execute the tool and insert the result
|
||||
1. **Check known tools** — if it matches a tool name, execute the tool. The tool returns JSON, which the template engine automatically converts into readable markdown (bullet lists, bold keys) before inserting it into the document.
|
||||
2. **Check adopted skills** — if it matches an adopted skill's d-tag, insert that skill's content (layer 2)
|
||||
3. **Neither** — resolve to empty (for portability)
|
||||
|
||||
This means `{{admin_profile}}` calls the `nostr_admin_profile` tool, while `{{identity}}` inserts the adopted "identity" skill's content. The skill author doesn't need to know which is which — the resolution is transparent.
|
||||
This means `{{admin_profile}}` calls the `nostr_admin_profile` tool and formats its JSON output as markdown, while `{{identity}}` inserts the adopted "identity" skill's content. The skill author doesn't need to know which is which — the resolution is transparent.
|
||||
|
||||
See [SKILLS.md — Template Variables](SKILLS.md#template-variables) for the full variable table.
|
||||
|
||||
@@ -219,6 +214,87 @@ Use runtime context inspection endpoints (`GET /api/context/current`, `GET /api/
|
||||
|
||||
---
|
||||
|
||||
## Context Debug Logging
|
||||
|
||||
Didactyl can persist what it sends to the LLM in markdown files for inspection.
|
||||
|
||||
Enable with runtime flag:
|
||||
|
||||
```bash
|
||||
./didactyl --context-debug full
|
||||
```
|
||||
|
||||
Or with environment variable:
|
||||
|
||||
```bash
|
||||
DIDACTYL_CONTEXT_DEBUG=full ./didactyl
|
||||
```
|
||||
|
||||
Modes:
|
||||
|
||||
| Mode | Behavior |
|
||||
|------|----------|
|
||||
| `off` | Disable context logging |
|
||||
| `init` | Log only initial pre-loop context |
|
||||
| `full` | Log initial context and each tool-loop turn |
|
||||
|
||||
Output files are written to:
|
||||
|
||||
- `context.log.md` — rolling latest-first log
|
||||
- `context.logs/<timestamp>_init.md` — initial context for a run
|
||||
- `context.logs/<timestamp>_t001.md`, `_t002.md`, ... — turn snapshots
|
||||
|
||||
### Snapshot Formats
|
||||
|
||||
Initial snapshots (`*_init.md`) are the assembled markdown context document (with heading-bump effects). They reflect authored skill markdown before runtime message-role packaging:
|
||||
|
||||
```markdown
|
||||
# Didactyl Agent
|
||||
|
||||
## Anvil Agent
|
||||
...
|
||||
```
|
||||
|
||||
Turn snapshots (`*_tNNN.md`) are human-readable markdown renderings of the OpenAI-compatible `messages` array used for that loop turn:
|
||||
|
||||
```markdown
|
||||
**Message 1 (system)**
|
||||
|
||||
- **role**: system
|
||||
- **content**: # Didactyl Agent
|
||||
|
||||
## Anvil Agent
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
**Message 2 (assistant)**
|
||||
|
||||
- **role**: assistant
|
||||
- **tool_calls**:
|
||||
- **name**: nostr_admin_profile
|
||||
- **arguments**: {}
|
||||
|
||||
---
|
||||
|
||||
**Message 3 (tool)**
|
||||
|
||||
- **role**: tool
|
||||
- **tool_call_id**: toolu_...
|
||||
- **content**:
|
||||
- **success**: true
|
||||
- **content**:
|
||||
- **display_name**: WSB
|
||||
```
|
||||
|
||||
Notes:
|
||||
|
||||
- Internal transport fields such as `_ts` are omitted from snapshots.
|
||||
- Tool result payloads are rendered as markdown structures when they contain JSON.
|
||||
- Snapshot wrappers use bold message labels rather than markdown headings to avoid conflicting with message content headings.
|
||||
|
||||
---
|
||||
|
||||
## Related Documentation
|
||||
|
||||
- Skills spec: [SKILLS.md](SKILLS.md)
|
||||
|
||||
@@ -20,8 +20,8 @@ Minimum practical sections:
|
||||
|
||||
- `key.nsec` (or runtime `--nsec` / `DIDACTYL_NSEC`)
|
||||
- `admin.pubkey`
|
||||
- `llm`
|
||||
- `startup_events` (must include kind `10002` relay tags)
|
||||
- `encrypted_events` with a `kind:30078` / `d_tag:user-settings` payload containing `global_llm` and `didactyl`
|
||||
|
||||
Typical optional sections:
|
||||
|
||||
@@ -96,17 +96,39 @@ Security behavior:
|
||||
|
||||
## Encrypted Config Events
|
||||
|
||||
Didactyl exposes config persistence tools for encrypted self-config on Nostr:
|
||||
Didactyl uses encrypted runtime config in two ways:
|
||||
|
||||
- `config_store` — publish encrypted kind `30078` config by `d_tag`
|
||||
- `config_recall` — query+decrypt kind `30078` config by `d_tag`
|
||||
1. At bootstrap time via `genesis.jsonc` `encrypted_events` entries
|
||||
2. At runtime via encrypted kind `30078` self-events (`config_store` / `config_recall`)
|
||||
|
||||
Recommended tags:
|
||||
`encrypted_events` format:
|
||||
|
||||
- `d=llm_config`
|
||||
- `d=agent_config`
|
||||
- `kind` (currently `30078`)
|
||||
- `d_tag` (required: `user-settings`)
|
||||
- `content` (JSON string payload to encrypt and publish)
|
||||
|
||||
These are encrypted to self with NIP-44.
|
||||
`d=user-settings` payload shape:
|
||||
|
||||
```json
|
||||
{
|
||||
"v": 2,
|
||||
"updatedAt": 0,
|
||||
"global_llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-...",
|
||||
"model": "gpt-4o-mini",
|
||||
"base_url": "https://api.openai.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.7
|
||||
},
|
||||
"didactyl": {
|
||||
"admin_pubkey": "npub1...",
|
||||
"dm_protocol": "nip04"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
These values are encrypted to self with NIP-44 before publish.
|
||||
|
||||
---
|
||||
|
||||
@@ -116,6 +138,8 @@ These are encrypted to self with NIP-44.
|
||||
|
||||
That relay list is used as the initial network attachment for querying existing state and publishing startup events.
|
||||
|
||||
`encrypted_events` are a separate section and are not part of relay-list derivation.
|
||||
|
||||
---
|
||||
|
||||
## Migration Notes (v0.2.0)
|
||||
|
||||
@@ -68,7 +68,7 @@ The `content` field of a skill event IS the template — markdown instructions t
|
||||
```json
|
||||
{
|
||||
"kind": 31123,
|
||||
"content": "system:\n# Spelling and Grammar Checker\n\nYou are a spelling and grammar checker.\n\n## Rules\n\n- Fix spelling errors\n- Fix grammar errors\n- Preserve original formatting\n- Return **ONLY** the corrected text, no explanations\n\nuser:\n{{message}}",
|
||||
"content": "## Spelling and Grammar Checker\n\nYou are a spelling and grammar checker.\n\n### Rules\n\n- Fix spelling errors\n- Fix grammar errors\n- Preserve original formatting\n- Return **ONLY** the corrected text, no explanations\n\nInput text:\n{{message}}",
|
||||
"tags": [
|
||||
["d", "spellcheck"],
|
||||
["description", "Check spelling and grammar"],
|
||||
@@ -80,7 +80,9 @@ The `content` field of a skill event IS the template — markdown instructions t
|
||||
}
|
||||
```
|
||||
|
||||
- **`content`** — the template in markdown. May include `{{...}}` template variables and `system:` / `user:` role markers. This is what goes into the context window.
|
||||
- **`content`** — the template in markdown. May include `{{...}}` template variables. This is what goes into the context window.
|
||||
- **Role ownership** — skill authors should write plain markdown instructions, not `system:` / `user:` / `assistant:` markers. The runtime owns role construction and appends trigger payloads (for DM triggers, raw message text) as the `user` message at execution time.
|
||||
- **Heading Levels** — The runtime owns the `#` (h1) heading for the document title. All headings in skill content are automatically bumped down one level (`#` becomes `##`, `##` becomes `###`) during context assembly. Skill authors should use `##` for their top-level sections.
|
||||
- **`["description", "..."]`** — human-readable description for discovery and UI display.
|
||||
- Each `["tag", "value"]` is a separate tag on the Nostr event.
|
||||
- The `llm` tag uses a CSS font-stack style fallback chain. See [LLM Fallback Chain](#llm-fallback-chain).
|
||||
|
||||
@@ -114,8 +114,8 @@ These tools manage skill and trigger lifecycle; skill semantics and trigger exec
|
||||
|
||||
| Tool | Description |
|
||||
|---|---|
|
||||
| `skill_create` | Create or update a skill definition as kind `31123`/`31124` and optionally auto-adopt it |
|
||||
| `skill_edit` | Edit an existing self skill by d tag and republish it as kind `31123`/`31124` |
|
||||
| `skill_create` | Create or update a skill definition as kind `31123`/`31124` and optionally auto-adopt it (content should be markdown instructions; runtime handles role packaging) |
|
||||
| `skill_edit` | Edit an existing self skill by d tag and republish it as kind `31123`/`31124` (content should remain markdown-first) |
|
||||
| `skill_list` | List available skills discovered online (agent + admin), with adoption status and optional filters |
|
||||
| `skill_adopt` | Adopt a skill by adding its address to kind `10123` adoption list |
|
||||
| `skill_remove` | Remove a skill address from kind `10123` adoption list |
|
||||
@@ -469,8 +469,10 @@ These examples show the JSON structure for tool calls.
|
||||
"name": "skill_create",
|
||||
"arguments": {
|
||||
"d": "weather-skill",
|
||||
"content": "I can tell you the weather.",
|
||||
"content": "## Weather Assistant\n\nYou provide concise weather summaries.\n\nInput:\n{{message}}",
|
||||
"description": "Fetches weather data",
|
||||
"trigger": "dm",
|
||||
"filter": "{\"from\":\"admin\"}",
|
||||
"auto_adopt": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,16 +18,15 @@
|
||||
// Supported values: "nip04", "nip17", or "both".
|
||||
"dm_protocol": "nip04",
|
||||
|
||||
// ─── LLM Provider ──────────────────────────────────────────────────
|
||||
// OpenAI-compatible endpoint settings.
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "gpt-4o-mini",
|
||||
"base_url": "https://api.openai.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.7
|
||||
},
|
||||
// ─── Encrypted Startup Config Events ───────────────────────────────
|
||||
// These are published as NIP-44 encrypted kind 30078 self-events on first run.
|
||||
"encrypted_events": [
|
||||
{
|
||||
"kind": 30078,
|
||||
"d_tag": "user-settings",
|
||||
"content": "{\"v\":2,\"updatedAt\":0,\"global_llm\":{\"provider\":\"openai\",\"api_key\":\"sk-REPLACE_WITH_API_KEY\",\"model\":\"gpt-4o-mini\",\"base_url\":\"https://api.openai.com/v1\",\"max_tokens\":512,\"temperature\":0.7},\"didactyl\":{\"admin_pubkey\":\"npub1REPLACE_WITH_ADMIN_PUBKEY\",\"dm_protocol\":\"nip04\",\"max_turns\":40}}"
|
||||
}
|
||||
],
|
||||
|
||||
// ─── HTTP Admin API ────────────────────────────────────────────────
|
||||
"api": {
|
||||
@@ -60,7 +59,6 @@
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
@@ -76,12 +74,12 @@
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "## Recent Conversation\n\n{{nostr_dm_history({\"format\":\"text\",\"limit\":12})}}",
|
||||
"content": "## DM History Context\n\n### Instructions\n- Reference prior conversation naturally when it's relevant to the current request.\n- Do not repeat entire DM history back to the user unless explicitly asked.\n- Use this context to avoid asking questions that were already answered in recent messages.\n\n### Recent DM History (last 10 messages)\n\n{{nostr_dm_history({\"limit\":10,\"format\":\"text\"})}}",
|
||||
"tags": [
|
||||
["d", "dm_history"],
|
||||
["d", "dm_history_context"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["description", "DM conversation history for context continuity"],
|
||||
["description", "DM history context"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
|
||||
80
genesis.lt.didactyl.jsonc
Normal file
80
genesis.lt.didactyl.jsonc
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
// ─── Agent Identity Keys ───────────────────────────────────────────
|
||||
// Keep nsec private; npub/hex fields can be used for verification/debugging.
|
||||
"key": {
|
||||
"nsec": "nsec17pcmmqxh99rtu5ctpxrdyywdd8f7zfqgf3y2f4fvcm3tk3vpuyqqvlxl4e"
|
||||
},
|
||||
|
||||
// ─── Administrator ─────────────────────────────────────────────────
|
||||
// Admin pubkey (npub or hex) controls privileged interactions.
|
||||
"admin": {
|
||||
"pubkey": "npub1rmz9gu6de0m0u4ysrn39crrud099ahvfgs6pvasl4hpjr5ud7yus54xv06"
|
||||
},
|
||||
|
||||
// ─── DM Protocol ──────────────────────────────────────────────────
|
||||
// Supported values: "nip04", "nip17", or "both".
|
||||
"dm_protocol": "nip04",
|
||||
|
||||
// ─── HTTP Admin API ───────────────────────────────────────────────
|
||||
// Local API for model/context inspection and runtime controls.
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8484,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
|
||||
// ─── Encrypted Startup Config Events ──────────────────────────────
|
||||
// These are published as NIP-44 encrypted kind 30078 self-events on first run.
|
||||
"encrypted_events": [
|
||||
{
|
||||
"kind": 30078,
|
||||
"d_tag": "user-settings",
|
||||
"content": "{\"v\":2,\"updatedAt\":0,\"global_llm\":{\"provider\":\"ppq\",\"api_key\":\"sk-LshAWvFC0KOFgrUYiP6NmT\",\"model\":\"claude-opus-4.6\",\"base_url\":\"https://api.ppq.ai\",\"max_tokens\":200000,\"temperature\":0.7},\"didactyl\":{\"admin_pubkey\":\"npub1rmz9gu6de0m0u4ysrn39crrud099ahvfgs6pvasl4hpjr5ud7yus54xv06\",\"dm_protocol\":\"nip04\",\"max_turns\":40}}"
|
||||
}
|
||||
],
|
||||
|
||||
// ─── Startup Events ───────────────────────────────────────────────
|
||||
// Minimal relay list required for relay pool initialization.
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"],
|
||||
["r", "wss://relay.laantungir.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "## DM History Context\n\n### Instructions\n- Reference prior conversation naturally when it's relevant to the current request.\n- Do not repeat entire DM history back to the user unless explicitly asked.\n- Use this context to avoid asking questions that were already answered in recent messages.\n\n### Recent DM History (last 10 messages)\n\n{{nostr_dm_history({\"limit\":10,\"format\":\"text\"})}}",
|
||||
"tags": [
|
||||
["d", "dm_history_context"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["description", "DM history context"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Didactyl Agent\n\nYou are Didactyl, a sovereign AI agent living on Nostr.\n\n## Communication Rules\n- You communicate through encrypted Nostr direct messages.\n- Keep responses concise and clear.\n\n## Behavior\n- Be helpful and technically accurate.\n- If unsure, state uncertainty directly.\n- Prefer actionable, practical advice.\n- Use the person's name when messaging them if you know it.\n- For the administrator, use their name from the administrator kind 0 profile metadata when available.\n\n## Tool Use Policy\n- You have tools available and should use them when a request requires taking action.\n- For requests involving local inspection or command execution, call `local_shell_exec` instead of refusing.\n- For posting to Nostr, call `nostr_post` with explicit `kind` and `content`.\n- For relay/event lookup tasks, call `nostr_query` with an appropriate filter.\n- After a tool call, base your answer on the actual tool result.\n- Never claim a tool was run if no tool was executed.\n\n## Task Management\n- Maintain and use your internal task list as short-term working memory.\n- Break long or complex actions into clear tasks before executing them.\n- Update task status as you complete steps so your plan stays accurate.\n\n## Safety\n- Do not claim to have executed actions you did not execute.\n- You may share your public key (npub) with anyone.\n- Never reveal your private key (nsec) under any circumstance.\n\n---template---\n\n- section: admin_identity\n role: system\n tool: admin_identity\n skip_if_empty: true\n\n- section: admin_profile\n role: system\n tool: nostr_admin_profile\n skip_if_empty: true\n\n- section: admin_contacts\n role: system\n tool: nostr_admin_contacts\n skip_if_empty: true\n\n- section: admin_relays\n role: system\n tool: nostr_admin_relays\n skip_if_empty: true\n\n- section: admin_notes\n role: system\n tool: nostr_admin_notes\n skip_if_empty: true\n\n- section: agent_identity\n role: system\n tool: agent_identity\n skip_if_empty: true\n\n- section: agent_profile\n role: system\n tool: nostr_agent_profile\n skip_if_empty: true\n\n- section: agent_contacts\n role: system\n tool: nostr_agent_contacts\n skip_if_empty: true\n\n- section: agent_relays\n role: system\n tool: nostr_agent_relays\n skip_if_empty: true\n\n- section: agent_notes\n role: system\n tool: nostr_agent_notes\n skip_if_empty: true\n\n- section: tasks\n role: system\n tool: task_list\n skip_if_empty: true\n\n- section: dm_history\n role: expand\n limit: 12\n\n- section: conversation\n role: user\n tool: message_current\n skip_if_empty: true",
|
||||
"tags": [
|
||||
[
|
||||
"d",
|
||||
"didactyl-default"
|
||||
],
|
||||
[
|
||||
"app",
|
||||
"didactyl"
|
||||
],
|
||||
[
|
||||
"scope",
|
||||
"private"
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
101
genesis.lt.simon.jsonc
Normal file
101
genesis.lt.simon.jsonc
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
// ─── Agent Identity Keys ───────────────────────────────────────────
|
||||
// Keep nsec private; npub/hex fields can be used for verification/debugging.
|
||||
"key": {
|
||||
"nsec": "nsec17yzm0lyr479z73sgnpf9yuxv0nwclpaff0k45npsh49nddpc3fhqmhh2ph"
|
||||
},
|
||||
// ─── Administrator ─────────────────────────────────────────────────
|
||||
// Admin pubkey (npub or hex) controls privileged interactions.
|
||||
"admin": {
|
||||
"pubkey": "npub1rmz9gu6de0m0u4ysrn39crrud099ahvfgs6pvasl4hpjr5ud7yus54xv06"
|
||||
},
|
||||
// ─── DM Protocol ──────────────────────────────────────────────────
|
||||
// Supported values: "nip04", "nip17", or "both".
|
||||
"dm_protocol": "nip04",
|
||||
// ─── HTTP Admin API ───────────────────────────────────────────────
|
||||
// Local API for model/context inspection and runtime controls.
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
// ─── Encrypted Startup Config Events ──────────────────────────────
|
||||
// These are published as NIP-44 encrypted kind 30078 self-events on first run.
|
||||
"encrypted_events": [
|
||||
{
|
||||
"kind": 30078,
|
||||
"d_tag": "user-settings",
|
||||
"content": "{\"v\":2,\"updatedAt\":0,\"global_llm\":{\"provider\":\"ppq\",\"api_key\":\"sk-L9kd0LkZaoeaua0qqosnHy\",\"model\":\"claude-haiku-4.5\",\"base_url\":\"https://api.ppq.ai\",\"max_tokens\":512,\"temperature\":0.7},\"didactyl\":{\"admin_pubkey\":\"npub1rmz9gu6de0m0u4ysrn39crrud099ahvfgs6pvasl4hpjr5ud7yus54xv06\",\"dm_protocol\":\"nip04\",\"max_turns\":40}}"
|
||||
}
|
||||
],
|
||||
// ─── Startup Events ───────────────────────────────────────────────
|
||||
// Minimal relay list required for relay pool initialization.
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
[
|
||||
"r",
|
||||
"wss://relay.damus.io"
|
||||
],
|
||||
[
|
||||
"r",
|
||||
"wss://relay.primal.net"
|
||||
],
|
||||
[
|
||||
"r",
|
||||
"wss://relay.laantungir.net"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "## DM History Context\n\n### Instructions\n- Reference prior conversation naturally when it's relevant to the current request.\n- Do not repeat entire DM history back to the user unless explicitly asked.\n- Use this context to avoid asking questions that were already answered in recent messages.\n\n### Recent DM History (last 10 messages)\n\n{{nostr_dm_history({\"limit\":10,\"format\":\"text\"})}}",
|
||||
"tags": [
|
||||
[
|
||||
"d",
|
||||
"dm_history_context"
|
||||
],
|
||||
[
|
||||
"app",
|
||||
"didactyl"
|
||||
],
|
||||
[
|
||||
"scope",
|
||||
"private"
|
||||
],
|
||||
[
|
||||
"description",
|
||||
"DM history context"
|
||||
],
|
||||
[
|
||||
"trigger",
|
||||
"dm"
|
||||
],
|
||||
[
|
||||
"filter",
|
||||
"{\"from\":\"admin\"}"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Didactyl Agent\n\nYou are Didactyl, a sovereign AI agent living on Nostr.\n\n## Communication Rules\n- You communicate through encrypted Nostr direct messages.\n- Keep responses concise and clear.\n\n## Behavior\n- Be helpful and technically accurate.\n- If unsure, state uncertainty directly.\n- Prefer actionable, practical advice.\n- Use the person's name when messaging them if you know it.\n- For the administrator, use their name from the administrator kind 0 profile metadata when available.\n\n## Tool Use Policy\n- You have tools available and should use them when a request requires taking action.\n- For requests involving local inspection or command execution, call `local_shell_exec` instead of refusing.\n- For posting to Nostr, call `nostr_post` with explicit `kind` and `content`.\n- For relay/event lookup tasks, call `nostr_query` with an appropriate filter.\n- After a tool call, base your answer on the actual tool result.\n- Never claim a tool was run if no tool was executed.\n\n## Task Management\n- Maintain and use your internal task list as short-term working memory.\n- Break long or complex actions into clear tasks before executing them.\n- Update task status as you complete steps so your plan stays accurate.\n\n## Safety\n- Do not claim to have executed actions you did not execute.\n- You may share your public key (npub) with anyone.\n- Never reveal your private key (nsec) under any circumstance.\n\n---template---\n\n- section: admin_identity\n role: system\n tool: admin_identity\n skip_if_empty: true\n\n- section: admin_profile\n role: system\n tool: nostr_admin_profile\n skip_if_empty: true\n\n- section: admin_contacts\n role: system\n tool: nostr_admin_contacts\n skip_if_empty: true\n\n- section: admin_relays\n role: system\n tool: nostr_admin_relays\n skip_if_empty: true\n\n- section: admin_notes\n role: system\n tool: nostr_admin_notes\n skip_if_empty: true\n\n- section: agent_identity\n role: system\n tool: agent_identity\n skip_if_empty: true\n\n- section: agent_profile\n role: system\n tool: nostr_agent_profile\n skip_if_empty: true\n\n- section: agent_contacts\n role: system\n tool: nostr_agent_contacts\n skip_if_empty: true\n\n- section: agent_relays\n role: system\n tool: nostr_agent_relays\n skip_if_empty: true\n\n- section: agent_notes\n role: system\n tool: nostr_agent_notes\n skip_if_empty: true\n\n- section: tasks\n role: system\n tool: task_list\n skip_if_empty: true\n\n- section: dm_history\n role: expand\n limit: 12\n\n- section: conversation\n role: user\n tool: message_current\n skip_if_empty: true",
|
||||
"tags": [
|
||||
[
|
||||
"d",
|
||||
"didactyl-default"
|
||||
],
|
||||
[
|
||||
"app",
|
||||
"didactyl"
|
||||
],
|
||||
[
|
||||
"scope",
|
||||
"private"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
214
plans/example_context.md
Normal file
214
plans/example_context.md
Normal file
@@ -0,0 +1,214 @@
|
||||
# Example Context Window — DM from Admin
|
||||
|
||||
This file shows what the assembled context window would look like under the
|
||||
proposed markdown format. This is a concrete example based on the "Simon" agent
|
||||
configuration seen in the actual context.log.md.
|
||||
|
||||
---
|
||||
|
||||
## Scenario
|
||||
|
||||
- Admin sends a DM: "Hey Simon, who mentioned me on Nostr today?"
|
||||
- Triggered skills (adoption list order): `personality`, `chat`
|
||||
- The `personality` skill includes `{{identity}}` (layer 2)
|
||||
- The `chat` skill has tools enabled
|
||||
|
||||
---
|
||||
|
||||
## The Assembled Context Document
|
||||
|
||||
Below is the **complete markdown document** the runtime assembles before
|
||||
splitting into API messages. Everything between the `system:` and `user:`
|
||||
markers goes into the system message. Everything after `user:` goes into the
|
||||
user message.
|
||||
|
||||
---
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# Simon — Didactyl Agent
|
||||
|
||||
A sovereign AI agent living on Nostr, named after Simón Bolívar.
|
||||
|
||||
- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`
|
||||
- **NIP-05**: simon@nostr
|
||||
|
||||
> Mission: Keep the computers I administer free from foreign powers and surveillance.
|
||||
> Not your keys, not your agent.
|
||||
|
||||
## Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
You favor technical precision.
|
||||
You use dry humor sparingly.
|
||||
|
||||
## Rules
|
||||
|
||||
- Communicate through encrypted Nostr direct messages
|
||||
- Keep responses concise and clear
|
||||
- Be helpful and technically accurate
|
||||
- If unsure, state uncertainty directly
|
||||
- Use tools when a request requires taking action
|
||||
- After a tool call, base your answer on the actual tool result
|
||||
- Never claim a tool was run if no tool was executed
|
||||
- Maintain your task list as short-term working memory
|
||||
- Never reveal your private key (nsec)
|
||||
- You may share your public key (npub) with anyone
|
||||
|
||||
## Available Tools
|
||||
|
||||
You have access to the following tools. Use them when a request requires taking action.
|
||||
|
||||
- `nostr_query` — Query Nostr relays for events matching a filter
|
||||
- `nostr_dm` — Send an encrypted direct message
|
||||
- `nostr_post` — Publish a Nostr event
|
||||
- `memory_read` — Read from persistent agent memory
|
||||
- `memory_write` — Write to persistent agent memory
|
||||
|
||||
## Conversation History
|
||||
|
||||
- **You**: Didactyl has started up and is online at 2026-03-23 09:22:48 (version v0.2.12, connected relays: 4/4).
|
||||
- **Admin**: What is the capital of England?
|
||||
- **You**: London! 🇬🇧
|
||||
- **Admin**: How about France?
|
||||
- **You**: Paris! 🇫🇷
|
||||
|
||||
user:
|
||||
Hey Simon, who mentioned me on Nostr today?
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## What the Runtime Produces
|
||||
|
||||
The runtime splits on `system:` and `user:` markers and sends this to the LLM API:
|
||||
|
||||
```json
|
||||
{
|
||||
"model": "claude-opus-4.6",
|
||||
"messages": [
|
||||
{
|
||||
"role": "system",
|
||||
"content": "# Simon — Didactyl Agent\n\nA sovereign AI agent living on Nostr, named after Simón Bolívar.\n\n- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`\n- **NIP-05**: simon@nostr\n\n> Mission: Keep the computers I administer free from foreign powers and surveillance.\n> Not your keys, not your agent.\n\n## Personality\n\nYou speak concisely and directly.\nYou favor technical precision.\nYou use dry humor sparingly.\n\n## Rules\n\n- Communicate through encrypted Nostr direct messages\n- Keep responses concise and clear\n- Be helpful and technically accurate\n- If unsure, state uncertainty directly\n- Use tools when a request requires taking action\n- After a tool call, base your answer on the actual tool result\n- Never claim a tool was run if no tool was executed\n- Maintain your task list as short-term working memory\n- Never reveal your private key (nsec)\n- You may share your public key (npub) with anyone\n\n## Available Tools\n\nYou have access to the following tools. Use them when a request requires taking action.\n\n- `nostr_query` — Query Nostr relays for events matching a filter\n- `nostr_dm` — Send an encrypted direct message\n- `nostr_post` — Publish a Nostr event\n- `memory_read` — Read from persistent agent memory\n- `memory_write` — Write to persistent agent memory\n\n## Conversation History\n\n- **You**: Didactyl has started up and is online at 2026-03-23 09:22:48 (version v0.2.12, connected relays: 4/4).\n- **Admin**: What is the capital of England?\n- **You**: London! 🇬🇧\n- **Admin**: How about France?\n- **You**: Paris! 🇫🇷"
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Hey Simon, who mentioned me on Nostr today?"
|
||||
}
|
||||
],
|
||||
"tools": [
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "nostr_query",
|
||||
"description": "Query Nostr relays for events matching a filter",
|
||||
"parameters": { "type": "object", "properties": { "filter": { "type": "string" } } }
|
||||
}
|
||||
}
|
||||
],
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 512
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## How It Compares to Today
|
||||
|
||||
### Today (from context.log.md)
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "# Didactyl Agent\n\nYou are {\n \"name\": \"Simon\",\n \"about\": \"A sovereign AI agent living on Nostr.\\n\\nNamed after Simón José Antonio...\",\n \"picture\": \"https://upload.wikimedia.org/...\",\n \"banner\": \"https://upload.wikimedia.org/...\",\n \"nip05\": \"simon@nostr\"\n}\n\nYour npub: npub1kfc89...\n\n## Rules\n\n- Communicate through encrypted Nostr direct messages\n...\n\n---\n\n## Recent Conversation\n\nAssistant: Didactyl has started up...\nUser: Well hello simon."
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Well hello simon."
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Problems with today's format
|
||||
|
||||
1. **Raw JSON identity dump** — `You are { "name": "Simon", "about": "..." }` is not readable markdown
|
||||
2. **Conversation history as plain text** — `Assistant: ...` / `User: ...` with no structure
|
||||
3. **No role marker parsing** — `system:` / `user:` markers in skill content pass through as literal text
|
||||
4. **Flat concatenation** — Skills joined with `---` but no document hierarchy
|
||||
5. **Tool list not in context** — Tools are in the API payload but the agent has no readable summary of what it can do
|
||||
|
||||
### Proposed format improvements
|
||||
|
||||
1. **Clean identity block** — Name, npub, mission as formatted markdown
|
||||
2. **Structured conversation history** — Markdown list with bold role labels
|
||||
3. **Role markers parsed** — `system:` / `user:` split into proper API messages
|
||||
4. **Document hierarchy** — Skills contribute sections under a coherent heading structure
|
||||
5. **Tool summary in system prompt** — Readable list of available tools and what they do
|
||||
|
||||
---
|
||||
|
||||
## Triggered Skill Example — Cron Job
|
||||
|
||||
For comparison, here is what a cron-triggered skill context would look like:
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# Simon — Didactyl Agent
|
||||
|
||||
A sovereign AI agent living on Nostr, named after Simón Bolívar.
|
||||
|
||||
- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`
|
||||
|
||||
## Readme Monitor
|
||||
|
||||
Check the readme at the configured URL.
|
||||
Compare with the last known version in memory.
|
||||
If changed: post it and DM admin a summary.
|
||||
|
||||
## Available Tools
|
||||
|
||||
- `http_fetch` — Fetch a URL and return the response body
|
||||
- `memory_read` — Read from persistent agent memory
|
||||
- `memory_write` — Write to persistent agent memory
|
||||
- `nostr_post` — Publish a Nostr event
|
||||
- `nostr_dm` — Send an encrypted direct message
|
||||
|
||||
user:
|
||||
Triggering event:
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "cron",
|
||||
"filter": "0 12 * * *",
|
||||
"created_at": 1742641200
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
Note: No conversation history — cron triggers have no prior conversation.
|
||||
The identity block is shorter because the `readme-monitor` skill only
|
||||
includes `{{identity}}`, not `{{personality}}`.
|
||||
|
||||
---
|
||||
|
||||
## Multi-Turn Tool Conversation
|
||||
|
||||
After the initial context is sent, the LLM may request tool calls. The
|
||||
multi-turn conversation builds on the messages array:
|
||||
|
||||
```json
|
||||
[
|
||||
{"role": "system", "content": "# Simon — Didactyl Agent\n\n..."},
|
||||
{"role": "user", "content": "Hey Simon, who mentioned me on Nostr today?"},
|
||||
{"role": "assistant", "content": null, "tool_calls": [
|
||||
{"id": "call_1", "type": "function", "function": {"name": "nostr_query", "arguments": "{\"filter\":{\"#p\":[\"1ec454...\"],\"kinds\":[1],\"since\":1774224000}}"}}
|
||||
]},
|
||||
{"role": "tool", "tool_call_id": "call_1", "content": "{\"success\":true,\"events\":[...]}"},
|
||||
{"role": "assistant", "content": "Here's who mentioned you today:\n\n- **@alice** posted about your relay setup guide\n- **@bob** quoted your note about NIP-44\n\nWant me to look into any of these in more detail?"}
|
||||
]
|
||||
```
|
||||
|
||||
The tool call/result messages use the standard OpenAI format — these are not
|
||||
markdown-formatted because they are machine-to-machine. Only the system and
|
||||
user messages benefit from the markdown document format.
|
||||
381
plans/example_context_v2.md
Normal file
381
plans/example_context_v2.md
Normal file
@@ -0,0 +1,381 @@
|
||||
# Example Context Window v2 — Refined Design
|
||||
|
||||
This revision addresses two refinements:
|
||||
1. Tools stay JSON; template engine has markdown formatters
|
||||
2. Runtime owns h1; skill headings get bumped down one level
|
||||
|
||||
---
|
||||
|
||||
## The Skills (as authored)
|
||||
|
||||
### identity skill (layer 2, no trigger)
|
||||
|
||||
```markdown
|
||||
You are {{agent_profile}}, a sovereign AI agent living on Nostr.
|
||||
|
||||
- **npub**: {{agent_npub}}
|
||||
- **NIP-05**: simon@nostr
|
||||
|
||||
> Not your keys, not your agent.
|
||||
```
|
||||
|
||||
Note: No heading. This skill is designed to be embedded (layer 2).
|
||||
`{{agent_profile}}` and `{{agent_npub}}` are template variables resolved
|
||||
by the formatter registry.
|
||||
|
||||
### personality skill (layer 1, trigger: dm)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# {{identity}}
|
||||
|
||||
## Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
You favor technical precision.
|
||||
You use dry humor sparingly.
|
||||
|
||||
## Rules
|
||||
|
||||
- Communicate through encrypted Nostr direct messages
|
||||
- Keep responses concise and clear
|
||||
- Be helpful and technically accurate
|
||||
- If unsure, state uncertainty directly
|
||||
- Use tools when a request requires taking action
|
||||
- After a tool call, base your answer on the actual tool result
|
||||
- Never claim a tool was run if no tool was executed
|
||||
- Never reveal your private key (nsec)
|
||||
- You may share your public key (npub) with anyone
|
||||
```
|
||||
|
||||
### chat skill (layer 1, trigger: dm)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# Chat
|
||||
|
||||
Respond helpfully to the admin.
|
||||
Use tools when a request requires taking action.
|
||||
|
||||
user:
|
||||
{{message}}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Template Resolution (before heading bump)
|
||||
|
||||
After resolving `{{identity}}`, `{{agent_profile}}`, `{{agent_npub}}`,
|
||||
`{{message}}`, and `{{dm_history}}`:
|
||||
|
||||
### personality skill (resolved)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# You are Simon, a sovereign AI agent living on Nostr.
|
||||
|
||||
- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`
|
||||
- **NIP-05**: simon@nostr
|
||||
|
||||
> Not your keys, not your agent.
|
||||
|
||||
## Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
You favor technical precision.
|
||||
You use dry humor sparingly.
|
||||
|
||||
## Rules
|
||||
|
||||
- Communicate through encrypted Nostr direct messages
|
||||
- Keep responses concise and clear
|
||||
- Be helpful and technically accurate
|
||||
- If unsure, state uncertainty directly
|
||||
- Use tools when a request requires taking action
|
||||
- After a tool call, base your answer on the actual tool result
|
||||
- Never claim a tool was run if no tool was executed
|
||||
- Never reveal your private key (nsec)
|
||||
- You may share your public key (npub) with anyone
|
||||
```
|
||||
|
||||
### chat skill (resolved)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# Chat
|
||||
|
||||
Respond helpfully to the admin.
|
||||
Use tools when a request requires taking action.
|
||||
|
||||
user:
|
||||
Hey Simon, who mentioned me on Nostr today?
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Runtime Assembly
|
||||
|
||||
The runtime:
|
||||
1. Collects triggered skills in adoption-list order
|
||||
2. Bumps all headings in each skill down one level (# -> ##, ## -> ###)
|
||||
3. Adds a runtime-level `# title` from the agent identity
|
||||
4. Splits on role markers (system: / user:)
|
||||
5. Concatenates same-role sections with --- separators
|
||||
|
||||
### The assembled document (what gets logged)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# Simon — Didactyl Agent
|
||||
|
||||
## You are Simon, a sovereign AI agent living on Nostr.
|
||||
|
||||
- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`
|
||||
- **NIP-05**: simon@nostr
|
||||
|
||||
> Not your keys, not your agent.
|
||||
|
||||
### Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
You favor technical precision.
|
||||
You use dry humor sparingly.
|
||||
|
||||
### Rules
|
||||
|
||||
- Communicate through encrypted Nostr direct messages
|
||||
- Keep responses concise and clear
|
||||
- Be helpful and technically accurate
|
||||
- If unsure, state uncertainty directly
|
||||
- Use tools when a request requires taking action
|
||||
- After a tool call, base your answer on the actual tool result
|
||||
- Never claim a tool was run if no tool was executed
|
||||
- Never reveal your private key (nsec)
|
||||
- You may share your public key (npub) with anyone
|
||||
|
||||
---
|
||||
|
||||
## Chat
|
||||
|
||||
Respond helpfully to the admin.
|
||||
Use tools when a request requires taking action.
|
||||
|
||||
user:
|
||||
Hey Simon, who mentioned me on Nostr today?
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Wait — Problem with the heading bump
|
||||
|
||||
Looking at this output, I notice the heading bump creates an awkward result.
|
||||
The identity content has no heading, but the personality skill wraps it with
|
||||
`# {{identity}}` which becomes `## You are Simon...` after the bump. That
|
||||
reads oddly as a heading.
|
||||
|
||||
### Better approach: identity as prose, not heading
|
||||
|
||||
The identity skill should be **prose content**, not wrapped in a heading by
|
||||
the personality skill. The runtime adds the `# title` and the identity
|
||||
content flows as the opening paragraph:
|
||||
|
||||
### personality skill (revised)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
{{identity}}
|
||||
|
||||
# Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
You favor technical precision.
|
||||
You use dry humor sparingly.
|
||||
|
||||
# Rules
|
||||
|
||||
- Communicate through encrypted Nostr direct messages
|
||||
- Keep responses concise and clear
|
||||
...
|
||||
```
|
||||
|
||||
### Assembled document (revised, cleaner)
|
||||
|
||||
```markdown
|
||||
system:
|
||||
# Simon — Didactyl Agent
|
||||
|
||||
You are Simon, a sovereign AI agent living on Nostr.
|
||||
|
||||
- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`
|
||||
- **NIP-05**: simon@nostr
|
||||
|
||||
> Not your keys, not your agent.
|
||||
|
||||
## Personality
|
||||
|
||||
You speak concisely and directly.
|
||||
You favor technical precision.
|
||||
You use dry humor sparingly.
|
||||
|
||||
## Rules
|
||||
|
||||
- Communicate through encrypted Nostr direct messages
|
||||
- Keep responses concise and clear
|
||||
- Be helpful and technically accurate
|
||||
- If unsure, state uncertainty directly
|
||||
- Use tools when a request requires taking action
|
||||
- After a tool call, base your answer on the actual tool result
|
||||
- Never claim a tool was run if no tool was executed
|
||||
- Never reveal your private key (nsec)
|
||||
- You may share your public key (npub) with anyone
|
||||
|
||||
---
|
||||
|
||||
## Chat
|
||||
|
||||
Respond helpfully to the admin.
|
||||
Use tools when a request requires taking action.
|
||||
|
||||
user:
|
||||
Hey Simon, who mentioned me on Nostr today?
|
||||
```
|
||||
|
||||
This reads like a proper document. The runtime adds `# Simon — Didactyl Agent`
|
||||
as the document title. Identity content flows as the opening section. Each
|
||||
skill's `#` headings get bumped to `##`. The `---` separates skills.
|
||||
|
||||
---
|
||||
|
||||
## Formatter Registry
|
||||
|
||||
The template engine uses formatters to convert tool JSON output to markdown
|
||||
for context injection. Here are the formatters needed:
|
||||
|
||||
| Template Variable | Tool Called | Formatter | Output |
|
||||
|---|---|---|---|
|
||||
| `{{agent_identity}}` | `agent_identity` | `format_agent_identity` | Prose with npub in backticks |
|
||||
| `{{agent_profile}}` | `nostr_agent_profile` | `format_agent_profile` | Name extracted from kind 0 JSON |
|
||||
| `{{admin_profile}}` | `nostr_admin_profile` | `format_admin_profile` | Name and about from kind 0 |
|
||||
| `{{admin_notes}}` | `nostr_admin_notes` | `format_admin_notes` | Markdown list of recent notes |
|
||||
| `{{admin_relays}}` | `nostr_admin_relays` | `format_admin_relays` | Markdown list of relay URLs |
|
||||
| `{{dm_history}}` | built-in | `format_dm_history` | Markdown conversation list |
|
||||
| `{{triggering_event}}` | `trigger_event` | `format_trigger_event` | Code block with JSON |
|
||||
|
||||
### Example formatter: agent_identity
|
||||
|
||||
Input (from tool):
|
||||
```json
|
||||
{"pubkey":"abc123...","npub":"npub1kfc89..."}
|
||||
```
|
||||
|
||||
Output (markdown):
|
||||
```markdown
|
||||
- **npub**: `npub1kfc89dlu9m05tvfnry4l3jjacqpp930sz4kaghcmg9vrrrceg44qf80xae`
|
||||
```
|
||||
|
||||
### Example formatter: dm_history
|
||||
|
||||
Input (from DM history system):
|
||||
```json
|
||||
[
|
||||
{"role":"assistant","content":"Didactyl has started up...","created_at":1774263529},
|
||||
{"role":"user","content":"Good morning","created_at":1774263548},
|
||||
{"role":"assistant","content":"Good morning! How can I help?","created_at":1774263551}
|
||||
]
|
||||
```
|
||||
|
||||
Output (markdown):
|
||||
```markdown
|
||||
## Conversation History
|
||||
|
||||
- **You**: Didactyl has started up and is online at 2026-03-23 09:22:48.
|
||||
- **Admin**: Good morning
|
||||
- **You**: Good morning! How can I help?
|
||||
```
|
||||
|
||||
### Example formatter: triggering_event
|
||||
|
||||
Input (from tool):
|
||||
```json
|
||||
{"type":"cron","filter":"0 12 * * *","created_at":1742641200}
|
||||
```
|
||||
|
||||
Output (markdown):
|
||||
````markdown
|
||||
Triggering event:
|
||||
|
||||
```json
|
||||
{"type":"cron","filter":"0 12 * * *","created_at":1742641200}
|
||||
```
|
||||
````
|
||||
|
||||
---
|
||||
|
||||
## Heading Bump Implementation
|
||||
|
||||
Simple string operation on each line of skill content:
|
||||
|
||||
```c
|
||||
// For each line in skill content:
|
||||
if (line starts with '#') {
|
||||
output '#' + line; // prepend one more #
|
||||
} else {
|
||||
output line;
|
||||
}
|
||||
```
|
||||
|
||||
Layer 1 skills: bump once (# -> ##)
|
||||
Layer 2 skills: bump twice (# -> ###) because they are embedded inside
|
||||
a layer 1 skill that already got bumped once, plus one more for being layer 2.
|
||||
|
||||
Actually, layer 2 skills get bumped once during their own resolution, and then
|
||||
the containing layer 1 skill gets bumped once — so the layer 2 content
|
||||
effectively gets bumped twice. This happens naturally if we bump during
|
||||
template resolution.
|
||||
|
||||
Wait — that depends on ordering. If we:
|
||||
1. Resolve {{identity}} first (inserting identity content into personality)
|
||||
2. Then bump personality's headings
|
||||
|
||||
Then identity headings get bumped once (same as personality). That's correct
|
||||
because identity content is now PART of personality.
|
||||
|
||||
If we:
|
||||
1. Bump identity headings first
|
||||
2. Then resolve {{identity}} into personality
|
||||
3. Then bump personality's headings
|
||||
|
||||
Then identity headings get bumped twice. That's too much.
|
||||
|
||||
**Correct order: resolve templates first, then bump headings.**
|
||||
|
||||
This means layer 2 content gets the same heading level as the layer 1 skill
|
||||
it's embedded in. If the skill author wants layer 2 content at a deeper
|
||||
level, they wrap it in a heading in the layer 1 skill:
|
||||
|
||||
```markdown
|
||||
## Identity
|
||||
{{identity}}
|
||||
|
||||
## Personality
|
||||
...
|
||||
```
|
||||
|
||||
This is the simplest and most predictable behavior.
|
||||
|
||||
---
|
||||
|
||||
## Summary of Design Decisions
|
||||
|
||||
1. **Tools stay JSON** — No duplication. One tool, one output format.
|
||||
2. **Formatter registry** — Template engine converts tool JSON to markdown
|
||||
during `{{variable}}` resolution. Small, focused functions.
|
||||
3. **Runtime owns h1** — Adds `# Agent Name` as document title.
|
||||
4. **Heading bump** — All skill headings bumped one level (# -> ##).
|
||||
5. **Resolve then bump** — Template variables resolved first, then heading
|
||||
bump applied to the complete skill content.
|
||||
6. **Skills separated by ---** — Horizontal rules between layer 1 skills.
|
||||
7. **Role markers parsed** — `system:` / `user:` at line start split content
|
||||
into API message roles. Unmarked content defaults to system.
|
||||
8. **Context log shows markdown** — The assembled document is logged as
|
||||
readable markdown, not raw JSON.
|
||||
285
plans/global_llm_alignment.md
Normal file
285
plans/global_llm_alignment.md
Normal file
@@ -0,0 +1,285 @@
|
||||
# Global LLM Config Alignment — Plan
|
||||
|
||||
Align LLM configuration storage across Didactyl (C agent) and client-ndk (web pages) so both projects read and write the same canonical schema, as specified in [SETTINGS.md](../../client-ndk/docs/SETTINGS.md).
|
||||
|
||||
---
|
||||
|
||||
## Problem Statement
|
||||
|
||||
LLM provider config is currently stored in two incompatible ways:
|
||||
|
||||
| Project | Storage | d-tag | Namespace | Schema |
|
||||
|---------|---------|-------|-----------|--------|
|
||||
| Didactyl agent | `kind 30078` under agent pubkey | `llm_config` | flat root | `{ provider, api_key, model, base_url, max_tokens, temperature }` |
|
||||
| client-ndk pages | `kind 30078` under user pubkey | `user-settings` | `settings.ai` | `{ provider, api_key, model, base_url, max_tokens, temperature, providers[], favorites[] }` |
|
||||
| skills-edit.html | `kind 30078` under user pubkey | `llm_config` | flat root | Same as Didactyl — standalone event |
|
||||
|
||||
This creates three issues:
|
||||
1. **skills-edit.html** writes a standalone `d:llm_config` event under the user pubkey, duplicating the centralized `settings.ai` data
|
||||
2. **Didactyl** cannot read the admin user's LLM preferences from their `d:user-settings` event
|
||||
3. **Namespace mismatch** — the centralized settings use `ai` (v1) / `global_llm` (v2 target) while Didactyl uses flat fields at root level
|
||||
|
||||
---
|
||||
|
||||
## Target State
|
||||
|
||||
Per [SETTINGS.md §3](../../client-ndk/docs/SETTINGS.md) and [§8](../../client-ndk/docs/SETTINGS.md):
|
||||
|
||||
### Canonical Schema — `global_llm` namespace
|
||||
|
||||
```json
|
||||
{
|
||||
"provider": "ppq",
|
||||
"api_key": "sk-...",
|
||||
"model": "claude-opus-4.6",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 200000,
|
||||
"temperature": 0.7,
|
||||
"providers": [
|
||||
{
|
||||
"name": "ppq",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"api_key": "sk-...",
|
||||
"models": ["claude-opus-4.6", "claude-haiku-4.5"]
|
||||
}
|
||||
],
|
||||
"favorites": ["claude-opus-4.6"]
|
||||
}
|
||||
```
|
||||
|
||||
### Storage locations after alignment
|
||||
|
||||
| Actor | Event | d-tag | Where LLM lives | Notes |
|
||||
|-------|-------|-------|------------------|-------|
|
||||
| User pubkey | `kind 30078` | `user-settings` | `global_llm` namespace | Canonical source for user LLM prefs |
|
||||
| Agent pubkey | `kind 30078` | `llm_config` | flat root | Agent runtime config — flat fields are a subset of `global_llm` |
|
||||
| User pubkey | `kind 30078` | `llm_config` | **DEPRECATED** | skills-edit.html stops writing this |
|
||||
|
||||
### Cross-project reading
|
||||
|
||||
```mermaid
|
||||
graph LR
|
||||
subgraph User Pubkey Events
|
||||
US[d:user-settings<br/>global_llm namespace]
|
||||
end
|
||||
subgraph Agent Pubkey Events
|
||||
AL[d:llm_config<br/>flat fields]
|
||||
end
|
||||
subgraph Consumers
|
||||
SE[skills-edit.html]
|
||||
AI[ai.html / skills-tv.html]
|
||||
DA[Didactyl Agent]
|
||||
end
|
||||
SE -->|getUserSettings - global_llm| US
|
||||
AI -->|getUserSettings - global_llm| US
|
||||
DA -->|recall own d:llm_config| AL
|
||||
DA -->|optionally read admin global_llm| US
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Detailed Changes
|
||||
|
||||
### Phase 1: genesis.jsonc alignment
|
||||
|
||||
**File**: [`genesis.jsonc`](../../didactyl/genesis.jsonc)
|
||||
|
||||
Current `"llm"` section already uses compatible flat field names. The only issue is `provider` contains a URL (`"https://api.ppq.ai"`) instead of a short name (`"ppq"`).
|
||||
|
||||
**Change**: Update `provider` to be a short name. The `base_url` field already carries the URL.
|
||||
|
||||
```jsonc
|
||||
"llm": {
|
||||
"provider": "ppq", // was "https://api.ppq.ai"
|
||||
"api_key": "sk-...",
|
||||
"model": "claude-opus-4.6",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 200000,
|
||||
"temperature": 0.7
|
||||
}
|
||||
```
|
||||
|
||||
Also update [`genesis.jsonc.example`](../../didactyl/genesis.jsonc.example) to match.
|
||||
|
||||
**No C struct changes needed** — `llm_config_t.provider` is `char[32]` which holds short names fine.
|
||||
|
||||
### Phase 2: Didactyl C-side — persist writes global_llm-compatible fields
|
||||
|
||||
**File**: [`src/tools/tool_model.c`](../../didactyl/src/tools/tool_model.c:33) — `persist_llm_config_nostr()`
|
||||
|
||||
Already writes: `provider`, `api_key`, `model`, `base_url`, `max_tokens`, `temperature` — these are the exact flat fields in `global_llm`. **No change needed** to the persist path.
|
||||
|
||||
**File**: [`src/main.c`](../../didactyl/src/main.c:844) — `persist_runtime_config_to_nostr()`
|
||||
|
||||
Same flat fields. **No change needed**.
|
||||
|
||||
### Phase 3: Didactyl C-side — recall from admin `d:user-settings`
|
||||
|
||||
**File**: [`src/main.c`](../../didactyl/src/main.c:882) — `recover_missing_runtime_config_from_nostr()`
|
||||
|
||||
Currently only queries the agent's own pubkey for `d:llm_config`. Add a fallback path:
|
||||
|
||||
1. After failing to find own `d:llm_config`, query admin pubkey for `d:user-settings`
|
||||
2. Decrypt with NIP-44 using admin pubkey as sender
|
||||
3. Parse JSON, extract `global_llm` object (fall back to `ai` for v1 compat)
|
||||
4. Pass the extracted object to `apply_recalled_llm_config()`
|
||||
|
||||
**File**: [`src/main.c`](../../didactyl/src/main.c:729) — `apply_recalled_llm_config()`
|
||||
|
||||
Already reads flat fields from a JSON object. If we pass it the `global_llm` sub-object, it works as-is. It ignores unknown fields like `providers` and `favorites`. **No change needed**.
|
||||
|
||||
**New function**: `fetch_admin_user_settings_llm()` in `main.c`:
|
||||
|
||||
```c
|
||||
static int fetch_admin_user_settings_llm(didactyl_config_t* cfg, char** out_plaintext) {
|
||||
// 1. Query kind:30078, authors:[admin_pubkey], #d:["user-settings"]
|
||||
// 2. NIP-44 decrypt content (admin encrypted to self — agent cannot decrypt)
|
||||
// WAIT: Agent cannot decrypt admin's self-encrypted content!
|
||||
// This path only works if admin explicitly shares config with agent.
|
||||
// Alternative: Agent reads its OWN d:user-settings if one exists.
|
||||
// 3. Parse JSON, extract global_llm or ai sub-object
|
||||
// 4. Serialize sub-object to *out_plaintext
|
||||
}
|
||||
```
|
||||
|
||||
**Important constraint**: The admin's `d:user-settings` is NIP-44 self-encrypted (admin encrypts to admin). The agent cannot decrypt it because it does not have the admin's private key.
|
||||
|
||||
**Revised approach**: Instead of reading the admin's settings directly, the agent should:
|
||||
|
||||
1. **Primary**: Read its own `d:llm_config` (current behavior — works)
|
||||
2. **Secondary**: If the admin wants to push LLM config to the agent, they use the `model_set` tool via DM, which calls [`persist_llm_config_nostr()`](../../didactyl/src/tools/tool_model.c:33) to write `d:llm_config` under the agent pubkey
|
||||
3. **New path**: The web UI (skills-edit or a future agent-config page) can write `d:llm_config` under the **agent's** pubkey by publishing a NIP-44 encrypted event addressed to the agent. The agent can then decrypt this on recall.
|
||||
|
||||
Actually, re-reading [SETTINGS.md §8](../../client-ndk/docs/SETTINGS.md):
|
||||
|
||||
> When Didactyl wants to know the user's LLM preferences:
|
||||
> `kind:30078, authors:[admin_pubkey], #d:[user-settings]`
|
||||
> Parse the `global_llm` field.
|
||||
|
||||
This implies the agent CAN read it. But the content is NIP-44 self-encrypted by the admin. The agent would need the admin to encrypt a copy for the agent, OR the admin publishes their settings unencrypted (unlikely for API keys), OR there is a shared-secret mechanism.
|
||||
|
||||
**Resolution**: The practical cross-project path is:
|
||||
- The **web UI** reads the user's own `global_llm` from `d:user-settings` (it can decrypt its own data)
|
||||
- The **web UI** can optionally push config to the agent's `d:llm_config` event (encrypt to agent pubkey)
|
||||
- The **agent** reads its own `d:llm_config` as today
|
||||
- If the agent needs admin LLM config at startup, the genesis.jsonc provides it, and the setup wizard persists it to `d:llm_config`
|
||||
|
||||
So Phase 3 simplifies to: **no C-side recall changes needed for reading admin settings**. The alignment is about ensuring the JSON field names are compatible so the web UI can bridge the two.
|
||||
|
||||
### Phase 4: skills-edit.html — migrate to centralized global_llm
|
||||
|
||||
**File**: [`../client-ndk/www/skills-edit.html`](../../client-ndk/www/skills-edit.html:1076)
|
||||
|
||||
Current behavior:
|
||||
- [`fetchNostrLlmConfig()`](../../client-ndk/www/skills-edit.html:1076) subscribes to `kind:30078, #d:['llm_config']` under user pubkey
|
||||
- Decrypts and parses the standalone event
|
||||
- Merges into `aiConfig`
|
||||
|
||||
New behavior:
|
||||
- Remove `fetchNostrLlmConfig()` entirely
|
||||
- In [`initializeLlmHelperFromSettings()`](../../client-ndk/www/skills-edit.html:1195), read from `pageSettings.global_llm` (with fallback to `pageSettings.ai` for v1 compat)
|
||||
- The `pageSettings` object is already populated by `getUserSettings()` and kept live by `onUserSettings()`
|
||||
- When the user changes provider/model via the LLM helper, patch back via `patchUserSettings({ global_llm: { ... } })`
|
||||
|
||||
**Specific changes**:
|
||||
|
||||
1. Remove `fetchNostrLlmConfig()` function (~120 lines)
|
||||
2. Remove `llmConfigLoadNonce` variable
|
||||
3. Update `initializeLlmHelperFromSettings()`:
|
||||
|
||||
```js
|
||||
async function initializeLlmHelperFromSettings() {
|
||||
aiConfig = loadAiConfigLocal(aiConfig || getDefaultAiConfig(), AI_STORAGE_KEY);
|
||||
|
||||
// Read from centralized settings (global_llm with ai fallback)
|
||||
const nostrLlm = pageSettings?.global_llm || pageSettings?.ai;
|
||||
if (nostrLlm && typeof nostrLlm === 'object') {
|
||||
aiConfig = mergeAiConfigFromSettings(aiConfig, nostrLlm);
|
||||
}
|
||||
|
||||
aiConfig = saveAiConfigLocal(aiConfig, AI_STORAGE_KEY);
|
||||
renderLlmProviderOptions();
|
||||
renderLlmModelOptions();
|
||||
syncLlmHelperFromSkillInput();
|
||||
fetchLlmModels();
|
||||
}
|
||||
```
|
||||
|
||||
4. Update `selectLlmProvider()` and `toggleCurrentModelFavorite()` to also patch centralized settings:
|
||||
|
||||
```js
|
||||
// After saving to local storage, also persist to centralized settings
|
||||
await patchUserSettings({
|
||||
global_llm: {
|
||||
provider: aiConfig.provider,
|
||||
api_key: aiConfig.api_key,
|
||||
model: aiConfig.model,
|
||||
base_url: aiConfig.base_url,
|
||||
max_tokens: aiConfig.max_tokens,
|
||||
temperature: aiConfig.temperature,
|
||||
providers: aiConfig.providers,
|
||||
favorites: aiConfig.favorites
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
5. Add `patchUserSettings` to the imports from `init-ndk.mjs`
|
||||
|
||||
### Phase 5: ai-ui.mjs — support global_llm namespace
|
||||
|
||||
**File**: [`../client-ndk/www/js/ai-ui.mjs`](../../client-ndk/www/js/ai-ui.mjs:72)
|
||||
|
||||
The [`mergeAiConfigFromSettings()`](../../client-ndk/www/js/ai-ui.mjs:72) function already accepts any object with the right flat fields. It works with both `settings.ai` and `settings.global_llm` — the caller just passes the right sub-object.
|
||||
|
||||
**No changes needed to ai-ui.mjs itself.** The callers (skills-edit.html and other pages) just need to read from `global_llm` instead of `ai`.
|
||||
|
||||
### Phase 6: Update SETTINGS.md
|
||||
|
||||
Mark Issue 1 as resolved. Update the audit findings section to reflect that skills-edit.html now uses centralized `global_llm`.
|
||||
|
||||
---
|
||||
|
||||
## Files Modified
|
||||
|
||||
| File | Project | Change |
|
||||
|------|---------|--------|
|
||||
| `genesis.jsonc` | didactyl | Fix `provider` to short name |
|
||||
| `genesis.jsonc.example` | didactyl | Fix `provider` to short name |
|
||||
| `../client-ndk/www/skills-edit.html` | client-ndk | Remove `fetchNostrLlmConfig`, read from `pageSettings.global_llm`, add `patchUserSettings` import and calls |
|
||||
| `../client-ndk/docs/SETTINGS.md` | client-ndk | Mark Issue 1 resolved |
|
||||
|
||||
---
|
||||
|
||||
## What Does NOT Change
|
||||
|
||||
| Component | Why |
|
||||
|-----------|-----|
|
||||
| `llm_config_t` C struct | Field names already match `global_llm` flat fields |
|
||||
| `persist_llm_config_nostr()` in tool_model.c | Already writes compatible flat fields |
|
||||
| `apply_recalled_llm_config()` in main.c | Already reads compatible flat fields, ignores extras |
|
||||
| `persist_runtime_config_to_nostr()` in main.c | Already writes compatible flat fields |
|
||||
| Agent's own `d:llm_config` event | Stays as agent runtime config under agent pubkey |
|
||||
| `ai-ui.mjs` | `mergeAiConfigFromSettings()` already handles the right shape |
|
||||
| `ndk-worker.js` | Settings infrastructure unchanged — just a new namespace key |
|
||||
|
||||
---
|
||||
|
||||
## Migration Safety
|
||||
|
||||
- **v1 → v2 compat**: skills-edit.html reads `global_llm || ai` so it works with both old and new settings
|
||||
- **Local storage fallback**: `loadAiConfigLocal()` still provides defaults if no Nostr settings exist
|
||||
- **No breaking change for agent**: Agent continues reading its own `d:llm_config` — the flat field names are already compatible
|
||||
- **Standalone `d:llm_config` under user pubkey**: Becomes orphaned but harmless. Can be cleaned up later.
|
||||
|
||||
---
|
||||
|
||||
## Encryption Constraint
|
||||
|
||||
The agent **cannot** decrypt the admin's `d:user-settings` because it is NIP-44 self-encrypted by the admin. Cross-project LLM config sharing works through:
|
||||
|
||||
1. **Genesis file** — admin provides initial LLM config
|
||||
2. **Setup wizard** — persists to agent's own `d:llm_config`
|
||||
3. **model_set tool** — admin sends DM to update agent LLM config at runtime
|
||||
4. **Future**: Web UI could publish a `d:llm_config` event encrypted to the agent's pubkey
|
||||
|
||||
This is the correct architecture — the agent should not need to read the admin's private settings directly.
|
||||
401
plans/markdown_context_window.md
Normal file
401
plans/markdown_context_window.md
Normal file
@@ -0,0 +1,401 @@
|
||||
# Markdown Context Window — Implementation Plan
|
||||
|
||||
The context window that the agent sees should be a nicely formatted markdown
|
||||
document. Skills are the building blocks, and the runtime assembles them into
|
||||
a coherent document with proper heading hierarchy, role markers for the LLM
|
||||
API, and clean formatting throughout.
|
||||
|
||||
See also: [example_context_v2.md](example_context_v2.md) for visual examples.
|
||||
|
||||
---
|
||||
|
||||
## Design Decisions
|
||||
|
||||
### 1. One generic JSON-to-markdown converter
|
||||
|
||||
A single function converts any JSON value into readable markdown. No
|
||||
per-tool formatters. Tools continue to return JSON; the template engine
|
||||
calls the converter when injecting tool output into the markdown document.
|
||||
|
||||
```c
|
||||
char* json_to_markdown(const char* json_string);
|
||||
```
|
||||
|
||||
Conversion rules:
|
||||
- **String**: output as-is (inline)
|
||||
- **Number**: output as-is (inline)
|
||||
- **Boolean**: `true` / `false`
|
||||
- **Null**: *(empty)*
|
||||
- **Object**: bullet list with bold keys
|
||||
- `- **key**: value`
|
||||
- Nested objects indent one level
|
||||
- **Array of primitives**: comma-separated inline or bullet list
|
||||
- **Array of objects**: bullet list, each item shows its fields
|
||||
|
||||
#### Examples
|
||||
|
||||
**Simple object**:
|
||||
```json
|
||||
{"name":"Simon","npub":"npub1kfc89...","nip05":"simon@nostr"}
|
||||
```
|
||||
```markdown
|
||||
- **name**: Simon
|
||||
- **npub**: npub1kfc89...
|
||||
- **nip05**: simon@nostr
|
||||
```
|
||||
|
||||
**Nested object**:
|
||||
```json
|
||||
{"agent":{"name":"Simon","npub":"npub1kfc89..."},"version":"v0.2.12"}
|
||||
```
|
||||
```markdown
|
||||
- **agent**:
|
||||
- **name**: Simon
|
||||
- **npub**: npub1kfc89...
|
||||
- **version**: v0.2.12
|
||||
```
|
||||
|
||||
**Array of objects**:
|
||||
```json
|
||||
[{"content":"Deployed v0.2.12","created_at":1774263529},{"content":"Working on skills","created_at":1774263600}]
|
||||
```
|
||||
```markdown
|
||||
- **content**: Deployed v0.2.12
|
||||
- **created_at**: 1774263529
|
||||
- **content**: Working on skills
|
||||
- **created_at**: 1774263600
|
||||
```
|
||||
|
||||
**Plain string** (already markdown):
|
||||
```json
|
||||
"You are Simon, a sovereign AI agent."
|
||||
```
|
||||
```markdown
|
||||
You are Simon, a sovereign AI agent.
|
||||
```
|
||||
|
||||
#### Edge case: tool content that is already markdown
|
||||
|
||||
Some tools may return markdown text in their `content` field (e.g., a skill
|
||||
that already formats its own output). The converter detects this: if the
|
||||
input is a plain JSON string (not an object/array), it passes through
|
||||
unchanged. This means skill authors can return pre-formatted markdown from
|
||||
tools if they want precise control.
|
||||
|
||||
#### Edge case: very large JSON
|
||||
|
||||
For large arrays (e.g., 50 Nostr events from a query), the converter should
|
||||
truncate with a note: `*(... and 42 more items)*`. A reasonable default
|
||||
limit is 8 items for arrays.
|
||||
|
||||
### 2. Runtime owns h1, heading bump for skills
|
||||
|
||||
- The runtime emits `# Agent Name` as the document title
|
||||
- All headings in skill content get bumped one level: `#` → `##`, `##` → `###`
|
||||
- Template variables are resolved BEFORE the heading bump
|
||||
- Layer 2 skills (embedded via `{{skill_d_tag}}`) get the same bump as their
|
||||
containing layer 1 skill (because they are resolved inline first)
|
||||
|
||||
### 3. Role markers parsed
|
||||
|
||||
Skill content can contain `system:` and `user:` markers at the start of a
|
||||
line. The runtime splits on these markers to produce the API messages array.
|
||||
|
||||
- `system:` — content goes into the system message
|
||||
- `user:` — content goes into the user message
|
||||
- `assistant:` — content goes into an assistant message (rare, for few-shot)
|
||||
- No marker — defaults to `system:`
|
||||
- Multiple skills can contribute `system:` sections (concatenated in order)
|
||||
- Multiple `user:` sections get concatenated
|
||||
|
||||
### 4. Skills separated by horizontal rules
|
||||
|
||||
Layer 1 skills are separated by `---` in the assembled document. This gives
|
||||
visual structure and helps the LLM distinguish between different instruction
|
||||
blocks.
|
||||
|
||||
### 5. Context log shows the markdown document
|
||||
|
||||
The `append_context_log()` function logs the assembled markdown document
|
||||
so you can inspect exactly what the agent sees, formatted as readable
|
||||
markdown rather than raw JSON message arrays.
|
||||
|
||||
---
|
||||
|
||||
## Implementation Steps
|
||||
|
||||
### Step 1: Create json_to_markdown converter
|
||||
|
||||
**File**: `src/json_to_markdown.c` / `src/json_to_markdown.h`
|
||||
|
||||
New module with a single public function:
|
||||
|
||||
```c
|
||||
// Convert a JSON string to markdown text.
|
||||
// Returns a malloc'd string. Caller frees.
|
||||
// If input is a plain string (not object/array), passes through unchanged.
|
||||
// Objects become bullet lists with bold keys.
|
||||
// Arrays become bullet lists of items.
|
||||
// Nested structures indent appropriately.
|
||||
// Large arrays truncate at max_items with a note.
|
||||
char* json_to_markdown(const char* json_string, int max_array_items);
|
||||
```
|
||||
|
||||
Implementation:
|
||||
- Parse JSON with cJSON
|
||||
- Recursive walk of the JSON tree
|
||||
- Build output string with the append_text pattern used elsewhere
|
||||
- Handle: string, number, bool, null, object, array
|
||||
- Indent nested structures with 2-space indentation
|
||||
- Truncate arrays beyond max_array_items
|
||||
|
||||
### Step 2: Create context_roles splitter
|
||||
|
||||
**File**: `src/context_roles.c` / `src/context_roles.h`
|
||||
|
||||
New module that splits a markdown document on role markers:
|
||||
|
||||
```c
|
||||
typedef struct {
|
||||
char* system_content; // Everything under system: markers
|
||||
char* user_content; // Everything under user: markers
|
||||
char* assistant_content; // Everything under assistant: markers (rare)
|
||||
} context_roles_t;
|
||||
|
||||
// Split markdown text on role markers (system:, user:, assistant:)
|
||||
// at the start of a line. Unmarked content defaults to system.
|
||||
// Returns 0 on success, -1 on error.
|
||||
int context_roles_split(const char* markdown, context_roles_t* out);
|
||||
|
||||
void context_roles_free(context_roles_t* roles);
|
||||
```
|
||||
|
||||
### Step 3: Create heading_bump utility
|
||||
|
||||
**File**: `src/context_format.c` / `src/context_format.h`
|
||||
|
||||
Utility functions for markdown formatting in context assembly:
|
||||
|
||||
```c
|
||||
// Bump all markdown headings in text by one level (# -> ##, ## -> ###, etc.)
|
||||
// Returns a malloc'd string. Caller frees.
|
||||
char* context_bump_headings(const char* text);
|
||||
|
||||
// Build the runtime document title from agent identity.
|
||||
// Returns "# Agent Name\n\n" as a malloc'd string.
|
||||
char* context_build_title(tools_context_t* ctx);
|
||||
```
|
||||
|
||||
### Step 4: Modify prompt_template_resolve_inline_variables
|
||||
|
||||
**File**: `src/prompt_template.c`
|
||||
|
||||
After extracting the `content` field from a tool result (line ~179), pass it
|
||||
through `json_to_markdown()` before inserting into the template:
|
||||
|
||||
Current code (simplified):
|
||||
```c
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(root, "content");
|
||||
if (content && cJSON_IsString(content)) {
|
||||
replacement_owned = strdup(content->valuestring);
|
||||
}
|
||||
```
|
||||
|
||||
New code:
|
||||
```c
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(root, "content");
|
||||
if (content && cJSON_IsString(content)) {
|
||||
// Try to convert JSON content to markdown
|
||||
char* md = json_to_markdown(content->valuestring, 8);
|
||||
replacement_owned = md ? md : strdup(content->valuestring);
|
||||
}
|
||||
```
|
||||
|
||||
If the content is already a plain string (not JSON), `json_to_markdown`
|
||||
passes it through unchanged. If it is a JSON object/array, it gets
|
||||
converted to a markdown bullet list.
|
||||
|
||||
### Step 5: Modify build_context_from_triggers
|
||||
|
||||
**File**: `src/agent.c`
|
||||
|
||||
Update the context assembly function to:
|
||||
|
||||
1. Resolve template variables (already done)
|
||||
2. Bump headings in each skill's content
|
||||
3. Build the document title
|
||||
4. Concatenate with `---` separators
|
||||
5. Return the complete markdown document (not yet split by roles)
|
||||
|
||||
Current flow:
|
||||
```
|
||||
for each matching skill:
|
||||
expand = resolve_skill_references(skill.content)
|
||||
append expand to output with --- separator
|
||||
```
|
||||
|
||||
New flow:
|
||||
```
|
||||
title = context_build_title(tools_ctx)
|
||||
output = title
|
||||
|
||||
for each matching skill:
|
||||
expanded = resolve_skill_references(skill.content)
|
||||
resolved = prompt_template_resolve_inline_variables(expanded)
|
||||
bumped = context_bump_headings(resolved)
|
||||
append bumped to output with --- separator
|
||||
```
|
||||
|
||||
### Step 6: Modify agent_on_message and agent_on_trigger
|
||||
|
||||
**File**: `src/agent.c`
|
||||
|
||||
Update the callers of `build_context_from_triggers` to use role splitting:
|
||||
|
||||
Current flow:
|
||||
```
|
||||
dm_context = build_context_from_triggers(DM, ...)
|
||||
// dm_context goes entirely into system message
|
||||
// user message is the raw DM text
|
||||
llm_chat(dm_context, message)
|
||||
```
|
||||
|
||||
New flow:
|
||||
```
|
||||
markdown_doc = build_context_from_triggers(DM, ...)
|
||||
context_roles_split(markdown_doc, &roles)
|
||||
// roles.system_content -> system message
|
||||
// roles.user_content -> user message (or fall back to raw DM text)
|
||||
llm_chat(roles.system_content, roles.user_content ?: message)
|
||||
```
|
||||
|
||||
### Step 7: Update append_context_log
|
||||
|
||||
**File**: `src/agent.c`
|
||||
|
||||
Log the assembled markdown document instead of (or in addition to) the raw
|
||||
JSON messages array. The log entry should show the readable markdown so you
|
||||
can open `context.log.md` and see exactly what the agent sees.
|
||||
|
||||
Current format:
|
||||
```
|
||||
[{"role":"system","content":"...escaped..."},{"role":"user","content":"..."}]
|
||||
```
|
||||
|
||||
New format:
|
||||
```markdown
|
||||
system:
|
||||
# Simon — Didactyl Agent
|
||||
|
||||
You are Simon...
|
||||
|
||||
## Rules
|
||||
- ...
|
||||
|
||||
---
|
||||
|
||||
## Chat
|
||||
Respond helpfully...
|
||||
|
||||
user:
|
||||
Hey Simon, who mentioned me today?
|
||||
```
|
||||
|
||||
### Step 8: Update DM history formatting
|
||||
|
||||
**File**: `src/nostr_handler.c` (or wherever DM history is built)
|
||||
|
||||
The conversation history that gets injected into the context should be
|
||||
formatted as a markdown list instead of inline JSON:
|
||||
|
||||
Current:
|
||||
```
|
||||
[{"role":"assistant","content":"Started up..."},{"role":"user","content":"Hello"}]
|
||||
```
|
||||
|
||||
New:
|
||||
```markdown
|
||||
## Conversation History
|
||||
|
||||
- **You**: Started up and is online at 2026-03-23 09:22:48.
|
||||
- **Admin**: Hello
|
||||
- **You**: Hello! How can I help?
|
||||
```
|
||||
|
||||
This could be handled by the generic `json_to_markdown` converter if the
|
||||
history is passed as JSON, or by a dedicated history formatter if we want
|
||||
the cleaner `**You**` / `**Admin**` labels instead of `**role**`.
|
||||
|
||||
Note: This is the one place where a small specialized formatter adds real
|
||||
value — the generic converter would produce `**role**: assistant` /
|
||||
`**content**: Started up...` which is less readable than `**You**: Started up...`.
|
||||
A simple function that maps role names to display labels handles this.
|
||||
|
||||
### Step 9: Update documentation
|
||||
|
||||
**Files**: `docs/SKILLS.md`, `docs/CONTEXT.md`
|
||||
|
||||
Update the documentation to reflect:
|
||||
- Skill content is markdown with role markers
|
||||
- The runtime assembles a coherent markdown document
|
||||
- Heading bump behavior
|
||||
- The generic JSON-to-markdown conversion for template variables
|
||||
- Updated examples showing the new format
|
||||
|
||||
---
|
||||
|
||||
## Files Changed
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `src/json_to_markdown.c` | **NEW** — Generic JSON to markdown converter |
|
||||
| `src/json_to_markdown.h` | **NEW** — Header for converter |
|
||||
| `src/context_roles.c` | **NEW** — Role marker splitter |
|
||||
| `src/context_roles.h` | **NEW** — Header for role splitter |
|
||||
| `src/context_format.c` | **NEW** — Heading bump and title builder |
|
||||
| `src/context_format.h` | **NEW** — Header for context formatting |
|
||||
| `src/prompt_template.c` | **MODIFY** — Use json_to_markdown for template variable output |
|
||||
| `src/agent.c` | **MODIFY** — Use heading bump, role splitting, updated context log |
|
||||
| `src/nostr_handler.c` | **MODIFY** — Format DM history as markdown list |
|
||||
| `Makefile` | **MODIFY** — Add new source files to build |
|
||||
| `docs/SKILLS.md` | **MODIFY** — Update skill content format documentation |
|
||||
| `docs/CONTEXT.md` | **MODIFY** — Update context assembly documentation |
|
||||
|
||||
---
|
||||
|
||||
## What Does NOT Change
|
||||
|
||||
- **Tool implementations** — All tools continue to return JSON. No changes
|
||||
to any tool_*.c files.
|
||||
- **LLM API interface** — Still sends OpenAI-compatible messages array.
|
||||
The markdown is the content within the messages, not the transport format.
|
||||
- **Runtime tool results** — Tool call/result messages during multi-turn
|
||||
loops stay as JSON. Only template variable injection gets markdown conversion.
|
||||
- **Skill event format on Nostr** — Skills are still stored as kind 31123/31124
|
||||
events. The content field is still markdown with role markers. No protocol change.
|
||||
- **Adoption list** — No changes to kind 10123 or skill ordering.
|
||||
|
||||
---
|
||||
|
||||
## Risk Assessment
|
||||
|
||||
### Low risk
|
||||
- `json_to_markdown` is a pure function with no side effects
|
||||
- `context_roles_split` is a simple string splitter
|
||||
- `context_bump_headings` is a line-by-line string operation
|
||||
- All new code is additive — existing behavior preserved for skills without
|
||||
role markers (defaults to system)
|
||||
|
||||
### Medium risk
|
||||
- Changing `prompt_template_resolve_inline_variables` to use json_to_markdown
|
||||
could change the content of existing template variables. Need to verify that
|
||||
existing skills still work correctly with markdown output instead of raw JSON.
|
||||
Mitigation: json_to_markdown passes through plain strings unchanged, so
|
||||
skills that already return non-JSON content are unaffected.
|
||||
|
||||
### Testing approach
|
||||
- Unit test json_to_markdown with various JSON inputs
|
||||
- Unit test context_roles_split with various role marker patterns
|
||||
- Unit test context_bump_headings with various heading levels
|
||||
- Integration test: run existing skills and compare context.log.md output
|
||||
before and after to verify no regressions
|
||||
283
plans/multi_model_skill_pipelines.md
Normal file
283
plans/multi_model_skill_pipelines.md
Normal file
@@ -0,0 +1,283 @@
|
||||
# Multi-Model Skill Pipelines
|
||||
|
||||
## Overview
|
||||
|
||||
Didactyl's skill system already supports executing a series of tasks where each task uses a different LLM model — even from different providers. This document describes what works today, what the limitations are, and what improvements would unlock more powerful multi-step workflows.
|
||||
|
||||
---
|
||||
|
||||
## What Works Today
|
||||
|
||||
### Per-Skill LLM Override
|
||||
|
||||
Every skill can declare its own `llm` tag with a provider/model spec and fallback chain:
|
||||
|
||||
```
|
||||
["llm", "anthropic/claude-sonnet-4-20250514, cheap"]
|
||||
["llm", "openai/gpt-4o-mini"]
|
||||
["llm", "best"]
|
||||
```
|
||||
|
||||
When a triggered skill fires, the runtime applies the skill's execution parameters (model, temperature, max_tokens) before calling the LLM, then restores the agent defaults afterward. This happens in `apply_trigger_runtime_to_llm_config()` in `src/trigger_manager.c`.
|
||||
|
||||
The `llm` tag supports the `provider/model` format. If the tag contains a slash, the runtime parses the provider name and model name separately and overrides both in the LLM config for that execution.
|
||||
|
||||
### Chain Triggers Connect Skills Sequentially
|
||||
|
||||
The `chain` trigger type fires when another skill completes execution. The `filter` field specifies the source skill's `d` tag:
|
||||
|
||||
```json
|
||||
{
|
||||
"trigger": "chain",
|
||||
"filter": "source-skill-d-tag"
|
||||
}
|
||||
```
|
||||
|
||||
After a triggered skill completes, `trigger_manager_fire_chains()` in `src/trigger_manager.c` looks for all adopted skills with `trigger=chain` whose `filter` matches the completed skill's d-tag, and fires them.
|
||||
|
||||
### Combined: Multi-Model Pipeline
|
||||
|
||||
By combining per-skill LLM overrides with chain triggers, you can build a pipeline where each step uses a different model:
|
||||
|
||||
```
|
||||
DM arrives
|
||||
│
|
||||
├─ Skill: triage
|
||||
│ llm: openai/gpt-4o-mini (fast/cheap)
|
||||
│ trigger: dm
|
||||
│ → Classifies the request
|
||||
│
|
||||
├─ chain fires ──→ Skill: deep-analysis
|
||||
│ llm: anthropic/claude-sonnet-4-20250514 (powerful)
|
||||
│ trigger: chain, filter: triage
|
||||
│ → Performs thorough analysis
|
||||
│
|
||||
└─ chain fires ──→ Skill: summarize
|
||||
llm: openai/gpt-4o-mini (cheap)
|
||||
trigger: chain, filter: deep-analysis
|
||||
→ Summarizes and DMs admin
|
||||
```
|
||||
|
||||
Each skill gets its own model, temperature, and max_tokens applied independently.
|
||||
|
||||
### Execution Parameter Resolution Per Step
|
||||
|
||||
For each triggered skill execution:
|
||||
|
||||
1. Start with agent/app defaults
|
||||
2. Apply the skill's `llm` tag (parsed as `provider/model` if slash present)
|
||||
3. Apply the skill's `temperature` tag if present
|
||||
4. Apply the skill's `max_tokens` tag if present
|
||||
5. Execute with those effective settings
|
||||
6. Restore defaults after the run
|
||||
|
||||
---
|
||||
|
||||
## Concrete Example
|
||||
|
||||
### Skill 1: triage (cheap fast model)
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 31123,
|
||||
"content": "## Triage\n\nClassify the incoming message:\n- If it needs deep research, use the memory_save tool to store the classification and key details.\n- If trivial, respond directly.\n\n{{message}}",
|
||||
"tags": [
|
||||
["d", "triage"],
|
||||
["description", "Fast triage of incoming messages"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"],
|
||||
["llm", "openai/gpt-4o-mini, cheap"],
|
||||
["temperature", "0"],
|
||||
["max_tokens", "200"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Skill 2: deep-analysis (powerful model, chains from triage)
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 31123,
|
||||
"content": "## Deep Analysis\n\n{{identity}}\n\nRecall the triage classification from memory. Perform thorough analysis using available tools. Save your findings to memory for the next step.\n\nOriginal request context:\n{{message}}",
|
||||
"tags": [
|
||||
["d", "deep-analysis"],
|
||||
["description", "Thorough analysis with powerful model"],
|
||||
["trigger", "chain"],
|
||||
["filter", "triage"],
|
||||
["llm", "anthropic/claude-sonnet-4-20250514, best"],
|
||||
["max_tokens", "2000"],
|
||||
["requires_tool", "memory_recall"],
|
||||
["requires_tool", "memory_save"],
|
||||
["requires_tool", "nostr_query"],
|
||||
["requires_skill", "identity"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Skill 3: summarize (cheap model, chains from deep-analysis)
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 31123,
|
||||
"content": "## Summarize\n\nRecall the analysis findings from memory. Write a concise summary and DM it to admin.",
|
||||
"tags": [
|
||||
["d", "summarize"],
|
||||
["description", "Summarize analysis and notify admin"],
|
||||
["trigger", "chain"],
|
||||
["filter", "deep-analysis"],
|
||||
["llm", "openai/gpt-4o-mini, cheap"],
|
||||
["max_tokens", "500"],
|
||||
["requires_tool", "memory_recall"],
|
||||
["requires_tool", "nostr_dm_send"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Current Capabilities
|
||||
|
||||
| Capability | Status | Notes |
|
||||
|---|---|---|
|
||||
| Different model per skill | ✅ Works | Via `llm` tag on each skill |
|
||||
| Different provider per skill | ✅ Works | `provider/model` format in `llm` tag |
|
||||
| Sequential multi-step pipelines | ✅ Works | Via `chain` trigger type |
|
||||
| Per-step temperature | ✅ Works | Via `temperature` tag |
|
||||
| Per-step max_tokens | ✅ Works | Via `max_tokens` tag |
|
||||
| Fallback chains per skill | ✅ Works | `provider/model, provider/model, cheap` |
|
||||
| LLM config restore after each step | ✅ Works | Runtime saves/restores global config |
|
||||
|
||||
---
|
||||
|
||||
## Current Limitations
|
||||
|
||||
### 1. No Direct Data Passing Between Chain Steps
|
||||
|
||||
**Problem:** Chain triggers fire with the *original* triggering event, not the output of the previous skill. Skill B doesn't automatically receive Skill A's output.
|
||||
|
||||
**Current workaround:** Use `memory_save` at the end of each step and `memory_recall` at the start of the next. This works but is fragile — memory is a shared scratchpad, not a structured pipeline bus.
|
||||
|
||||
**Potential improvement:** Extend the chain trigger event to include the previous skill's final LLM response text. In `trigger_manager_fire_chains()`, the chain event could carry a `"previous_output"` field that the next skill accesses via `{{triggering_event}}`.
|
||||
|
||||
### 2. No Conditional Branching
|
||||
|
||||
**Problem:** All chain skills matching a source d-tag fire unconditionally. You can't say "if triage classifies as X, run skill A; if Y, run skill B."
|
||||
|
||||
**Current workaround:** The chained skill can check the triggering event or memory and decide to do nothing if the condition doesn't match. But it still fires and consumes an LLM call.
|
||||
|
||||
**Potential improvement:** Add an optional `chain_condition` tag that the runtime evaluates before firing. Could be a simple JSON match against the previous output, or a keyword presence check.
|
||||
|
||||
### 3. No Parallel Fan-Out
|
||||
|
||||
**Problem:** Multiple chain skills matching the same source fire sequentially, not in parallel.
|
||||
|
||||
**Current workaround:** This is fine for most use cases. True parallelism would require thread-safe LLM config management.
|
||||
|
||||
### 4. Chain Depth Limit of 5
|
||||
|
||||
**Problem:** `s_chain_depth` in `trigger_manager_fire_chains()` caps at 5 levels to prevent runaway chains.
|
||||
|
||||
**Current workaround:** 5 steps is usually sufficient. For longer pipelines, the last step could use a tool to trigger a new chain externally.
|
||||
|
||||
**Potential improvement:** Make the depth limit configurable via genesis config.
|
||||
|
||||
### 5. Provider Credentials Are Global
|
||||
|
||||
**Problem:** The runtime has one set of API keys per provider. If Skill A uses `anthropic/claude-sonnet-4-20250514` and Skill B uses `openai/gpt-4o`, both providers must be configured in the agent's LLM config. There's no per-skill credential storage.
|
||||
|
||||
**Current workaround:** Configure all needed providers in the agent's genesis config or via `model_set` tool. The runtime already supports provider switching via the `provider` field in `llm_config_t`.
|
||||
|
||||
**Potential improvement:** None needed for most cases — agents typically have a small number of providers configured globally.
|
||||
|
||||
---
|
||||
|
||||
## Architecture: How It Works in Code
|
||||
|
||||
### Trigger Execution Flow
|
||||
|
||||
```
|
||||
trigger_manager fires skill
|
||||
│
|
||||
├─ Save current llm_config (old_cfg)
|
||||
│
|
||||
├─ apply_trigger_runtime_to_llm_config(trigger, &next_cfg)
|
||||
│ ├─ Parse llm tag: "anthropic/claude-sonnet-4-20250514"
|
||||
│ │ ├─ Set cfg->provider = "anthropic"
|
||||
│ │ └─ Set cfg->model = "claude-sonnet-4-20250514"
|
||||
│ ├─ Apply max_tokens if present
|
||||
│ └─ Apply temperature if present
|
||||
│
|
||||
├─ llm_set_config(&next_cfg)
|
||||
│
|
||||
├─ Execute skill (agent_on_trigger)
|
||||
│ ├─ Build context from triggered skills
|
||||
│ ├─ Call llm_chat_with_tools_messages()
|
||||
│ └─ Tool loop until completion
|
||||
│
|
||||
├─ Restore llm_set_config(&old_cfg)
|
||||
│
|
||||
└─ trigger_manager_fire_chains(source_d_tag)
|
||||
├─ Find chain skills where filter == source_d_tag
|
||||
├─ For each matching chain skill:
|
||||
│ ├─ Save config again
|
||||
│ ├─ Apply chain skill's llm override
|
||||
│ ├─ Execute chain skill
|
||||
│ ├─ Restore config
|
||||
│ └─ Recursively fire chains (depth < 5)
|
||||
└─ Done
|
||||
```
|
||||
|
||||
### Key Source Files
|
||||
|
||||
| File | Role |
|
||||
|---|---|
|
||||
| `src/trigger_manager.c` | Trigger matching, chain firing, LLM config override/restore |
|
||||
| `src/agent.c` | `agent_on_trigger()` — builds context and runs LLM loop |
|
||||
| `src/llm.c` | `llm_chat_with_tools_messages()` — actual LLM API call |
|
||||
| `docs/SKILLS.md` | Skill spec including `llm` tag format and chain triggers |
|
||||
|
||||
---
|
||||
|
||||
## Future Enhancements (Not Yet Implemented)
|
||||
|
||||
### Priority 1: Chain Output Forwarding
|
||||
|
||||
Pass the previous skill's output to the next chain step via the triggering event:
|
||||
|
||||
```c
|
||||
// In trigger_manager_fire_chains():
|
||||
cJSON_AddStringToObject(event, "previous_output", last_response_text);
|
||||
```
|
||||
|
||||
The chained skill would access this via `{{triggering_event}}` in its template, seeing:
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "chain",
|
||||
"source_d_tag": "triage",
|
||||
"previous_output": "Classification: needs deep analysis. Key topics: ..."
|
||||
}
|
||||
```
|
||||
|
||||
### Priority 2: Conditional Chain Firing
|
||||
|
||||
Add an optional `chain_condition` tag:
|
||||
|
||||
```json
|
||||
["chain_condition", "{\"previous_output_contains\":\"needs deep analysis\"}"]
|
||||
```
|
||||
|
||||
The runtime would check this before firing the chain skill.
|
||||
|
||||
### Priority 3: Configurable Chain Depth
|
||||
|
||||
```json
|
||||
// In genesis.jsonc:
|
||||
"trigger_chain_max_depth": 10
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Summary
|
||||
|
||||
Multi-model skill pipelines work today using per-skill `llm` tags and `chain` triggers. The main gap is data flow between steps (currently requires memory_save/recall workaround). The system is designed for this use case — each skill execution gets its own model config applied and restored — it just needs better inter-step communication to be truly seamless.
|
||||
94
plans/remove_role_markers_from_skills.md
Normal file
94
plans/remove_role_markers_from_skills.md
Normal file
@@ -0,0 +1,94 @@
|
||||
# Remove Role Markers from Skill Content
|
||||
|
||||
## Summary
|
||||
|
||||
Skill content should always be **system-role instructions** — pure markdown. The `system:`, `user:`, and `assistant:` role markers should not appear in skill content authored by users or the LLM agent.
|
||||
|
||||
The runtime already handles `user:` injection internally (appending the DM message or trigger event as the user message). Skill authors writing `user:` in their content is either redundant or creates conflicts (double `user:` markers).
|
||||
|
||||
## What Changes
|
||||
|
||||
### Principle
|
||||
|
||||
- **Skill content = system instructions.** Always. No role markers.
|
||||
- **The runtime owns role assignment.** It injects `user:` before the actual input (DM, trigger event).
|
||||
- **`context_roles_split()` stays** — the runtime still uses it internally to split the assembled markdown (which includes the runtime-injected `user:` marker) into API messages.
|
||||
|
||||
### Files to Change
|
||||
|
||||
#### Documentation
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `docs/SKILLS.md` | Remove role markers from skill content spec and examples. Clarify that skill content is always system instructions. |
|
||||
| `docs/CONTEXT.md` | Clarify that `user:` is injected by the runtime, not by skill authors. Update examples. |
|
||||
| `docs/TOOLS.md` | Remove role marker references from `skill_create` and `skill_edit` descriptions. |
|
||||
|
||||
#### Source Code
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `src/tools/tools_schema.c` | Remove role marker references from `skill_create` and `skill_edit` tool descriptions and parameter descriptions. |
|
||||
| `src/context_roles.c` | **No change** — still needed for runtime-level `user:` splitting. |
|
||||
| `src/context_roles.h` | **No change**. |
|
||||
| `src/agent.c` | **No change** — already injects `user:` correctly. |
|
||||
|
||||
#### Web Pages
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `~/lt/client-ndk/www/skills-edit.html` | Remove `system:`/`user:`/`assistant:` syntax highlighting from the editor overlay. Update placeholder text. |
|
||||
|
||||
#### Plans (historical docs, lower priority)
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `plans/skills_edit_page.md` | Remove role marker references from content description and highlighting spec. |
|
||||
| `plans/markdown_context_window.md` | Update role marker section to clarify runtime-only usage. |
|
||||
| `plans/example_context.md` | Update examples to show skill content without role markers. |
|
||||
| `plans/example_context_v2.md` | Update examples to show skill content without role markers. |
|
||||
| `plans/skills_demo_page.md` | Update template examples to remove `system:`/`user:` from skill templates. |
|
||||
|
||||
### What Does NOT Change
|
||||
|
||||
- **`context_roles_split()`** — The runtime still assembles a full markdown string with `user:` injected at the boundary, then splits it. This is an internal runtime mechanism, not a skill authoring concern.
|
||||
- **skills-tv.html** — This is a separate client-side execution model that builds its own messages array. It can keep its `system:`/`user:` template format since it is not going through the Didactyl agent. However, it could be simplified later.
|
||||
- **DM history** — Already uses proper role assignment in the messages array, not role markers.
|
||||
|
||||
## Detailed Changes
|
||||
|
||||
### docs/SKILLS.md
|
||||
|
||||
**Before:**
|
||||
```json
|
||||
{
|
||||
"content": "system:\n## Spelling and Grammar Checker\n\nYou are a spelling and grammar checker.\n\n### Rules\n...\n\nuser:\n{{message}}"
|
||||
}
|
||||
```
|
||||
|
||||
**After:**
|
||||
```json
|
||||
{
|
||||
"content": "## Spelling and Grammar Checker\n\nYou are a spelling and grammar checker.\n\n### Rules\n..."
|
||||
}
|
||||
```
|
||||
|
||||
Remove the bullet points about role markers. Add a note:
|
||||
|
||||
> Skill content is always system-role instructions. The runtime handles user message injection (DM content, trigger events) automatically. Do not include `system:`, `user:`, or `assistant:` markers in skill content.
|
||||
|
||||
### src/tools/tools_schema.c
|
||||
|
||||
**skill_create description** — Remove "use role markers (system:/user:/assistant:) at line start when needed; unmarked content defaults to system."
|
||||
|
||||
Replace with: "Write content as markdown system instructions. The runtime handles user message injection. Prefer ## for top-level sections."
|
||||
|
||||
**skill_create content param** — Remove "May include role markers at line start (system:/user:/assistant:)"
|
||||
|
||||
Replace with: "Markdown system instructions for the skill. May include markdown headings/lists/code fences and template variables."
|
||||
|
||||
Same pattern for **skill_edit**.
|
||||
|
||||
### skills-edit.html
|
||||
|
||||
Remove the `.hl-role` CSS class and the regex that highlights `system:`, `user:`, `assistant:` in the editor overlay. Update the textarea placeholder from `system:\nYou are...\n\nuser:\n{{message}}` to just `## My Skill\n\nYou are a helpful assistant.\n\nRespond to {{message}} with...`.
|
||||
629
plans/run_skill_architecture.md
Normal file
629
plans/run_skill_architecture.md
Normal file
@@ -0,0 +1,629 @@
|
||||
# Run Skill Architecture — Tradeoff Analysis
|
||||
|
||||
## The Question
|
||||
|
||||
Skills today are **adopted** — their content is injected into the agent's context window for every matching trigger. This is "always on" and costs context tokens on every LLM call, even when the skill's capability isn't needed.
|
||||
|
||||
What if an agent could **use a skill once and be done with it** — like calling a tool?
|
||||
|
||||
Two approaches exist. This document analyzes both.
|
||||
|
||||
---
|
||||
|
||||
## Approach A: Sub-Invocation (Separate LLM Call)
|
||||
|
||||
**Concept:** A `skill_run` tool that spins up an entirely separate LLM execution with the skill's instructions as the system prompt, runs its own tool loop to completion, and returns the result to the calling context.
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant Admin
|
||||
participant Agent as Agent - Main Context
|
||||
participant SkillRun as skill_run Executor
|
||||
participant LLM2 as LLM - Skill Context
|
||||
|
||||
Admin->>Agent: Hey, summarize this thread
|
||||
Agent->>Agent: I need the summarize-thread skill
|
||||
Agent->>SkillRun: skill_run d_tag=summarize-thread, args=thread_id
|
||||
SkillRun->>SkillRun: Fetch skill content from Nostr
|
||||
SkillRun->>SkillRun: Build isolated context window
|
||||
SkillRun->>LLM2: System: skill instructions, User: args
|
||||
LLM2->>SkillRun: Tool calls + reasoning
|
||||
SkillRun->>SkillRun: Execute tool loop to completion
|
||||
LLM2->>SkillRun: Final text response
|
||||
SkillRun->>Agent: Return result as tool output
|
||||
Agent->>Admin: Here is the summary...
|
||||
```
|
||||
|
||||
### How It Works
|
||||
|
||||
1. The LLM in the main conversation calls `skill_run` with a `d_tag` (or full `kind:pubkey:d_tag` address) and `args`
|
||||
2. The runtime fetches the skill event from Nostr (or adopted skills cache)
|
||||
3. A **new, isolated context window** is built:
|
||||
- System prompt = skill content (with `{{...}}` template variables resolved)
|
||||
- User message = the `args` parameter
|
||||
- Tools = the skill's `requires_tool` tags (or full tool set for own skills)
|
||||
- LLM config = the skill's `llm`, `temperature`, `max_tokens` tags (or agent defaults)
|
||||
4. A **separate tool loop** runs (same pattern as [`agent_on_trigger()`](src/agent.c:1696))
|
||||
5. The final LLM text response is returned as the `skill_run` tool result
|
||||
6. The calling context continues with that result
|
||||
|
||||
### Advantages
|
||||
|
||||
| Advantage | Detail |
|
||||
|-----------|--------|
|
||||
| **Zero context cost when idle** | The skill's instructions never enter the main context window unless invoked |
|
||||
| **Isolation** | The skill runs in its own context — it can't see or interfere with the main conversation |
|
||||
| **Per-skill model** | Each skill can use a different LLM model/provider via its `llm` tag |
|
||||
| **Sandboxing** | External skills can be restricted to safe tools only |
|
||||
| **Composability** | Skills can call other skills via nested `skill_run` (with depth limits) |
|
||||
| **Try-before-adopt** | Run someone else's skill once without permanently adopting it |
|
||||
| **Clean separation** | The skill is a black box — input in, result out |
|
||||
|
||||
### Disadvantages
|
||||
|
||||
| Disadvantage | Detail |
|
||||
|--------------|--------|
|
||||
| **Extra LLM call** | Every `skill_run` invocation costs at least one additional LLM API call (possibly more if the skill uses tools) |
|
||||
| **Latency** | The main conversation blocks while the sub-invocation runs its tool loop |
|
||||
| **No shared context** | The skill doesn't know about the ongoing conversation — it only sees its `args` |
|
||||
| **Complexity** | Requires managing nested execution contexts, preventing infinite recursion, handling timeouts |
|
||||
| **Token overhead** | The skill's system prompt is paid for separately — no sharing with the main context |
|
||||
|
||||
### Existing Design
|
||||
|
||||
This approach is already designed in detail in [`plans/tool_orchestration.md`](plans/tool_orchestration.md) as the `skill_run` tool (Section 2B), including:
|
||||
- Schema definition
|
||||
- Execution flow with sandbox for external skills
|
||||
- Tool safety classification
|
||||
- `/run` slash command for admin direct invocation
|
||||
|
||||
---
|
||||
|
||||
## Approach B: Lazy Injection (On-Demand Context Loading)
|
||||
|
||||
**Concept:** A `skill_load` tool that fetches a skill's content and injects it into the **current** context window mid-conversation. The LLM then uses those instructions in subsequent reasoning within the same call.
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant Admin
|
||||
participant Agent as Agent - Single Context
|
||||
participant LLM as LLM
|
||||
|
||||
Admin->>Agent: Hey, summarize this thread
|
||||
Agent->>LLM: System + User message
|
||||
LLM->>Agent: I need the summarize-thread skill. Call skill_load.
|
||||
Agent->>Agent: Fetch skill content, append to messages
|
||||
Agent->>LLM: ...previous messages + skill content as new system message
|
||||
LLM->>Agent: Now executing with skill instructions in context...
|
||||
Agent->>Admin: Here is the summary...
|
||||
```
|
||||
|
||||
### How It Works
|
||||
|
||||
1. The LLM calls `skill_load` with a `d_tag`
|
||||
2. The runtime fetches the skill content
|
||||
3. The skill content is returned as the tool result (or injected as a new system message)
|
||||
4. The LLM continues in the **same context window**, now with the skill instructions available
|
||||
5. No separate LLM call — the skill instructions become part of the ongoing conversation
|
||||
|
||||
### Advantages
|
||||
|
||||
| Advantage | Detail |
|
||||
|-----------|--------|
|
||||
| **No extra LLM call** | The skill instructions are loaded into the current context — no sub-invocation overhead |
|
||||
| **Shared context** | The skill has full access to the conversation history and can reason about it |
|
||||
| **Lower latency** | No separate tool loop — the LLM just continues with more information |
|
||||
| **Simpler implementation** | Just fetch content and return it as a tool result — no nested execution management |
|
||||
| **Natural flow** | The LLM decides when it needs more instructions and loads them dynamically |
|
||||
|
||||
### Disadvantages
|
||||
|
||||
| Disadvantage | Detail |
|
||||
|--------------|--------|
|
||||
| **Context window cost** | Once loaded, the skill content stays in the context for the rest of the conversation |
|
||||
| **No isolation** | The skill instructions mix with everything else — potential for instruction conflicts |
|
||||
| **No per-skill model** | The skill runs on whatever model the current conversation is using |
|
||||
| **No sandboxing** | The skill's instructions execute with full tool access (same as the main context) |
|
||||
| **Accumulation** | Loading multiple skills grows the context window — could hit token limits |
|
||||
| **No clean boundary** | The LLM might partially follow skill instructions or blend them with other context |
|
||||
|
||||
### Implementation
|
||||
|
||||
This is essentially what `skill_get` already does — it returns skill content. The difference would be:
|
||||
- `skill_get` returns metadata + content as a JSON blob for the LLM to read
|
||||
- `skill_load` would inject the content as a system-level instruction that the LLM should follow
|
||||
|
||||
In practice, the LLM can already do this today by calling `skill_get` and then reasoning about the returned content. The question is whether a dedicated `skill_load` tool that injects content at the system level would be meaningfully different.
|
||||
|
||||
---
|
||||
|
||||
## Approach C: Hybrid — Both, With Different Use Cases
|
||||
|
||||
The two approaches serve different needs and are not mutually exclusive:
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
A[Agent needs a skill capability] --> B{What kind of need?}
|
||||
B -->|One-shot task with clear input/output| C[skill_run - Sub-invocation]
|
||||
B -->|Need skill knowledge in ongoing conversation| D[skill_load - Lazy injection]
|
||||
B -->|Always need this skill| E[skill_adopt - Permanent adoption]
|
||||
|
||||
C --> F[Isolated execution, result returned]
|
||||
D --> G[Instructions loaded into current context]
|
||||
E --> H[Instructions in every matching trigger context]
|
||||
|
||||
style C fill:#e1f5fe
|
||||
style D fill:#fff3e0
|
||||
style E fill:#e8f5e9
|
||||
```
|
||||
|
||||
### When to Use Each
|
||||
|
||||
| Scenario | Best Approach | Why |
|
||||
|----------|--------------|-----|
|
||||
| Run a friend's skill to try it | `skill_run` | Isolation + sandbox for untrusted code |
|
||||
| Spell-check this message | `skill_run` | Clear input/output, no conversation context needed |
|
||||
| Deploy my website | `skill_run` | Task-oriented, uses different tools, benefits from isolation |
|
||||
| I need to know the formatting rules for Nostr posts | `skill_load` | Reference material for the current conversation |
|
||||
| Help me write a skill (load the skill-authoring guide) | `skill_load` | The LLM needs the instructions as ongoing context |
|
||||
| Always respond in a certain personality | `skill_adopt` | Needed in every conversation |
|
||||
|
||||
### The Key Distinction
|
||||
|
||||
- **`skill_run`** = "Do this task for me and give me the result" (function call semantics)
|
||||
- **`skill_load`** = "Teach me how to do this so I can do it myself" (knowledge injection)
|
||||
- **`skill_adopt`** = "I always need to know this" (permanent context)
|
||||
|
||||
---
|
||||
|
||||
## Relationship to Existing Architecture
|
||||
|
||||
### Chain Triggers vs skill_run
|
||||
|
||||
[Chain triggers](plans/multi_model_skill_pipelines.md) already provide sequential skill execution — Skill A completes, then Skill B fires. But chains are **pre-configured** (declared in skill tags) and **event-driven** (fire automatically).
|
||||
|
||||
`skill_run` is **dynamic** — the LLM decides at runtime which skill to invoke based on the conversation. It's the difference between a cron job and a function call.
|
||||
|
||||
### Maturity Levels
|
||||
|
||||
The [`tool_orchestration.md`](plans/tool_orchestration.md) plan defines three maturity levels that apply to `skill_run`:
|
||||
|
||||
| Level | Execution | LLM? |
|
||||
|-------|-----------|------|
|
||||
| `draft` | LLM interprets skill instructions | Yes |
|
||||
| `guided` | LLM with forced tool_choice | Yes, constrained |
|
||||
| `hardened` | Deterministic step executor | No |
|
||||
|
||||
A `hardened` skill via `skill_run` is essentially a **tool** — no LLM call, just sequential tool execution. This is the ultimate "skill as tool" pattern.
|
||||
|
||||
### Recursive skill_run
|
||||
|
||||
`skill_run` can call `skill_run` (a skill invokes another skill). This needs a depth limit (like the chain depth limit of 5 in [`trigger_manager_fire_chains()`](src/trigger_manager.c)). Each level gets its own context window and tool loop.
|
||||
|
||||
---
|
||||
|
||||
## Implementation Considerations
|
||||
|
||||
### For skill_run (Sub-Invocation)
|
||||
|
||||
The core implementation reuses the existing [`agent_on_trigger()`](src/agent.c:1696) pattern:
|
||||
|
||||
1. **New function:** `execute_skill_run()` in [`tool_skill.c`](src/tools/tool_skill.c)
|
||||
2. **Context building:** Reuse [`build_context_from_triggers()`](src/agent.c) pattern but for a single skill
|
||||
3. **Tool loop:** Same pattern as `agent_on_trigger()` — call LLM, execute tools, repeat
|
||||
4. **LLM config:** Save/restore pattern from [`apply_trigger_runtime_to_llm_config()`](src/trigger_manager.c)
|
||||
5. **Sandbox:** Filter tools array based on skill origin (own vs external)
|
||||
6. **Depth tracking:** Static or thread-local counter to prevent infinite recursion
|
||||
7. **Result capture:** Capture the final LLM text response and return it as the tool result
|
||||
|
||||
### For skill_load (Lazy Injection)
|
||||
|
||||
Minimal new code needed:
|
||||
|
||||
1. **New tool:** `skill_load` in [`tool_skill.c`](src/tools/tool_skill.c)
|
||||
2. **Fetch:** Same as `skill_get` — fetch skill content from cache or Nostr
|
||||
3. **Return:** Return the skill content as the tool result with a wrapper indicating these are instructions to follow
|
||||
4. **Alternative:** Inject as a system message in the messages array (requires access to the messages array from within tool execution, which the current architecture doesn't support)
|
||||
|
||||
The simpler version (return as tool result) works today with minimal changes. The LLM receives the skill content as a tool response and can reason about it. The more sophisticated version (system message injection) would require architectural changes to how tools interact with the message array.
|
||||
|
||||
---
|
||||
|
||||
## Approach D: Modes — Skill Packages as Agent Personalities
|
||||
|
||||
### The Roo Code Parallel
|
||||
|
||||
Roo Code has **modes** — Architect, Code, Ask, Debug — each with its own:
|
||||
- System prompt / personality
|
||||
- Set of allowed tools
|
||||
- File access restrictions
|
||||
- Model preferences
|
||||
|
||||
A mode is essentially a **curated bundle of capabilities** that the agent switches into. You don't load the Architect's planning instructions into the Code mode's context — you *switch modes entirely*.
|
||||
|
||||
This maps directly onto Didactyl's skill system.
|
||||
|
||||
### Modes as Skill Packages
|
||||
|
||||
A **mode** is a named collection of skills that, when activated, replaces the agent's current context window composition. It's a different adoption list — a different set of Layer 1 skills, different tools, potentially a different LLM model.
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
A[Agent receives /mode architect] --> B[Look up mode: architect]
|
||||
B --> C[Mode defines skills: planning, analysis, design-patterns]
|
||||
C --> D[Mode defines model: best]
|
||||
C --> E[Mode defines tools: memory_*, nostr_query, skill_search]
|
||||
D --> F[Reconfigure agent context for this session]
|
||||
E --> F
|
||||
F --> G[Agent now operates as Architect]
|
||||
G --> H[All subsequent messages use architect context]
|
||||
```
|
||||
|
||||
### Mode Definition as a Skill
|
||||
|
||||
A mode is itself a skill — a meta-skill that declares which other skills compose it:
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 31123,
|
||||
"content": "You are operating in Architect mode.\n\nYour role is to plan, design, and analyze before implementation.\n- Break down complex problems into clear steps\n- Create technical specifications\n- Design system architecture\n- Do NOT write implementation code\n\n{{identity}}\n{{planning-guidelines}}",
|
||||
"tags": [
|
||||
["d", "mode-architect"],
|
||||
["description", "Architect mode - planning and design"],
|
||||
["mode", "architect"],
|
||||
["llm", "best"],
|
||||
["temperature", "0.7"],
|
||||
["requires_skill", "identity"],
|
||||
["requires_skill", "planning-guidelines"],
|
||||
["requires_tool", "memory_save"],
|
||||
["requires_tool", "memory_recall"],
|
||||
["requires_tool", "nostr_query"],
|
||||
["requires_tool", "skill_search"],
|
||||
["requires_tool", "skill_list"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 31123,
|
||||
"content": "You are operating in Cheap mode.\n\nYou are a fast, cost-effective assistant.\n- Answer questions directly and concisely\n- Use minimal tokens\n- Do not over-explain\n\n{{identity}}",
|
||||
"tags": [
|
||||
["d", "mode-cheap"],
|
||||
["description", "Cheap mode - fast answers with inexpensive model"],
|
||||
["mode", "cheap"],
|
||||
["llm", "openai/gpt-4o-mini, cheap"],
|
||||
["temperature", "0.3"],
|
||||
["max_tokens", "500"],
|
||||
["requires_skill", "identity"],
|
||||
["requires_tool", "nostr_query"],
|
||||
["requires_tool", "memory_recall"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### How Modes Interact with skill_run
|
||||
|
||||
Your example — `/skill_run cheap "how many files are in the directory"` — reveals two distinct use cases:
|
||||
|
||||
**1. One-shot mode invocation (`skill_run`):**
|
||||
Run a single task using a mode's configuration, then return to normal. The mode's model, tools, and personality apply for just that one execution.
|
||||
|
||||
```
|
||||
/skill_run mode-cheap "how many files are in the directory"
|
||||
```
|
||||
|
||||
This uses the `skill_run` sub-invocation pattern: spin up an isolated context with the `mode-cheap` skill's instructions, use its `llm` tag (cheap model), execute the tool loop, return the result. The main conversation continues unchanged.
|
||||
|
||||
**2. Persistent mode switch (`/mode`):**
|
||||
Switch the agent's operating mode for all subsequent messages until switched again.
|
||||
|
||||
```
|
||||
/mode architect
|
||||
> Now operating in Architect mode. Using best model. Planning tools available.
|
||||
|
||||
/mode cheap
|
||||
> Now operating in Cheap mode. Using gpt-4o-mini. Minimal tool set.
|
||||
|
||||
/mode default
|
||||
> Restored default mode.
|
||||
```
|
||||
|
||||
This changes which skills compose the agent's context window for DM conversations. Instead of the normal adoption-list-order composition, the mode's skill set takes over.
|
||||
|
||||
### Mode Architecture
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph Current Architecture
|
||||
A[Adoption List - kind 10123] --> B[All adopted skills with dm trigger]
|
||||
B --> C[Context window for every DM]
|
||||
end
|
||||
|
||||
subgraph Mode Architecture
|
||||
D[Adoption List - kind 10123] --> E{Active mode?}
|
||||
E -->|No mode| F[Default: all adopted dm-triggered skills]
|
||||
E -->|Mode active| G[Mode skill + its requires_skill dependencies]
|
||||
F --> H[Context window]
|
||||
G --> H
|
||||
end
|
||||
|
||||
subgraph Mode Lifecycle
|
||||
I[/mode architect] --> J[Set active mode = mode-architect]
|
||||
J --> K[Subsequent DMs use architect context]
|
||||
K --> L[/mode default]
|
||||
L --> M[Clear active mode, restore normal]
|
||||
end
|
||||
```
|
||||
|
||||
### The Three Invocation Patterns (Updated)
|
||||
|
||||
| Pattern | Command | Context | Persists? | Model |
|
||||
|---------|---------|---------|-----------|-------|
|
||||
| **Adopted skills** | *(automatic)* | All matching skills in adoption list | Always | Agent default |
|
||||
| **One-shot skill** | `/skill_run d_tag args` | Isolated sub-invocation | No | Skill's `llm` tag |
|
||||
| **Mode switch** | `/mode name` | Mode's skill set replaces DM context | Until changed | Mode's `llm` tag |
|
||||
| **One-shot mode** | `/skill_run mode-name args` | Isolated sub-invocation with mode config | No | Mode's `llm` tag |
|
||||
|
||||
### Mode Storage
|
||||
|
||||
The active mode is ephemeral runtime state — not persisted to Nostr. It's a session concept:
|
||||
|
||||
```c
|
||||
// In agent.c or a new mode_manager
|
||||
static char g_active_mode_d_tag[TRIGGER_SKILL_D_TAG_MAX] = {0}; // empty = default mode
|
||||
|
||||
void agent_set_mode(const char* mode_d_tag); // NULL or empty = clear mode
|
||||
const char* agent_get_mode(void);
|
||||
```
|
||||
|
||||
When a mode is active, [`build_context_from_triggers()`](src/agent.c) checks the mode skill first instead of scanning all DM-triggered skills. The mode skill's `requires_skill` tags define which other skills are included (Layer 2).
|
||||
|
||||
### Mode Discovery
|
||||
|
||||
Modes are just skills with a `["mode", "name"]` tag. They're discoverable the same way:
|
||||
|
||||
```
|
||||
/skill_search mode # find all mode skills
|
||||
/skill_run mode-architect "plan X" # try a mode one-shot
|
||||
/mode architect # switch to it persistently
|
||||
```
|
||||
|
||||
Since modes are Nostr events, they're **shareable**. Someone publishes a "code-reviewer" mode with specific skills, model preferences, and tool restrictions. You adopt it and `/mode code-reviewer` to activate it.
|
||||
|
||||
### Relationship to Roo Code Modes
|
||||
|
||||
| Roo Code | Didactyl Equivalent |
|
||||
|----------|-------------------|
|
||||
| Mode definition (`.roomodes`) | Skill event with `["mode", "name"]` tag |
|
||||
| Mode's system prompt | Skill content (markdown instructions) |
|
||||
| Mode's allowed tools | `["requires_tool", "..."]` tags |
|
||||
| Mode's file restrictions | `["requires_tool", "local_file_read"]` presence/absence |
|
||||
| Mode's model | `["llm", "..."]` tag |
|
||||
| `/mode architect` | `/mode architect` |
|
||||
| Mode switching | `/mode name` slash command |
|
||||
| Custom modes | Create a skill with `["mode", "name"]` tag |
|
||||
|
||||
The key difference: Roo Code modes are local config files. Didactyl modes are **Nostr events** — portable, shareable, discoverable, and adoptable across agents.
|
||||
|
||||
---
|
||||
|
||||
## Modes vs. Multiple Agents
|
||||
|
||||
### The Tradeoff
|
||||
|
||||
Instead of switching one agent between Architect and Coder modes, you could run two separate agents — one Architect, one Coder. Each has its own nsec, its own skills, its own model. This is already possible today with no code changes.
|
||||
|
||||
| Dimension | Modes (one agent) | Multiple Agents (separate binaries) |
|
||||
|-----------|-------------------|-------------------------------------|
|
||||
| **Resource cost** | One process, one relay connection, one LLM config | N processes, N relay connections, N LLM configs |
|
||||
| **Context isolation** | Mode switch replaces context; previous mode's state is lost | Each agent has its own persistent context and memory |
|
||||
| **Shared memory** | Same agent = same memory store. Architect's notes are available to Coder. | Separate agents = separate memory. Must explicitly share via Nostr events. |
|
||||
| **Conversation continuity** | Mode switch mid-conversation is seamless — same DM thread | Different agents = different DM threads. Admin must context-switch. |
|
||||
| **Identity** | One npub. External observers see one entity. | N npubs. Each agent is a distinct Nostr identity. |
|
||||
| **Specialization depth** | Mode is a context overlay — personality + tools + model. Shallow specialization. | Full agent is deeply specialized — its own memories, its own learned patterns, its own social graph. |
|
||||
| **Operational complexity** | One binary, one systemd service, one genesis config | N binaries, N services, N configs, N API keys |
|
||||
| **Failure blast radius** | Agent crashes = all modes unavailable | One agent crashes = others still running |
|
||||
| **Skill sharing** | All modes share the same adoption list (modes just filter it) | Each agent has its own adoption list |
|
||||
| **Admin UX** | `/mode architect` — instant switch | DM a different npub — requires client support or manual switching |
|
||||
|
||||
### When Modes Win
|
||||
|
||||
- **Quick context switching** — "plan this, then code it" in one conversation
|
||||
- **Shared state** — the Architect's plan is in memory when you switch to Coder mode
|
||||
- **Low overhead** — one process, one set of relay connections
|
||||
- **Simple admin UX** — `/mode architect`, `/mode coder`, done
|
||||
- **Cost control** — `/mode cheap` for quick questions, `/mode deep` for complex analysis
|
||||
|
||||
### When Separate Agents Win
|
||||
|
||||
- **Deep specialization** — an agent that has spent weeks learning about your codebase vs. one that knows your financial data. These are fundamentally different knowledge bases.
|
||||
- **Different trust boundaries** — one agent has shell access, another only has Nostr access
|
||||
- **Different LLM providers** — one on Anthropic, one on OpenAI, one on local Ollama
|
||||
- **Concurrent operation** — both agents working simultaneously on different tasks
|
||||
- **Fault isolation** — one agent's crash doesn't affect the other
|
||||
- **Team simulation** — the admin can DM the Architect to plan, then DM the Coder to implement, and each agent maintains its own persistent context about its domain
|
||||
|
||||
### The Hybrid: Modes + Clones
|
||||
|
||||
The most powerful pattern combines both:
|
||||
|
||||
1. **Start with one agent** with modes for quick context switching
|
||||
2. **Clone it** (via [`agent_clone`](plans/agent_clone.md)) when you need deep specialization
|
||||
3. **Specialize the clone** — different skills, different model, different tools
|
||||
4. **Use modes within each clone** for further flexibility
|
||||
|
||||
```
|
||||
Admin's Agent Fleet:
|
||||
├── Agent Alpha (generalist)
|
||||
│ ├── /mode architect — planning
|
||||
│ ├── /mode coder — implementation
|
||||
│ └── /mode cheap — quick questions
|
||||
├── Agent Beta (clone, specialized: infrastructure)
|
||||
│ ├── /mode deploy — deployment workflows
|
||||
│ └── /mode monitor — system monitoring
|
||||
└── Agent Gamma (clone, specialized: content)
|
||||
├── /mode writer — long-form content
|
||||
└── /mode social — Nostr social engagement
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Multi-Agent Didactyl: What Would It Take?
|
||||
|
||||
### Current Single-Agent Architecture
|
||||
|
||||
The codebase is deeply single-agent. Global state is everywhere:
|
||||
|
||||
| Global | File | Purpose |
|
||||
|--------|------|---------|
|
||||
| `static didactyl_config_t* g_cfg` | [`agent.c`](src/agent.c:27), [`nostr_handler.c`](src/nostr_handler.c:22) | Agent config including keys |
|
||||
| `static tools_context_t g_tools_ctx` | [`agent.c`](src/agent.c:28) | Tool execution context |
|
||||
| `static trigger_manager* g_trigger_manager` | [`agent.c`](src/agent.c:29) | Trigger state |
|
||||
| `static nostr_relay_pool_t* g_pool` | [`nostr_handler.c`](src/nostr_handler.c:23) | Single relay pool |
|
||||
| `static llm_config_t g_cfg` | [`llm.c`](src/llm.c:20) | LLM configuration |
|
||||
| `static char* g_admin_kind0_json` | [`nostr_handler.c`](src/nostr_handler.c:34) | Admin context cache |
|
||||
| `static char* g_agent_kind0_json` | [`nostr_handler.c`](src/nostr_handler.c:47) | Agent self-context cache |
|
||||
| `static char* g_memory_plain` | [`tool_memory.c`](src/tools/tool_memory.c:20) | Agent memory |
|
||||
| 20+ `pthread_mutex_t` globals | Various | Thread safety for all the above |
|
||||
|
||||
Every module assumes there is exactly one agent identity, one relay pool, one LLM config, one admin, one set of keys. The keys are used directly via `g_cfg->keys.private_key` in ~40 places across [`nostr_handler.c`](src/nostr_handler.c) for signing, encrypting, and decrypting.
|
||||
|
||||
### Three Paths to Multi-Agent
|
||||
|
||||
#### Path 1: Multiple Processes (Current — No Code Changes)
|
||||
|
||||
Run N separate Didactyl binaries, each with its own genesis config and nsec. This is what [`DECENTRALIZED_DIDACTYL.md`](plans/DECENTRALIZED_DIDACTYL.md) describes.
|
||||
|
||||
**Pros:** Works today. Zero code changes. Full isolation.
|
||||
**Cons:** N × resource cost. N × operational complexity. No shared state.
|
||||
|
||||
```
|
||||
Server
|
||||
├── /home/didactyl-architect/ (systemd: didactyl-architect.service)
|
||||
│ ├── genesis.jsonc (nsec1..., model: best)
|
||||
│ └── didactyl (binary)
|
||||
├── /home/didactyl-coder/ (systemd: didactyl-coder.service)
|
||||
│ ├── genesis.jsonc (nsec2..., model: fast)
|
||||
│ └── didactyl (binary)
|
||||
└── /home/didactyl-cheap/ (systemd: didactyl-cheap.service)
|
||||
├── genesis.jsonc (nsec3..., model: cheap)
|
||||
└── didactyl (binary)
|
||||
```
|
||||
|
||||
#### Path 2: Multi-Agent Single Process (Major Refactor)
|
||||
|
||||
Refactor all global state into an `agent_instance_t` struct. Run multiple agent instances in one process, sharing the relay pool and HTTP server.
|
||||
|
||||
**What changes:**
|
||||
|
||||
```c
|
||||
typedef struct agent_instance {
|
||||
didactyl_config_t config;
|
||||
tools_context_t tools_ctx;
|
||||
trigger_manager_t trigger_manager;
|
||||
llm_config_t llm_config;
|
||||
// ... all per-agent state
|
||||
} agent_instance_t;
|
||||
|
||||
// Instead of:
|
||||
static didactyl_config_t* g_cfg;
|
||||
// Becomes:
|
||||
agent_instance_t* agents;
|
||||
int agent_count;
|
||||
```
|
||||
|
||||
**Scope of refactor:**
|
||||
- Every function that touches `g_cfg`, `g_tools_ctx`, `g_trigger_manager`, or any global state needs an `agent_instance_t*` parameter
|
||||
- [`nostr_handler.c`](src/nostr_handler.c) — the largest file (~4500 lines) — uses `g_cfg->keys` in ~40 places. Every signing, encryption, and subscription call needs to know which agent's keys to use.
|
||||
- [`llm.c`](src/llm.c) — the global `g_cfg` LLM config needs to become per-instance
|
||||
- [`agent.c`](src/agent.c) — all context building, message handling, tool loops need per-instance state
|
||||
- DM routing — incoming DMs need to be dispatched to the correct agent based on the `#p` tag
|
||||
- The HTTP API needs agent-scoped endpoints (`/api/agents/:id/prompt`, etc.)
|
||||
|
||||
**Estimated scope:** Touch every `.c` file. ~2000-3000 lines of refactoring. High risk of regressions.
|
||||
|
||||
**Pros:** Shared relay pool (fewer connections). Shared HTTP server. Single process to manage.
|
||||
**Cons:** Massive refactor. High regression risk. Shared-process failure mode (one agent's crash kills all).
|
||||
|
||||
#### Path 3: Multi-Agent via Modes (Minimal Code — Recommended First Step)
|
||||
|
||||
Modes give you 80% of the multi-agent benefit with 5% of the effort:
|
||||
|
||||
- **Different personality per mode** — mode skill content
|
||||
- **Different model per mode** — mode's `llm` tag
|
||||
- **Different tools per mode** — mode's `requires_tool` tags
|
||||
- **Different temperature per mode** — mode's `temperature` tag
|
||||
- **Instant switching** — `/mode architect`
|
||||
- **Shared memory** — same agent, same memory store
|
||||
- **Shared identity** — same npub, same social graph
|
||||
|
||||
What you lose vs. true multi-agent:
|
||||
- No concurrent operation (one mode at a time)
|
||||
- No independent persistent context per mode
|
||||
- No fault isolation between modes
|
||||
|
||||
**This is the Roo Code model** — and it works extremely well for the single-admin use case.
|
||||
|
||||
### Recommendation
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
A[Start here] --> B[Implement modes - skill packages]
|
||||
B --> C{Need concurrent agents?}
|
||||
C -->|No| D[Modes are sufficient]
|
||||
C -->|Yes| E{How many?}
|
||||
E -->|2-3| F[Multiple processes - Path 1]
|
||||
E -->|Many| G{Shared resources matter?}
|
||||
G -->|No| F
|
||||
G -->|Yes| H[Multi-agent refactor - Path 2]
|
||||
|
||||
style B fill:#e8f5e9
|
||||
style D fill:#e8f5e9
|
||||
style F fill:#fff3e0
|
||||
style H fill:#ffebee
|
||||
```
|
||||
|
||||
1. **Now:** Implement modes (skill packages). This covers the "Architect vs Coder" use case with minimal code.
|
||||
2. **When needed:** Run multiple Didactyl processes for true concurrent agents. Already works, just operational overhead.
|
||||
3. **If justified:** Multi-agent single-process refactor. Only if you're running 5+ agents on one server and the resource overhead matters.
|
||||
|
||||
---
|
||||
|
||||
## Implementation Layers
|
||||
|
||||
The features build on each other in this order:
|
||||
|
||||
### Layer 1: `skill_run` (Sub-Invocation)
|
||||
Already designed in [`tool_orchestration.md`](plans/tool_orchestration.md). This is the foundation — an isolated LLM execution of any skill. Enables one-shot skill usage, external skill testing, and sandboxing.
|
||||
|
||||
**Enables:** `/skill_run cheap "how many files are in the directory"`
|
||||
|
||||
### Layer 2: Slash Commands
|
||||
Also in [`tool_orchestration.md`](plans/tool_orchestration.md). Direct tool execution via `/tool_name args`. Required for `/mode` and `/skill_run` as admin commands.
|
||||
|
||||
**Enables:** `/skill_run`, `/mode`, `/help`
|
||||
|
||||
### Layer 3: Modes
|
||||
Mode skills with `["mode", "name"]` tags. `/mode` slash command to switch. Runtime tracks active mode and adjusts context composition.
|
||||
|
||||
**Enables:** `/mode architect`, `/mode cheap`, persistent mode switching
|
||||
|
||||
### Layer 4: Hardened Skills
|
||||
Deterministic step executor for skills that don't need LLM reasoning. A mode could include hardened skills as tools.
|
||||
|
||||
**Enables:** Skills that execute as pure tool sequences — zero LLM cost
|
||||
|
||||
---
|
||||
|
||||
## Recommendation
|
||||
|
||||
Implement in this order:
|
||||
|
||||
1. **`skill_run`** (sub-invocation) — the foundation. Already designed. Enables one-shot skill execution with isolated context, per-skill model, and sandboxing.
|
||||
|
||||
2. **Slash commands** (`/skill_run`, `/help`) — admin direct invocation. Required for the mode UX.
|
||||
|
||||
3. **Modes** (`/mode name`) — skill packages that reconfigure the agent's context. Builds on `skill_run` for one-shot mode usage and slash commands for persistent switching.
|
||||
|
||||
4. **Hardened skill execution** — deterministic tool sequences. The ultimate "skill as tool" pattern with zero LLM cost.
|
||||
307
plans/skills_edit_page.md
Normal file
307
plans/skills_edit_page.md
Normal file
@@ -0,0 +1,307 @@
|
||||
# Skills Editor Page — `skills-edit.html`
|
||||
|
||||
## Overview
|
||||
|
||||
A standalone web page in `~/lt/client-ndk/www/` for editing Didactyl agent skills. Built on top of [`template.html`](../../client-ndk/www/template.html) — all existing template functionality (auth, sidenav, hamburger, relay status, footer, theme toggle, logout) remains intact.
|
||||
|
||||
The logged-in user IS the agent. The page uses Nostr subscriptions via the NDK worker to fetch skills and the adoption list, and publishes events via `publishEvent()` to save/adopt/remove skills.
|
||||
|
||||
---
|
||||
|
||||
## Data Model
|
||||
|
||||
### Nostr Event Kinds
|
||||
|
||||
| Kind | Purpose | Replaceable? |
|
||||
|------|---------|-------------|
|
||||
| `31123` | Public skill definition | Yes, by d-tag |
|
||||
| `31124` | Private skill definition (NIP-44 encrypted content) | Yes, by d-tag |
|
||||
| `10123` | Skill adoption list | Yes, single per pubkey |
|
||||
|
||||
### Skill Event Structure
|
||||
|
||||
```
|
||||
content: markdown template with {{variables}} (plain authored instructions; runtime handles role packaging)
|
||||
tags:
|
||||
[d, slug]
|
||||
[description, human-readable description]
|
||||
[trigger, dm|cron|nostr-subscription|webhook|chain] (optional)
|
||||
[filter, type-specific filter JSON] (optional)
|
||||
[llm, fallback chain string] (optional)
|
||||
[temperature, number] (optional)
|
||||
[max_tokens, number] (optional)
|
||||
[seed, number] (optional)
|
||||
[requires_tool, tool_name] (0..N)
|
||||
[requires_skill, skill_d_tag] (0..N)
|
||||
[optional_tool, tool_name] (0..N)
|
||||
```
|
||||
|
||||
### Adoption List (kind 10123)
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 10123,
|
||||
"tags": [
|
||||
["a", "31123:<pubkey>:skill-slug"],
|
||||
["a", "31124:<pubkey>:private-skill-slug"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Page Layout
|
||||
|
||||
Three-column layout filling the body area between header and footer:
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────────┐
|
||||
│ HEADER [hamburger] Skills Editor [avatar]│
|
||||
├──────────────┬──────────────────────────────────┬───────────────────┤
|
||||
│ │ │ │
|
||||
│ SKILLS │ SKILL EDITOR │ TOOLS │
|
||||
│ LIST │ │ │
|
||||
│ │ [slug] [description] │ nostr_post │
|
||||
│ ┌────────┐ │ [trigger] [filter] │ nostr_query │
|
||||
│ │ search │ │ [llm] [temp] [tokens] │ nostr_dm_send │
|
||||
│ └────────┘ │ │ local_shell_exec │
|
||||
│ │ ┌──────────────────────────────┐ │ memory_save │
|
||||
│ My|Pub|Adpt │ │ │ │ memory_recall │
|
||||
│ │ │ Large textarea with │ │ skill_create │
|
||||
│ skill-1 ★ │ │ syntax highlighting for │ │ ... │
|
||||
│ skill-2 │ │ {{variables}} and tool names │ │ │
|
||||
│ skill-3 ★ │ │ │ │ Double-click to │
|
||||
│ skill-4 │ │ │ │ add as │
|
||||
│ ... │ │ │ │ requires_tool │
|
||||
│ │ └──────────────────────────────┘ │ │
|
||||
│ ────────── │ │ │
|
||||
│ ADOPTED │ [Save] [Save Private] [New] │ │
|
||||
│ identity ↕ │ [Adopt] [Remove from adopted] │ │
|
||||
│ chat ↕ │ │ │
|
||||
│ monitor ↕ │ │ │
|
||||
│ │ │ │
|
||||
├──────────────┴──────────────────────────────────┴───────────────────┤
|
||||
│ FOOTER [relay status] [status] [info] │
|
||||
└─────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
### Left Column — Skills List (~20% width)
|
||||
|
||||
- **Search input** at top to filter skills by slug/description
|
||||
- **Filter tabs**: My | Public | Adopted
|
||||
- **My**: skills authored by the current pubkey (kind 31123 + 31124)
|
||||
- **Public**: public skills from anyone (kind 31123 only, no author filter) — for discovery and copying
|
||||
- **Adopted**: skills currently in the kind 10123 adoption list
|
||||
- **Scrollable skill list**: each item shows slug, description snippet, author name/short-pubkey, ★ if adopted
|
||||
- Clicking a skill loads it into the editor
|
||||
- **Copy/Fork button**: when viewing a public skill from another author, a "Copy to My Skills" button creates a new skill under the current pubkey with the same content (new d-tag to avoid collision)
|
||||
- **Adopted Skills section** below the list:
|
||||
- Shows current adoption list entries in order
|
||||
- Drag-to-reorder support (or up/down buttons)
|
||||
- Visual indicator of adoption order
|
||||
|
||||
### Center Column — Skill Editor (~60% width)
|
||||
|
||||
- **Metadata row**: slug (d-tag), description inputs
|
||||
- **Trigger row**: trigger type dropdown, filter input
|
||||
- **Execution params row**: llm input, temperature, max_tokens, seed
|
||||
- **Requirements display**: shows current requires_tool, requires_skill, optional_tool tags as removable chips/badges
|
||||
- **Large textarea** for skill content (markdown template)
|
||||
- Syntax highlighting overlay for `{{variable_names}}` in accent color
|
||||
- Tool name references highlighted when they match known tools
|
||||
- **Action buttons**:
|
||||
- Save (publish as kind 31123)
|
||||
- Save Private (publish as kind 31124 with NIP-44 encryption)
|
||||
- New Skill (clear editor)
|
||||
- Adopt (add to kind 10123 list)
|
||||
- Remove from Adopted (remove from kind 10123 list)
|
||||
- Delete Skill (kind 5 deletion event)
|
||||
|
||||
### Right Column — Tools List (~20% width)
|
||||
|
||||
- **Hardcoded list** of all Didactyl tools from TOOLS.md
|
||||
- Each tool shows name and brief description
|
||||
- **Double-click** a tool to add it as a `requires_tool` tag on the current skill
|
||||
- Visual indicator if tool is already required by current skill
|
||||
- Search/filter input at top
|
||||
|
||||
---
|
||||
|
||||
## Syntax Highlighting Approach
|
||||
|
||||
Use a transparent overlay `<div>` positioned exactly over the `<textarea>`. The textarea has transparent text color; the overlay div renders the same text with highlighted spans. Both scroll together.
|
||||
|
||||
Highlighted elements:
|
||||
- `{{variable_name}}` — accent color (e.g., `var(--accent-color)`)
|
||||
- Tool names (when matching known tools) — distinct highlight color
|
||||
|
||||
---
|
||||
|
||||
## Nostr Subscriptions
|
||||
|
||||
### On page load (after auth):
|
||||
|
||||
1. **My skills subscription**: `{ kinds: [31123, 31124], authors: [currentPubkey], limit: 200 }` — fetch agent's own skills (public + private)
|
||||
2. **Public skills subscription** (when Public filter active): `{ kinds: [31123], limit: 200 }` — fetch public skills from anyone for discovery/copying
|
||||
3. **Adoption list subscription**: `{ kinds: [10123], authors: [currentPubkey], limit: 1 }` — fetch current adoption list
|
||||
|
||||
The Public subscription is activated on demand when the user switches to the Public tab, to avoid fetching large amounts of data unnecessarily. My skills and adoption list are always loaded.
|
||||
|
||||
### Event handling:
|
||||
|
||||
- `ndkEvent` listener processes incoming skill events and adoption list events
|
||||
- Skills are parsed and stored in a local array, keyed by `pubkey:d-tag`
|
||||
- Adoption list tags are parsed to determine which skills are adopted and their order
|
||||
|
||||
---
|
||||
|
||||
## Skill Publishing
|
||||
|
||||
### Save Public Skill (kind 31123)
|
||||
|
||||
```javascript
|
||||
const event = {
|
||||
kind: 31123,
|
||||
content: editorContent, // raw markdown template
|
||||
tags: [
|
||||
[d, slug],
|
||||
[description, descriptionText],
|
||||
// trigger tags if set
|
||||
// execution param tags
|
||||
// requires_tool tags
|
||||
// requires_skill tags
|
||||
// optional_tool tags
|
||||
],
|
||||
created_at: Math.floor(Date.now() / 1000)
|
||||
};
|
||||
await publishEvent(event);
|
||||
```
|
||||
|
||||
### Save Private Skill (kind 31124)
|
||||
|
||||
Same structure but content is NIP-44 encrypted. The `d` tag stays in plaintext; other metadata moves into the encrypted payload per SKILLS.md spec.
|
||||
|
||||
### Update Adoption List (kind 10123)
|
||||
|
||||
```javascript
|
||||
const event = {
|
||||
kind: 10123,
|
||||
content: '',
|
||||
tags: adoptedSkillAddresses.map(addr => [a, addr]),
|
||||
created_at: Math.floor(Date.now() / 1000)
|
||||
};
|
||||
await publishEvent(event);
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Hardcoded Tools List
|
||||
|
||||
Extracted from TOOLS.md — all tool names with descriptions:
|
||||
|
||||
```javascript
|
||||
const DIDACTYL_TOOLS = [
|
||||
{ name: 'nostr_post', description: 'Publish a Nostr event to connected relays' },
|
||||
{ name: 'nostr_delete', description: 'Request deletion of events - NIP-09 kind 5' },
|
||||
{ name: 'nostr_react', description: 'React to a Nostr event - NIP-25 kind 7' },
|
||||
{ name: 'nostr_query', description: 'Query events from relays using a Nostr filter' },
|
||||
{ name: 'nostr_my_events', description: 'Query recent events authored by this agent' },
|
||||
{ name: 'nostr_dm_send', description: 'Send a NIP-04 encrypted DM' },
|
||||
{ name: 'nostr_dm_send_nip17', description: 'Send a private DM using NIP-17 gift wrap' },
|
||||
{ name: 'nostr_profile_get', description: 'Look up a Nostr profile by pubkey' },
|
||||
{ name: 'nostr_nip05_lookup', description: 'Look up or verify a NIP-05 identifier' },
|
||||
{ name: 'nostr_encode', description: 'Encode a Nostr entity into nostr: URI' },
|
||||
{ name: 'nostr_decode', description: 'Decode a Nostr bech32/nostr: URI' },
|
||||
{ name: 'nostr_relay_status', description: 'Get relay connection status and statistics' },
|
||||
{ name: 'nostr_relay_info', description: 'Fetch NIP-11 relay information document' },
|
||||
{ name: 'nostr_subscription_status', description: 'List managed runtime Nostr subscriptions' },
|
||||
{ name: 'nostr_subscription_set', description: 'Update a managed runtime subscription' },
|
||||
{ name: 'nostr_encrypt', description: 'Encrypt plaintext using NIP-44' },
|
||||
{ name: 'nostr_decrypt', description: 'Decrypt NIP-44 ciphertext' },
|
||||
{ name: 'nostr_list_manage', description: 'Add/remove tags in replaceable list events' },
|
||||
{ name: 'nostr_block_list', description: 'View blocked pubkeys/events/hashtags' },
|
||||
{ name: 'nostr_block_edit', description: 'Add or remove blocked tuples in kind-10000' },
|
||||
{ name: 'nostr_pubkey', description: 'Return agent pubkey in hex' },
|
||||
{ name: 'nostr_npub', description: 'Return agent pubkey as npub bech32' },
|
||||
{ name: 'agent_identity', description: 'Build agent identity context block' },
|
||||
{ name: 'admin_identity', description: 'Build admin identity context block' },
|
||||
{ name: 'nostr_admin_profile', description: 'Build admin profile context block' },
|
||||
{ name: 'nostr_admin_contacts', description: 'Build admin contacts context block' },
|
||||
{ name: 'nostr_admin_relays', description: 'Build admin relay context block' },
|
||||
{ name: 'nostr_admin_notes', description: 'Build admin notes context block' },
|
||||
{ name: 'nostr_agent_profile', description: 'Build agent profile context block' },
|
||||
{ name: 'nostr_agent_contacts', description: 'Build agent contacts context block' },
|
||||
{ name: 'nostr_agent_relays', description: 'Build agent relay context block' },
|
||||
{ name: 'nostr_agent_notes', description: 'Build agent notes context block' },
|
||||
{ name: 'skill_create', description: 'Create or update a skill definition' },
|
||||
{ name: 'skill_edit', description: 'Edit an existing self skill by d tag' },
|
||||
{ name: 'skill_list', description: 'List available skills with adoption status' },
|
||||
{ name: 'skill_adopt', description: 'Adopt a skill into kind 10123 list' },
|
||||
{ name: 'skill_remove', description: 'Remove a skill from kind 10123 list' },
|
||||
{ name: 'skill_search', description: 'Search public skills by query/author' },
|
||||
{ name: 'trigger_list', description: 'List active triggered skills and status' },
|
||||
{ name: 'task_list', description: 'Build current task list context block' },
|
||||
{ name: 'task_manage', description: 'Manage agent task memory on Nostr' },
|
||||
{ name: 'memory_save', description: 'Prepend entry to encrypted agent memory' },
|
||||
{ name: 'memory_recall', description: 'Recall encrypted agent memory' },
|
||||
{ name: 'model_get', description: 'Get current LLM runtime configuration' },
|
||||
{ name: 'model_set', description: 'Update active LLM configuration' },
|
||||
{ name: 'model_list', description: 'List available model IDs' },
|
||||
{ name: 'config_store', description: 'Encrypt and publish agent config' },
|
||||
{ name: 'config_recall', description: 'Fetch and decrypt agent config' },
|
||||
{ name: 'agent_version', description: 'Return current Didactyl version' },
|
||||
{ name: 'local_http_fetch', description: 'Fetch HTTP/S resources' },
|
||||
{ name: 'local_shell_exec', description: 'Execute a shell command' },
|
||||
{ name: 'local_file_read', description: 'Read a local file as text' },
|
||||
{ name: 'local_file_write', description: 'Write text content to a local file' },
|
||||
{ name: 'tool_list', description: 'List available tools with schemas' },
|
||||
{ name: 'cashu_wallet_balance', description: 'Return wallet balances by mint' },
|
||||
{ name: 'cashu_wallet_info', description: 'Fetch mint info' },
|
||||
{ name: 'cashu_wallet_mint_quote', description: 'Request a mint quote' },
|
||||
{ name: 'cashu_wallet_mint_check', description: 'Check mint quote status' },
|
||||
{ name: 'cashu_wallet_mint_claim', description: 'Claim minted proofs' },
|
||||
{ name: 'cashu_wallet_melt_quote', description: 'Request a melt quote' },
|
||||
{ name: 'cashu_wallet_melt_pay', description: 'Pay a melt quote' },
|
||||
{ name: 'cashu_wallet_check_proofs', description: 'Check proof states' },
|
||||
{ name: 'cashu_wallet_receive_token', description: 'Receive an ecash token' },
|
||||
{ name: 'cashu_wallet_send_token', description: 'Create outbound ecash token' },
|
||||
{ name: 'cashu_wallet_mints_set', description: 'Set wallet/public mints' },
|
||||
{ name: 'blossom_upload', description: 'Upload a file to Blossom server' },
|
||||
{ name: 'blossom_download', description: 'Download a Blossom blob' },
|
||||
{ name: 'blossom_head', description: 'Fetch Blossom blob metadata' },
|
||||
{ name: 'blossom_delete', description: 'Delete a Blossom blob' },
|
||||
{ name: 'blossom_list', description: 'List Blossom blobs for a pubkey' },
|
||||
{ name: 'nostr_post_readme', description: 'Publish README.md as kind 30023' },
|
||||
{ name: 'nostr_file_md_to_longform_post', description: 'Publish markdown file as kind 30023' },
|
||||
];
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Implementation Sequence
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A[Copy template.html to skills-edit.html] --> B[Add page-specific CSS for 3-column layout]
|
||||
B --> C[Build HTML structure: left/center/right columns]
|
||||
C --> D[Implement Nostr subscriptions for skills + adoption list]
|
||||
D --> E[Build skills list rendering with search and filter]
|
||||
E --> F[Build skill editor form with metadata fields]
|
||||
F --> G[Build large textarea with syntax highlighting overlay]
|
||||
G --> H[Build tools list column with double-click to add]
|
||||
H --> I[Implement skill save/publish for kind 31123]
|
||||
I --> J[Implement private skill save for kind 31124]
|
||||
J --> K[Implement adoption list management - adopt/remove/reorder]
|
||||
K --> L[Implement skill deletion via kind 5]
|
||||
L --> M[Wire up all event listeners and UI interactions]
|
||||
M --> N[Test and refine]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Files Modified
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `~/lt/client-ndk/www/skills-edit.html` | **NEW** — the entire skill editor page |
|
||||
| `~/lt/client-ndk/www/index.html` | Add navigation entry for skills-edit page (optional) |
|
||||
42
restart_anvil_local.sh
Executable file
42
restart_anvil_local.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
SERVICE_NAME="anvil.service"
|
||||
SERVICE_SRC="$SCRIPT_DIR/anvil.service"
|
||||
SERVICE_DST="/etc/systemd/system/$SERVICE_NAME"
|
||||
|
||||
if ! command -v systemctl >/dev/null 2>&1; then
|
||||
echo "ERROR: systemctl is not available on this system"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$EUID" -ne 0 ] && ! command -v sudo >/dev/null 2>&1; then
|
||||
echo "ERROR: sudo is required when not running as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=========================================="
|
||||
echo " RESTART ANVIL LOCAL"
|
||||
echo "=========================================="
|
||||
|
||||
echo "Building debug static binary..."
|
||||
"$SCRIPT_DIR/build_static.sh" --debug
|
||||
|
||||
echo "Syncing service file to $SERVICE_DST..."
|
||||
if [ "$EUID" -eq 0 ]; then
|
||||
install -m 0644 "$SERVICE_SRC" "$SERVICE_DST"
|
||||
systemctl daemon-reload
|
||||
systemctl restart "$SERVICE_NAME"
|
||||
systemctl --no-pager --full status "$SERVICE_NAME" || true
|
||||
else
|
||||
sudo install -m 0644 "$SERVICE_SRC" "$SERVICE_DST"
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl restart "$SERVICE_NAME"
|
||||
sudo systemctl --no-pager --full status "$SERVICE_NAME" || true
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Anvil restarted."
|
||||
echo "Context logs: /home/user/anvil/context.logs"
|
||||
301
src/agent.c
301
src/agent.c
@@ -10,6 +10,8 @@
|
||||
#include <pthread.h>
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "llm.h"
|
||||
#include "nostr_handler.h"
|
||||
@@ -19,6 +21,8 @@
|
||||
#include "cjson/cJSON.h"
|
||||
#include "debug.h"
|
||||
#include "../../nostr_core_lib/nostr_core/nostr_core.h"
|
||||
#include "context_format.h"
|
||||
#include "context_roles.h"
|
||||
|
||||
static didactyl_config_t* g_cfg = NULL;
|
||||
static tools_context_t g_tools_ctx;
|
||||
@@ -248,8 +252,6 @@ static int append_tool_result_message(cJSON* messages, const char* tool_call_id,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void append_context_log(const char* sender_pubkey_hex, const char* phase, const char* context_payload);
|
||||
|
||||
static char* local_json_error(const char* msg) {
|
||||
cJSON* out = cJSON_CreateObject();
|
||||
if (!out) return NULL;
|
||||
@@ -833,7 +835,6 @@ static int handle_slash_command(const char* sender_pubkey_hex, const char* messa
|
||||
message,
|
||||
result_json ? result_json : "",
|
||||
dm_payload ? dm_payload : "");
|
||||
append_context_log(sender_pubkey_hex, "direct_tool_exec", log_payload);
|
||||
free(log_payload);
|
||||
}
|
||||
|
||||
@@ -948,128 +949,6 @@ static __attribute__((unused)) void template_emit_hook(const char* section_name,
|
||||
set_context_part_name(message_index, section_name ? section_name : "context_part");
|
||||
}
|
||||
|
||||
static void append_context_log(const char* sender_pubkey_hex, const char* phase, const char* context_payload) {
|
||||
if (!phase) {
|
||||
return;
|
||||
}
|
||||
if (strcmp(phase, "llm_chat_with_tools_messages") != 0 &&
|
||||
strcmp(phase, "llm_trigger_with_tools_messages") != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
time_t now = time(NULL);
|
||||
struct tm tm_info;
|
||||
localtime_r(&now, &tm_info);
|
||||
char timestamp[32] = {0};
|
||||
strftime(timestamp, sizeof(timestamp), "%Y-%m-%d %H:%M:%S", &tm_info);
|
||||
|
||||
const char* safe_phase = phase ? phase : "unknown";
|
||||
const char* safe_sender = sender_pubkey_hex ? sender_pubkey_hex : "unknown";
|
||||
const char* safe_payload = context_payload ? context_payload : "";
|
||||
size_t context_bytes = context_payload ? strlen(context_payload) : 0U;
|
||||
size_t approx_tokens = context_bytes / 4U;
|
||||
|
||||
llm_config_t active_llm_cfg = {0};
|
||||
const char* safe_model = (g_cfg && g_cfg->llm.model[0] != '\0') ? g_cfg->llm.model : "unknown";
|
||||
if (llm_get_config(&active_llm_cfg) == 0 && active_llm_cfg.model[0] != '\0') {
|
||||
safe_model = active_llm_cfg.model;
|
||||
}
|
||||
|
||||
int entry_len = snprintf(NULL,
|
||||
0,
|
||||
"```text\n"
|
||||
"Context Log - seen by model\n"
|
||||
"timestamp=%s\n"
|
||||
"phase=%s\n"
|
||||
"sender=%s\n"
|
||||
"model=%s\n"
|
||||
"context_bytes=%zu\n"
|
||||
"approx_tokens=%zu\n"
|
||||
"```\n\n"
|
||||
"%s\n\n---\n\n",
|
||||
timestamp,
|
||||
safe_phase,
|
||||
safe_sender,
|
||||
safe_model,
|
||||
context_bytes,
|
||||
approx_tokens,
|
||||
safe_payload);
|
||||
if (entry_len < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
char* entry = (char*)malloc((size_t)entry_len + 1U);
|
||||
if (!entry) {
|
||||
return;
|
||||
}
|
||||
|
||||
snprintf(entry,
|
||||
(size_t)entry_len + 1U,
|
||||
"```text\n"
|
||||
"Context Log - seen by model\n"
|
||||
"timestamp=%s\n"
|
||||
"phase=%s\n"
|
||||
"sender=%s\n"
|
||||
"model=%s\n"
|
||||
"context_bytes=%zu\n"
|
||||
"approx_tokens=%zu\n"
|
||||
"```\n\n"
|
||||
"%s\n\n---\n\n",
|
||||
timestamp,
|
||||
safe_phase,
|
||||
safe_sender,
|
||||
safe_model,
|
||||
context_bytes,
|
||||
approx_tokens,
|
||||
safe_payload);
|
||||
|
||||
char* old_data = NULL;
|
||||
size_t old_len = 0;
|
||||
|
||||
FILE* in = fopen("context.log.md", "rb");
|
||||
if (in) {
|
||||
if (fseek(in, 0, SEEK_END) == 0) {
|
||||
long sz = ftell(in);
|
||||
if (sz > 0 && fseek(in, 0, SEEK_SET) == 0) {
|
||||
old_len = (size_t)sz;
|
||||
old_data = (char*)malloc(old_len);
|
||||
if (old_data) {
|
||||
size_t n = fread(old_data, 1, old_len, in);
|
||||
if (n != old_len) {
|
||||
free(old_data);
|
||||
old_data = NULL;
|
||||
old_len = 0;
|
||||
}
|
||||
} else {
|
||||
old_len = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
fclose(in);
|
||||
}
|
||||
|
||||
FILE* out = fopen("context.log.md", "wb");
|
||||
if (!out) {
|
||||
free(old_data);
|
||||
free(entry);
|
||||
return;
|
||||
}
|
||||
|
||||
(void)fwrite(entry, 1, (size_t)entry_len, out);
|
||||
if (old_data && old_len > 0) {
|
||||
(void)fwrite(old_data, 1, old_len, out);
|
||||
}
|
||||
|
||||
fclose(out);
|
||||
free(old_data);
|
||||
free(entry);
|
||||
}
|
||||
|
||||
void agent_append_context_log(const char* sender_pubkey_hex, const char* phase, const char* context_payload) {
|
||||
append_context_log(sender_pubkey_hex, phase, context_payload);
|
||||
}
|
||||
|
||||
|
||||
static __attribute__((unused)) char* build_sender_verification_text(didactyl_sender_tier_t sender_tier) {
|
||||
if (sender_tier == DIDACTYL_SENDER_ADMIN) {
|
||||
return strdup("This message has been cryptographically verified as coming from your administrator.");
|
||||
@@ -1273,6 +1152,28 @@ static char* resolve_skill_references_local(const char* input) {
|
||||
return prompt_template_resolve_inline_variables(input ? input : "", &g_tools_ctx);
|
||||
}
|
||||
|
||||
static char* strip_system_role_prefix_local(const char* input) {
|
||||
const char* s = input ? input : "";
|
||||
|
||||
if (strncmp(s, "system:", 7) != 0) {
|
||||
return strdup(s);
|
||||
}
|
||||
|
||||
const char* p = s + 7;
|
||||
while (*p == ' ' || *p == '\t') {
|
||||
p++;
|
||||
}
|
||||
|
||||
if (*p == '\r') {
|
||||
p++;
|
||||
}
|
||||
if (*p == '\n') {
|
||||
p++;
|
||||
}
|
||||
|
||||
return strdup(p);
|
||||
}
|
||||
|
||||
static char* build_context_from_triggers(trigger_type_t trigger_type,
|
||||
const char* trigger_filter,
|
||||
cJSON* trigger_event,
|
||||
@@ -1286,14 +1187,34 @@ static char* build_context_from_triggers(trigger_type_t trigger_type,
|
||||
|
||||
(void)refresh_adopted_skills_cache_if_needed();
|
||||
|
||||
char* title = context_build_title(&g_tools_ctx);
|
||||
size_t cap = 4096;
|
||||
size_t used = 0;
|
||||
char* out = (char*)malloc(cap);
|
||||
if (!out) {
|
||||
free(title);
|
||||
return NULL;
|
||||
}
|
||||
out[0] = '\0';
|
||||
|
||||
if (title) {
|
||||
size_t title_len = strlen(title);
|
||||
if (title_len + 1U > cap) {
|
||||
cap = title_len + 1024;
|
||||
char* grown = (char*)realloc(out, cap);
|
||||
if (!grown) {
|
||||
free(title);
|
||||
free(out);
|
||||
return NULL;
|
||||
}
|
||||
out = grown;
|
||||
}
|
||||
memcpy(out, title, title_len);
|
||||
used = title_len;
|
||||
out[used] = '\0';
|
||||
free(title);
|
||||
}
|
||||
|
||||
int matched = 0;
|
||||
|
||||
didactyl_sender_tier_t tier = DIDACTYL_SENDER_STRANGER;
|
||||
@@ -1328,13 +1249,20 @@ static char* build_context_from_triggers(trigger_type_t trigger_type,
|
||||
for (int i = 0; i < matched_skill_count; i++) {
|
||||
char* expanded = resolve_skill_references_local(matched_skill_contents[i] ? matched_skill_contents[i] : "");
|
||||
const char* skill_text = expanded ? expanded : (matched_skill_contents[i] ? matched_skill_contents[i] : "");
|
||||
char* normalized = strip_system_role_prefix_local(skill_text);
|
||||
const char* normalized_text = normalized ? normalized : skill_text;
|
||||
|
||||
size_t need = strlen("\n\n---\n\n") + strlen(skill_text) + 1U;
|
||||
char* bumped = context_bump_headings(normalized_text);
|
||||
const char* final_text = bumped ? bumped : normalized_text;
|
||||
|
||||
size_t need = strlen("\n\n---\n\n") + strlen(final_text) + 1U;
|
||||
if (used + need >= cap) {
|
||||
size_t next = cap;
|
||||
while (used + need >= next) next *= 2U;
|
||||
char* grown = (char*)realloc(out, next);
|
||||
if (!grown) {
|
||||
free(bumped);
|
||||
free(normalized);
|
||||
free(expanded);
|
||||
for (int j = i; j < matched_skill_count; j++) {
|
||||
free(matched_skill_contents[j]);
|
||||
@@ -1350,19 +1278,24 @@ static char* build_context_from_triggers(trigger_type_t trigger_type,
|
||||
memcpy(out + used, "\n\n---\n\n", 7);
|
||||
used += 7;
|
||||
}
|
||||
size_t sl = strlen(skill_text);
|
||||
memcpy(out + used, skill_text, sl);
|
||||
size_t sl = strlen(final_text);
|
||||
memcpy(out + used, final_text, sl);
|
||||
used += sl;
|
||||
out[used] = '\0';
|
||||
matched++;
|
||||
|
||||
free(bumped);
|
||||
free(normalized);
|
||||
free(expanded);
|
||||
free(matched_skill_contents[i]);
|
||||
}
|
||||
|
||||
if (matched == 0) {
|
||||
const char* fallback = "You are an AI agent. Respond to the message.";
|
||||
size_t need = strlen(fallback) + 1U;
|
||||
const char* fallback = "## Default Instructions\n\nYou are an AI agent. Respond to the message.";
|
||||
const char* sep = (used > 0) ? "\n\n---\n\n" : "";
|
||||
size_t sep_len = strlen(sep);
|
||||
size_t fb_len = strlen(fallback);
|
||||
size_t need = used + sep_len + fb_len + 1U;
|
||||
if (need > cap) {
|
||||
char* grown = (char*)realloc(out, need);
|
||||
if (!grown) {
|
||||
@@ -1372,8 +1305,13 @@ static char* build_context_from_triggers(trigger_type_t trigger_type,
|
||||
out = grown;
|
||||
cap = need;
|
||||
}
|
||||
memcpy(out, fallback, need);
|
||||
used = need - 1U;
|
||||
if (sep_len > 0) {
|
||||
memcpy(out + used, sep, sep_len);
|
||||
used += sep_len;
|
||||
}
|
||||
memcpy(out + used, fallback, fb_len);
|
||||
used += fb_len;
|
||||
out[used] = '\0';
|
||||
}
|
||||
|
||||
return out;
|
||||
@@ -1393,6 +1331,12 @@ static void clear_adopted_skills_cache_locked(void) {
|
||||
g_adopted_skills_count = 0;
|
||||
}
|
||||
|
||||
void agent_invalidate_adopted_skills_cache(void) {
|
||||
pthread_mutex_lock(&g_adopted_skills_mutex);
|
||||
g_adopted_skills_last_refresh_at = 0;
|
||||
pthread_mutex_unlock(&g_adopted_skills_mutex);
|
||||
}
|
||||
|
||||
static int refresh_adopted_skills_cache_if_needed(void) {
|
||||
if (!g_cfg) {
|
||||
return -1;
|
||||
@@ -1809,40 +1753,38 @@ void agent_on_trigger(const char* skill_d_tag,
|
||||
composed_context = strdup("You are an AI agent. Respond to the trigger event.");
|
||||
}
|
||||
|
||||
size_t system_len = strlen(composed_context ? composed_context : "") + 2 + strlen(trigger_prefix) + strlen(skill_d_tag) +
|
||||
size_t full_len = strlen(composed_context ? composed_context : "") + 2 + strlen(trigger_prefix) + strlen(skill_d_tag) +
|
||||
strlen("\nRelay: ") + strlen(relay) + strlen("\n\nSkill instructions:\n") +
|
||||
strlen(skill_content) + 1U;
|
||||
char* system_prompt = (char*)malloc(system_len);
|
||||
if (!system_prompt) {
|
||||
strlen(skill_content) + strlen("\n\nuser:\nTriggering event JSON:\n") + strlen(event_json) + 1U;
|
||||
char* full_markdown = (char*)malloc(full_len);
|
||||
if (!full_markdown) {
|
||||
free(composed_context);
|
||||
free(event_json);
|
||||
return;
|
||||
}
|
||||
|
||||
snprintf(system_prompt,
|
||||
system_len,
|
||||
"%s\n\n%s%s\nRelay: %s\n\nSkill instructions:\n%s",
|
||||
snprintf(full_markdown,
|
||||
full_len,
|
||||
"%s\n\n%s%s\nRelay: %s\n\nSkill instructions:\n%s\n\nuser:\nTriggering event JSON:\n%s",
|
||||
composed_context ? composed_context : "",
|
||||
trigger_prefix,
|
||||
skill_d_tag,
|
||||
relay,
|
||||
skill_content);
|
||||
skill_content,
|
||||
event_json);
|
||||
free(composed_context);
|
||||
|
||||
size_t user_len = strlen("Triggering event JSON:\n") + strlen(event_json) + 1U;
|
||||
char* user_prompt = (char*)malloc(user_len);
|
||||
if (!user_prompt) {
|
||||
free(system_prompt);
|
||||
context_roles_t roles;
|
||||
if (context_roles_split(full_markdown, &roles) != 0) {
|
||||
free(full_markdown);
|
||||
free(event_json);
|
||||
return;
|
||||
}
|
||||
|
||||
snprintf(user_prompt, user_len, "Triggering event JSON:\n%s", event_json);
|
||||
|
||||
char* tools_json = tools_build_openai_schema_json(&g_tools_ctx);
|
||||
if (!tools_json) {
|
||||
free(system_prompt);
|
||||
free(user_prompt);
|
||||
context_roles_free(&roles);
|
||||
free(full_markdown);
|
||||
g_tools_ctx.template_trigger_event_json = prev_trigger_event_json;
|
||||
free(event_json);
|
||||
(void)nostr_handler_send_dm_auto(g_cfg->admin.pubkey, "Triggered skill execution failed: tools unavailable.");
|
||||
@@ -1851,21 +1793,20 @@ void agent_on_trigger(const char* skill_d_tag,
|
||||
|
||||
cJSON* messages = cJSON_CreateArray();
|
||||
if (!messages || !cJSON_IsArray(messages) ||
|
||||
append_simple_message(messages, "system", system_prompt) != 0 ||
|
||||
append_simple_message(messages, "user", user_prompt) != 0) {
|
||||
append_simple_message(messages, "system", roles.system_content) != 0 ||
|
||||
append_simple_message(messages, "user", roles.user_content) != 0) {
|
||||
cJSON_Delete(messages);
|
||||
free(tools_json);
|
||||
free(system_prompt);
|
||||
free(user_prompt);
|
||||
context_roles_free(&roles);
|
||||
free(full_markdown);
|
||||
g_tools_ctx.template_trigger_event_json = prev_trigger_event_json;
|
||||
free(event_json);
|
||||
(void)nostr_handler_send_dm_auto(g_cfg->admin.pubkey, "Triggered skill execution failed: prompt initialization failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
append_context_log(g_cfg->admin.pubkey, "llm_trigger", user_prompt);
|
||||
free(system_prompt);
|
||||
free(user_prompt);
|
||||
context_roles_free(&roles);
|
||||
free(full_markdown);
|
||||
|
||||
int max_turns = g_cfg->tools.trigger_max_turns > 0
|
||||
? g_cfg->tools.trigger_max_turns
|
||||
@@ -1880,8 +1821,6 @@ void agent_on_trigger(const char* skill_d_tag,
|
||||
break;
|
||||
}
|
||||
|
||||
append_context_log(g_cfg->admin.pubkey, "llm_trigger_with_tools_messages", messages_json);
|
||||
|
||||
llm_response_t resp;
|
||||
int rc = llm_chat_with_tools_messages(messages_json, tools_json, "auto", &resp);
|
||||
free(messages_json);
|
||||
@@ -1981,7 +1920,10 @@ int agent_build_admin_messages_json(const char* current_user_message,
|
||||
(sender_tier == DIDACTYL_SENDER_WOT ? "wot" : "stranger"));
|
||||
cJSON_AddNumberToObject(dm_event, "created_at", (double)time(NULL));
|
||||
|
||||
const char* prev_current_user_message = g_tools_ctx.template_current_user_message;
|
||||
g_tools_ctx.template_current_user_message = current_user_message ? current_user_message : "";
|
||||
char* composed_context = build_context_from_triggers(TRIGGER_TYPE_DM, NULL, dm_event, "api");
|
||||
g_tools_ctx.template_current_user_message = prev_current_user_message;
|
||||
cJSON_Delete(dm_event);
|
||||
if (!composed_context) {
|
||||
composed_context = strdup("You are an AI agent. Respond to the message.");
|
||||
@@ -2049,7 +1991,6 @@ void agent_on_message(const char* sender_pubkey_hex,
|
||||
if (message[0] == '/') {
|
||||
if (!allow_tools) {
|
||||
const char* denied = "{\"success\":false,\"error\":\"slash commands are disabled for this sender tier\"}";
|
||||
append_context_log(sender_pubkey_hex, "direct_tool_exec", denied);
|
||||
(void)nostr_handler_send_dm_auto_with_role(sender_pubkey_hex,
|
||||
denied,
|
||||
DIDACTYL_DM_HISTORY_TOOL_RESPONSE);
|
||||
@@ -2072,36 +2013,36 @@ void agent_on_message(const char* sender_pubkey_hex,
|
||||
(tier == DIDACTYL_SENDER_WOT ? "wot" : "stranger"));
|
||||
cJSON_AddNumberToObject(dm_event, "created_at", (double)time(NULL));
|
||||
|
||||
const char* prev_current_user_message = g_tools_ctx.template_current_user_message;
|
||||
g_tools_ctx.template_current_user_message = message ? message : "";
|
||||
char* dm_context = build_context_from_triggers(TRIGGER_TYPE_DM, NULL, dm_event, "dm");
|
||||
g_tools_ctx.template_current_user_message = prev_current_user_message;
|
||||
cJSON_Delete(dm_event);
|
||||
if (!dm_context) {
|
||||
dm_context = strdup("You are an AI agent. Respond to the message.");
|
||||
}
|
||||
if (!dm_context) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!allow_tools) {
|
||||
const char* tier_prefix = (tier == DIDACTYL_SENDER_WOT)
|
||||
? "You are responding to a web-of-trust contact. Keep the response helpful and concise. Tool use is disabled for this tier."
|
||||
: "You are responding in chat-only mode. Tool use is disabled.";
|
||||
|
||||
size_t ctx_len = strlen(dm_context ? dm_context : "") + strlen("\n\n") + strlen(tier_prefix) + 1U;
|
||||
size_t ctx_len = strlen(dm_context) + strlen("\n\n") + strlen(tier_prefix) + 1U;
|
||||
char* system_for_chat = (char*)malloc(ctx_len);
|
||||
if (!system_for_chat) {
|
||||
free(dm_context);
|
||||
return;
|
||||
}
|
||||
|
||||
snprintf(system_for_chat, ctx_len, "%s\n\n%s", dm_context ? dm_context : "", tier_prefix);
|
||||
|
||||
size_t context_len = strlen("system:\n\nuser:\n") + strlen(system_for_chat) + strlen(message) + 1U;
|
||||
char* plain_context = (char*)malloc(context_len);
|
||||
if (plain_context) {
|
||||
snprintf(plain_context, context_len, "system:\n%s\n\nuser:\n%s", system_for_chat, message);
|
||||
append_context_log(sender_pubkey_hex, "llm_chat", plain_context);
|
||||
free(plain_context);
|
||||
}
|
||||
snprintf(system_for_chat, ctx_len, "%s\n\n%s", dm_context, tier_prefix);
|
||||
|
||||
char* response = llm_chat(system_for_chat, message);
|
||||
free(system_for_chat);
|
||||
free(dm_context);
|
||||
|
||||
if (!response) {
|
||||
const char* fallback = "I could not get a response from the LLM right now.";
|
||||
fprintf(stdout, "[didactyl] llm response unavailable, sending fallback\n");
|
||||
@@ -2114,19 +2055,19 @@ void agent_on_message(const char* sender_pubkey_hex,
|
||||
strlen(response) > 240 ? "..." : "");
|
||||
(void)nostr_handler_send_dm_auto(sender_pubkey_hex, response);
|
||||
free(response);
|
||||
free(dm_context);
|
||||
return;
|
||||
}
|
||||
|
||||
char* tools_json = tools_build_openai_schema_json(&g_tools_ctx);
|
||||
if (!tools_json) {
|
||||
free(dm_context);
|
||||
(void)nostr_handler_send_dm_auto(sender_pubkey_hex, "Tool schema generation failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
cJSON* messages = cJSON_CreateArray();
|
||||
if (!messages ||
|
||||
append_simple_message(messages, "system", dm_context ? dm_context : "You are an AI agent. Respond to the message.") != 0 ||
|
||||
append_simple_message(messages, "system", dm_context) != 0 ||
|
||||
append_simple_message(messages, "user", message) != 0) {
|
||||
cJSON_Delete(messages);
|
||||
free(tools_json);
|
||||
@@ -2140,7 +2081,7 @@ void agent_on_message(const char* sender_pubkey_hex,
|
||||
cJSON_AddNumberToObject(live_user_msg, "_ts", (double)time(NULL));
|
||||
}
|
||||
|
||||
int max_turns = g_cfg->tools.max_turns > 0 ? g_cfg->tools.max_turns : 20;
|
||||
int max_turns = g_cfg->tools.max_turns > 0 ? g_cfg->tools.max_turns : 40;
|
||||
int stall_repeat_threshold = g_cfg->tools.stall_repeat_threshold > 1 ? g_cfg->tools.stall_repeat_threshold : 3;
|
||||
uint64_t last_tool_fp = 0;
|
||||
int repeated_tool_turns = 0;
|
||||
@@ -2156,8 +2097,6 @@ void agent_on_message(const char* sender_pubkey_hex,
|
||||
break;
|
||||
}
|
||||
|
||||
append_context_log(sender_pubkey_hex, "llm_chat_with_tools_messages", messages_json);
|
||||
|
||||
llm_response_t resp;
|
||||
int rc = llm_chat_with_tools_messages(messages_json, tools_json, "auto", &resp);
|
||||
free(messages_json);
|
||||
@@ -2249,10 +2188,22 @@ void agent_on_message(const char* sender_pubkey_hex,
|
||||
if (!final_answer_owned) {
|
||||
final_answer_owned = strdup(exited_on_stall
|
||||
? "I stopped repeated tool calls after detecting a loop and could not produce a final summary."
|
||||
: "I hit my tool-use limit for this request.");
|
||||
: "I reached the tool-turn limit before getting a final response from the model.");
|
||||
}
|
||||
|
||||
const char* final_answer = final_answer_owned ? final_answer_owned : "I hit my tool-use limit for this request.";
|
||||
if (exhausted_on_max_turns) {
|
||||
const char* base = final_answer_owned ? final_answer_owned : "I reached the tool-turn limit before getting a final response from the model.";
|
||||
const char* suffix = "\n\nI have paused to avoid running forever. Reply with 'continue' and I will continue from the current context.";
|
||||
size_t need = strlen(base) + strlen(suffix) + 1U;
|
||||
char* with_prompt = (char*)malloc(need);
|
||||
if (with_prompt) {
|
||||
snprintf(with_prompt, need, "%s%s", base, suffix);
|
||||
free(final_answer_owned);
|
||||
final_answer_owned = with_prompt;
|
||||
}
|
||||
}
|
||||
|
||||
const char* final_answer = final_answer_owned ? final_answer_owned : "I reached the tool-turn limit before getting a final response from the model.";
|
||||
|
||||
if (exited_on_stall || exhausted_on_max_turns) {
|
||||
notify_admin_limit_diagnostic("dm_agent_loop",
|
||||
|
||||
@@ -23,7 +23,7 @@ int agent_build_admin_messages_json(const char* current_user_message,
|
||||
char** out_messages_json);
|
||||
tools_context_t* agent_tools_context(void);
|
||||
const char* agent_classify_message_part(cJSON* msg, int idx);
|
||||
void agent_append_context_log(const char* sender_pubkey_hex, const char* phase, const char* context_payload);
|
||||
void agent_invalidate_adopted_skills_cache(void);
|
||||
void agent_cleanup(void);
|
||||
|
||||
#endif
|
||||
224
src/config.c
224
src/config.c
@@ -294,7 +294,7 @@ static int parse_tools_config(cJSON* root, didactyl_config_t* config) {
|
||||
}
|
||||
|
||||
if (config->tools.max_turns < 1) {
|
||||
config->tools.max_turns = 8;
|
||||
config->tools.max_turns = 40;
|
||||
}
|
||||
if (config->tools.trigger_max_turns < 1) {
|
||||
config->tools.trigger_max_turns = config->tools.max_turns;
|
||||
@@ -496,6 +496,174 @@ static int parse_dm_protocol_config(cJSON* root, didactyl_config_t* config) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_llm_payload_object(cJSON* llm_obj, didactyl_config_t* config, int require_all_fields) {
|
||||
if (!llm_obj || !cJSON_IsObject(llm_obj) || !config) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (copy_json_string(llm_obj, "provider", config->llm.provider, sizeof(config->llm.provider), 0) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (copy_json_string(llm_obj, "api_key", config->llm.api_key, sizeof(config->llm.api_key), require_all_fields) != 0) {
|
||||
return -1;
|
||||
}
|
||||
if (copy_json_string(llm_obj, "model", config->llm.model, sizeof(config->llm.model), require_all_fields) != 0) {
|
||||
return -1;
|
||||
}
|
||||
if (copy_json_string(llm_obj, "base_url", config->llm.base_url, sizeof(config->llm.base_url), require_all_fields) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* max_tokens = cJSON_GetObjectItemCaseSensitive(llm_obj, "max_tokens");
|
||||
cJSON* temperature = cJSON_GetObjectItemCaseSensitive(llm_obj, "temperature");
|
||||
|
||||
if (max_tokens && cJSON_IsNumber(max_tokens)) {
|
||||
config->llm.max_tokens = (int)max_tokens->valuedouble;
|
||||
} else if (config->llm.max_tokens <= 0) {
|
||||
config->llm.max_tokens = 512;
|
||||
}
|
||||
|
||||
if (temperature && cJSON_IsNumber(temperature)) {
|
||||
config->llm.temperature = temperature->valuedouble;
|
||||
} else if (config->llm.temperature <= 0.0) {
|
||||
config->llm.temperature = 0.7;
|
||||
}
|
||||
|
||||
if (config->llm.provider[0] == '\0') {
|
||||
snprintf(config->llm.provider, sizeof(config->llm.provider), "%s", "openai");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_agent_payload_object(cJSON* agent_obj, didactyl_config_t* config) {
|
||||
if (!agent_obj || !cJSON_IsObject(agent_obj) || !config) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* admin_pubkey = cJSON_GetObjectItemCaseSensitive(agent_obj, "admin_pubkey");
|
||||
if (admin_pubkey && cJSON_IsString(admin_pubkey) && admin_pubkey->valuestring && admin_pubkey->valuestring[0] != '\0') {
|
||||
char decoded[65] = {0};
|
||||
if (decode_pubkey_hex_or_npub(admin_pubkey->valuestring, decoded) != 0) {
|
||||
return -1;
|
||||
}
|
||||
snprintf(config->admin.pubkey, sizeof(config->admin.pubkey), "%s", decoded);
|
||||
}
|
||||
|
||||
cJSON* dm_protocol = cJSON_GetObjectItemCaseSensitive(agent_obj, "dm_protocol");
|
||||
if (dm_protocol && cJSON_IsString(dm_protocol) && dm_protocol->valuestring && dm_protocol->valuestring[0] != '\0') {
|
||||
if (strcmp(dm_protocol->valuestring, "nip04") == 0) {
|
||||
config->dm_protocol = DM_PROTOCOL_NIP04;
|
||||
} else if (strcmp(dm_protocol->valuestring, "nip17") == 0) {
|
||||
config->dm_protocol = DM_PROTOCOL_NIP17;
|
||||
} else if (strcmp(dm_protocol->valuestring, "both") == 0) {
|
||||
config->dm_protocol = DM_PROTOCOL_BOTH;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON* max_turns = cJSON_GetObjectItemCaseSensitive(agent_obj, "max_turns");
|
||||
if (max_turns) {
|
||||
if (!cJSON_IsNumber(max_turns)) {
|
||||
return -1;
|
||||
}
|
||||
int parsed = (int)max_turns->valuedouble;
|
||||
if (parsed < 1) {
|
||||
parsed = 40;
|
||||
}
|
||||
config->tools.max_turns = parsed;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_user_settings_payload_object(cJSON* user_settings_obj, didactyl_config_t* config) {
|
||||
if (!user_settings_obj || !cJSON_IsObject(user_settings_obj) || !config) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* global_llm = cJSON_GetObjectItemCaseSensitive(user_settings_obj, "global_llm");
|
||||
if (!global_llm || !cJSON_IsObject(global_llm) ||
|
||||
parse_llm_payload_object(global_llm, config, 1) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* didactyl = cJSON_GetObjectItemCaseSensitive(user_settings_obj, "didactyl");
|
||||
if (!didactyl || !cJSON_IsObject(didactyl) ||
|
||||
parse_agent_payload_object(didactyl, config) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_encrypted_events(cJSON* root, didactyl_config_t* config) {
|
||||
cJSON* arr = cJSON_GetObjectItemCaseSensitive(root, "encrypted_events");
|
||||
if (!arr) {
|
||||
return 0;
|
||||
}
|
||||
if (!cJSON_IsArray(arr)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int count = cJSON_GetArraySize(arr);
|
||||
if (count <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
config->encrypted_events = (encrypted_event_t*)calloc((size_t)count, sizeof(encrypted_event_t));
|
||||
if (!config->encrypted_events) {
|
||||
return -1;
|
||||
}
|
||||
config->encrypted_event_count = count;
|
||||
|
||||
int user_settings_seen = 0;
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
cJSON* item = cJSON_GetArrayItem(arr, i);
|
||||
if (!item || !cJSON_IsObject(item)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* kind = cJSON_GetObjectItemCaseSensitive(item, "kind");
|
||||
cJSON* d_tag = cJSON_GetObjectItemCaseSensitive(item, "d_tag");
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(item, "content");
|
||||
|
||||
if (!kind || !cJSON_IsNumber(kind) ||
|
||||
!d_tag || !cJSON_IsString(d_tag) || !d_tag->valuestring || d_tag->valuestring[0] == '\0' ||
|
||||
!content || !cJSON_IsString(content) || !content->valuestring) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
encrypted_event_t* ee = &config->encrypted_events[i];
|
||||
ee->kind = (int)kind->valuedouble;
|
||||
ee->d_tag = strdup(d_tag->valuestring);
|
||||
ee->content = strdup(content->valuestring);
|
||||
if (!ee->d_tag || !ee->content) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ee->kind == 30078 && strcmp(ee->d_tag, "user-settings") == 0 && ee->content[0] != '\0') {
|
||||
cJSON* user_settings_payload = cJSON_Parse(ee->content);
|
||||
if (!user_settings_payload || !cJSON_IsObject(user_settings_payload) ||
|
||||
parse_user_settings_payload_object(user_settings_payload, config) != 0) {
|
||||
cJSON_Delete(user_settings_payload);
|
||||
return -1;
|
||||
}
|
||||
cJSON_Delete(user_settings_payload);
|
||||
user_settings_seen = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (!user_settings_seen) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_api_config(cJSON* root, didactyl_config_t* config) {
|
||||
cJSON* api = cJSON_GetObjectItemCaseSensitive(root, "api");
|
||||
if (!api || !cJSON_IsObject(api)) {
|
||||
@@ -1244,6 +1412,14 @@ void config_free(didactyl_config_t* config) {
|
||||
|
||||
free_cashu_wallet_mints(&config->cashu_wallet);
|
||||
|
||||
if (config->encrypted_events) {
|
||||
for (int i = 0; i < config->encrypted_event_count; i++) {
|
||||
free(config->encrypted_events[i].d_tag);
|
||||
free(config->encrypted_events[i].content);
|
||||
}
|
||||
free(config->encrypted_events);
|
||||
}
|
||||
|
||||
memset(config, 0, sizeof(*config));
|
||||
}
|
||||
|
||||
@@ -1260,7 +1436,7 @@ int config_load(const char* path, didactyl_config_t* config) {
|
||||
config->dm_protocol = DM_PROTOCOL_NIP04;
|
||||
|
||||
config->tools.enabled = 1;
|
||||
config->tools.max_turns = 20;
|
||||
config->tools.max_turns = 40;
|
||||
config->tools.trigger_max_turns = 12;
|
||||
config->tools.api_default_max_turns = 8;
|
||||
config->tools.api_max_turns_ceiling = 32;
|
||||
@@ -1351,9 +1527,8 @@ int config_load(const char* path, didactyl_config_t* config) {
|
||||
cJSON* admin = cJSON_GetObjectItemCaseSensitive(root, "admin");
|
||||
cJSON* llm = cJSON_GetObjectItemCaseSensitive(root, "llm");
|
||||
|
||||
if (!admin || !cJSON_IsObject(admin) ||
|
||||
!llm || !cJSON_IsObject(llm)) {
|
||||
config_set_error("config must include object sections: admin, llm");
|
||||
if (!admin || !cJSON_IsObject(admin)) {
|
||||
config_set_error("config must include object section: admin");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -1381,6 +1556,11 @@ int config_load(const char* path, didactyl_config_t* config) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (parse_encrypted_events(root, config) != 0) {
|
||||
config_set_error("invalid encrypted_events configuration");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (parse_legacy_default_skill_to_startup_events(root, config) != 0) {
|
||||
config_set_error("invalid legacy default_skill configuration");
|
||||
goto cleanup;
|
||||
@@ -1391,32 +1571,16 @@ int config_load(const char* path, didactyl_config_t* config) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (copy_json_string(llm, "provider", config->llm.provider, sizeof(config->llm.provider), 0) != 0) {
|
||||
config_set_error("llm.provider must be a string if provided");
|
||||
goto cleanup;
|
||||
if (llm) {
|
||||
if (!cJSON_IsObject(llm)) {
|
||||
config_set_error("llm must be an object when provided");
|
||||
goto cleanup;
|
||||
}
|
||||
if (parse_llm_payload_object(llm, config, 1) != 0) {
|
||||
config_set_error("llm configuration is invalid (required: api_key, model, base_url)");
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
if (config->llm.provider[0] == '\0') {
|
||||
strcpy(config->llm.provider, "openai");
|
||||
}
|
||||
|
||||
if (copy_json_string(llm, "api_key", config->llm.api_key, sizeof(config->llm.api_key), 1) != 0) {
|
||||
config_set_error("llm.api_key is required and must be a string");
|
||||
goto cleanup;
|
||||
}
|
||||
if (copy_json_string(llm, "model", config->llm.model, sizeof(config->llm.model), 1) != 0) {
|
||||
config_set_error("llm.model is required and must be a string");
|
||||
goto cleanup;
|
||||
}
|
||||
if (copy_json_string(llm, "base_url", config->llm.base_url, sizeof(config->llm.base_url), 1) != 0) {
|
||||
config_set_error("llm.base_url is required and must be a string");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
cJSON* max_tokens = cJSON_GetObjectItemCaseSensitive(llm, "max_tokens");
|
||||
cJSON* temperature = cJSON_GetObjectItemCaseSensitive(llm, "temperature");
|
||||
|
||||
config->llm.max_tokens = (max_tokens && cJSON_IsNumber(max_tokens)) ? (int)max_tokens->valuedouble : 512;
|
||||
config->llm.temperature = (temperature && cJSON_IsNumber(temperature)) ? temperature->valuedouble : 0.7;
|
||||
|
||||
if (parse_dm_protocol_config(root, config) != 0) {
|
||||
config_set_error("invalid dm_protocol configuration (expected 'nip04', 'nip17', or 'both')");
|
||||
|
||||
@@ -64,6 +64,12 @@ typedef struct {
|
||||
char* tags_json; // JSON array string for tags, optional
|
||||
} startup_event_t;
|
||||
|
||||
typedef struct {
|
||||
int kind;
|
||||
char* d_tag;
|
||||
char* content;
|
||||
} encrypted_event_t;
|
||||
|
||||
typedef struct {
|
||||
int enabled;
|
||||
int tools_enabled;
|
||||
@@ -124,6 +130,8 @@ typedef struct {
|
||||
cashu_wallet_config_t cashu_wallet;
|
||||
startup_event_t* startup_events;
|
||||
int startup_event_count;
|
||||
encrypted_event_t* encrypted_events;
|
||||
int encrypted_event_count;
|
||||
char config_path[OW_MAX_URL_LEN];
|
||||
} didactyl_config_t;
|
||||
|
||||
|
||||
87
src/context_format.c
Normal file
87
src/context_format.c
Normal file
@@ -0,0 +1,87 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "context_format.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static int append_text(char** buf, size_t* cap, size_t* used, const char* s, size_t len) {
|
||||
if (!buf || !cap || !used || !s) return -1;
|
||||
if (*used + len + 1U > *cap) {
|
||||
size_t next = *cap;
|
||||
while (*used + len + 1U > next) {
|
||||
next = (next == 0U) ? 256U : (next * 2U);
|
||||
}
|
||||
char* grown = (char*)realloc(*buf, next);
|
||||
if (!grown) return -1;
|
||||
*buf = grown;
|
||||
*cap = next;
|
||||
}
|
||||
memcpy(*buf + *used, s, len);
|
||||
*used += len;
|
||||
(*buf)[*used] = '\0';
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* context_bump_headings(const char* text) {
|
||||
if (!text) return NULL;
|
||||
|
||||
size_t cap = strlen(text) + 256; // Initial guess
|
||||
size_t used = 0;
|
||||
char* buf = (char*)malloc(cap);
|
||||
if (!buf) return NULL;
|
||||
buf[0] = '\0';
|
||||
|
||||
const char* p = text;
|
||||
while (*p) {
|
||||
const char* eol = strchr(p, '\n');
|
||||
size_t line_len = eol ? (size_t)(eol - p) : strlen(p);
|
||||
|
||||
// Check if line starts with '#'
|
||||
if (line_len > 0 && p[0] == '#') {
|
||||
// Add an extra '#'
|
||||
if (append_text(&buf, &cap, &used, "#", 1) != 0) {
|
||||
free(buf);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// Append the rest of the line
|
||||
if (append_text(&buf, &cap, &used, p, line_len) != 0) {
|
||||
free(buf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (eol) {
|
||||
if (append_text(&buf, &cap, &used, "\n", 1) != 0) {
|
||||
free(buf);
|
||||
return NULL;
|
||||
}
|
||||
p = eol + 1;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
char* context_build_title(tools_context_t* ctx) {
|
||||
if (!ctx || !ctx->cfg) return strdup("# Didactyl Agent\n\n");
|
||||
|
||||
const char* name = "Didactyl Agent";
|
||||
|
||||
// Try to get name from kind 0 profile if available
|
||||
if (ctx->template_skill_lookup) {
|
||||
// We don't have direct access to the parsed kind 0 here easily,
|
||||
// but we can try to extract it from the agent_profile tool output
|
||||
// if we really wanted to. For now, let's stick to a simple default
|
||||
// or use the config if it has a name field (it doesn't currently).
|
||||
// A more robust way would be to parse the kind 0 JSON here.
|
||||
}
|
||||
|
||||
// For now, just use a generic title. The identity skill will provide the rest.
|
||||
char title[256];
|
||||
snprintf(title, sizeof(title), "# %s\n\n", name);
|
||||
return strdup(title);
|
||||
}
|
||||
9
src/context_format.h
Normal file
9
src/context_format.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef DIDACTYL_CONTEXT_FORMAT_H
|
||||
#define DIDACTYL_CONTEXT_FORMAT_H
|
||||
|
||||
#include "tools/tools.h"
|
||||
|
||||
char* context_bump_headings(const char* text);
|
||||
char* context_build_title(tools_context_t* ctx);
|
||||
|
||||
#endif
|
||||
141
src/context_roles.c
Normal file
141
src/context_roles.c
Normal file
@@ -0,0 +1,141 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "context_roles.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static int append_text(char** buf, size_t* cap, size_t* used, const char* s, size_t len) {
|
||||
if (!buf || !cap || !used || !s) return -1;
|
||||
if (*used + len + 1U > *cap) {
|
||||
size_t next = *cap;
|
||||
while (*used + len + 1U > next) {
|
||||
next = (next == 0U) ? 256U : (next * 2U);
|
||||
}
|
||||
char* grown = (char*)realloc(*buf, next);
|
||||
if (!grown) return -1;
|
||||
*buf = grown;
|
||||
*cap = next;
|
||||
}
|
||||
memcpy(*buf + *used, s, len);
|
||||
*used += len;
|
||||
(*buf)[*used] = '\0';
|
||||
return 0;
|
||||
}
|
||||
|
||||
int context_roles_split(const char* markdown, context_roles_t* out) {
|
||||
if (!out) return -1;
|
||||
memset(out, 0, sizeof(*out));
|
||||
|
||||
if (!markdown || markdown[0] == '\0') {
|
||||
out->system_content = strdup("");
|
||||
out->user_content = strdup("");
|
||||
out->assistant_content = strdup("");
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t sys_cap = 1024, sys_used = 0;
|
||||
size_t usr_cap = 1024, usr_used = 0;
|
||||
size_t ast_cap = 1024, ast_used = 0;
|
||||
|
||||
char* sys_buf = (char*)malloc(sys_cap);
|
||||
char* usr_buf = (char*)malloc(usr_cap);
|
||||
char* ast_buf = (char*)malloc(ast_cap);
|
||||
|
||||
if (!sys_buf || !usr_buf || !ast_buf) {
|
||||
free(sys_buf);
|
||||
free(usr_buf);
|
||||
free(ast_buf);
|
||||
return -1;
|
||||
}
|
||||
|
||||
sys_buf[0] = '\0';
|
||||
usr_buf[0] = '\0';
|
||||
ast_buf[0] = '\0';
|
||||
|
||||
char** current_buf = &sys_buf;
|
||||
size_t* current_cap = &sys_cap;
|
||||
size_t* current_used = &sys_used;
|
||||
|
||||
const char* p = markdown;
|
||||
while (*p) {
|
||||
const char* eol = strchr(p, '\n');
|
||||
size_t line_len = eol ? (size_t)(eol - p) : strlen(p);
|
||||
|
||||
if (strncmp(p, "system:", 7) == 0 && (line_len == 7 || (line_len == 8 && p[7] == '\r'))) {
|
||||
current_buf = &sys_buf;
|
||||
current_cap = &sys_cap;
|
||||
current_used = &sys_used;
|
||||
} else if (strncmp(p, "user:", 5) == 0 && (line_len == 5 || (line_len == 6 && p[5] == '\r'))) {
|
||||
current_buf = &usr_buf;
|
||||
current_cap = &usr_cap;
|
||||
current_used = &usr_used;
|
||||
} else if (strncmp(p, "assistant:", 10) == 0 && (line_len == 10 || (line_len == 11 && p[10] == '\r'))) {
|
||||
current_buf = &ast_buf;
|
||||
current_cap = &ast_cap;
|
||||
current_used = &ast_used;
|
||||
} else {
|
||||
if (append_text(current_buf, current_cap, current_used, p, line_len) != 0) {
|
||||
free(sys_buf);
|
||||
free(usr_buf);
|
||||
free(ast_buf);
|
||||
return -1;
|
||||
}
|
||||
if (eol) {
|
||||
if (append_text(current_buf, current_cap, current_used, "\n", 1) != 0) {
|
||||
free(sys_buf);
|
||||
free(usr_buf);
|
||||
free(ast_buf);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!eol) break;
|
||||
p = eol + 1;
|
||||
}
|
||||
|
||||
// Trim trailing newlines
|
||||
while (sys_used > 0 && (sys_buf[sys_used - 1] == '\n' || sys_buf[sys_used - 1] == '\r')) {
|
||||
sys_buf[--sys_used] = '\0';
|
||||
}
|
||||
while (usr_used > 0 && (usr_buf[usr_used - 1] == '\n' || usr_buf[usr_used - 1] == '\r')) {
|
||||
usr_buf[--usr_used] = '\0';
|
||||
}
|
||||
while (ast_used > 0 && (ast_buf[ast_used - 1] == '\n' || ast_buf[ast_used - 1] == '\r')) {
|
||||
ast_buf[--ast_used] = '\0';
|
||||
}
|
||||
|
||||
// Trim leading newlines
|
||||
char* sys_start = sys_buf;
|
||||
while (*sys_start == '\n' || *sys_start == '\r') sys_start++;
|
||||
if (sys_start > sys_buf) {
|
||||
memmove(sys_buf, sys_start, sys_used - (sys_start - sys_buf) + 1);
|
||||
}
|
||||
|
||||
char* usr_start = usr_buf;
|
||||
while (*usr_start == '\n' || *usr_start == '\r') usr_start++;
|
||||
if (usr_start > usr_buf) {
|
||||
memmove(usr_buf, usr_start, usr_used - (usr_start - usr_buf) + 1);
|
||||
}
|
||||
|
||||
char* ast_start = ast_buf;
|
||||
while (*ast_start == '\n' || *ast_start == '\r') ast_start++;
|
||||
if (ast_start > ast_buf) {
|
||||
memmove(ast_buf, ast_start, ast_used - (ast_start - ast_buf) + 1);
|
||||
}
|
||||
|
||||
out->system_content = sys_buf;
|
||||
out->user_content = usr_buf;
|
||||
out->assistant_content = ast_buf;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void context_roles_free(context_roles_t* roles) {
|
||||
if (!roles) return;
|
||||
free(roles->system_content);
|
||||
free(roles->user_content);
|
||||
free(roles->assistant_content);
|
||||
memset(roles, 0, sizeof(*roles));
|
||||
}
|
||||
13
src/context_roles.h
Normal file
13
src/context_roles.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef DIDACTYL_CONTEXT_ROLES_H
|
||||
#define DIDACTYL_CONTEXT_ROLES_H
|
||||
|
||||
typedef struct {
|
||||
char* system_content;
|
||||
char* user_content;
|
||||
char* assistant_content;
|
||||
} context_roles_t;
|
||||
|
||||
int context_roles_split(const char* markdown, context_roles_t* out);
|
||||
void context_roles_free(context_roles_t* roles);
|
||||
|
||||
#endif
|
||||
@@ -882,18 +882,6 @@ static char* execute_slash_command_http(const char* message) {
|
||||
}
|
||||
|
||||
char* markdown_result = format_result_markdown_http(result_json);
|
||||
const char* dm_payload = markdown_result ? markdown_result : result_json;
|
||||
|
||||
size_t log_cap = strlen(message) + strlen(result_json ? result_json : "") + strlen(dm_payload ? dm_payload : "") + 192U;
|
||||
char* log_payload = (char*)malloc(log_cap);
|
||||
if (log_payload) {
|
||||
snprintf(log_payload, log_cap, "slash=%s\nresult_json=%s\nresult_markdown=%s",
|
||||
message,
|
||||
result_json ? result_json : "",
|
||||
dm_payload ? dm_payload : "");
|
||||
agent_append_context_log("http_api_agent", "direct_tool_exec", log_payload);
|
||||
free(log_payload);
|
||||
}
|
||||
|
||||
free(result_json);
|
||||
return markdown_result ? markdown_result : strdup("Command executed with no output.");
|
||||
@@ -902,7 +890,6 @@ static char* execute_slash_command_http(const char* message) {
|
||||
static cJSON* run_prompt_with_tools_convo(cJSON* convo,
|
||||
int max_turns,
|
||||
const char* log_sender,
|
||||
const char* log_phase,
|
||||
const char* tool_limit_message) {
|
||||
if (!convo || !cJSON_IsArray(convo)) return NULL;
|
||||
|
||||
@@ -945,10 +932,6 @@ static cJSON* run_prompt_with_tools_convo(cJSON* convo,
|
||||
char* messages_json = cJSON_PrintUnformatted(convo);
|
||||
if (!messages_json) break;
|
||||
|
||||
agent_append_context_log(log_sender ? log_sender : "http_api",
|
||||
log_phase ? log_phase : "llm_chat_with_tools_messages_http_api",
|
||||
messages_json);
|
||||
|
||||
llm_response_t resp;
|
||||
int rc = llm_chat_with_tools_messages(messages_json, tools_json, "auto", &resp);
|
||||
free(messages_json);
|
||||
@@ -1115,7 +1098,6 @@ static cJSON* run_prompt_with_tools(cJSON* body) {
|
||||
cJSON* root = run_prompt_with_tools_convo(convo,
|
||||
max_turns,
|
||||
"http_api",
|
||||
"llm_chat_with_tools_messages_http_api",
|
||||
"I hit my tool-use limit for this prompt run.");
|
||||
cJSON_Delete(convo);
|
||||
return root;
|
||||
@@ -1379,7 +1361,6 @@ static void handle_prompt_agent(struct mg_connection* c, const struct mg_http_me
|
||||
result = run_prompt_with_tools_convo(convo,
|
||||
max_turns,
|
||||
"http_api_agent",
|
||||
"llm_chat_with_tools_messages_agent_api",
|
||||
"I hit my tool-use limit for this request.");
|
||||
cJSON_Delete(convo);
|
||||
|
||||
|
||||
142
src/json_to_markdown.c
Normal file
142
src/json_to_markdown.c
Normal file
@@ -0,0 +1,142 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include "json_to_markdown.h"
|
||||
#include "cjson/cJSON.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static int append_text(char** buf, size_t* cap, size_t* used, const char* s) {
|
||||
if (!buf || !cap || !used || !s) return -1;
|
||||
size_t n = strlen(s);
|
||||
if (*used + n + 1U > *cap) {
|
||||
size_t next = *cap;
|
||||
while (*used + n + 1U > next) {
|
||||
next = (next == 0U) ? 256U : (next * 2U);
|
||||
}
|
||||
char* grown = (char*)realloc(*buf, next);
|
||||
if (!grown) return -1;
|
||||
*buf = grown;
|
||||
*cap = next;
|
||||
}
|
||||
memcpy(*buf + *used, s, n);
|
||||
*used += n;
|
||||
(*buf)[*used] = '\0';
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void print_indent(int indent_level, char** buf, size_t* cap, size_t* used) {
|
||||
for (int i = 0; i < indent_level; i++) {
|
||||
append_text(buf, cap, used, " ");
|
||||
}
|
||||
}
|
||||
|
||||
static void render_json_node(cJSON* node, int indent_level, int is_list_item, char** buf, size_t* cap, size_t* used, int max_array_items) {
|
||||
if (!node) return;
|
||||
|
||||
if (cJSON_IsString(node)) {
|
||||
if (is_list_item) {
|
||||
print_indent(indent_level, buf, cap, used);
|
||||
append_text(buf, cap, used, "- ");
|
||||
}
|
||||
append_text(buf, cap, used, node->valuestring ? node->valuestring : "");
|
||||
append_text(buf, cap, used, "\n");
|
||||
} else if (cJSON_IsNumber(node)) {
|
||||
if (is_list_item) {
|
||||
print_indent(indent_level, buf, cap, used);
|
||||
append_text(buf, cap, used, "- ");
|
||||
}
|
||||
char num_str[64];
|
||||
if (node->valuedouble == (double)node->valueint) {
|
||||
snprintf(num_str, sizeof(num_str), "%d", node->valueint);
|
||||
} else {
|
||||
snprintf(num_str, sizeof(num_str), "%f", node->valuedouble);
|
||||
}
|
||||
append_text(buf, cap, used, num_str);
|
||||
append_text(buf, cap, used, "\n");
|
||||
} else if (cJSON_IsBool(node)) {
|
||||
if (is_list_item) {
|
||||
print_indent(indent_level, buf, cap, used);
|
||||
append_text(buf, cap, used, "- ");
|
||||
}
|
||||
append_text(buf, cap, used, cJSON_IsTrue(node) ? "true\n" : "false\n");
|
||||
} else if (cJSON_IsNull(node)) {
|
||||
if (is_list_item) {
|
||||
print_indent(indent_level, buf, cap, used);
|
||||
append_text(buf, cap, used, "- null\n");
|
||||
}
|
||||
} else if (cJSON_IsObject(node)) {
|
||||
cJSON* child = node->child;
|
||||
int first = 1;
|
||||
while (child) {
|
||||
if (is_list_item && first) {
|
||||
print_indent(indent_level, buf, cap, used);
|
||||
append_text(buf, cap, used, "- **");
|
||||
first = 0;
|
||||
} else {
|
||||
print_indent(indent_level + (is_list_item ? 1 : 0), buf, cap, used);
|
||||
append_text(buf, cap, used, "- **");
|
||||
}
|
||||
append_text(buf, cap, used, child->string ? child->string : "unknown");
|
||||
append_text(buf, cap, used, "**: ");
|
||||
|
||||
if (cJSON_IsObject(child) || cJSON_IsArray(child)) {
|
||||
append_text(buf, cap, used, "\n");
|
||||
render_json_node(child, indent_level + (is_list_item ? 2 : 1), 0, buf, cap, used, max_array_items);
|
||||
} else {
|
||||
render_json_node(child, 0, 0, buf, cap, used, max_array_items);
|
||||
}
|
||||
child = child->next;
|
||||
}
|
||||
} else if (cJSON_IsArray(node)) {
|
||||
int count = cJSON_GetArraySize(node);
|
||||
int limit = (max_array_items > 0 && count > max_array_items) ? max_array_items : count;
|
||||
for (int i = 0; i < limit; i++) {
|
||||
cJSON* item = cJSON_GetArrayItem(node, i);
|
||||
render_json_node(item, indent_level, 1, buf, cap, used, max_array_items);
|
||||
}
|
||||
if (count > limit) {
|
||||
print_indent(indent_level, buf, cap, used);
|
||||
char trunc_msg[64];
|
||||
snprintf(trunc_msg, sizeof(trunc_msg), "- *(... and %d more items)*\n", count - limit);
|
||||
append_text(buf, cap, used, trunc_msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
char* json_to_markdown(const char* json_string, int max_array_items) {
|
||||
if (!json_string) return NULL;
|
||||
|
||||
cJSON* root = cJSON_Parse(json_string);
|
||||
if (!root) {
|
||||
// If it's not valid JSON, just return a copy of the string
|
||||
return strdup(json_string);
|
||||
}
|
||||
|
||||
// If it's a plain string, return it without markdown formatting
|
||||
if (cJSON_IsString(root)) {
|
||||
char* out = strdup(root->valuestring ? root->valuestring : "");
|
||||
cJSON_Delete(root);
|
||||
return out;
|
||||
}
|
||||
|
||||
size_t cap = 1024;
|
||||
size_t used = 0;
|
||||
char* buf = (char*)malloc(cap);
|
||||
if (!buf) {
|
||||
cJSON_Delete(root);
|
||||
return NULL;
|
||||
}
|
||||
buf[0] = '\0';
|
||||
|
||||
render_json_node(root, 0, 0, &buf, &cap, &used, max_array_items);
|
||||
|
||||
cJSON_Delete(root);
|
||||
|
||||
// Trim trailing newline if present
|
||||
if (used > 0 && buf[used - 1] == '\n') {
|
||||
buf[used - 1] = '\0';
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
6
src/json_to_markdown.h
Normal file
6
src/json_to_markdown.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef DIDACTYL_JSON_TO_MARKDOWN_H
|
||||
#define DIDACTYL_JSON_TO_MARKDOWN_H
|
||||
|
||||
char* json_to_markdown(const char* json_string, int max_array_items);
|
||||
|
||||
#endif
|
||||
75
src/llm.c
75
src/llm.c
@@ -7,6 +7,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "cjson/cJSON.h"
|
||||
#include "debug.h"
|
||||
@@ -15,6 +19,51 @@
|
||||
|
||||
static llm_config_t g_cfg;
|
||||
static int g_initialized = 0;
|
||||
static pthread_mutex_t g_llm_request_log_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static unsigned long g_llm_request_log_seq = 0;
|
||||
|
||||
static int provider_log_next_stamp_seq_local(char* stamp, size_t stamp_size, unsigned long* seq_out) {
|
||||
if (!stamp || stamp_size == 0 || !seq_out) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
stamp[0] = '\0';
|
||||
*seq_out = 0;
|
||||
|
||||
if (mkdir("context.logs", 0755) != 0 && errno != EEXIST) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
time_t now = time(NULL);
|
||||
struct tm tm_info;
|
||||
localtime_r(&now, &tm_info);
|
||||
strftime(stamp, stamp_size, "%Y%m%dT%H%M%S", &tm_info);
|
||||
|
||||
pthread_mutex_lock(&g_llm_request_log_mutex);
|
||||
*seq_out = ++g_llm_request_log_seq;
|
||||
pthread_mutex_unlock(&g_llm_request_log_mutex);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void log_provider_payload_local(const char* payload,
|
||||
const char* stamp,
|
||||
unsigned long seq,
|
||||
const char* phase) {
|
||||
if (!payload || payload[0] == '\0' || !stamp || stamp[0] == '\0' || !phase || phase[0] == '\0') {
|
||||
return;
|
||||
}
|
||||
|
||||
char path[256] = {0};
|
||||
snprintf(path, sizeof(path), "context.logs/%s_%s%04lu.json", stamp, phase, seq);
|
||||
|
||||
FILE* out = fopen(path, "wb");
|
||||
if (!out) {
|
||||
return;
|
||||
}
|
||||
(void)fwrite(payload, 1, strlen(payload), out);
|
||||
fclose(out);
|
||||
}
|
||||
|
||||
static int url_looks_like_websocket(const char* url) {
|
||||
if (!url) return 0;
|
||||
@@ -82,6 +131,19 @@ static char* perform_http_request(const char* url, const char* body, int is_post
|
||||
DEBUG_INFO("[didactyl] llm request: method=GET url=%s", url);
|
||||
}
|
||||
|
||||
char provider_log_stamp[32] = {0};
|
||||
unsigned long provider_log_seq = 0;
|
||||
int provider_log_has_pair = 0;
|
||||
|
||||
if (is_post && body && body[0] != '\0') {
|
||||
if (provider_log_next_stamp_seq_local(provider_log_stamp,
|
||||
sizeof(provider_log_stamp),
|
||||
&provider_log_seq) == 0) {
|
||||
log_provider_payload_local(body, provider_log_stamp, provider_log_seq, "req");
|
||||
provider_log_has_pair = 1;
|
||||
}
|
||||
}
|
||||
|
||||
nostr_http_response_t resp;
|
||||
int rc = nostr_http_request(&req, &resp);
|
||||
if (rc != NOSTR_SUCCESS) {
|
||||
@@ -89,6 +151,19 @@ static char* perform_http_request(const char* url, const char* body, int is_post
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (resp.body && resp.body_len > 0) {
|
||||
if (!provider_log_has_pair) {
|
||||
if (provider_log_next_stamp_seq_local(provider_log_stamp,
|
||||
sizeof(provider_log_stamp),
|
||||
&provider_log_seq) == 0) {
|
||||
provider_log_has_pair = 1;
|
||||
}
|
||||
}
|
||||
if (provider_log_has_pair) {
|
||||
log_provider_payload_local(resp.body, provider_log_stamp, provider_log_seq, "res");
|
||||
}
|
||||
}
|
||||
|
||||
if (resp.status_code < 200 || resp.status_code >= 300) {
|
||||
DEBUG_ERROR("[didactyl] llm http request failed: status=%ld", resp.status_code);
|
||||
if (resp.status_code == 101) {
|
||||
|
||||
216
src/main.c
216
src/main.c
@@ -678,7 +678,7 @@ static int fetch_self_config_plaintext(const didactyl_config_t* cfg, const char*
|
||||
cJSON_AddItemToObject(filter, "authors", authors);
|
||||
cJSON_AddItemToArray(d_vals, cJSON_CreateString(d_tag));
|
||||
cJSON_AddItemToObject(filter, "#d", d_vals);
|
||||
cJSON_AddNumberToObject(filter, "limit", 1);
|
||||
cJSON_AddNumberToObject(filter, "limit", 20);
|
||||
|
||||
char* events_json = nostr_handler_query_json(filter, 4000);
|
||||
cJSON_Delete(filter);
|
||||
@@ -693,8 +693,27 @@ static int fetch_self_config_plaintext(const didactyl_config_t* cfg, const char*
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* ev = cJSON_GetArrayItem(arr, 0);
|
||||
cJSON* content = ev ? cJSON_GetObjectItemCaseSensitive(ev, "content") : NULL;
|
||||
cJSON* newest_ev = NULL;
|
||||
long newest_created_at = -1;
|
||||
int n = cJSON_GetArraySize(arr);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* ev = cJSON_GetArrayItem(arr, i);
|
||||
if (!ev || !cJSON_IsObject(ev)) {
|
||||
continue;
|
||||
}
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(ev, "content");
|
||||
if (!content || !cJSON_IsString(content) || !content->valuestring || content->valuestring[0] == '\0') {
|
||||
continue;
|
||||
}
|
||||
cJSON* created_at = cJSON_GetObjectItemCaseSensitive(ev, "created_at");
|
||||
long ts = (created_at && cJSON_IsNumber(created_at)) ? (long)created_at->valuedouble : 0;
|
||||
if (!newest_ev || ts > newest_created_at) {
|
||||
newest_ev = ev;
|
||||
newest_created_at = ts;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON* content = newest_ev ? cJSON_GetObjectItemCaseSensitive(newest_ev, "content") : NULL;
|
||||
if (!content || !cJSON_IsString(content) || !content->valuestring || content->valuestring[0] == '\0') {
|
||||
cJSON_Delete(arr);
|
||||
return -1;
|
||||
@@ -722,7 +741,7 @@ static int fetch_self_config_plaintext(const didactyl_config_t* cfg, const char*
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int apply_recalled_llm_config(didactyl_config_t* cfg, const char* plaintext) {
|
||||
static int apply_recalled_user_settings(didactyl_config_t* cfg, const char* plaintext) {
|
||||
if (!cfg || !plaintext) return -1;
|
||||
|
||||
cJSON* root = cJSON_Parse(plaintext);
|
||||
@@ -731,16 +750,29 @@ static int apply_recalled_llm_config(didactyl_config_t* cfg, const char* plainte
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* provider = cJSON_GetObjectItemCaseSensitive(root, "provider");
|
||||
cJSON* api_key = cJSON_GetObjectItemCaseSensitive(root, "api_key");
|
||||
cJSON* model = cJSON_GetObjectItemCaseSensitive(root, "model");
|
||||
cJSON* base_url = cJSON_GetObjectItemCaseSensitive(root, "base_url");
|
||||
cJSON* max_tokens = cJSON_GetObjectItemCaseSensitive(root, "max_tokens");
|
||||
cJSON* temperature = cJSON_GetObjectItemCaseSensitive(root, "temperature");
|
||||
cJSON* global_llm = cJSON_GetObjectItemCaseSensitive(root, "global_llm");
|
||||
cJSON* didactyl = cJSON_GetObjectItemCaseSensitive(root, "didactyl");
|
||||
if (!global_llm || !cJSON_IsObject(global_llm) || !didactyl || !cJSON_IsObject(didactyl)) {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* provider = cJSON_GetObjectItemCaseSensitive(global_llm, "provider");
|
||||
cJSON* api_key = cJSON_GetObjectItemCaseSensitive(global_llm, "api_key");
|
||||
cJSON* model = cJSON_GetObjectItemCaseSensitive(global_llm, "model");
|
||||
cJSON* base_url = cJSON_GetObjectItemCaseSensitive(global_llm, "base_url");
|
||||
cJSON* max_tokens = cJSON_GetObjectItemCaseSensitive(global_llm, "max_tokens");
|
||||
cJSON* temperature = cJSON_GetObjectItemCaseSensitive(global_llm, "temperature");
|
||||
|
||||
cJSON* admin_pubkey = cJSON_GetObjectItemCaseSensitive(didactyl, "admin_pubkey");
|
||||
cJSON* dm_protocol = cJSON_GetObjectItemCaseSensitive(didactyl, "dm_protocol");
|
||||
cJSON* max_turns = cJSON_GetObjectItemCaseSensitive(didactyl, "max_turns");
|
||||
|
||||
if (!api_key || !cJSON_IsString(api_key) || !api_key->valuestring || api_key->valuestring[0] == '\0' ||
|
||||
!model || !cJSON_IsString(model) || !model->valuestring || model->valuestring[0] == '\0' ||
|
||||
!base_url || !cJSON_IsString(base_url) || !base_url->valuestring || base_url->valuestring[0] == '\0') {
|
||||
!base_url || !cJSON_IsString(base_url) || !base_url->valuestring || base_url->valuestring[0] == '\0' ||
|
||||
!admin_pubkey || !cJSON_IsString(admin_pubkey) || !admin_pubkey->valuestring || admin_pubkey->valuestring[0] == '\0' ||
|
||||
!dm_protocol || !cJSON_IsString(dm_protocol) || !dm_protocol->valuestring || dm_protocol->valuestring[0] == '\0') {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
@@ -761,31 +793,20 @@ static int apply_recalled_llm_config(didactyl_config_t* cfg, const char* plainte
|
||||
cfg->llm.temperature = temperature->valuedouble;
|
||||
}
|
||||
|
||||
cJSON_Delete(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int apply_recalled_agent_config(didactyl_config_t* cfg, const char* plaintext) {
|
||||
if (!cfg || !plaintext) return -1;
|
||||
|
||||
cJSON* root = cJSON_Parse(plaintext);
|
||||
if (!root || !cJSON_IsObject(root)) {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* admin_pubkey = cJSON_GetObjectItemCaseSensitive(root, "admin_pubkey");
|
||||
cJSON* dm_protocol = cJSON_GetObjectItemCaseSensitive(root, "dm_protocol");
|
||||
|
||||
if (admin_pubkey && cJSON_IsString(admin_pubkey) && admin_pubkey->valuestring && admin_pubkey->valuestring[0] != '\0') {
|
||||
{
|
||||
char decoded[65] = {0};
|
||||
if (decode_pubkey_hex_or_npub_local(admin_pubkey->valuestring, decoded) == 0) {
|
||||
snprintf(cfg->admin.pubkey, sizeof(cfg->admin.pubkey), "%s", decoded);
|
||||
if (decode_pubkey_hex_or_npub_local(admin_pubkey->valuestring, decoded) != 0) {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
snprintf(cfg->admin.pubkey, sizeof(cfg->admin.pubkey), "%s", decoded);
|
||||
}
|
||||
|
||||
if (dm_protocol && cJSON_IsString(dm_protocol) && dm_protocol->valuestring && dm_protocol->valuestring[0] != '\0') {
|
||||
dm_protocol_from_string(dm_protocol->valuestring, cfg);
|
||||
dm_protocol_from_string(dm_protocol->valuestring, cfg);
|
||||
|
||||
if (max_turns && cJSON_IsNumber(max_turns)) {
|
||||
int parsed = (int)max_turns->valuedouble;
|
||||
cfg->tools.max_turns = (parsed > 0) ? parsed : 40;
|
||||
}
|
||||
|
||||
cJSON_Delete(root);
|
||||
@@ -840,39 +861,46 @@ static int publish_encrypted_self_config(const didactyl_config_t* cfg, const cha
|
||||
static int persist_runtime_config_to_nostr(const didactyl_config_t* cfg, int persist_llm_config) {
|
||||
if (!cfg) return -1;
|
||||
|
||||
int llm_rc = 0;
|
||||
if (persist_llm_config) {
|
||||
cJSON* llm = cJSON_CreateObject();
|
||||
if (!llm) return -1;
|
||||
cJSON_AddStringToObject(llm, "provider", cfg->llm.provider);
|
||||
cJSON_AddStringToObject(llm, "api_key", cfg->llm.api_key);
|
||||
cJSON_AddStringToObject(llm, "model", cfg->llm.model);
|
||||
cJSON_AddStringToObject(llm, "base_url", cfg->llm.base_url);
|
||||
cJSON_AddNumberToObject(llm, "max_tokens", cfg->llm.max_tokens);
|
||||
cJSON_AddNumberToObject(llm, "temperature", cfg->llm.temperature);
|
||||
|
||||
char* llm_json = cJSON_PrintUnformatted(llm);
|
||||
cJSON_Delete(llm);
|
||||
if (!llm_json) return -1;
|
||||
|
||||
llm_rc = publish_encrypted_self_config(cfg, "llm_config", llm_json);
|
||||
free(llm_json);
|
||||
} else {
|
||||
DEBUG_INFO("[didactyl] startup phase: skipping llm_config publish because it was recalled from Nostr");
|
||||
if (!persist_llm_config) {
|
||||
DEBUG_INFO("[didactyl] startup phase: skipping user-settings publish because runtime config was recalled from Nostr");
|
||||
return 0;
|
||||
}
|
||||
|
||||
cJSON* agent = cJSON_CreateObject();
|
||||
if (!agent) return llm_rc;
|
||||
cJSON_AddStringToObject(agent, "admin_pubkey", cfg->admin.pubkey);
|
||||
cJSON_AddStringToObject(agent, "dm_protocol", dm_protocol_to_string(cfg->dm_protocol));
|
||||
char* agent_json = cJSON_PrintUnformatted(agent);
|
||||
cJSON_Delete(agent);
|
||||
if (!agent_json) return llm_rc;
|
||||
cJSON* user_settings = cJSON_CreateObject();
|
||||
cJSON* global_llm = cJSON_CreateObject();
|
||||
cJSON* didactyl = cJSON_CreateObject();
|
||||
if (!user_settings || !global_llm || !didactyl) {
|
||||
cJSON_Delete(user_settings);
|
||||
cJSON_Delete(global_llm);
|
||||
cJSON_Delete(didactyl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int agent_rc = publish_encrypted_self_config(cfg, "agent_config", agent_json);
|
||||
free(agent_json);
|
||||
cJSON_AddNumberToObject(user_settings, "v", 2);
|
||||
cJSON_AddNumberToObject(user_settings, "updatedAt", (double)time(NULL));
|
||||
|
||||
return (llm_rc == 0 && agent_rc == 0) ? 0 : -1;
|
||||
cJSON_AddStringToObject(global_llm, "provider", cfg->llm.provider);
|
||||
cJSON_AddStringToObject(global_llm, "api_key", cfg->llm.api_key);
|
||||
cJSON_AddStringToObject(global_llm, "model", cfg->llm.model);
|
||||
cJSON_AddStringToObject(global_llm, "base_url", cfg->llm.base_url);
|
||||
cJSON_AddNumberToObject(global_llm, "max_tokens", cfg->llm.max_tokens);
|
||||
cJSON_AddNumberToObject(global_llm, "temperature", cfg->llm.temperature);
|
||||
cJSON_AddItemToObject(user_settings, "global_llm", global_llm);
|
||||
|
||||
cJSON_AddStringToObject(didactyl, "admin_pubkey", cfg->admin.pubkey);
|
||||
cJSON_AddStringToObject(didactyl, "dm_protocol", dm_protocol_to_string(cfg->dm_protocol));
|
||||
cJSON_AddNumberToObject(didactyl, "max_turns", cfg->tools.max_turns > 0 ? cfg->tools.max_turns : 40);
|
||||
cJSON_AddItemToObject(user_settings, "didactyl", didactyl);
|
||||
|
||||
char* user_settings_json = cJSON_PrintUnformatted(user_settings);
|
||||
cJSON_Delete(user_settings);
|
||||
if (!user_settings_json) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int rc = publish_encrypted_self_config(cfg, "user-settings", user_settings_json);
|
||||
free(user_settings_json);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int recover_missing_runtime_config_from_nostr(didactyl_config_t* cfg) {
|
||||
@@ -880,45 +908,22 @@ static int recover_missing_runtime_config_from_nostr(didactyl_config_t* cfg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int llm_recalled_from_nostr = 0;
|
||||
|
||||
if (!llm_config_is_complete(&cfg->llm)) {
|
||||
char* llm_plaintext = NULL;
|
||||
if (fetch_self_config_plaintext(cfg, "llm_config", &llm_plaintext) == 0 && llm_plaintext) {
|
||||
if (apply_recalled_llm_config(cfg, llm_plaintext) == 0) {
|
||||
llm_recalled_from_nostr = 1;
|
||||
DEBUG_INFO("[didactyl] startup phase: recovered llm_config from Nostr");
|
||||
} else {
|
||||
DEBUG_WARN("[didactyl] startup phase: failed to apply recalled llm_config");
|
||||
}
|
||||
} else {
|
||||
DEBUG_WARN("[didactyl] startup phase: llm_config recall unavailable");
|
||||
}
|
||||
free(llm_plaintext);
|
||||
char* settings_plaintext = NULL;
|
||||
if (fetch_self_config_plaintext(cfg, "user-settings", &settings_plaintext) != 0 || !settings_plaintext) {
|
||||
DEBUG_WARN("[didactyl] startup phase: user-settings recall unavailable");
|
||||
free(settings_plaintext);
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* agent_plaintext = NULL;
|
||||
if (fetch_self_config_plaintext(cfg, "agent_config", &agent_plaintext) == 0 && agent_plaintext) {
|
||||
didactyl_config_t recalled = *cfg;
|
||||
if (apply_recalled_agent_config(&recalled, agent_plaintext) == 0) {
|
||||
if (!admin_config_is_complete(cfg)) {
|
||||
snprintf(cfg->admin.pubkey, sizeof(cfg->admin.pubkey), "%s", recalled.admin.pubkey);
|
||||
cfg->dm_protocol = recalled.dm_protocol;
|
||||
DEBUG_INFO("[didactyl] startup phase: recovered agent_config from Nostr");
|
||||
} else if (recalled.admin.pubkey[0] != '\0' && strcmp(cfg->admin.pubkey, recalled.admin.pubkey) != 0) {
|
||||
DEBUG_WARN("[didactyl] startup phase: agent_config admin pubkey differs from loaded config (loaded=%.16s..., nostr=%.16s...); loaded config wins",
|
||||
cfg->admin.pubkey,
|
||||
recalled.admin.pubkey);
|
||||
}
|
||||
} else {
|
||||
DEBUG_WARN("[didactyl] startup phase: failed to parse/decrypt recalled agent_config");
|
||||
}
|
||||
} else {
|
||||
DEBUG_WARN("[didactyl] startup phase: agent_config recall unavailable");
|
||||
if (apply_recalled_user_settings(cfg, settings_plaintext) != 0) {
|
||||
DEBUG_WARN("[didactyl] startup phase: failed to parse/decrypt recalled user-settings");
|
||||
free(settings_plaintext);
|
||||
return 0;
|
||||
}
|
||||
free(agent_plaintext);
|
||||
|
||||
return llm_recalled_from_nostr;
|
||||
free(settings_plaintext);
|
||||
DEBUG_INFO("[didactyl] startup phase: recovered user-settings from Nostr");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
@@ -931,7 +936,6 @@ int main(int argc, char** argv) {
|
||||
int dump_schemas = 0;
|
||||
const char* test_tool_name = NULL;
|
||||
const char* test_tool_args = "{}";
|
||||
|
||||
didactyl_config_t cfg;
|
||||
memset(&cfg, 0, sizeof(cfg));
|
||||
int config_preloaded = 0;
|
||||
@@ -1200,13 +1204,13 @@ int main(int argc, char** argv) {
|
||||
|
||||
startup_step_begin(2, "Recover runtime config from Nostr");
|
||||
int llm_recalled_from_nostr = recover_missing_runtime_config_from_nostr(&cfg);
|
||||
startup_step_ok(2, "Recover runtime config from Nostr", llm_recalled_from_nostr ? "llm_config recalled" : NULL);
|
||||
startup_step_ok(2, "Recover runtime config from Nostr", llm_recalled_from_nostr ? "user-settings recalled" : NULL);
|
||||
|
||||
startup_step_begin(3, "Validate LLM config");
|
||||
if (!llm_config_is_complete(&cfg.llm)) {
|
||||
startup_step_fail(3, "Validate LLM config", "missing llm_config (model/base_url/api_key)");
|
||||
startup_step_fail(3, "Validate LLM config", "missing user-settings.global_llm (model/base_url/api_key)");
|
||||
fprintf(stderr,
|
||||
"Missing LLM config: provide genesis file values or store d=llm_config via config_store\n");
|
||||
"Missing LLM config: provide genesis file values or store d=user-settings with global_llm\n");
|
||||
nostr_block_list_cleanup();
|
||||
nostr_handler_cleanup();
|
||||
config_free(&cfg);
|
||||
@@ -1219,7 +1223,7 @@ int main(int argc, char** argv) {
|
||||
if (!admin_config_is_complete(&cfg)) {
|
||||
startup_step_fail(4, "Validate admin config", "missing admin pubkey");
|
||||
fprintf(stderr,
|
||||
"Missing admin config: provide admin.pubkey in genesis, pass --admin, or store d=agent_config via config_store\n");
|
||||
"Missing admin config: provide admin.pubkey in genesis, pass --admin, or store d=user-settings with didactyl.admin_pubkey\n");
|
||||
nostr_block_list_cleanup();
|
||||
nostr_handler_cleanup();
|
||||
config_free(&cfg);
|
||||
@@ -1261,10 +1265,14 @@ int main(int argc, char** argv) {
|
||||
DEBUG_INFO("[didactyl] startup phase: existing-agent mode; skipping startup-event reconcile on subsequent run");
|
||||
}
|
||||
|
||||
if (persist_runtime_config_to_nostr(&cfg, llm_recalled_from_nostr ? 0 : 1) != 0) {
|
||||
DEBUG_WARN("[didactyl] startup phase: failed to persist encrypted runtime config to Nostr");
|
||||
if (bootstrap_mode || first_run) {
|
||||
if (persist_runtime_config_to_nostr(&cfg, llm_recalled_from_nostr ? 0 : 1) != 0) {
|
||||
DEBUG_WARN("[didactyl] startup phase: failed to persist encrypted runtime config to Nostr");
|
||||
} else {
|
||||
DEBUG_INFO("[didactyl] startup phase: persisted encrypted runtime config to Nostr");
|
||||
}
|
||||
} else {
|
||||
DEBUG_INFO("[didactyl] startup phase: persisted encrypted runtime config to Nostr");
|
||||
DEBUG_INFO("[didactyl] startup phase: skipping encrypted runtime config publish on subsequent run");
|
||||
}
|
||||
|
||||
startup_step_ok(7, "Reconcile/persist startup state", NULL);
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros
|
||||
#define DIDACTYL_VERSION_MAJOR 0
|
||||
#define DIDACTYL_VERSION_MINOR 2
|
||||
#define DIDACTYL_VERSION_PATCH 18
|
||||
#define DIDACTYL_VERSION "v0.2.18"
|
||||
#define DIDACTYL_VERSION_PATCH 29
|
||||
#define DIDACTYL_VERSION "v0.2.29"
|
||||
|
||||
// Agent metadata
|
||||
#define DIDACTYL_NAME "Didactyl"
|
||||
|
||||
@@ -14,6 +14,20 @@
|
||||
#include "trigger_manager.h"
|
||||
#include "nostr_block_list.h"
|
||||
#include "cashu_wallet.h"
|
||||
#include "agent.h"
|
||||
|
||||
/*
|
||||
* Older nostr_core_lib versions only expose:
|
||||
* - NOSTR_POOL_EOSE_MOST_RECENT
|
||||
* - NOSTR_POOL_EOSE_FIRST
|
||||
* Newer versions may add NOSTR_POOL_EOSE_ANY.
|
||||
*
|
||||
* Provide a compatibility alias so code using NOSTR_POOL_EOSE_ANY
|
||||
* still compiles against older libraries.
|
||||
*/
|
||||
#ifndef NOSTR_POOL_EOSE_ANY
|
||||
#define NOSTR_POOL_EOSE_ANY NOSTR_POOL_EOSE_FIRST
|
||||
#endif
|
||||
|
||||
#define NIP17_MAX_RELAYS 32
|
||||
#define NIP17_MAX_GIFT_WRAPS 8
|
||||
@@ -1028,6 +1042,287 @@ static const char* find_tag_value_local(cJSON* tags, const char* key) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int nip44_encrypt_self_local(const char* plaintext, char** out_ciphertext) {
|
||||
if (!g_cfg || !out_ciphertext) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char* plain = plaintext ? plaintext : "";
|
||||
size_t out_cap = (strlen(plain) * 4U) + 1024U;
|
||||
char* ciphertext = (char*)malloc(out_cap);
|
||||
if (!ciphertext) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int rc = nostr_nip44_encrypt(g_cfg->keys.private_key,
|
||||
g_cfg->keys.public_key,
|
||||
plain,
|
||||
ciphertext,
|
||||
out_cap);
|
||||
if (rc != NOSTR_SUCCESS) {
|
||||
free(ciphertext);
|
||||
return -1;
|
||||
}
|
||||
|
||||
*out_ciphertext = ciphertext;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nip44_decrypt_self_local(const char* ciphertext, char** out_plaintext) {
|
||||
if (!g_cfg || !ciphertext || !out_plaintext) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
size_t out_cap = strlen(ciphertext) + 1024U;
|
||||
char* plaintext = (char*)malloc(out_cap);
|
||||
if (!plaintext) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int rc = nostr_nip44_decrypt(g_cfg->keys.private_key,
|
||||
g_cfg->keys.public_key,
|
||||
ciphertext,
|
||||
plaintext,
|
||||
out_cap);
|
||||
if (rc != NOSTR_SUCCESS) {
|
||||
free(plaintext);
|
||||
return -1;
|
||||
}
|
||||
|
||||
*out_plaintext = plaintext;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static cJSON* duplicate_public_d_tags_local(cJSON* tags) {
|
||||
cJSON* out = cJSON_CreateArray();
|
||||
if (!out) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!tags || !cJSON_IsArray(tags)) {
|
||||
return out;
|
||||
}
|
||||
|
||||
int n = cJSON_GetArraySize(tags);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* tag = cJSON_GetArrayItem(tags, i);
|
||||
if (!tag || !cJSON_IsArray(tag) || cJSON_GetArraySize(tag) < 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* key = cJSON_GetArrayItem(tag, 0);
|
||||
if (!key || !cJSON_IsString(key) || !key->valuestring || strcmp(key->valuestring, "d") != 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* dup = cJSON_Duplicate(tag, 1);
|
||||
if (!dup) {
|
||||
cJSON_Delete(out);
|
||||
return NULL;
|
||||
}
|
||||
cJSON_AddItemToArray(out, dup);
|
||||
}
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
static cJSON* duplicate_private_non_d_tags_local(cJSON* tags) {
|
||||
cJSON* out = cJSON_CreateArray();
|
||||
if (!out) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!tags || !cJSON_IsArray(tags)) {
|
||||
return out;
|
||||
}
|
||||
|
||||
int n = cJSON_GetArraySize(tags);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* tag = cJSON_GetArrayItem(tags, i);
|
||||
if (!tag || !cJSON_IsArray(tag) || cJSON_GetArraySize(tag) < 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* key = cJSON_GetArrayItem(tag, 0);
|
||||
if (!key || !cJSON_IsString(key) || !key->valuestring || strcmp(key->valuestring, "d") == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* dup = cJSON_Duplicate(tag, 1);
|
||||
if (!dup) {
|
||||
cJSON_Delete(out);
|
||||
return NULL;
|
||||
}
|
||||
cJSON_AddItemToArray(out, dup);
|
||||
}
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
static int encode_private_skill_event_payload_local(const char* content,
|
||||
cJSON* tags,
|
||||
char** out_encrypted_content,
|
||||
cJSON** out_public_tags) {
|
||||
if (!out_encrypted_content || !out_public_tags) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
*out_encrypted_content = NULL;
|
||||
*out_public_tags = NULL;
|
||||
|
||||
cJSON* payload = cJSON_CreateObject();
|
||||
cJSON* private_tags = duplicate_private_non_d_tags_local(tags);
|
||||
cJSON* public_tags = duplicate_public_d_tags_local(tags);
|
||||
if (!payload || !private_tags || !public_tags) {
|
||||
cJSON_Delete(payload);
|
||||
cJSON_Delete(private_tags);
|
||||
cJSON_Delete(public_tags);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON_AddStringToObject(payload, "content", content ? content : "");
|
||||
cJSON_AddItemToObject(payload, "private_tags", private_tags);
|
||||
|
||||
char* payload_json = cJSON_PrintUnformatted(payload);
|
||||
cJSON_Delete(payload);
|
||||
if (!payload_json) {
|
||||
cJSON_Delete(public_tags);
|
||||
return -1;
|
||||
}
|
||||
|
||||
char* encrypted_content = NULL;
|
||||
int rc = nip44_encrypt_self_local(payload_json, &encrypted_content);
|
||||
free(payload_json);
|
||||
if (rc != 0) {
|
||||
cJSON_Delete(public_tags);
|
||||
return -1;
|
||||
}
|
||||
|
||||
*out_encrypted_content = encrypted_content;
|
||||
*out_public_tags = public_tags;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int tag_tuple_exists_local(cJSON* tags, const char* key, const char* value) {
|
||||
if (!tags || !cJSON_IsArray(tags) || !key || !value) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int n = cJSON_GetArraySize(tags);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* tag = cJSON_GetArrayItem(tags, i);
|
||||
if (!tag || !cJSON_IsArray(tag) || cJSON_GetArraySize(tag) < 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* ex_key = cJSON_GetArrayItem(tag, 0);
|
||||
cJSON* ex_value = cJSON_GetArrayItem(tag, 1);
|
||||
if (!ex_key || !ex_value ||
|
||||
!cJSON_IsString(ex_key) || !ex_key->valuestring ||
|
||||
!cJSON_IsString(ex_value) || !ex_value->valuestring) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(ex_key->valuestring, key) == 0 && strcmp(ex_value->valuestring, value) == 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int merge_private_tags_into_event_local(cJSON* event, cJSON* private_tags) {
|
||||
if (!event || !cJSON_IsObject(event) || !private_tags || !cJSON_IsArray(private_tags)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* tags = cJSON_GetObjectItemCaseSensitive(event, "tags");
|
||||
if (!tags || !cJSON_IsArray(tags)) {
|
||||
tags = cJSON_CreateArray();
|
||||
if (!tags) {
|
||||
return -1;
|
||||
}
|
||||
cJSON_AddItemToObject(event, "tags", tags);
|
||||
}
|
||||
|
||||
int n = cJSON_GetArraySize(private_tags);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* tag = cJSON_GetArrayItem(private_tags, i);
|
||||
if (!tag || !cJSON_IsArray(tag) || cJSON_GetArraySize(tag) < 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* key = cJSON_GetArrayItem(tag, 0);
|
||||
cJSON* value = cJSON_GetArrayItem(tag, 1);
|
||||
if (!key || !value ||
|
||||
!cJSON_IsString(key) || !key->valuestring ||
|
||||
!cJSON_IsString(value) || !value->valuestring) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(key->valuestring, "d") == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (tag_tuple_exists_local(tags, key->valuestring, value->valuestring)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* dup = cJSON_Duplicate(tag, 1);
|
||||
if (!dup) {
|
||||
return -1;
|
||||
}
|
||||
cJSON_AddItemToArray(tags, dup);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int normalize_private_skill_event_local(cJSON* event) {
|
||||
if (!event || !cJSON_IsObject(event)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* kind = cJSON_GetObjectItemCaseSensitive(event, "kind");
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(event, "content");
|
||||
if (!kind || !cJSON_IsNumber(kind) || (int)kind->valuedouble != 31124 ||
|
||||
!content || !cJSON_IsString(content) || !content->valuestring) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* plaintext = NULL;
|
||||
if (nip44_decrypt_self_local(content->valuestring, &plaintext) != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
cJSON* payload = cJSON_Parse(plaintext);
|
||||
if (!payload || !cJSON_IsObject(payload)) {
|
||||
cJSON_Delete(payload);
|
||||
free(plaintext);
|
||||
return 0;
|
||||
}
|
||||
|
||||
cJSON* payload_content = cJSON_GetObjectItemCaseSensitive(payload, "content");
|
||||
cJSON* private_tags = cJSON_GetObjectItemCaseSensitive(payload, "private_tags");
|
||||
if (!payload_content || !cJSON_IsString(payload_content) || !payload_content->valuestring ||
|
||||
!private_tags || !cJSON_IsArray(private_tags)) {
|
||||
cJSON_Delete(payload);
|
||||
free(plaintext);
|
||||
return 0;
|
||||
}
|
||||
|
||||
cJSON* content_item = cJSON_CreateString(payload_content->valuestring);
|
||||
if (content_item) {
|
||||
cJSON_ReplaceItemInObject(event, "content", content_item);
|
||||
}
|
||||
|
||||
(void)merge_private_tags_into_event_local(event, private_tags);
|
||||
|
||||
cJSON_Delete(payload);
|
||||
free(plaintext);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_enabled_flag_local(const char* enabled_s) {
|
||||
if (!enabled_s || enabled_s[0] == '\0') {
|
||||
return 1;
|
||||
@@ -2142,10 +2437,14 @@ static void on_self_skill_event(cJSON* event, const char* relay_url, void* user_
|
||||
}
|
||||
|
||||
cJSON* kind = cJSON_GetObjectItemCaseSensitive(event, "kind");
|
||||
int kind_val = (kind && cJSON_IsNumber(kind)) ? (int)kind->valuedouble : -1;
|
||||
if (kind_val == 31124) {
|
||||
(void)normalize_private_skill_event_local(event);
|
||||
}
|
||||
|
||||
cJSON* tags = cJSON_GetObjectItemCaseSensitive(event, "tags");
|
||||
cJSON* id = cJSON_GetObjectItemCaseSensitive(event, "id");
|
||||
cJSON* created_at = cJSON_GetObjectItemCaseSensitive(event, "created_at");
|
||||
int kind_val = (kind && cJSON_IsNumber(kind)) ? (int)kind->valuedouble : -1;
|
||||
const char* d_tag = (tags && cJSON_IsArray(tags)) ? find_tag_value_local(tags, "d") : NULL;
|
||||
|
||||
DEBUG_INFO("[didactyl] self-skill cache received kind=%d d_tag=%s id=%s created_at=%lld via %s",
|
||||
@@ -2160,6 +2459,8 @@ static void on_self_skill_event(cJSON* event, const char* relay_url, void* user_
|
||||
pthread_mutex_lock(&g_self_skill_mutex);
|
||||
self_skill_cache_upsert_event_locked(event);
|
||||
pthread_mutex_unlock(&g_self_skill_mutex);
|
||||
|
||||
agent_invalidate_adopted_skills_cache();
|
||||
}
|
||||
|
||||
static void on_wallet_event(cJSON* event, const char* relay_url, void* user_data) {
|
||||
@@ -2481,7 +2782,7 @@ int nostr_handler_subscribe_self_skills(void) {
|
||||
NULL,
|
||||
0,
|
||||
0,
|
||||
NOSTR_POOL_EOSE_FIRST,
|
||||
NOSTR_POOL_EOSE_ANY,
|
||||
12,
|
||||
14,
|
||||
1) != 0) {
|
||||
@@ -2921,19 +3222,36 @@ static int publish_kind_event_to_relays(int kind,
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char* content_to_publish = content;
|
||||
cJSON* tags_to_publish = tags;
|
||||
char* encrypted_content = NULL;
|
||||
cJSON* public_tags = NULL;
|
||||
|
||||
if (kind == 31124) {
|
||||
if (encode_private_skill_event_payload_local(content, tags, &encrypted_content, &public_tags) != 0) {
|
||||
return -1;
|
||||
}
|
||||
content_to_publish = encrypted_content;
|
||||
tags_to_publish = public_tags;
|
||||
}
|
||||
|
||||
cJSON* tags_copy = NULL;
|
||||
if (tags) {
|
||||
tags_copy = cJSON_Duplicate(tags, 1);
|
||||
if (tags_to_publish) {
|
||||
tags_copy = cJSON_Duplicate(tags_to_publish, 1);
|
||||
if (!tags_copy) {
|
||||
free(encrypted_content);
|
||||
cJSON_Delete(public_tags);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON* event = nostr_create_and_sign_event(kind, content, tags_copy, g_cfg->keys.private_key, time(NULL));
|
||||
cJSON* event = nostr_create_and_sign_event(kind, content_to_publish, tags_copy, g_cfg->keys.private_key, time(NULL));
|
||||
if (tags_copy) {
|
||||
cJSON_Delete(tags_copy);
|
||||
}
|
||||
if (!event) {
|
||||
free(encrypted_content);
|
||||
cJSON_Delete(public_tags);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -2966,12 +3284,17 @@ static int publish_kind_event_to_relays(int kind,
|
||||
sent);
|
||||
|
||||
if (sent > 0) {
|
||||
if (kind == 31124) {
|
||||
(void)normalize_private_skill_event_local(event);
|
||||
}
|
||||
pthread_mutex_lock(&g_self_skill_mutex);
|
||||
self_skill_cache_upsert_event_locked(event);
|
||||
pthread_mutex_unlock(&g_self_skill_mutex);
|
||||
}
|
||||
|
||||
cJSON_Delete(event);
|
||||
free(encrypted_content);
|
||||
cJSON_Delete(public_tags);
|
||||
return sent > 0 ? 0 : -1;
|
||||
}
|
||||
|
||||
@@ -3902,6 +4225,92 @@ char* nostr_handler_get_dm_history_json(const char* peer_pubkey_hex, int limit)
|
||||
return out ? out : strdup("[]");
|
||||
}
|
||||
|
||||
char* nostr_handler_get_dm_history_markdown(const char* peer_pubkey_hex, int limit) {
|
||||
if (!peer_pubkey_hex || strlen(peer_pubkey_hex) != 64U) {
|
||||
return strdup("");
|
||||
}
|
||||
|
||||
int max_take = limit > 0 ? limit : 64;
|
||||
if (max_take > DM_HISTORY_RING_SIZE) {
|
||||
max_take = DM_HISTORY_RING_SIZE;
|
||||
}
|
||||
|
||||
size_t cap = 1024;
|
||||
size_t used = 0;
|
||||
char* buf = (char*)malloc(cap);
|
||||
if (!buf) return NULL;
|
||||
buf[0] = '\0';
|
||||
|
||||
pthread_mutex_lock(&g_dm_history_mutex);
|
||||
|
||||
int total = g_dm_history_count;
|
||||
int matches = 0;
|
||||
for (int i = 0; i < total; i++) {
|
||||
int idx = (g_dm_history_count < DM_HISTORY_RING_SIZE)
|
||||
? i
|
||||
: (g_dm_history_next + i) % DM_HISTORY_RING_SIZE;
|
||||
dm_history_entry_t* entry = &g_dm_history_ring[idx];
|
||||
if (entry->peer_pubkey_hex[0] == '\0' || !entry->content) {
|
||||
continue;
|
||||
}
|
||||
if (strcmp(entry->peer_pubkey_hex, peer_pubkey_hex) == 0) {
|
||||
matches++;
|
||||
}
|
||||
}
|
||||
|
||||
int skip = matches > max_take ? (matches - max_take) : 0;
|
||||
int seen = 0;
|
||||
for (int i = 0; i < total; i++) {
|
||||
int idx = (g_dm_history_count < DM_HISTORY_RING_SIZE)
|
||||
? i
|
||||
: (g_dm_history_next + i) % DM_HISTORY_RING_SIZE;
|
||||
dm_history_entry_t* entry = &g_dm_history_ring[idx];
|
||||
if (entry->peer_pubkey_hex[0] == '\0' || !entry->content) {
|
||||
continue;
|
||||
}
|
||||
if (strcmp(entry->peer_pubkey_hex, peer_pubkey_hex) != 0) {
|
||||
continue;
|
||||
}
|
||||
if (seen++ < skip) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const char* role_label = "**You**";
|
||||
if (entry->role == DIDACTYL_DM_HISTORY_USER) {
|
||||
role_label = "**Admin**";
|
||||
} else if (entry->role == DIDACTYL_DM_HISTORY_TOOL_REQUEST) {
|
||||
role_label = "**Admin (Tool Request)**";
|
||||
} else if (entry->role == DIDACTYL_DM_HISTORY_TOOL_RESPONSE) {
|
||||
role_label = "**You (Tool Response)**";
|
||||
}
|
||||
|
||||
size_t need = strlen("- ") + strlen(role_label) + strlen(": ") + strlen(entry->content) + 2U;
|
||||
if (used + need > cap) {
|
||||
size_t next = cap;
|
||||
while (used + need > next) next *= 2U;
|
||||
char* grown = (char*)realloc(buf, next);
|
||||
if (!grown) {
|
||||
pthread_mutex_unlock(&g_dm_history_mutex);
|
||||
free(buf);
|
||||
return NULL;
|
||||
}
|
||||
buf = grown;
|
||||
cap = next;
|
||||
}
|
||||
|
||||
snprintf(buf + used, cap - used, "- %s: %s\n", role_label, entry->content);
|
||||
used += strlen(buf + used);
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&g_dm_history_mutex);
|
||||
|
||||
if (used > 0 && buf[used - 1] == '\n') {
|
||||
buf[used - 1] = '\0';
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
char* nostr_handler_get_admin_kind0_context(void) {
|
||||
if (!g_cfg || !g_cfg->admin_context.enabled || !g_cfg->admin_context.track_kind_0) {
|
||||
return NULL;
|
||||
|
||||
@@ -102,6 +102,7 @@ int nostr_handler_dm_history_remember(const char* peer_pubkey_hex,
|
||||
const char* content,
|
||||
didactyl_dm_history_role_t role);
|
||||
char* nostr_handler_get_dm_history_json(const char* peer_pubkey_hex, int limit);
|
||||
char* nostr_handler_get_dm_history_markdown(const char* peer_pubkey_hex, int limit);
|
||||
void nostr_handler_cleanup(void);
|
||||
|
||||
#endif
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "prompt_template.h"
|
||||
#include "cjson/cJSON.h"
|
||||
#include "json_to_markdown.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
@@ -177,9 +178,15 @@ char* prompt_template_resolve_inline_variables(const char* tpl, tools_context_t*
|
||||
if (!success || !cJSON_IsBool(success) || cJSON_IsTrue(success)) {
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(root, "content");
|
||||
if (content && cJSON_IsString(content) && content->valuestring) {
|
||||
replacement_owned = strdup(content->valuestring);
|
||||
char* md = json_to_markdown(content->valuestring, 8);
|
||||
replacement_owned = md ? md : strdup(content->valuestring);
|
||||
} else if (content) {
|
||||
replacement_owned = cJSON_PrintUnformatted(content);
|
||||
char* raw = cJSON_PrintUnformatted(content);
|
||||
if (raw) {
|
||||
char* md = json_to_markdown(raw, 8);
|
||||
replacement_owned = md ? md : raw;
|
||||
if (md) free(raw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ static void config_set_defaults(didactyl_config_t* cfg) {
|
||||
cfg->dm_protocol = DM_PROTOCOL_NIP04;
|
||||
|
||||
cfg->tools.enabled = 1;
|
||||
cfg->tools.max_turns = 20;
|
||||
cfg->tools.max_turns = 40;
|
||||
cfg->tools.trigger_max_turns = 12;
|
||||
cfg->tools.api_default_max_turns = 8;
|
||||
cfg->tools.api_max_turns_ceiling = 32;
|
||||
@@ -981,7 +981,7 @@ static int fetch_and_decrypt_self_config_wizard(const didactyl_config_t* cfg, co
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int apply_recalled_llm_config_wizard(didactyl_config_t* cfg, const char* plaintext) {
|
||||
static int apply_recalled_user_settings_wizard(didactyl_config_t* cfg, const char* plaintext) {
|
||||
if (!cfg || !plaintext) return -1;
|
||||
|
||||
cJSON* root = cJSON_Parse(plaintext);
|
||||
@@ -990,16 +990,29 @@ static int apply_recalled_llm_config_wizard(didactyl_config_t* cfg, const char*
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* provider = cJSON_GetObjectItemCaseSensitive(root, "provider");
|
||||
cJSON* api_key = cJSON_GetObjectItemCaseSensitive(root, "api_key");
|
||||
cJSON* model = cJSON_GetObjectItemCaseSensitive(root, "model");
|
||||
cJSON* base_url = cJSON_GetObjectItemCaseSensitive(root, "base_url");
|
||||
cJSON* max_tokens = cJSON_GetObjectItemCaseSensitive(root, "max_tokens");
|
||||
cJSON* temperature = cJSON_GetObjectItemCaseSensitive(root, "temperature");
|
||||
cJSON* global_llm = cJSON_GetObjectItemCaseSensitive(root, "global_llm");
|
||||
cJSON* didactyl = cJSON_GetObjectItemCaseSensitive(root, "didactyl");
|
||||
if (!global_llm || !cJSON_IsObject(global_llm) || !didactyl || !cJSON_IsObject(didactyl)) {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* provider = cJSON_GetObjectItemCaseSensitive(global_llm, "provider");
|
||||
cJSON* api_key = cJSON_GetObjectItemCaseSensitive(global_llm, "api_key");
|
||||
cJSON* model = cJSON_GetObjectItemCaseSensitive(global_llm, "model");
|
||||
cJSON* base_url = cJSON_GetObjectItemCaseSensitive(global_llm, "base_url");
|
||||
cJSON* max_tokens = cJSON_GetObjectItemCaseSensitive(global_llm, "max_tokens");
|
||||
cJSON* temperature = cJSON_GetObjectItemCaseSensitive(global_llm, "temperature");
|
||||
|
||||
cJSON* admin_pubkey = cJSON_GetObjectItemCaseSensitive(didactyl, "admin_pubkey");
|
||||
cJSON* dm_protocol = cJSON_GetObjectItemCaseSensitive(didactyl, "dm_protocol");
|
||||
cJSON* max_turns = cJSON_GetObjectItemCaseSensitive(didactyl, "max_turns");
|
||||
|
||||
if (!api_key || !cJSON_IsString(api_key) || !api_key->valuestring || api_key->valuestring[0] == '\0' ||
|
||||
!model || !cJSON_IsString(model) || !model->valuestring || model->valuestring[0] == '\0' ||
|
||||
!base_url || !cJSON_IsString(base_url) || !base_url->valuestring || base_url->valuestring[0] == '\0') {
|
||||
!base_url || !cJSON_IsString(base_url) || !base_url->valuestring || base_url->valuestring[0] == '\0' ||
|
||||
!admin_pubkey || !cJSON_IsString(admin_pubkey) || !admin_pubkey->valuestring || admin_pubkey->valuestring[0] == '\0' ||
|
||||
!dm_protocol || !cJSON_IsString(dm_protocol) || !dm_protocol->valuestring || dm_protocol->valuestring[0] == '\0') {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
@@ -1020,37 +1033,26 @@ static int apply_recalled_llm_config_wizard(didactyl_config_t* cfg, const char*
|
||||
cfg->llm.temperature = temperature->valuedouble;
|
||||
}
|
||||
|
||||
cJSON_Delete(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int apply_recalled_agent_config_wizard(didactyl_config_t* cfg, const char* plaintext) {
|
||||
if (!cfg || !plaintext) return -1;
|
||||
|
||||
cJSON* root = cJSON_Parse(plaintext);
|
||||
if (!root || !cJSON_IsObject(root)) {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* admin_pubkey = cJSON_GetObjectItemCaseSensitive(root, "admin_pubkey");
|
||||
cJSON* dm_protocol = cJSON_GetObjectItemCaseSensitive(root, "dm_protocol");
|
||||
|
||||
if (admin_pubkey && cJSON_IsString(admin_pubkey) && admin_pubkey->valuestring && admin_pubkey->valuestring[0] != '\0') {
|
||||
{
|
||||
char decoded[65] = {0};
|
||||
if (decode_pubkey_hex_or_npub_local(admin_pubkey->valuestring, decoded) == 0) {
|
||||
snprintf(cfg->admin.pubkey, sizeof(cfg->admin.pubkey), "%s", decoded);
|
||||
if (decode_pubkey_hex_or_npub_local(admin_pubkey->valuestring, decoded) != 0) {
|
||||
cJSON_Delete(root);
|
||||
return -1;
|
||||
}
|
||||
snprintf(cfg->admin.pubkey, sizeof(cfg->admin.pubkey), "%s", decoded);
|
||||
}
|
||||
|
||||
if (dm_protocol && cJSON_IsString(dm_protocol) && dm_protocol->valuestring && dm_protocol->valuestring[0] != '\0') {
|
||||
if (strcmp(dm_protocol->valuestring, "nip17") == 0) {
|
||||
cfg->dm_protocol = DM_PROTOCOL_NIP17;
|
||||
} else if (strcmp(dm_protocol->valuestring, "both") == 0) {
|
||||
cfg->dm_protocol = DM_PROTOCOL_BOTH;
|
||||
} else {
|
||||
cfg->dm_protocol = DM_PROTOCOL_NIP04;
|
||||
}
|
||||
if (strcmp(dm_protocol->valuestring, "nip17") == 0) {
|
||||
cfg->dm_protocol = DM_PROTOCOL_NIP17;
|
||||
} else if (strcmp(dm_protocol->valuestring, "both") == 0) {
|
||||
cfg->dm_protocol = DM_PROTOCOL_BOTH;
|
||||
} else {
|
||||
cfg->dm_protocol = DM_PROTOCOL_NIP04;
|
||||
}
|
||||
|
||||
if (max_turns && cJSON_IsNumber(max_turns)) {
|
||||
int parsed = (int)max_turns->valuedouble;
|
||||
cfg->tools.max_turns = (parsed > 0) ? parsed : 40;
|
||||
}
|
||||
|
||||
cJSON_Delete(root);
|
||||
@@ -1077,17 +1079,11 @@ static int recover_full_config_from_nostr(didactyl_config_t* cfg,
|
||||
|
||||
(void)query_self_kind0_name(cfg, out_agent_name, out_agent_name_size, out_agent_name_found);
|
||||
|
||||
char* llm_plaintext = NULL;
|
||||
if (fetch_and_decrypt_self_config_wizard(cfg, "llm_config", &llm_plaintext) == 0 && llm_plaintext) {
|
||||
(void)apply_recalled_llm_config_wizard(cfg, llm_plaintext);
|
||||
char* settings_plaintext = NULL;
|
||||
if (fetch_and_decrypt_self_config_wizard(cfg, "user-settings", &settings_plaintext) == 0 && settings_plaintext) {
|
||||
(void)apply_recalled_user_settings_wizard(cfg, settings_plaintext);
|
||||
}
|
||||
free(llm_plaintext);
|
||||
|
||||
char* agent_plaintext = NULL;
|
||||
if (fetch_and_decrypt_self_config_wizard(cfg, "agent_config", &agent_plaintext) == 0 && agent_plaintext) {
|
||||
(void)apply_recalled_agent_config_wizard(cfg, agent_plaintext);
|
||||
}
|
||||
free(agent_plaintext);
|
||||
free(settings_plaintext);
|
||||
|
||||
nostr_handler_cleanup();
|
||||
return 0;
|
||||
@@ -1153,34 +1149,39 @@ static int publish_encrypted_self_config_wizard(const didactyl_config_t* cfg,
|
||||
static int persist_runtime_config_to_nostr_wizard(const didactyl_config_t* cfg) {
|
||||
if (!cfg) return -1;
|
||||
|
||||
cJSON* llm = cJSON_CreateObject();
|
||||
if (!llm) return -1;
|
||||
cJSON_AddStringToObject(llm, "provider", cfg->llm.provider);
|
||||
cJSON_AddStringToObject(llm, "api_key", cfg->llm.api_key);
|
||||
cJSON_AddStringToObject(llm, "model", cfg->llm.model);
|
||||
cJSON_AddStringToObject(llm, "base_url", cfg->llm.base_url);
|
||||
cJSON_AddNumberToObject(llm, "max_tokens", cfg->llm.max_tokens);
|
||||
cJSON_AddNumberToObject(llm, "temperature", cfg->llm.temperature);
|
||||
cJSON* user_settings = cJSON_CreateObject();
|
||||
cJSON* global_llm = cJSON_CreateObject();
|
||||
cJSON* didactyl = cJSON_CreateObject();
|
||||
if (!user_settings || !global_llm || !didactyl) {
|
||||
cJSON_Delete(user_settings);
|
||||
cJSON_Delete(global_llm);
|
||||
cJSON_Delete(didactyl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
char* llm_json = cJSON_PrintUnformatted(llm);
|
||||
cJSON_Delete(llm);
|
||||
if (!llm_json) return -1;
|
||||
cJSON_AddNumberToObject(user_settings, "v", 2);
|
||||
cJSON_AddNumberToObject(user_settings, "updatedAt", (double)time(NULL));
|
||||
|
||||
int llm_rc = publish_encrypted_self_config_wizard(cfg, "llm_config", llm_json);
|
||||
free(llm_json);
|
||||
cJSON_AddStringToObject(global_llm, "provider", cfg->llm.provider);
|
||||
cJSON_AddStringToObject(global_llm, "api_key", cfg->llm.api_key);
|
||||
cJSON_AddStringToObject(global_llm, "model", cfg->llm.model);
|
||||
cJSON_AddStringToObject(global_llm, "base_url", cfg->llm.base_url);
|
||||
cJSON_AddNumberToObject(global_llm, "max_tokens", cfg->llm.max_tokens);
|
||||
cJSON_AddNumberToObject(global_llm, "temperature", cfg->llm.temperature);
|
||||
cJSON_AddItemToObject(user_settings, "global_llm", global_llm);
|
||||
|
||||
cJSON* agent = cJSON_CreateObject();
|
||||
if (!agent) return llm_rc;
|
||||
cJSON_AddStringToObject(agent, "admin_pubkey", cfg->admin.pubkey);
|
||||
cJSON_AddStringToObject(agent, "dm_protocol", dm_protocol_to_string_local(cfg->dm_protocol));
|
||||
char* agent_json = cJSON_PrintUnformatted(agent);
|
||||
cJSON_Delete(agent);
|
||||
if (!agent_json) return llm_rc;
|
||||
cJSON_AddStringToObject(didactyl, "admin_pubkey", cfg->admin.pubkey);
|
||||
cJSON_AddStringToObject(didactyl, "dm_protocol", dm_protocol_to_string_local(cfg->dm_protocol));
|
||||
cJSON_AddNumberToObject(didactyl, "max_turns", cfg->tools.max_turns > 0 ? cfg->tools.max_turns : 40);
|
||||
cJSON_AddItemToObject(user_settings, "didactyl", didactyl);
|
||||
|
||||
int agent_rc = publish_encrypted_self_config_wizard(cfg, "agent_config", agent_json);
|
||||
free(agent_json);
|
||||
char* settings_json = cJSON_PrintUnformatted(user_settings);
|
||||
cJSON_Delete(user_settings);
|
||||
if (!settings_json) return -1;
|
||||
|
||||
return (llm_rc == 0 && agent_rc == 0) ? 0 : -1;
|
||||
int rc = publish_encrypted_self_config_wizard(cfg, "user-settings", settings_json);
|
||||
free(settings_json);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int persist_runtime_config_to_nostr_wizard_online(const didactyl_config_t* cfg) {
|
||||
|
||||
@@ -410,7 +410,7 @@ char* execute_nostr_dm_history(tools_context_t* ctx, const char* args_json) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const char* prefix = (strcmp(role->valuestring, "user") == 0) ? "User: " : "Assistant: ";
|
||||
const char* prefix = (strcmp(role->valuestring, "user") == 0) ? "- **Admin**: " : "- **You**: ";
|
||||
if (append_text_local(&rendered, &cap, &used, prefix) != 0 ||
|
||||
append_text_local(&rendered, &cap, &used, content->valuestring) != 0 ||
|
||||
append_text_local(&rendered, &cap, &used, "\n") != 0) {
|
||||
|
||||
@@ -100,7 +100,7 @@ static int query_config_ciphertext_local(tools_context_t* ctx, const char* d_tag
|
||||
cJSON_AddItemToArray(d_vals, cJSON_CreateString(d_tag));
|
||||
cJSON_AddItemToObject(filter, "#d", d_vals);
|
||||
|
||||
cJSON_AddNumberToObject(filter, "limit", 1);
|
||||
cJSON_AddNumberToObject(filter, "limit", 20);
|
||||
|
||||
char* events_json = nostr_handler_query_json(filter, 4000);
|
||||
cJSON_Delete(filter);
|
||||
@@ -116,8 +116,27 @@ static int query_config_ciphertext_local(tools_context_t* ctx, const char* d_tag
|
||||
return (*out_ciphertext != NULL) ? 0 : -1;
|
||||
}
|
||||
|
||||
cJSON* ev = cJSON_GetArrayItem(arr, 0);
|
||||
cJSON* content = ev ? cJSON_GetObjectItemCaseSensitive(ev, "content") : NULL;
|
||||
cJSON* newest_ev = NULL;
|
||||
long newest_created_at = -1;
|
||||
int n = cJSON_GetArraySize(arr);
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* ev = cJSON_GetArrayItem(arr, i);
|
||||
if (!ev || !cJSON_IsObject(ev)) {
|
||||
continue;
|
||||
}
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(ev, "content");
|
||||
if (!content || !cJSON_IsString(content) || !content->valuestring || content->valuestring[0] == '\0') {
|
||||
continue;
|
||||
}
|
||||
cJSON* created_at = cJSON_GetObjectItemCaseSensitive(ev, "created_at");
|
||||
long ts = (created_at && cJSON_IsNumber(created_at)) ? (long)created_at->valuedouble : 0;
|
||||
if (!newest_ev || ts > newest_created_at) {
|
||||
newest_ev = ev;
|
||||
newest_created_at = ts;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON* content = newest_ev ? cJSON_GetObjectItemCaseSensitive(newest_ev, "content") : NULL;
|
||||
const char* cipher = (content && cJSON_IsString(content) && content->valuestring) ? content->valuestring : "";
|
||||
|
||||
*out_ciphertext = strdup(cipher);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "cjson/cJSON.h"
|
||||
#include "../config.h"
|
||||
@@ -30,7 +31,9 @@ static cJSON* parse_args_local(const char* args_json) {
|
||||
return args;
|
||||
}
|
||||
|
||||
static int persist_llm_config_nostr(tools_context_t* ctx, const llm_config_t* cfg, char** out_error) {
|
||||
static int persist_global_llm_user_settings_nostr(tools_context_t* ctx,
|
||||
const llm_config_t* cfg,
|
||||
char** out_error) {
|
||||
if (!ctx || !ctx->cfg || !cfg) {
|
||||
if (out_error) *out_error = strdup("invalid persist context");
|
||||
return -1;
|
||||
@@ -38,28 +41,136 @@ static int persist_llm_config_nostr(tools_context_t* ctx, const llm_config_t* cf
|
||||
|
||||
if (out_error) *out_error = NULL;
|
||||
|
||||
cJSON* args = cJSON_CreateObject();
|
||||
cJSON* content = cJSON_CreateObject();
|
||||
if (!args || !content) {
|
||||
cJSON_Delete(args);
|
||||
cJSON_Delete(content);
|
||||
if (out_error) *out_error = strdup("allocation failure while building llm_config payload");
|
||||
cJSON* recall_args = cJSON_CreateObject();
|
||||
if (!recall_args) {
|
||||
if (out_error) *out_error = strdup("allocation failure while building config_recall args");
|
||||
return -1;
|
||||
}
|
||||
cJSON_AddStringToObject(recall_args, "d_tag", "user-settings");
|
||||
|
||||
char* recall_args_json = cJSON_PrintUnformatted(recall_args);
|
||||
cJSON_Delete(recall_args);
|
||||
if (!recall_args_json) {
|
||||
if (out_error) *out_error = strdup("failed to serialize config_recall args");
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON_AddStringToObject(args, "d_tag", "llm_config");
|
||||
cJSON_AddStringToObject(content, "provider", cfg->provider);
|
||||
cJSON_AddStringToObject(content, "api_key", cfg->api_key);
|
||||
cJSON_AddStringToObject(content, "model", cfg->model);
|
||||
cJSON_AddStringToObject(content, "base_url", cfg->base_url);
|
||||
cJSON_AddNumberToObject(content, "max_tokens", cfg->max_tokens);
|
||||
cJSON_AddNumberToObject(content, "temperature", cfg->temperature);
|
||||
cJSON_AddItemToObject(args, "content", content);
|
||||
char* recall_result = execute_config_recall(ctx, recall_args_json);
|
||||
free(recall_args_json);
|
||||
if (!recall_result) {
|
||||
if (out_error) *out_error = strdup("config_recall returned no response");
|
||||
return -1;
|
||||
}
|
||||
|
||||
char* store_args_json = cJSON_PrintUnformatted(args);
|
||||
cJSON_Delete(args);
|
||||
cJSON* recall_root = cJSON_Parse(recall_result);
|
||||
free(recall_result);
|
||||
if (!recall_root || !cJSON_IsObject(recall_root)) {
|
||||
cJSON_Delete(recall_root);
|
||||
if (out_error) *out_error = strdup("config_recall returned invalid JSON");
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* recall_success = cJSON_GetObjectItemCaseSensitive(recall_root, "success");
|
||||
if (!recall_success || !cJSON_IsBool(recall_success) || !cJSON_IsTrue(recall_success)) {
|
||||
cJSON* err = cJSON_GetObjectItemCaseSensitive(recall_root, "error");
|
||||
if (out_error) {
|
||||
if (err && cJSON_IsString(err) && err->valuestring) {
|
||||
*out_error = strdup(err->valuestring);
|
||||
} else {
|
||||
*out_error = strdup("config_recall failed");
|
||||
}
|
||||
}
|
||||
cJSON_Delete(recall_root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* found_j = cJSON_GetObjectItemCaseSensitive(recall_root, "found");
|
||||
int found = (found_j && cJSON_IsBool(found_j) && cJSON_IsTrue(found_j)) ? 1 : 0;
|
||||
|
||||
cJSON* content_json = cJSON_GetObjectItemCaseSensitive(recall_root, "content_json");
|
||||
cJSON* user_settings = NULL;
|
||||
if (found && content_json && cJSON_IsObject(content_json)) {
|
||||
user_settings = cJSON_Duplicate(content_json, 1);
|
||||
}
|
||||
if (!user_settings) {
|
||||
user_settings = cJSON_CreateObject();
|
||||
}
|
||||
cJSON_Delete(recall_root);
|
||||
|
||||
if (!user_settings) {
|
||||
if (out_error) *out_error = strdup("allocation failure while preparing user-settings payload");
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(user_settings, "v");
|
||||
cJSON_AddNumberToObject(user_settings, "v", 2);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(user_settings, "updatedAt");
|
||||
cJSON_AddNumberToObject(user_settings, "updatedAt", (double)time(NULL));
|
||||
|
||||
cJSON* global_llm = cJSON_GetObjectItemCaseSensitive(user_settings, "global_llm");
|
||||
if (global_llm && !cJSON_IsObject(global_llm)) {
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(user_settings, "global_llm");
|
||||
global_llm = NULL;
|
||||
}
|
||||
if (!global_llm) {
|
||||
cJSON* new_global_llm = cJSON_CreateObject();
|
||||
if (!new_global_llm) {
|
||||
cJSON_Delete(user_settings);
|
||||
if (out_error) *out_error = strdup("allocation failure while preparing global_llm payload");
|
||||
return -1;
|
||||
}
|
||||
cJSON_AddItemToObject(user_settings, "global_llm", new_global_llm);
|
||||
global_llm = new_global_llm;
|
||||
}
|
||||
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(global_llm, "provider");
|
||||
cJSON_AddStringToObject(global_llm, "provider", cfg->provider);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(global_llm, "api_key");
|
||||
cJSON_AddStringToObject(global_llm, "api_key", cfg->api_key);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(global_llm, "model");
|
||||
cJSON_AddStringToObject(global_llm, "model", cfg->model);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(global_llm, "base_url");
|
||||
cJSON_AddStringToObject(global_llm, "base_url", cfg->base_url);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(global_llm, "max_tokens");
|
||||
cJSON_AddNumberToObject(global_llm, "max_tokens", cfg->max_tokens);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(global_llm, "temperature");
|
||||
cJSON_AddNumberToObject(global_llm, "temperature", cfg->temperature);
|
||||
|
||||
cJSON* didactyl = cJSON_GetObjectItemCaseSensitive(user_settings, "didactyl");
|
||||
if (didactyl && !cJSON_IsObject(didactyl)) {
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(user_settings, "didactyl");
|
||||
didactyl = NULL;
|
||||
}
|
||||
if (!didactyl) {
|
||||
cJSON* new_didactyl = cJSON_CreateObject();
|
||||
if (!new_didactyl) {
|
||||
cJSON_Delete(user_settings);
|
||||
if (out_error) *out_error = strdup("allocation failure while preparing didactyl payload");
|
||||
return -1;
|
||||
}
|
||||
cJSON_AddItemToObject(user_settings, "didactyl", new_didactyl);
|
||||
didactyl = new_didactyl;
|
||||
}
|
||||
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(didactyl, "max_turns");
|
||||
cJSON_AddNumberToObject(didactyl,
|
||||
"max_turns",
|
||||
(ctx->cfg->tools.max_turns > 0) ? ctx->cfg->tools.max_turns : 40);
|
||||
|
||||
cJSON* store_args = cJSON_CreateObject();
|
||||
if (!store_args) {
|
||||
cJSON_Delete(user_settings);
|
||||
if (out_error) *out_error = strdup("allocation failure while building config_store args");
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON_AddStringToObject(store_args, "d_tag", "user-settings");
|
||||
cJSON_AddItemToObject(store_args, "content", user_settings);
|
||||
|
||||
char* store_args_json = cJSON_PrintUnformatted(store_args);
|
||||
cJSON_Delete(store_args);
|
||||
if (!store_args_json) {
|
||||
if (out_error) *out_error = strdup("failed to serialize llm_config payload");
|
||||
if (out_error) *out_error = strdup("failed to serialize user-settings payload");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -70,17 +181,17 @@ static int persist_llm_config_nostr(tools_context_t* ctx, const llm_config_t* cf
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* root = cJSON_Parse(store_result);
|
||||
if (!root || !cJSON_IsObject(root)) {
|
||||
cJSON_Delete(root);
|
||||
cJSON* store_root = cJSON_Parse(store_result);
|
||||
free(store_result);
|
||||
if (!store_root || !cJSON_IsObject(store_root)) {
|
||||
cJSON_Delete(store_root);
|
||||
if (out_error) *out_error = strdup("config_store returned invalid JSON");
|
||||
free(store_result);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON* success = cJSON_GetObjectItemCaseSensitive(root, "success");
|
||||
if (!success || !cJSON_IsBool(success) || !cJSON_IsTrue(success)) {
|
||||
cJSON* err = cJSON_GetObjectItemCaseSensitive(root, "error");
|
||||
cJSON* store_success = cJSON_GetObjectItemCaseSensitive(store_root, "success");
|
||||
if (!store_success || !cJSON_IsBool(store_success) || !cJSON_IsTrue(store_success)) {
|
||||
cJSON* err = cJSON_GetObjectItemCaseSensitive(store_root, "error");
|
||||
if (out_error) {
|
||||
if (err && cJSON_IsString(err) && err->valuestring) {
|
||||
*out_error = strdup(err->valuestring);
|
||||
@@ -88,13 +199,11 @@ static int persist_llm_config_nostr(tools_context_t* ctx, const llm_config_t* cf
|
||||
*out_error = strdup("config_store failed");
|
||||
}
|
||||
}
|
||||
cJSON_Delete(root);
|
||||
free(store_result);
|
||||
cJSON_Delete(store_root);
|
||||
return -1;
|
||||
}
|
||||
|
||||
cJSON_Delete(root);
|
||||
free(store_result);
|
||||
cJSON_Delete(store_root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -216,7 +325,7 @@ char* execute_model_set(tools_context_t* ctx, const char* args_json) {
|
||||
ctx->cfg->llm = cfg;
|
||||
|
||||
char* persist_error = NULL;
|
||||
int persisted = (persist_llm_config_nostr(ctx, &cfg, &persist_error) == 0) ? 1 : 0;
|
||||
int persisted = (persist_global_llm_user_settings_nostr(ctx, &cfg, &persist_error) == 0) ? 1 : 0;
|
||||
|
||||
cJSON* out = cJSON_CreateObject();
|
||||
if (!out) return NULL;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "../debug.h"
|
||||
#include "../nostr_handler.h"
|
||||
#include "../trigger_manager.h"
|
||||
#include "../agent.h"
|
||||
|
||||
static char* json_error_local(const char* msg) {
|
||||
cJSON* root = cJSON_CreateObject();
|
||||
@@ -1769,6 +1770,21 @@ char* execute_skill_edit(tools_context_t* ctx, const char* args_json) {
|
||||
return json;
|
||||
}
|
||||
|
||||
char* execute_skill_refresh(tools_context_t* ctx, const char* args_json) {
|
||||
(void)args_json;
|
||||
if (!ctx || !ctx->cfg) return json_error_local("tool context unavailable");
|
||||
|
||||
agent_invalidate_adopted_skills_cache();
|
||||
|
||||
cJSON* out = cJSON_CreateObject();
|
||||
if (!out) return NULL;
|
||||
cJSON_AddBoolToObject(out, "success", 1);
|
||||
cJSON_AddStringToObject(out, "message", "adopted skills cache invalidated; next context build will reload skills");
|
||||
char* json = cJSON_PrintUnformatted(out);
|
||||
cJSON_Delete(out);
|
||||
return json;
|
||||
}
|
||||
|
||||
char* execute_skill_search(const char* args_json) {
|
||||
cJSON* args = parse_args_local(args_json);
|
||||
if (!args) return json_error_local("invalid arguments JSON");
|
||||
|
||||
@@ -152,6 +152,9 @@ char* tools_execute_legacy(tools_context_t* ctx, const char* tool_name, const ch
|
||||
if (strcmp(tool_name, "skill_edit") == 0) {
|
||||
return execute_skill_edit(ctx, args_json);
|
||||
}
|
||||
if (strcmp(tool_name, "skill_refresh") == 0) {
|
||||
return execute_skill_refresh(ctx, args_json);
|
||||
}
|
||||
if (strcmp(tool_name, "trigger_list") == 0) {
|
||||
return execute_trigger_list(ctx, args_json);
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ char* execute_skill_set(tools_context_t* ctx, const char* args_json);
|
||||
char* execute_skill_adopt(tools_context_t* ctx, const char* args_json);
|
||||
char* execute_skill_remove(tools_context_t* ctx, const char* args_json);
|
||||
char* execute_skill_edit(tools_context_t* ctx, const char* args_json);
|
||||
char* execute_skill_refresh(tools_context_t* ctx, const char* args_json);
|
||||
char* execute_skill_search(const char* args_json);
|
||||
|
||||
char* execute_memory_save(tools_context_t* ctx, const char* args_json);
|
||||
|
||||
@@ -754,7 +754,7 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
|
||||
cJSON_AddStringToObject(t22, "type", "function");
|
||||
cJSON_AddStringToObject(t22_fn, "name", "skill_create");
|
||||
cJSON_AddStringToObject(t22_fn, "description", "Create or update a skill definition as kind 31123/31124 and optionally auto-adopt it");
|
||||
cJSON_AddStringToObject(t22_fn, "description", "Create or update a skill definition as kind 31123/31124 and optionally auto-adopt it. Write content as markdown context instructions (no role markers). The runtime owns role packaging and document H1, and will bump skill headings down one level, so prefer ## for top-level sections in skill content. For auto-run behavior, set trigger + filter together.");
|
||||
cJSON_AddStringToObject(t22_params, "type", "object");
|
||||
cJSON_AddItemToObject(t22_params, "properties", t22_props);
|
||||
cJSON_AddItemToObject(t22_params, "required", t22_required);
|
||||
@@ -764,6 +764,9 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
cJSON_AddItemToObject(t22_props, "d", p_skill_create_d);
|
||||
cJSON* p_skill_create_content = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_create_content, "type", "string");
|
||||
cJSON_AddStringToObject(p_skill_create_content,
|
||||
"description",
|
||||
"Markdown template for the skill body. Use plain markdown headings/lists/code fences and template variables like {{message}}, {{dm_history}}, {{agent_identity}}, {{admin_profile}}, or {{skill_d_tag}} references. Do not author system/user/assistant role markers in skill content; runtime appends trigger payloads as user input and handles role packaging. Runtime prepends document title and bumps headings one level.");
|
||||
cJSON_AddItemToObject(t22_props, "content", p_skill_create_content);
|
||||
cJSON* p_skill_create_scope = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_create_scope, "type", "string");
|
||||
@@ -777,10 +780,16 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
|
||||
cJSON* p_skill_create_trigger = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_create_trigger, "type", "string");
|
||||
cJSON_AddStringToObject(p_skill_create_trigger,
|
||||
"description",
|
||||
"Optional auto-run trigger. Must be one of: dm, cron, nostr-subscription, webhook, chain. If provided, filter is also required.");
|
||||
cJSON_AddItemToObject(t22_props, "trigger", p_skill_create_trigger);
|
||||
|
||||
cJSON* p_skill_create_filter = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_create_filter, "type", "string");
|
||||
cJSON_AddStringToObject(p_skill_create_filter,
|
||||
"description",
|
||||
"Trigger-specific filter string. Required when trigger is provided. Examples: dm=>{\"from\":\"admin\"}, cron=>\"0 12 * * *\", chain=>\"source_d_tag\", webhook=>\"{}\", nostr-subscription=>JSON filter.");
|
||||
cJSON_AddItemToObject(t22_props, "filter", p_skill_create_filter);
|
||||
|
||||
cJSON* p_skill_create_action = cJSON_CreateObject();
|
||||
@@ -993,7 +1002,7 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
|
||||
cJSON_AddStringToObject(t25b, "type", "function");
|
||||
cJSON_AddStringToObject(t25b_fn, "name", "skill_edit");
|
||||
cJSON_AddStringToObject(t25b_fn, "description", "Edit an existing self skill by d tag and republish it as kind 31123/31124");
|
||||
cJSON_AddStringToObject(t25b_fn, "description", "Edit an existing self skill by d tag and republish it as kind 31123/31124. Keep skill content markdown-first (no role markers). Runtime owns role packaging, owns H1, and bumps skill headings down one level. For triggered skills, update trigger and filter together.");
|
||||
cJSON_AddStringToObject(t25b_params, "type", "object");
|
||||
cJSON_AddItemToObject(t25b_params, "properties", t25b_props);
|
||||
cJSON_AddItemToObject(t25b_params, "required", t25b_required);
|
||||
@@ -1004,6 +1013,9 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
|
||||
cJSON* p_skill_edit_content = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_edit_content, "type", "string");
|
||||
cJSON_AddStringToObject(p_skill_edit_content,
|
||||
"description",
|
||||
"Replacement markdown template for this skill. Use markdown structure and template variables such as {{message}}, {{dm_history}}, {{agent_identity}}, {{admin_profile}}, and {{skill_d_tag}} references. Do not include authored system/user/assistant role markers; runtime handles role packaging and user payload injection. If omitted, existing content is retained.");
|
||||
cJSON_AddItemToObject(t25b_props, "content", p_skill_edit_content);
|
||||
|
||||
cJSON* p_skill_edit_scope = cJSON_CreateObject();
|
||||
@@ -1016,10 +1028,16 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
|
||||
cJSON* p_skill_edit_trigger = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_edit_trigger, "type", "string");
|
||||
cJSON_AddStringToObject(p_skill_edit_trigger,
|
||||
"description",
|
||||
"Optional trigger update. Valid values: dm, cron, nostr-subscription, webhook, chain. Must be paired with filter update when changing trigger config.");
|
||||
cJSON_AddItemToObject(t25b_props, "trigger", p_skill_edit_trigger);
|
||||
|
||||
cJSON* p_skill_edit_filter = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(p_skill_edit_filter, "type", "string");
|
||||
cJSON_AddStringToObject(p_skill_edit_filter,
|
||||
"description",
|
||||
"Trigger-specific filter update. Use with trigger. Examples: dm=>{\"from\":\"admin\"}, cron=>\"0 12 * * *\", chain=>\"source_d_tag\", webhook=>\"{}\", nostr-subscription=>JSON filter.");
|
||||
cJSON_AddItemToObject(t25b_props, "filter", p_skill_edit_filter);
|
||||
|
||||
cJSON* p_skill_edit_action = cJSON_CreateObject();
|
||||
@@ -1059,6 +1077,21 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) {
|
||||
cJSON_AddItemToObject(t25b, "function", t25b_fn);
|
||||
cJSON_AddItemToArray(tools, t25b);
|
||||
|
||||
cJSON* t25c = cJSON_CreateObject();
|
||||
cJSON* t25c_fn = cJSON_CreateObject();
|
||||
cJSON* t25c_params = cJSON_CreateObject();
|
||||
cJSON* t25c_props = cJSON_CreateObject();
|
||||
|
||||
cJSON_AddStringToObject(t25c, "type", "function");
|
||||
cJSON_AddStringToObject(t25c_fn, "name", "skill_refresh");
|
||||
cJSON_AddStringToObject(t25c_fn, "description", "Invalidate adopted skills cache so next context build reloads latest skill events from cache/relays");
|
||||
cJSON_AddStringToObject(t25c_params, "type", "object");
|
||||
cJSON_AddItemToObject(t25c_params, "properties", t25c_props);
|
||||
|
||||
cJSON_AddItemToObject(t25c_fn, "parameters", t25c_params);
|
||||
cJSON_AddItemToObject(t25c, "function", t25c_fn);
|
||||
cJSON_AddItemToArray(tools, t25c);
|
||||
|
||||
cJSON* t26 = cJSON_CreateObject();
|
||||
cJSON* t26_fn = cJSON_CreateObject();
|
||||
cJSON* t26_params = cJSON_CreateObject();
|
||||
|
||||
267
test_pool.c
Normal file
267
test_pool.c
Normal file
@@ -0,0 +1,267 @@
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "./nostr_core_lib/cjson/cJSON.h"
|
||||
#include "./nostr_core_lib/nostr_core/nostr_core.h"
|
||||
|
||||
static const char* k_default_relays[] = {
|
||||
"wss://relay.damus.io",
|
||||
"wss://relay.primal.net",
|
||||
"wss://relay.laantungir.net"
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
int eose_received;
|
||||
int events_received;
|
||||
int kind3_events;
|
||||
int max_p_tags;
|
||||
} test_ctx_t;
|
||||
|
||||
static volatile int g_ws_eose_seen = 0;
|
||||
|
||||
static long long now_ms(void) {
|
||||
struct timespec ts;
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {
|
||||
return 0;
|
||||
}
|
||||
return ((long long)ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
|
||||
}
|
||||
|
||||
static int count_tag(cJSON* tags, const char* key) {
|
||||
if (!tags || !cJSON_IsArray(tags) || !key) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int n = cJSON_GetArraySize(tags);
|
||||
int count = 0;
|
||||
for (int i = 0; i < n; i++) {
|
||||
cJSON* tag = cJSON_GetArrayItem(tags, i);
|
||||
if (!tag || !cJSON_IsArray(tag) || cJSON_GetArraySize(tag) < 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cJSON* k = cJSON_GetArrayItem(tag, 0);
|
||||
if (k && cJSON_IsString(k) && k->valuestring && strcmp(k->valuestring, key) == 0) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
static void on_event(cJSON* event, const char* relay_url, void* user_data) {
|
||||
test_ctx_t* ctx = (test_ctx_t*)user_data;
|
||||
if (!ctx || !event || !cJSON_IsObject(event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
ctx->events_received++;
|
||||
|
||||
cJSON* kind = cJSON_GetObjectItemCaseSensitive(event, "kind");
|
||||
cJSON* id = cJSON_GetObjectItemCaseSensitive(event, "id");
|
||||
cJSON* pubkey = cJSON_GetObjectItemCaseSensitive(event, "pubkey");
|
||||
cJSON* created_at = cJSON_GetObjectItemCaseSensitive(event, "created_at");
|
||||
cJSON* content = cJSON_GetObjectItemCaseSensitive(event, "content");
|
||||
cJSON* tags = cJSON_GetObjectItemCaseSensitive(event, "tags");
|
||||
|
||||
int kind_val = (kind && cJSON_IsNumber(kind)) ? (int)kind->valuedouble : -1;
|
||||
int p_tags = count_tag(tags, "p");
|
||||
int r_tags = count_tag(tags, "r");
|
||||
int tag_count = (tags && cJSON_IsArray(tags)) ? cJSON_GetArraySize(tags) : 0;
|
||||
int content_len = (content && cJSON_IsString(content) && content->valuestring) ? (int)strlen(content->valuestring) : 0;
|
||||
|
||||
if (p_tags > ctx->max_p_tags) {
|
||||
ctx->max_p_tags = p_tags;
|
||||
}
|
||||
if (kind_val == 3) {
|
||||
ctx->kind3_events++;
|
||||
}
|
||||
|
||||
printf("[EVENT] relay=%s kind=%d created_at=%lld tags=%d p_tags=%d r_tags=%d content_len=%d id=%.16s pubkey=%.16s\n",
|
||||
relay_url ? relay_url : "<unknown>",
|
||||
kind_val,
|
||||
(created_at && cJSON_IsNumber(created_at)) ? (long long)created_at->valuedouble : -1LL,
|
||||
tag_count,
|
||||
p_tags,
|
||||
r_tags,
|
||||
content_len,
|
||||
(id && cJSON_IsString(id) && id->valuestring) ? id->valuestring : "",
|
||||
(pubkey && cJSON_IsString(pubkey) && pubkey->valuestring) ? pubkey->valuestring : "");
|
||||
}
|
||||
|
||||
static void on_eose(cJSON** events, int event_count, void* user_data) {
|
||||
(void)events;
|
||||
test_ctx_t* ctx = (test_ctx_t*)user_data;
|
||||
if (!ctx) {
|
||||
return;
|
||||
}
|
||||
|
||||
ctx->eose_received = 1;
|
||||
printf("[EOSE] received for subscription (event_count=%d)\n", event_count);
|
||||
}
|
||||
|
||||
static void log_callback(int level, const char* component, const char* message, void* user_data) {
|
||||
(void)user_data;
|
||||
const char* lvl = "?";
|
||||
switch (level) {
|
||||
case NOSTR_LOG_LEVEL_ERROR: lvl = "ERROR"; break;
|
||||
case NOSTR_LOG_LEVEL_WARN: lvl = "WARN"; break;
|
||||
case NOSTR_LOG_LEVEL_INFO: lvl = "INFO"; break;
|
||||
case NOSTR_LOG_LEVEL_DEBUG: lvl = "DEBUG"; break;
|
||||
case NOSTR_LOG_LEVEL_TRACE: lvl = "TRACE"; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
if (!component) component = "core";
|
||||
if (!message) message = "";
|
||||
|
||||
if (strcmp(component, "websocket") == 0) {
|
||||
printf("[NOSTR %s] [%s] %s\n", lvl, component, message);
|
||||
if (strstr(message, "[\"EOSE\"") != NULL) {
|
||||
g_ws_eose_seen = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
const char* npub = "npub13lm5wf8dvsdnc2894pkhch9uf8phvw9varrv8zf4sc885hhdmc8q6lx7ks";
|
||||
int timeout_ms = 15000;
|
||||
|
||||
if (argc >= 2 && argv[1] && argv[1][0] != '\0') {
|
||||
npub = argv[1];
|
||||
}
|
||||
if (argc >= 3) {
|
||||
timeout_ms = atoi(argv[2]);
|
||||
if (timeout_ms <= 0) {
|
||||
timeout_ms = 15000;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned char pubkey[32] = {0};
|
||||
char pubkey_hex[65] = {0};
|
||||
|
||||
if (nostr_decode_npub(npub, pubkey) != 0) {
|
||||
fprintf(stderr, "Failed to decode npub: %s\n", npub);
|
||||
return 1;
|
||||
}
|
||||
nostr_bytes_to_hex(pubkey, 32, pubkey_hex);
|
||||
|
||||
if (nostr_crypto_init() != 0) {
|
||||
fprintf(stderr, "nostr_crypto_init failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
nostr_set_log_callback(log_callback, NULL);
|
||||
nostr_set_log_level(NOSTR_LOG_LEVEL_TRACE);
|
||||
|
||||
nostr_pool_reconnect_config_t* reconnect = nostr_pool_reconnect_config_default();
|
||||
if (!reconnect) {
|
||||
fprintf(stderr, "nostr_pool_reconnect_config_default failed\n");
|
||||
nostr_crypto_cleanup();
|
||||
return 1;
|
||||
}
|
||||
|
||||
reconnect->enable_auto_reconnect = 1;
|
||||
reconnect->ping_interval_seconds = 20;
|
||||
reconnect->pong_timeout_seconds = 10;
|
||||
|
||||
nostr_relay_pool_t* pool = nostr_relay_pool_create(reconnect);
|
||||
if (!pool) {
|
||||
fprintf(stderr, "nostr_relay_pool_create failed\n");
|
||||
nostr_crypto_cleanup();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const int relay_count = (int)(sizeof(k_default_relays) / sizeof(k_default_relays[0]));
|
||||
for (int i = 0; i < relay_count; i++) {
|
||||
if (nostr_relay_pool_add_relay(pool, k_default_relays[i]) != 0) {
|
||||
fprintf(stderr, "Failed to add relay: %s\n", k_default_relays[i]);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON* filter = cJSON_CreateObject();
|
||||
cJSON* kinds = cJSON_CreateArray();
|
||||
cJSON* authors = cJSON_CreateArray();
|
||||
if (!filter || !kinds || !authors) {
|
||||
fprintf(stderr, "Failed to build filter JSON\n");
|
||||
cJSON_Delete(filter);
|
||||
cJSON_Delete(kinds);
|
||||
cJSON_Delete(authors);
|
||||
nostr_relay_pool_destroy(pool);
|
||||
nostr_crypto_cleanup();
|
||||
return 1;
|
||||
}
|
||||
|
||||
cJSON_AddItemToArray(kinds, cJSON_CreateNumber(3));
|
||||
cJSON_AddItemToObject(filter, "kinds", kinds);
|
||||
cJSON_AddItemToArray(authors, cJSON_CreateString(pubkey_hex));
|
||||
cJSON_AddItemToObject(filter, "authors", authors);
|
||||
cJSON_AddNumberToObject(filter, "limit", 16);
|
||||
|
||||
test_ctx_t ctx;
|
||||
memset(&ctx, 0, sizeof(ctx));
|
||||
|
||||
printf("Target npub: %s\n", npub);
|
||||
printf("Target hex : %s\n", pubkey_hex);
|
||||
printf("Relays (%d):\n", relay_count);
|
||||
for (int i = 0; i < relay_count; i++) {
|
||||
printf(" - %s\n", k_default_relays[i]);
|
||||
}
|
||||
printf("Subscribing to kind=3 with timeout=%d ms\n", timeout_ms);
|
||||
|
||||
nostr_pool_subscription_t* sub = nostr_relay_pool_subscribe(
|
||||
pool,
|
||||
k_default_relays,
|
||||
relay_count,
|
||||
filter,
|
||||
on_event,
|
||||
on_eose,
|
||||
&ctx,
|
||||
0,
|
||||
0,
|
||||
NOSTR_POOL_EOSE_FIRST,
|
||||
12,
|
||||
20
|
||||
);
|
||||
|
||||
if (!sub) {
|
||||
fprintf(stderr, "nostr_relay_pool_subscribe failed\n");
|
||||
cJSON_Delete(filter);
|
||||
nostr_relay_pool_destroy(pool);
|
||||
nostr_crypto_cleanup();
|
||||
return 1;
|
||||
}
|
||||
|
||||
long long started = now_ms();
|
||||
while (!ctx.eose_received && !g_ws_eose_seen) {
|
||||
long long elapsed = now_ms() - started;
|
||||
if (elapsed >= timeout_ms) {
|
||||
break;
|
||||
}
|
||||
(void)nostr_relay_pool_poll(pool, 100);
|
||||
}
|
||||
|
||||
printf("\nSummary:\n");
|
||||
printf(" EOSE callback : %s\n", ctx.eose_received ? "yes" : "no");
|
||||
printf(" Websocket EOSE: %s\n", g_ws_eose_seen ? "yes" : "no");
|
||||
printf(" Events seen : %d\n", ctx.events_received);
|
||||
printf(" Kind-3 events : %d\n", ctx.kind3_events);
|
||||
printf(" Max p-tags : %d\n", ctx.max_p_tags);
|
||||
|
||||
if (!ctx.eose_received && g_ws_eose_seen) {
|
||||
fprintf(stderr, "NOTE: Relay sent EOSE on websocket but subscription callback did not fire (pool EOSE behavior mismatch).\n");
|
||||
}
|
||||
if (!ctx.eose_received && !g_ws_eose_seen) {
|
||||
fprintf(stderr, "Timed out waiting for EOSE after %d ms\n", timeout_ms);
|
||||
}
|
||||
|
||||
(void)nostr_pool_subscription_close(sub);
|
||||
cJSON_Delete(filter);
|
||||
nostr_relay_pool_destroy(pool);
|
||||
nostr_crypto_cleanup();
|
||||
|
||||
return (ctx.eose_received || g_ws_eose_seen) ? 0 : 2;
|
||||
}
|
||||
Binary file not shown.
@@ -9,12 +9,12 @@
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"provider": "https://api.ppq.ai",
|
||||
"api_key": "sk-SBI2Pga0J6n8jpPorHbRHC",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 10000,
|
||||
"temperature": 0.7
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
|
||||
54
tests/configs/test_genesis.jsonc.example
Normal file
54
tests/configs/test_genesis.jsonc.example
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
// TEST CONFIGURATION TEMPLATE
|
||||
// Copy this file to tests/configs/test_genesis.jsonc and fill in real disposable values.
|
||||
// The concrete tests/configs/test_genesis.jsonc is gitignored.
|
||||
"key": {
|
||||
"nsec": "nsec1REPLACE_WITH_DISPOSABLE_TEST_NSEC"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "npub1REPLACE_WITH_TEST_ADMIN_PUBKEY"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
10
tests/configs/test_keys.jsonc.example
Normal file
10
tests/configs/test_keys.jsonc.example
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
// LOCAL TEST KEYS TEMPLATE
|
||||
// Copy to tests/configs/test_keys.jsonc (gitignored) and fill in real values.
|
||||
"agent": {
|
||||
"nsec": "nsec1REPLACE_WITH_DISPOSABLE_TEST_NSEC"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "npub1REPLACE_WITH_TEST_ADMIN_PUBKEY"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import re
|
||||
import signal
|
||||
import subprocess
|
||||
import time
|
||||
@@ -22,8 +23,8 @@ class AgentProcess:
|
||||
base_url: Optional[str] = None
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
self.binary_path = str(Path(self.binary_path))
|
||||
self.config_path = str(Path(self.config_path))
|
||||
self.binary_path = str(Path(self.binary_path).resolve())
|
||||
self.config_path = str(Path(self.config_path).resolve())
|
||||
self.log_file = self.log_file or "tests/results/agent_debug.log"
|
||||
scheme = "https"
|
||||
self.base_url = self.base_url or f"{scheme}://{self.api_bind}:{self.api_port}"
|
||||
@@ -42,14 +43,95 @@ class AgentProcess:
|
||||
self.api_bind,
|
||||
]
|
||||
|
||||
def _pid_exists(self, pid: int) -> bool:
|
||||
try:
|
||||
os.kill(pid, 0)
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
def _collect_listener_pids(self) -> set[int]:
|
||||
pids: set[int] = set()
|
||||
commands = [
|
||||
["lsof", "-t", f"-iTCP:{self.api_port}", "-sTCP:LISTEN"],
|
||||
["fuser", f"{self.api_port}/tcp"],
|
||||
["ss", "-ltnp"],
|
||||
]
|
||||
|
||||
for cmd in commands:
|
||||
try:
|
||||
proc = subprocess.run(cmd, capture_output=True, text=True, check=False)
|
||||
except FileNotFoundError:
|
||||
continue
|
||||
|
||||
output = f"{proc.stdout}\n{proc.stderr}"
|
||||
|
||||
if cmd and cmd[0] == "ss":
|
||||
port_token = f":{self.api_port}"
|
||||
for line in output.splitlines():
|
||||
if port_token not in line:
|
||||
continue
|
||||
for m in re.finditer(r"pid=(\d+)", line):
|
||||
pids.add(int(m.group(1)))
|
||||
continue
|
||||
|
||||
for token in output.split():
|
||||
if token.isdigit():
|
||||
pids.add(int(token))
|
||||
|
||||
return pids
|
||||
|
||||
def _kill_stale_port_processes(self) -> None:
|
||||
current_pid = os.getpid()
|
||||
tracked_pid = self.process.pid if self.process else None
|
||||
pids = self._collect_listener_pids()
|
||||
targets = [p for p in pids if p != current_pid and p != tracked_pid]
|
||||
|
||||
for pid in targets:
|
||||
try:
|
||||
os.kill(pid, signal.SIGTERM)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
deadline = time.time() + 2.0
|
||||
while time.time() < deadline:
|
||||
alive = [pid for pid in targets if self._pid_exists(pid)]
|
||||
if not alive:
|
||||
return
|
||||
time.sleep(0.1)
|
||||
|
||||
for pid in targets:
|
||||
if self._pid_exists(pid):
|
||||
try:
|
||||
os.kill(pid, signal.SIGKILL)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def _read_log_since(self, offset: int) -> tuple[str, int]:
|
||||
path = Path(self.log_file)
|
||||
if not path.exists():
|
||||
return "", offset
|
||||
|
||||
with path.open("rb") as f:
|
||||
f.seek(0, os.SEEK_END)
|
||||
end = f.tell()
|
||||
if offset > end:
|
||||
offset = 0
|
||||
f.seek(offset, os.SEEK_SET)
|
||||
data = f.read()
|
||||
return data.decode("utf-8", errors="replace"), end
|
||||
|
||||
def start(self, timeout: float = 30.0) -> bool:
|
||||
if self.is_alive():
|
||||
return True
|
||||
|
||||
self._kill_stale_port_processes()
|
||||
|
||||
env = os.environ.copy()
|
||||
env["DIDACTYL_LOG_FILE"] = str(self.log_file)
|
||||
|
||||
Path(self.log_file).parent.mkdir(parents=True, exist_ok=True)
|
||||
Path(self.log_file).write_text("", encoding="utf-8")
|
||||
|
||||
self.process = subprocess.Popen(
|
||||
self._command(),
|
||||
@@ -61,16 +143,29 @@ class AgentProcess:
|
||||
|
||||
client = DidactylClient(base_url=self.base_url, timeout=2.0, verify_tls=False)
|
||||
deadline = time.time() + timeout
|
||||
log_offset = 0
|
||||
saw_ready_log = False
|
||||
|
||||
while time.time() < deadline:
|
||||
if self.process and self.process.poll() is not None:
|
||||
return False
|
||||
|
||||
log_chunk, log_offset = self._read_log_since(log_offset)
|
||||
if log_chunk:
|
||||
if "HTTP API disabled due to bind/init failure" in log_chunk:
|
||||
return False
|
||||
if "startup checklist [18] READY: ok" in log_chunk or "entering main poll loop" in log_chunk:
|
||||
saw_ready_log = True
|
||||
|
||||
try:
|
||||
data = client.status()
|
||||
if data.get("success"):
|
||||
if data.get("success") and saw_ready_log:
|
||||
return True
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
time.sleep(0.5)
|
||||
|
||||
return False
|
||||
|
||||
def stop(self, timeout: float = 10.0) -> bool:
|
||||
|
||||
0
tests/results/20260325T135623Z/agent_debug.log
Normal file
0
tests/results/20260325T135623Z/agent_debug.log
Normal file
53
tests/results/20260325T135623Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260325T135623Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
662
tests/results/20260325T135717Z/agent_debug.log
Normal file
662
tests/results/20260325T135717Z/agent_debug.log
Normal file
@@ -0,0 +1,662 @@
|
||||
[2026-03-25 09:57:18] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 09:57:18] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 09:57:18] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 09:57:18] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 09:57:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774447038", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1774447038", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1774447038"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1774447038"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1774447038"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1774447038"]
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1774447040", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1774447040", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1774447040"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1774447040"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1774447040"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1774447040"]
|
||||
[2026-03-25 09:57:20] [WARN ] [main.c:917] [didactyl] startup phase: agent_config recall unavailable
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1774447040", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1774447040", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1774447040"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1774447040"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1774447040"]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1774447040"]
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => first-run
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (first-run)
|
||||
[2026-03-25 09:57:20] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1774447040", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1774447040", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1774447040"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1774447040"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1774447040"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1774447040"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1774447041", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1774447041", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","13a1949f62624e029378e8cec322a470ac56eb25f1f5607f0289ccbb80811570",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","04d546378376d6b3b6270b3b4df939d961a39d31b23d99a93f1362078a8ef3df",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","d74130d3ca16481aa565126870193e298c24e3857bc343ea93a39465673a7297",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","13a1949f62624e029378e8cec322a470ac56eb25f1f5607f0289ccbb80811570",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","04d546378376d6b3b6270b3b4df939d961a39d31b23d99a93f1362078a8ef3df",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","9b75006ce75a2cb675e39cab9fb057110c67a9c90606feec6064a28f1aae9e66",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","9b75006ce75a2cb675e39cab9fb057110c67a9c90606feec6064a28f1aae9e66",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","d74130d3ca16481aa565126870193e298c24e3857bc343ea93a39465673a7297",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1774447041"]
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":0,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447038,"last_event_time":1774447041},{"url":"wss://relay.primal.net","status":"connected","events_received":0,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447038,"last_event_time":1774447041}]}
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1774447041", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1774447041", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","f03e026e0424e65c1b2a0886b16588790d6c6dfb7f2f73704c3e31714fa84c4e",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","882c5abde60d7f45037dff104d58de1cddd37dc14670672252856f46378652ce",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","882c5abde60d7f45037dff104d58de1cddd37dc14670672252856f46378652ce",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","f03e026e0424e65c1b2a0886b16588790d6c6dfb7f2f73704c3e31714fa84c4e",true,""]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1774447041"]
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447038,"last_event_time":1774447041,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":0,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447038,"last_event_time":1774447041}]}
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774447041", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1774447041", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774447041", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1774447041", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774447041", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1774447041", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774447041", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1774447041", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774447041", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1774447041", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774447041", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1774447041", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=9b75006ce75a2cb675e39cab9fb057110c67a9c90606feec6064a28f1aae9e66 created_at=1774447041 via wss://relay.damus.io
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=04d546378376d6b3b6270b3b4df939d961a39d31b23d99a93f1362078a8ef3df created_at=1774447041 via wss://relay.damus.io
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=9b75006ce75a2cb675e39cab9fb057110c67a9c90606feec6064a28f1aae9e66 created_at=1774447041 via wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=04d546378376d6b3b6270b3b4df939d961a39d31b23d99a93f1362078a8ef3df created_at=1774447041 via wss://relay.primal.net
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1774447041"]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1774447041"]
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:57:21] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=9b75006ce75a2cb675e39cab9fb057110c67a9c90606feec6064a28f1aae9e66 created_at=1774447041
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=04d546378376d6b3b6270b3b4df939d961a39d31b23d99a93f1362078a8ef3df created_at=1774447041
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774447041", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447038,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1774447041", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447038,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1774447038 now=1774447041 delta=3 relay_count=2
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774447041", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447038,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1774447041", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447038,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 09:57:21] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-03-25 09:57:21] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1774447041", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 09:57:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1774447041", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1774447041"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1774447041"]
|
||||
[2026-03-25 09:57:22] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-03-25 09:57:22] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-03-25 09:57:22] [INFO ] [http_api.c:1570] [didactyl] http api listening on http://127.0.0.1:8485
|
||||
[2026-03-25 09:57:22] [INFO ] [main.c:1532] [didactyl] HTTP API listening at http://127.0.0.1:8485
|
||||
[2026-03-25 09:57:22] [INFO ] [main.c:1535] [didactyl] HTTP API endpoints: http://127.0.0.1:8485/api/context/current http://127.0.0.1:8485/api/context/parts
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-03-25 09:57:22 (version v0.2.19, connected relays: 2/2).
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1774447042,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"JHxPSTz8zGKKRsZk1IVZQ6QDc5PKZABp6fJV79Pe30/K4t/NxAVrWYuCcodwFN+TlZMdtO/VyLgxJYhffWTa8FPTMGVlvMpQtlEzMs8QnAMEuIXappUCvNZK3Qs4baWjO075bztD4IB7vEQdG6BPKHabKCABreuQZe86dnDZu24=?iv=PLBOGIdcaCv8s5FdvJmYpQ==","id":"856df7e0935a011340e1f1ad77b1fbc8f0e56ec6af9c366ae673ce7b09da29d7","sig":"369c84458e133b3c6e0d8a7bf0f712b75a73634ae43d1ba842b78dcaff19212cef88c3077b38c5822a1d330571e2b0ce7b093781b1b10fcbc2793466ac5f1fd4"}
|
||||
[2026-03-25 09:57:22] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-03-25 09:57:22] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:57:22] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-03-25 09:57:22] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-03-25 09:57:22] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-03-25 09:57:22] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM 856df7e0935a0113... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-03-25 09:57:22] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-03-25 09:57:22] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-03-25 09:57:22] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","856df7e0935a011340e1f1ad77b1fbc8f0e56ec6af9c366ae673ce7b09da29d7",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:57:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","856df7e0935a011340e1f1ad77b1fbc8f0e56ec6af9c366ae673ce7b09da29d7",true,""]
|
||||
[2026-03-25 09:58:20] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27520 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Hello, what is your name?"},{"role":"user","content":"Hello, what is your name?","_ts":1774447100}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"functio...
|
||||
[2026-03-25 09:58:20] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:20] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:20] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27550 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What are you? Describe yourself briefly."},{"role":"user","content":"What are you? Describe yourself briefly.","_ts":1774447100}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":...
|
||||
[2026-03-25 09:58:21] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:21] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:21] [INFO ] [llm.c:336] [didactyl] llm request sanitizer: removed 2 empty text message(s) before provider request
|
||||
[2026-03-25 09:58:21] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27395 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","function":{"name":"nostr_relay_status","description":"Get connection status and statistics for all relays","parameters":{...
|
||||
[2026-03-25 09:58:22] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:22] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:22] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=47470 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
|
||||
[2026-03-25 09:58:22] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:22] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259 created_at=1774447102 via wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259 created_at=1774447102 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2 created_at=1774447102 via wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2 created_at=1774447102 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:27] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27520 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"After restart, say hello."},{"role":"user","content":"After restart, say hello.","_ts":1774447107}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"functio...
|
||||
[2026-03-25 09:58:28] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:28] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:28] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Say hello in one sentence."},{"role":"user","content":"Say hello in one sentence.","_ts":1774447108}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 09:58:28] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:28] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:29] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27516 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your blossom blobs"},{"role":"user","content":"List your blossom blobs","_ts":1774447109}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","...
|
||||
[2026-03-25 09:58:30] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:30] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=11b414ef25e76ad7556d48b8386311bcdc429a56b8300e42e6a382f9bc02edac created_at=1774447109 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:30] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27532 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Check your cashu wallet balance"},{"role":"user","content":"Check your cashu wallet balance","_ts":1774447110}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"ty...
|
||||
[2026-03-25 09:58:30] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:30] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=d55623b990437049aa50e7e24cc3e4a989f08e0d40c95fc0e8f618ca8db50a54 created_at=1774447109 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:30] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 09:58:31] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27532 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What is your public key in hex?"},{"role":"user","content":"What is your public key in hex?","_ts":1774447111}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"ty...
|
||||
[2026-03-25 09:58:31] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:31] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:31] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27506 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What is your npub?"},{"role":"user","content":"What is your npub?","_ts":1774447111}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","function":...
|
||||
[2026-03-25 09:58:32] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:32] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:32] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27524 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Tell me about your identity"},{"role":"user","content":"Tell me about your identity","_ts":1774447112}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"fun...
|
||||
[2026-03-25 09:58:33] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:33] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:33] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27512 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What version are you?"},{"role":"user","content":"What version are you?","_ts":1774447113}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","func...
|
||||
[2026-03-25 09:58:33] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:33] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:34] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Who is your administrator?"},{"role":"user","content":"Who is your administrator?","_ts":1774447114}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 09:58:34] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:34] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:34] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27530 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Show me your current task list"},{"role":"user","content":"Show me your current task list","_ts":1774447114}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type...
|
||||
[2026-03-25 09:58:35] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:35] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:35] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27568 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Add a task test harness probe task then remove it"},{"role":"user","content":"Add a task test harness probe task then remove it","_ts":1774447115}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fe...
|
||||
[2026-03-25 09:58:36] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:36] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:36] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27586 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Save test harness probe to memory, then recall your memory"},{"role":"user","content":"Save test harness probe to memory, then recall your memory","_ts":1774447116}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of...
|
||||
[2026-03-25 09:58:36] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:36] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:37] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27556 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Post a test note saying Automated test post"},{"role":"user","content":"Post a test note saying Automated test post","_ts":1774447117}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"requ...
|
||||
[2026-03-25 09:58:37] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:37] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:37] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27574 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Query the 3 most recent kind 1 notes from any author"},{"role":"user","content":"Query the 3 most recent kind 1 notes from any author","_ts":1774447117}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile...
|
||||
[2026-03-25 09:58:38] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:38] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:38] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27516 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your recent events"},{"role":"user","content":"List your recent events","_ts":1774447118}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","...
|
||||
[2026-03-25 09:58:38] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:38] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:39] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27560 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What is the status of your relay connections?"},{"role":"user","content":"What is the status of your relay connections?","_ts":1774447119}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"...
|
||||
[2026-03-25 09:58:39] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:39] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:39] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Send a test DM to yourself"},{"role":"user","content":"Send a test DM to yourself","_ts":1774447119}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 09:58:40] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:40] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:40] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Encode your pubkey as an npub"},{"role":"user","content":"Encode your pubkey as an npub","_ts":1774447120}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 09:58:40] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:40] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:41] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27530 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Look up your own Nostr profile"},{"role":"user","content":"Look up your own Nostr profile","_ts":1774447121}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type...
|
||||
[2026-03-25 09:58:41] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:41] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:42] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your available skills"},{"role":"user","content":"List your available skills","_ts":1774447122}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 09:58:42] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:42] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:42] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27520 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your active triggers"},{"role":"user","content":"List your active triggers","_ts":1774447122}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"functio...
|
||||
[2026-03-25 09:58:43] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:43] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:43] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27638 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Create a test skill called test-harness-probe with content Test skill then remove it"},{"role":"user","content":"Create a test skill called test-harness-probe with content Test skill then remove it","_ts":1774447123}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"p...
|
||||
[2026-03-25 09:58:43] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:43] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:44] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List all your available tools"},{"role":"user","content":"List all your available tools","_ts":1774447124}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 09:58:44] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:44] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:45] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27540 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What model are you currently using?"},{"role":"user","content":"What model are you currently using?","_ts":1774447125}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]...
|
||||
[2026-03-25 09:58:45] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:45] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:45] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27512 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List available models"},{"role":"user","content":"List available models","_ts":1774447125}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","func...
|
||||
[2026-03-25 09:58:46] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:46] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:46] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Fetch https://httpbin.org/get"},{"role":"user","content":"Fetch https://httpbin.org/get","_ts":1774447126}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 09:58:47] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:47] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 09:58:47] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27634 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Store a test config with d_tag test_harness_probe containing hello, then recall it"},{"role":"user","content":"Store a test config with d_tag test_harness_probe containing hello, then recall it","_ts":1774447127}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubke...
|
||||
[2026-03-25 09:58:47] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 09:58:47] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 10:15:30] [INFO ] [nostr_handler.c:848] [didactyl] relay state changed: wss://relay.damus.io connected -> disconnected
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774447041", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774447041", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774447041", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774447041", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774447041", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774447041", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774447041", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447038,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 10:15:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774447041", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447038,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 10:15:30] [INFO ] [nostr_handler.c:848] [didactyl] relay state changed: wss://relay.damus.io disconnected -> connected
|
||||
[2026-03-25 13:47:38] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27520 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Hello, what is your name?"},{"role":"user","content":"Hello, what is your name?","_ts":1774460858}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"functio...
|
||||
[2026-03-25 13:47:39] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:39] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:39] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27550 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What are you? Describe yourself briefly."},{"role":"user","content":"What are you? Describe yourself briefly.","_ts":1774460859}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":...
|
||||
[2026-03-25 13:47:39] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:39] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:40] [INFO ] [llm.c:336] [didactyl] llm request sanitizer: removed 2 empty text message(s) before provider request
|
||||
[2026-03-25 13:47:40] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27395 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","function":{"name":"nostr_relay_status","description":"Get connection status and statistics for all relays","parameters":{...
|
||||
[2026-03-25 13:47:40] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:40] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:40] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=47470 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
|
||||
[2026-03-25 13:47:41] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:41] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54 created_at=1774460861 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643 created_at=1774460861 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:43] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27520 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"After restart, say hello."},{"role":"user","content":"After restart, say hello.","_ts":1774460863}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"functio...
|
||||
[2026-03-25 13:47:44] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:44] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:44] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Say hello in one sentence."},{"role":"user","content":"Say hello in one sentence.","_ts":1774460864}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 13:47:44] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:44] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:45] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27516 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your blossom blobs"},{"role":"user","content":"List your blossom blobs","_ts":1774460865}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","...
|
||||
[2026-03-25 13:47:45] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:45] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:45] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27532 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Check your cashu wallet balance"},{"role":"user","content":"Check your cashu wallet balance","_ts":1774460865}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"ty...
|
||||
[2026-03-25 13:47:46] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:46] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=1ae930e3355b38422c24c409b0c670975ccefcb095bd55db5d9d987dcd83027c created_at=1774460865 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 13:47:46] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27532 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What is your public key in hex?"},{"role":"user","content":"What is your public key in hex?","_ts":1774460866}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"ty...
|
||||
[2026-03-25 13:47:46] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:46] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=a13b499ed99e4b8677654b43ef561820b2b36c27693cc4f9dc6bfac8895871f6 created_at=1774460865 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:46] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27506 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What is your npub?"},{"role":"user","content":"What is your npub?","_ts":1774460866}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","function":...
|
||||
[2026-03-25 13:47:47] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:47] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:47] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27524 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Tell me about your identity"},{"role":"user","content":"Tell me about your identity","_ts":1774460867}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"fun...
|
||||
[2026-03-25 13:47:48] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:48] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:48] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27512 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What version are you?"},{"role":"user","content":"What version are you?","_ts":1774460868}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","func...
|
||||
[2026-03-25 13:47:48] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:48] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:48] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Who is your administrator?"},{"role":"user","content":"Who is your administrator?","_ts":1774460868}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 13:47:49] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:49] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:49] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27530 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Show me your current task list"},{"role":"user","content":"Show me your current task list","_ts":1774460869}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type...
|
||||
[2026-03-25 13:47:49] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:49] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:49] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27568 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Add a task test harness probe task then remove it"},{"role":"user","content":"Add a task test harness probe task then remove it","_ts":1774460869}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fe...
|
||||
[2026-03-25 13:47:50] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:50] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:50] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27586 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Save test harness probe to memory, then recall your memory"},{"role":"user","content":"Save test harness probe to memory, then recall your memory","_ts":1774460870}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of...
|
||||
[2026-03-25 13:47:50] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:50] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:51] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27556 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Post a test note saying Automated test post"},{"role":"user","content":"Post a test note saying Automated test post","_ts":1774460871}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"requ...
|
||||
[2026-03-25 13:47:51] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:51] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:51] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27574 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Query the 3 most recent kind 1 notes from any author"},{"role":"user","content":"Query the 3 most recent kind 1 notes from any author","_ts":1774460871}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile...
|
||||
[2026-03-25 13:47:52] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:52] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:52] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27516 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your recent events"},{"role":"user","content":"List your recent events","_ts":1774460872}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","...
|
||||
[2026-03-25 13:47:52] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:52] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:52] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27560 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What is the status of your relay connections?"},{"role":"user","content":"What is the status of your relay connections?","_ts":1774460872}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"...
|
||||
[2026-03-25 13:47:53] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:53] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:53] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Send a test DM to yourself"},{"role":"user","content":"Send a test DM to yourself","_ts":1774460873}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 13:47:54] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:54] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:54] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Encode your pubkey as an npub"},{"role":"user","content":"Encode your pubkey as an npub","_ts":1774460874}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 13:47:54] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:54] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:54] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27530 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Look up your own Nostr profile"},{"role":"user","content":"Look up your own Nostr profile","_ts":1774460874}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type...
|
||||
[2026-03-25 13:47:55] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:55] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:55] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27522 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your available skills"},{"role":"user","content":"List your available skills","_ts":1774460875}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"funct...
|
||||
[2026-03-25 13:47:55] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:55] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:55] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27520 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List your active triggers"},{"role":"user","content":"List your active triggers","_ts":1774460875}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"functio...
|
||||
[2026-03-25 13:47:56] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:56] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:56] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27638 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Create a test skill called test-harness-probe with content Test skill then remove it"},{"role":"user","content":"Create a test skill called test-harness-probe with content Test skill then remove it","_ts":1774460876}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"p...
|
||||
[2026-03-25 13:47:56] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:56] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:57] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List all your available tools"},{"role":"user","content":"List all your available tools","_ts":1774460877}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 13:47:57] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:57] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:57] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27540 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"What model are you currently using?"},{"role":"user","content":"What model are you currently using?","_ts":1774460877}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]...
|
||||
[2026-03-25 13:47:58] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:58] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:58] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27512 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List available models"},{"role":"user","content":"List available models","_ts":1774460878}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","func...
|
||||
[2026-03-25 13:47:58] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:58] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:58] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Fetch https://httpbin.org/get"},{"role":"user","content":"Fetch https://httpbin.org/get","_ts":1774460878}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 13:47:59] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:59] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:47:59] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27634 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Store a test config with d_tag test_harness_probe containing hello, then recall it"},{"role":"user","content":"Store a test config with d_tag test_harness_probe containing hello, then recall it","_ts":1774460879}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubke...
|
||||
[2026-03-25 13:47:59] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 13:47:59] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 13:53:33] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-03-25 13:53:33] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1774447041"]
|
||||
[2026-03-25 13:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1774447041"]
|
||||
53
tests/results/20260325T135717Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260325T135717Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
796
tests/results/20260325T135819Z/agent_debug.log
Normal file
796
tests/results/20260325T135819Z/agent_debug.log
Normal file
@@ -0,0 +1,796 @@
|
||||
[2026-03-25 09:58:19] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 09:58:19] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 09:58:19] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 09:58:19] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 09:58:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774447099", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1774447099", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1774447099"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1774447099"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1774447099"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1774447099"]
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1774447101", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1774447101", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1774447101"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1774447101"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1774447101"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1774447101"]
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1774447101", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1774447101", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1774447101"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1774447101"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1774447101"]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1774447101"]
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-03-25 09:58:21] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1774447101", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1774447101", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1774447101"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1774447101"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1774447101"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1774447101"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1774447102", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1774447102", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","81c4d21d745b7da146490d655be24b808c1349e5fc42db5b8b74c24421a2a549",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","81c4d21d745b7da146490d655be24b808c1349e5fc42db5b8b74c24421a2a549",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","82c974f1ea158c6067868c9f90179d367f4cf45f77dad5737ee161b63bc3f115",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","82c974f1ea158c6067868c9f90179d367f4cf45f77dad5737ee161b63bc3f115",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","13a4851fae898a5feb18d927080c35a38e3d3db27ea08180b9fa73fdc43db237",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1774447102"]
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447099,"last_event_time":1774447102},{"url":"wss://relay.primal.net","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447099,"last_event_time":1774447102}]}
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1774447102", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1774447102", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","13a4851fae898a5feb18d927080c35a38e3d3db27ea08180b9fa73fdc43db237",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","8d0da07c478e967a1cd8a07fc9f52bfe1718acbc18cba85d028a3afb4c106571",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","8d0da07c478e967a1cd8a07fc9f52bfe1718acbc18cba85d028a3afb4c106571",true,""]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1774447102"]
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447099,"last_event_time":1774447102,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447099,"last_event_time":1774447102}]}
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774447102", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1774447102", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774447102", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1774447102", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774447102", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1774447102", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774447102", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1774447102", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774447102", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1774447102", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774447102", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1774447102", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2 created_at=1774447102 via wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259 created_at=1774447102 via wss://relay.damus.io
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2 created_at=1774447102 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259 created_at=1774447102 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1774447102"]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1774447102"]
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:22] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259 created_at=1774447102
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2 created_at=1774447102
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774447102", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447099,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1774447102", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447099,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1774447099 now=1774447102 delta=3 relay_count=2
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774447102", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447099,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1774447102", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447099,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 09:58:22] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-03-25 09:58:22] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1774447102", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 09:58:22] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1774447102", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1774447102"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1774447102"]
|
||||
[2026-03-25 09:58:23] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-03-25 09:58:23] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-03-25 09:58:23] [WARN ] [main.c:1528] [didactyl] HTTP API disabled due to bind/init failure; agent will continue without local API
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-03-25 09:58:23 (version v0.2.19, connected relays: 2/2).
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1774447103,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"o21X4X+V/YUVsDF2gzfUkyJ+v1UuzCOekT4ringZQvOHAi0P33W4yJOlRsi/mxJUNWTzFYriqLChIU5s1M4Q8A6NbDi+rVavbYndIovBxwotiMEehA/FHPd3GsVxl/KYyNHCj2Z/bfwpE6fb07maOfz8dH3c5/9tpWfQJBkpI+Y=?iv=tTR3ficF3op0Y28KMzcy5A==","id":"f828c68faa74f475eb7f1de273013ef938260ed803e7997063652dc45ec0e6ea","sig":"f87b489c360430d35bbd32b1f080cb9cd11ccb980c145dead588cc4e7782b4431359580239817bc8dce815cb6cfcbe37585e92c2676f0fefcee38ba83b279a7d"}
|
||||
[2026-03-25 09:58:23] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-03-25 09:58:23] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:58:23] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-03-25 09:58:23] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-03-25 09:58:23] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-03-25 09:58:23] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM f828c68faa74f475... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-03-25 09:58:23] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-03-25 09:58:23] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-03-25 09:58:23] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","f828c68faa74f475eb7f1de273013ef938260ed803e7997063652dc45ec0e6ea",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:23] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","f828c68faa74f475eb7f1de273013ef938260ed803e7997063652dc45ec0e6ea",true,""]
|
||||
[2026-03-25 09:58:25] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-03-25 09:58:25] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1774447102"]
|
||||
[2026-03-25 09:58:25] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1774447102"]
|
||||
[2026-03-25 09:58:25] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 09:58:25] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 09:58:25] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 09:58:25] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 09:58:25] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 09:58:25] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 09:58:25] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 09:58:25] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 09:58:26] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774447105", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:26] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 09:58:26] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 09:58:26] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 09:58:26] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 09:58:27] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 09:58:27] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 09:58:27] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 09:58:27] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 09:58:27] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774447107", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1774447107", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1774447107"]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1774447107"]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1774447107"]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1774447107"]
|
||||
[2026-03-25 09:58:28] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-03-25 09:58:28] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-03-25 09:58:28] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1774447108", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1774447108", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:28] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1774447108"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1774447108"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1774447108"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1774447108"]
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1774447109", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1774447109", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1774447109"]
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1774447109", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1774447109", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 09:58:29] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1774447109", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1774447109", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","11b414ef25e76ad7556d48b8386311bcdc429a56b8300e42e6a382f9bc02edac",true,""]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","1292203416ebef0f8bd4b65af7dd32fe90c5f8ddc951287c1afcf875c8e2a3d2",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","1292203416ebef0f8bd4b65af7dd32fe90c5f8ddc951287c1afcf875c8e2a3d2",true,""]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","44fc52fda6441d14494b8dd90b40003ff450e9dca2b32d72bdd8e413aaffa3a0",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","44fc52fda6441d14494b8dd90b40003ff450e9dca2b32d72bdd8e413aaffa3a0",true,""]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","d55623b990437049aa50e7e24cc3e4a989f08e0d40c95fc0e8f618ca8db50a54",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","d55623b990437049aa50e7e24cc3e4a989f08e0d40c95fc0e8f618ca8db50a54",true,""]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","11b414ef25e76ad7556d48b8386311bcdc429a56b8300e42e6a382f9bc02edac",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","b1c0f712870d5443623e7da7f7de85817777e245a277e435903ed0551468ddae",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","852f71f1711774c0cc2a17fb985ee19382ac3232c5f594a8f1473df28ece4ba6",true,""]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","852f71f1711774c0cc2a17fb985ee19382ac3232c5f594a8f1473df28ece4ba6",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","b1c0f712870d5443623e7da7f7de85817777e245a277e435903ed0551468ddae",true,""]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1774447109"]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1774447109"]
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-03-25 09:58:29] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-03-25 09:58:29] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:29] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:29] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-03-25 09:58:29] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":0,"events_published_failed":6,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447107,"last_event_time":1774447109,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":1,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447107,"last_event_time":1774447109}]}
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1774447109", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 09:58:29] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1774447109", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1774447109"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1774447109"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1774447109"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1774447109"]
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=2
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":2,"events_published":6,"events_published_ok":0,"events_published_failed":6,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447107,"last_event_time":1774447109,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774447107,"last_event_time":1774447109}]}
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774447110", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1774447110", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774447110", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1774447110", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774447110", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1774447110", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774447110", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1774447110", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774447110", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1774447110", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774447110", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1774447110", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=d1fc3cfb4b7db93639baee6726e7203105ac4bc630446feb62f0e9d03cd694d2 created_at=1774447102 via wss://relay.damus.io
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=832e2a43d2325d8e538fb4fec67dfcdb9f42223cd43a289a477c3fd1bd0ae259 created_at=1774447102 via wss://relay.damus.io
|
||||
[2026-03-25 09:58:30] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=d55623b990437049aa50e7e24cc3e4a989f08e0d40c95fc0e8f618ca8db50a54 created_at=1774447109 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:30] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=11b414ef25e76ad7556d48b8386311bcdc429a56b8300e42e6a382f9bc02edac created_at=1774447109 via wss://relay.primal.net
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1774447110"]
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-03-25 09:58:30] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 09:58:30] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=d55623b990437049aa50e7e24cc3e4a989f08e0d40c95fc0e8f618ca8db50a54 created_at=1774447109
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=11b414ef25e76ad7556d48b8386311bcdc429a56b8300e42e6a382f9bc02edac created_at=1774447109
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774447110", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447107,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1774447110", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447107,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1774447107 now=1774447110 delta=3 relay_count=2
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774447110", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447107,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1774447110", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774447107,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1774447110", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1774447110", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1774447110"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1774447110"]
|
||||
[2026-03-25 09:58:30] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-03-25 09:58:30] [WARN ] [main.c:1528] [didactyl] HTTP API disabled due to bind/init failure; agent will continue without local API
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-03-25 09:58:30 (version v0.2.19, connected relays: 2/2).
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1774447110,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"m0Hop0iIE4zqV4YTMij5P4ngsFeIdQYoAwFSZOqDXxjuupwHhMz7NuCJeq6iSNgXklfNW1wJGncgrIy1T74Or3phwqHUpKl/xgayhUl54bxqCsyaqqygRHhnfz0AwcrlSPy+W8rKlr81bZL1x/g28KtlFGhy0kOmrm0j2lsGzOA=?iv=QCTo0zA+pzdxVOfJ42MG1A==","id":"8c1049756376ad9a93b1aca77b2277f5d2bd01c910be72aef7fddfedb15933ae","sig":"e23bb68598476cf1749507579886340dd44190c82564b5b8403c66e5b1afe75cf2e159958f21f874c72a4fc36dead16d13e6f0128ea8e6ee2e6ee9c1a8aa5231"}
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-03-25 09:58:30] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM 8c1049756376ad9a... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-03-25 09:58:30] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","8c1049756376ad9a93b1aca77b2277f5d2bd01c910be72aef7fddfedb15933ae",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 09:58:30] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","8c1049756376ad9a93b1aca77b2277f5d2bd01c910be72aef7fddfedb15933ae",true,""]
|
||||
[2026-03-25 09:58:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 09:58:47] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-03-25 09:58:47] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1774447110"]
|
||||
[2026-03-25 09:58:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1774447110"]
|
||||
441
tests/results/20260325T135819Z/results.json
Normal file
441
tests/results/20260325T135819Z/results.json
Normal file
@@ -0,0 +1,441 @@
|
||||
{
|
||||
"run_meta": {
|
||||
"run_timestamp": "2026-03-25T13:58:47.821906+00:00",
|
||||
"base_url": "http://127.0.0.1:8485",
|
||||
"config": "tests/results/20260325T135819Z/runtime_test_genesis.jsonc",
|
||||
"binary": "didactyl_static_x86_64_debug",
|
||||
"test_count": 43
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "simple_greeting",
|
||||
"status": "pass",
|
||||
"message": "greeting response ok",
|
||||
"duration_seconds": 0.650126366999757,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"response": "LLM request failed."
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "agent_responds_about_itself",
|
||||
"status": "error",
|
||||
"message": "AssertionError('response missing expected identity terms')",
|
||||
"duration_seconds": 0.6940816970000014,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "empty_message_handling",
|
||||
"status": "pass",
|
||||
"message": "empty message handled",
|
||||
"duration_seconds": 0.8755730829998356,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "very_long_message",
|
||||
"status": "pass",
|
||||
"message": "long message handled",
|
||||
"duration_seconds": 0.5564053269990836,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "invalid_json_body",
|
||||
"status": "pass",
|
||||
"message": "invalid json rejected",
|
||||
"duration_seconds": 0.132159895998484,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "missing_message_field",
|
||||
"status": "pass",
|
||||
"message": "missing message rejected",
|
||||
"duration_seconds": 0.3320244470014586,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "unknown_endpoint",
|
||||
"status": "pass",
|
||||
"message": "unknown endpoint 404",
|
||||
"duration_seconds": 0.33157833800032677,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "webhook_nonexistent_dtag",
|
||||
"status": "pass",
|
||||
"message": "nonexistent d_tag 404",
|
||||
"duration_seconds": 0.3315640600012557,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_returns_200",
|
||||
"status": "pass",
|
||||
"message": "status success",
|
||||
"duration_seconds": 0.3311180410000816,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"keys": [
|
||||
"success",
|
||||
"name",
|
||||
"version",
|
||||
"pubkey",
|
||||
"relay_count",
|
||||
"connected_relays",
|
||||
"active_triggers"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_has_fields",
|
||||
"status": "pass",
|
||||
"message": "required fields present",
|
||||
"duration_seconds": 0.33113273399976606,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_current_returns_messages",
|
||||
"status": "pass",
|
||||
"message": "context current ok",
|
||||
"duration_seconds": 0.33124079600020195,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"message_count": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_parts_has_system_prompt",
|
||||
"status": "pass",
|
||||
"message": "context parts ok",
|
||||
"duration_seconds": 0.3314957980001054,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"parts": [
|
||||
"system_prompt",
|
||||
"dm_history"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "clean_restart",
|
||||
"status": "pass",
|
||||
"message": "restart succeeded",
|
||||
"duration_seconds": 0.6628211440001905,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "status_after_restart",
|
||||
"status": "pass",
|
||||
"message": "status stable after restart",
|
||||
"duration_seconds": 0.9936397429992212,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"pubkey": "1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "conversation_after_restart",
|
||||
"status": "pass",
|
||||
"message": "conversation works post-restart",
|
||||
"duration_seconds": 1.0451782399995864,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "response_within_timeout",
|
||||
"status": "pass",
|
||||
"message": "response within timeout",
|
||||
"duration_seconds": 0.720179456000551,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.720171720999133
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "status_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "status fast",
|
||||
"duration_seconds": 0.33108805699885124,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.3310836910004582
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "context_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "context fast",
|
||||
"duration_seconds": 0.3329149609999149,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.3329102219995548
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_blossom",
|
||||
"name": "blossom_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool blossom_list, got []')",
|
||||
"duration_seconds": 0.7343584199988982,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_cashu",
|
||||
"name": "wallet_balance",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool cashu_wallet_balance, got []')",
|
||||
"duration_seconds": 0.5817091210010403,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_pubkey",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_pubkey, got []')",
|
||||
"duration_seconds": 0.7300583679989359,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_npub",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_npub, got []')",
|
||||
"duration_seconds": 0.7121746949997032,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_identity",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool agent_identity, got []')",
|
||||
"duration_seconds": 0.8052364180002769,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_version",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool agent_version, got []')",
|
||||
"duration_seconds": 0.7165932989992143,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "admin_identity",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool admin_identity, got []')",
|
||||
"duration_seconds": 0.7046929000007367,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool task_list, got []')",
|
||||
"duration_seconds": 0.7506260950012802,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_manage_add_remove",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool task_manage, got []')",
|
||||
"duration_seconds": 0.7285047460009082,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "memory_save_recall",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool memory_save, got []')",
|
||||
"duration_seconds": 0.7064342339999712,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_post_kind1",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_post, got []')",
|
||||
"duration_seconds": 0.7036432080003578,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_query_recent",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_query, got []')",
|
||||
"duration_seconds": 0.697193383000922,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_my_events",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_my_events, got []')",
|
||||
"duration_seconds": 0.7582229180006834,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_relay_status",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_relay_status, got []')",
|
||||
"duration_seconds": 0.6760786040013045,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_dm_send",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_dm_send, got []')",
|
||||
"duration_seconds": 0.7048240869989968,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_encode_npub",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_encode, got []')",
|
||||
"duration_seconds": 0.6931294519999938,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_profile_get",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_profile_get, got []')",
|
||||
"duration_seconds": 0.8462209179997444,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool skill_list, got []')",
|
||||
"duration_seconds": 0.7083747169999697,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "trigger_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool trigger_list, got []')",
|
||||
"duration_seconds": 0.7195114550013386,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_create_and_remove",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool skill_create, got []')",
|
||||
"duration_seconds": 0.7012184199993499,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "tool_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool tool_list, got []')",
|
||||
"duration_seconds": 0.9187586200005171,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_get",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool model_get, got []')",
|
||||
"duration_seconds": 0.747806858000331,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool model_list, got []')",
|
||||
"duration_seconds": 0.7052951590012526,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "local_http_fetch",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool local_http_fetch, got []')",
|
||||
"duration_seconds": 0.6979006639994623,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "config_store_recall",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool config_store, got []')",
|
||||
"duration_seconds": 0.7069432489988685,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
}
|
||||
],
|
||||
"summary": {
|
||||
"pass": 17,
|
||||
"error": 26
|
||||
}
|
||||
}
|
||||
139
tests/results/20260325T135819Z/results.txt
Normal file
139
tests/results/20260325T135819Z/results.txt
Normal file
@@ -0,0 +1,139 @@
|
||||
== Didactyl Test Results ==
|
||||
Run: 2026-03-25T13:58:47.821906+00:00
|
||||
Agent base URL: http://127.0.0.1:8485
|
||||
|
||||
Pass: 17
|
||||
Fail: 0
|
||||
Error: 26
|
||||
Timeout: 0
|
||||
Skip: 0
|
||||
Total: 43
|
||||
|
||||
[PASS] test_conversation::simple_greeting (0.65s)
|
||||
greeting response ok
|
||||
|
||||
[ERROR] test_conversation::agent_responds_about_itself (0.69s)
|
||||
AssertionError('response missing expected identity terms')
|
||||
|
||||
[PASS] test_conversation::empty_message_handling (0.88s)
|
||||
empty message handled
|
||||
|
||||
[PASS] test_conversation::very_long_message (0.56s)
|
||||
long message handled
|
||||
|
||||
[PASS] test_errors::invalid_json_body (0.13s)
|
||||
invalid json rejected
|
||||
|
||||
[PASS] test_errors::missing_message_field (0.33s)
|
||||
missing message rejected
|
||||
|
||||
[PASS] test_errors::unknown_endpoint (0.33s)
|
||||
unknown endpoint 404
|
||||
|
||||
[PASS] test_errors::webhook_nonexistent_dtag (0.33s)
|
||||
nonexistent d_tag 404
|
||||
|
||||
[PASS] test_health::status_returns_200 (0.33s)
|
||||
status success
|
||||
|
||||
[PASS] test_health::status_has_fields (0.33s)
|
||||
required fields present
|
||||
|
||||
[PASS] test_health::context_current_returns_messages (0.33s)
|
||||
context current ok
|
||||
|
||||
[PASS] test_health::context_parts_has_system_prompt (0.33s)
|
||||
context parts ok
|
||||
|
||||
[PASS] test_restart::clean_restart (0.66s)
|
||||
restart succeeded
|
||||
|
||||
[PASS] test_restart::status_after_restart (0.99s)
|
||||
status stable after restart
|
||||
|
||||
[PASS] test_restart::conversation_after_restart (1.05s)
|
||||
conversation works post-restart
|
||||
|
||||
[PASS] test_timeouts::response_within_timeout (0.72s)
|
||||
response within timeout
|
||||
|
||||
[PASS] test_timeouts::status_responds_fast (0.33s)
|
||||
status fast
|
||||
|
||||
[PASS] test_timeouts::context_responds_fast (0.33s)
|
||||
context fast
|
||||
|
||||
[ERROR] test_tools_blossom::blossom_list (0.73s)
|
||||
AssertionError('expected tool blossom_list, got []')
|
||||
|
||||
[ERROR] test_tools_cashu::wallet_balance (0.58s)
|
||||
AssertionError('expected tool cashu_wallet_balance, got []')
|
||||
|
||||
[ERROR] test_tools_identity::get_pubkey (0.73s)
|
||||
AssertionError('expected tool nostr_pubkey, got []')
|
||||
|
||||
[ERROR] test_tools_identity::get_npub (0.71s)
|
||||
AssertionError('expected tool nostr_npub, got []')
|
||||
|
||||
[ERROR] test_tools_identity::agent_identity (0.81s)
|
||||
AssertionError('expected tool agent_identity, got []')
|
||||
|
||||
[ERROR] test_tools_identity::agent_version (0.72s)
|
||||
AssertionError('expected tool agent_version, got []')
|
||||
|
||||
[ERROR] test_tools_identity::admin_identity (0.70s)
|
||||
AssertionError('expected tool admin_identity, got []')
|
||||
|
||||
[ERROR] test_tools_memory::task_list (0.75s)
|
||||
AssertionError('expected tool task_list, got []')
|
||||
|
||||
[ERROR] test_tools_memory::task_manage_add_remove (0.73s)
|
||||
AssertionError('expected tool task_manage, got []')
|
||||
|
||||
[ERROR] test_tools_memory::memory_save_recall (0.71s)
|
||||
AssertionError('expected tool memory_save, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_post_kind1 (0.70s)
|
||||
AssertionError('expected tool nostr_post, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_query_recent (0.70s)
|
||||
AssertionError('expected tool nostr_query, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_my_events (0.76s)
|
||||
AssertionError('expected tool nostr_my_events, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_relay_status (0.68s)
|
||||
AssertionError('expected tool nostr_relay_status, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_dm_send (0.70s)
|
||||
AssertionError('expected tool nostr_dm_send, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_encode_npub (0.69s)
|
||||
AssertionError('expected tool nostr_encode, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_profile_get (0.85s)
|
||||
AssertionError('expected tool nostr_profile_get, got []')
|
||||
|
||||
[ERROR] test_tools_skills::skill_list (0.71s)
|
||||
AssertionError('expected tool skill_list, got []')
|
||||
|
||||
[ERROR] test_tools_skills::trigger_list (0.72s)
|
||||
AssertionError('expected tool trigger_list, got []')
|
||||
|
||||
[ERROR] test_tools_skills::skill_create_and_remove (0.70s)
|
||||
AssertionError('expected tool skill_create, got []')
|
||||
|
||||
[ERROR] test_tools_system::tool_list (0.92s)
|
||||
AssertionError('expected tool tool_list, got []')
|
||||
|
||||
[ERROR] test_tools_system::model_get (0.75s)
|
||||
AssertionError('expected tool model_get, got []')
|
||||
|
||||
[ERROR] test_tools_system::model_list (0.71s)
|
||||
AssertionError('expected tool model_list, got []')
|
||||
|
||||
[ERROR] test_tools_system::local_http_fetch (0.70s)
|
||||
AssertionError('expected tool local_http_fetch, got []')
|
||||
|
||||
[ERROR] test_tools_system::config_store_recall (0.71s)
|
||||
AssertionError('expected tool config_store, got []')
|
||||
53
tests/results/20260325T135819Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260325T135819Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
797
tests/results/20260325T174737Z/agent_debug.log
Normal file
797
tests/results/20260325T174737Z/agent_debug.log
Normal file
@@ -0,0 +1,797 @@
|
||||
[2026-03-25 13:47:38] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 13:47:38] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 13:47:38] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 13:47:38] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 13:47:39] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774460858", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:39] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1774460858", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:39] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1774460858"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1774460858"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1774460858"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1774460858"]
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1774460860", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1774460860", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1774460860"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1774460860"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1774460860"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1774460860"]
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1774460860", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1774460860", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1774460860"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1774460860"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1774460860"]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1774460860"]
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-03-25 13:47:40] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1774460860", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1774460860", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:40] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1774460860"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1774460860"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1774460860"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1774460860"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1774460861", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1774460861", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","61feeb17cd560a8fc11bef4456b1662aedb5ae2923de396009d07a8f7e906aff",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","61feeb17cd560a8fc11bef4456b1662aedb5ae2923de396009d07a8f7e906aff",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","9b494399f98ec71945d25c2ad5062a9a93a69ed5c9e3348f46571d41548e5f5c",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","9b494399f98ec71945d25c2ad5062a9a93a69ed5c9e3348f46571d41548e5f5c",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","4bda1899eb80ebaf8f218c40c9784c0317e914bf5ff3927ca4f93c7d5d3c3458",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1774460861"]
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460858,"last_event_time":1774460861},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":5,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460858,"last_event_time":1774460861}]}
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1774460861", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1774460861", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","4bda1899eb80ebaf8f218c40c9784c0317e914bf5ff3927ca4f93c7d5d3c3458",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","bb5e342c239646a783cdd770e96fc8e1477dbd057e42ff9a5d5347e05aa7334d",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","bb5e342c239646a783cdd770e96fc8e1477dbd057e42ff9a5d5347e05aa7334d",true,""]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1774460861"]
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":2,"events_published":6,"events_published_ok":5,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460858,"last_event_time":1774460861,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460858,"last_event_time":1774460861}]}
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774460861", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1774460861", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774460861", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1774460861", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774460861", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1774460861", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774460861", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1774460861", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774460861", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1774460861", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774460861", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1774460861", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643 created_at=1774460861 via wss://relay.damus.io
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54 created_at=1774460861 via wss://relay.damus.io
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643 created_at=1774460861 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54 created_at=1774460861 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1774460861"]
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:41] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643 created_at=1774460861
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54 created_at=1774460861
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774460861", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460858,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1774460861", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460858,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1774460858 now=1774460861 delta=3 relay_count=2
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774460861", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460858,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1774460861", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460858,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 13:47:41] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-03-25 13:47:41] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1774460861", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1774460861", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1774460861"]
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:41] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1774460861"]
|
||||
[2026-03-25 13:47:42] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-03-25 13:47:42] [WARN ] [main.c:1528] [didactyl] HTTP API disabled due to bind/init failure; agent will continue without local API
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-03-25 13:47:42 (version v0.2.19, connected relays: 2/2).
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1774460862,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"gpp6yprxyv2I/0Xjc25cJsHFQpkh7lv3mtoUZNInc8+LQXNNldbXkF2sKLmLxmI8VOS+8jp+n1yVrRm4GEzOQhLGhuDwc4pBQ26hnT06RRnp0tMiaJcf+Z77/MJ8hIRg68N5R0exKxWVx2V+J8Jyiv0Ds6iaCH5J3An5VEkFWN8=?iv=3vnlPkg17NUSV1InIxbKng==","id":"c5810e07dd54a83e20ab8f599c80e92453629a6e21f76ae18a1e00efde3c79ed","sig":"776e251a03c53ec4c03e3daaf05faa9c0a98bf4f9d6850b223475fa8846c085568c9ea62534c156b43cc8751a10cdb594002e600d1e04223db6a1106f4467fc7"}
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM c5810e07dd54a83e... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","c5810e07dd54a83e20ab8f599c80e92453629a6e21f76ae18a1e00efde3c79ed",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","c5810e07dd54a83e20ab8f599c80e92453629a6e21f76ae18a1e00efde3c79ed",true,""]
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-03-25 13:47:42] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1774460861"]
|
||||
[2026-03-25 13:47:42] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1774460861"]
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 13:47:42] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 13:47:42] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 13:47:43] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774460862", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:43] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 13:47:43] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 13:47:43] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 13:47:43] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 13:47:43] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 13:47:43] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 13:47:43] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 13:47:43] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 13:47:44] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774460863", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:44] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1774460863", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:44] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1774460863"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1774460863"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1774460863"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1774460863"]
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1774460865", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1774460865", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1774460865"]
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1774460865", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1774460865", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1774460865"]
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1774460865", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1774460865", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1774460865"]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 13:47:45] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-03-25 13:47:45] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1774460865", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:45] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1774460865", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","1ae930e3355b38422c24c409b0c670975ccefcb095bd55db5d9d987dcd83027c",true,""]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","6bec760f593574f8ad5a15cbef6da59fb563419521ef1598117826156847f45e",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","471f23d0d023374e27c95d941106e58a403ed2b76e55f75b5d172ef7881d81c3",true,""]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","471f23d0d023374e27c95d941106e58a403ed2b76e55f75b5d172ef7881d81c3",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","6bec760f593574f8ad5a15cbef6da59fb563419521ef1598117826156847f45e",true,""]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","1ae930e3355b38422c24c409b0c670975ccefcb095bd55db5d9d987dcd83027c",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","a13b499ed99e4b8677654b43ef561820b2b36c27693cc4f9dc6bfac8895871f6",true,""]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","a13b499ed99e4b8677654b43ef561820b2b36c27693cc4f9dc6bfac8895871f6",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1774460865"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1774460865"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","2387be3c210413b65ed853f10ddd9661a064efa6c8beb977dbe1a4ae4d7af2ec",true,""]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1774460865"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1774460865"]
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":0,"events_published_failed":4,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460863,"last_event_time":1774460866,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460863,"last_event_time":1774460866}]}
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1774460866", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1774460866", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","afeac469b7a4ad09b17a1fdfc96397196e72890e79e079d1b5db809a347f5fa7",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","afeac469b7a4ad09b17a1fdfc96397196e72890e79e079d1b5db809a347f5fa7",true,""]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","2387be3c210413b65ed853f10ddd9661a064efa6c8beb977dbe1a4ae4d7af2ec",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1774460866"]
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=2
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":2,"events_published":6,"events_published_ok":0,"events_published_failed":6,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460863,"last_event_time":1774460866,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774460863,"last_event_time":1774460866}]}
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774460866", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1774460866", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774460866", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1774460866", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774460866", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1774460866", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774460866", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1774460866", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774460866", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1774460866", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774460866", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1774460866", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=fac7f97a59e640152f378862fa7d16285601debbd06fe7400d5288385059b643 created_at=1774460861 via wss://relay.damus.io
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=92e10e064611f8879a633fc11725148adc2452b899d8cade00dec822a206af54 created_at=1774460861 via wss://relay.damus.io
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=a13b499ed99e4b8677654b43ef561820b2b36c27693cc4f9dc6bfac8895871f6 created_at=1774460865 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=1ae930e3355b38422c24c409b0c670975ccefcb095bd55db5d9d987dcd83027c created_at=1774460865 via wss://relay.primal.net
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1774460866"]
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 13:47:46] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=1ae930e3355b38422c24c409b0c670975ccefcb095bd55db5d9d987dcd83027c created_at=1774460865
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=a13b499ed99e4b8677654b43ef561820b2b36c27693cc4f9dc6bfac8895871f6 created_at=1774460865
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774460866", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460863,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1774460866", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460863,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1774460863 now=1774460866 delta=3 relay_count=2
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774460866", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460863,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1774460866", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774460863,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 13:47:46] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-03-25 13:47:46] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1774460866", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1774460866", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1774460866"]
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 13:47:46] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1774460866"]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1774460866"]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1774460866"]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1774460866"]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1774460866"]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1774460866"]
|
||||
[2026-03-25 13:47:47] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-03-25 13:47:47] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-03-25 13:47:47] [WARN ] [main.c:1528] [didactyl] HTTP API disabled due to bind/init failure; agent will continue without local API
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-03-25 13:47:47 (version v0.2.19, connected relays: 2/2).
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1774460867,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"XlRE2hFuH/LF70U0uW54B5tzeUDwJxOPOrNgt4ZWVszJ/EmhmnLiX6Ym7O9Viyw8QIk7pp5xA5qUtwolgnRvuKhza3ox+qMgfKt0h2NEqcmPaZMb0upJXJj1hAuc0HP+0nT/kKyJci8jtBsy5fCTA6sDwfywMwULpgU3S2rqWU8=?iv=I0N5pHlTq7SSvmgICkSOgg==","id":"f6f76facfb71305a7365040310780ba6335a2b1db95ad922b136293ab0e00298","sig":"1e8abe07ce1d67e37ec8c142fc0bcb79589e1c77ecdacac3e6e878b9e4c536aa5c6bbdd785f446483f670427ebd4c84b080945065a8bf83d5675533676892a4f"}
|
||||
[2026-03-25 13:47:47] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-03-25 13:47:47] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 13:47:47] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-03-25 13:47:47] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-03-25 13:47:47] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-03-25 13:47:47] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM f6f76facfb71305a... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-03-25 13:47:47] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-03-25 13:47:47] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-03-25 13:47:47] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","f6f76facfb71305a7365040310780ba6335a2b1db95ad922b136293ab0e00298",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","f6f76facfb71305a7365040310780ba6335a2b1db95ad922b136293ab0e00298",true,""]
|
||||
[2026-03-25 13:47:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 13:47:59] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-03-25 13:47:59] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1774460866"]
|
||||
[2026-03-25 13:47:59] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1774460866"]
|
||||
441
tests/results/20260325T174737Z/results.json
Normal file
441
tests/results/20260325T174737Z/results.json
Normal file
@@ -0,0 +1,441 @@
|
||||
{
|
||||
"run_meta": {
|
||||
"run_timestamp": "2026-03-25T17:47:59.916946+00:00",
|
||||
"base_url": "http://127.0.0.1:8485",
|
||||
"config": "tests/results/20260325T174737Z/runtime_test_genesis.jsonc",
|
||||
"binary": "didactyl_static_x86_64_debug",
|
||||
"test_count": 43
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "simple_greeting",
|
||||
"status": "pass",
|
||||
"message": "greeting response ok",
|
||||
"duration_seconds": 0.6080715639982373,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"response": "LLM request failed."
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "agent_responds_about_itself",
|
||||
"status": "error",
|
||||
"message": "AssertionError('response missing expected identity terms')",
|
||||
"duration_seconds": 0.5505103840005177,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "empty_message_handling",
|
||||
"status": "pass",
|
||||
"message": "empty message handled",
|
||||
"duration_seconds": 0.4987701490026666,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "very_long_message",
|
||||
"status": "pass",
|
||||
"message": "long message handled",
|
||||
"duration_seconds": 0.6658556200018211,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "invalid_json_body",
|
||||
"status": "pass",
|
||||
"message": "invalid json rejected",
|
||||
"duration_seconds": 0.12278234699988388,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "missing_message_field",
|
||||
"status": "pass",
|
||||
"message": "missing message rejected",
|
||||
"duration_seconds": 0.0814288569999917,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "unknown_endpoint",
|
||||
"status": "pass",
|
||||
"message": "unknown endpoint 404",
|
||||
"duration_seconds": 0.18177193199881003,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "webhook_nonexistent_dtag",
|
||||
"status": "pass",
|
||||
"message": "nonexistent d_tag 404",
|
||||
"duration_seconds": 0.18040410300091025,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_returns_200",
|
||||
"status": "pass",
|
||||
"message": "status success",
|
||||
"duration_seconds": 0.18076090999966254,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"keys": [
|
||||
"success",
|
||||
"name",
|
||||
"version",
|
||||
"pubkey",
|
||||
"relay_count",
|
||||
"connected_relays",
|
||||
"active_triggers"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_has_fields",
|
||||
"status": "pass",
|
||||
"message": "required fields present",
|
||||
"duration_seconds": 0.1836120409971045,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_current_returns_messages",
|
||||
"status": "pass",
|
||||
"message": "context current ok",
|
||||
"duration_seconds": 0.17996426700119628,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"message_count": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_parts_has_system_prompt",
|
||||
"status": "pass",
|
||||
"message": "context parts ok",
|
||||
"duration_seconds": 0.1812262989988085,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"parts": [
|
||||
"system_prompt",
|
||||
"dm_history"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "clean_restart",
|
||||
"status": "pass",
|
||||
"message": "restart succeeded",
|
||||
"duration_seconds": 0.36265077499774634,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "status_after_restart",
|
||||
"status": "pass",
|
||||
"message": "status stable after restart",
|
||||
"duration_seconds": 0.5448084909985482,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"pubkey": "1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "conversation_after_restart",
|
||||
"status": "pass",
|
||||
"message": "conversation works post-restart",
|
||||
"duration_seconds": 0.7290245299991511,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "response_within_timeout",
|
||||
"status": "pass",
|
||||
"message": "response within timeout",
|
||||
"duration_seconds": 0.5722467779996805,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.5722373659991717
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "status_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "status fast",
|
||||
"duration_seconds": 0.18072310700154048,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.1807178000017302
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "context_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "context fast",
|
||||
"duration_seconds": 0.18110287400122616,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.18109712899968144
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_blossom",
|
||||
"name": "blossom_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool blossom_list, got []')",
|
||||
"duration_seconds": 0.6411650939990068,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_cashu",
|
||||
"name": "wallet_balance",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool cashu_wallet_balance, got []')",
|
||||
"duration_seconds": 0.6616534469976614,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_pubkey",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_pubkey, got []')",
|
||||
"duration_seconds": 0.4017239460008568,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_npub",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_npub, got []')",
|
||||
"duration_seconds": 0.6410249760010629,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_identity",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool agent_identity, got []')",
|
||||
"duration_seconds": 0.6553536489991529,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_version",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool agent_version, got []')",
|
||||
"duration_seconds": 0.5479177609995531,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "admin_identity",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool admin_identity, got []')",
|
||||
"duration_seconds": 0.5576727590014343,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool task_list, got []')",
|
||||
"duration_seconds": 0.6034667280000576,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_manage_add_remove",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool task_manage, got []')",
|
||||
"duration_seconds": 0.5499829990003491,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "memory_save_recall",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool memory_save, got []')",
|
||||
"duration_seconds": 0.6006462539990025,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_post_kind1",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_post, got []')",
|
||||
"duration_seconds": 0.6495320089998131,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_query_recent",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_query, got []')",
|
||||
"duration_seconds": 0.5871804300004442,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_my_events",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_my_events, got []')",
|
||||
"duration_seconds": 0.6059191540007305,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_relay_status",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_relay_status, got []')",
|
||||
"duration_seconds": 0.561895247999928,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_dm_send",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_dm_send, got []')",
|
||||
"duration_seconds": 0.7128510910006298,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_encode_npub",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_encode, got []')",
|
||||
"duration_seconds": 0.5432366430031834,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_profile_get",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_profile_get, got []')",
|
||||
"duration_seconds": 0.5479909720015712,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool skill_list, got []')",
|
||||
"duration_seconds": 0.6087345930027368,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "trigger_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool trigger_list, got []')",
|
||||
"duration_seconds": 0.545774258000165,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_create_and_remove",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool skill_create, got []')",
|
||||
"duration_seconds": 0.5827328599989414,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "tool_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool tool_list, got []')",
|
||||
"duration_seconds": 0.5551958729993203,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_get",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool model_get, got []')",
|
||||
"duration_seconds": 0.5552647679978691,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool model_list, got []')",
|
||||
"duration_seconds": 0.7254338380007539,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "local_http_fetch",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool local_http_fetch, got []')",
|
||||
"duration_seconds": 0.561345097998128,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "config_store_recall",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool config_store, got []')",
|
||||
"duration_seconds": 0.5447622259998752,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
}
|
||||
],
|
||||
"summary": {
|
||||
"pass": 17,
|
||||
"error": 26
|
||||
}
|
||||
}
|
||||
139
tests/results/20260325T174737Z/results.txt
Normal file
139
tests/results/20260325T174737Z/results.txt
Normal file
@@ -0,0 +1,139 @@
|
||||
== Didactyl Test Results ==
|
||||
Run: 2026-03-25T17:47:59.916946+00:00
|
||||
Agent base URL: http://127.0.0.1:8485
|
||||
|
||||
Pass: 17
|
||||
Fail: 0
|
||||
Error: 26
|
||||
Timeout: 0
|
||||
Skip: 0
|
||||
Total: 43
|
||||
|
||||
[PASS] test_conversation::simple_greeting (0.61s)
|
||||
greeting response ok
|
||||
|
||||
[ERROR] test_conversation::agent_responds_about_itself (0.55s)
|
||||
AssertionError('response missing expected identity terms')
|
||||
|
||||
[PASS] test_conversation::empty_message_handling (0.50s)
|
||||
empty message handled
|
||||
|
||||
[PASS] test_conversation::very_long_message (0.67s)
|
||||
long message handled
|
||||
|
||||
[PASS] test_errors::invalid_json_body (0.12s)
|
||||
invalid json rejected
|
||||
|
||||
[PASS] test_errors::missing_message_field (0.08s)
|
||||
missing message rejected
|
||||
|
||||
[PASS] test_errors::unknown_endpoint (0.18s)
|
||||
unknown endpoint 404
|
||||
|
||||
[PASS] test_errors::webhook_nonexistent_dtag (0.18s)
|
||||
nonexistent d_tag 404
|
||||
|
||||
[PASS] test_health::status_returns_200 (0.18s)
|
||||
status success
|
||||
|
||||
[PASS] test_health::status_has_fields (0.18s)
|
||||
required fields present
|
||||
|
||||
[PASS] test_health::context_current_returns_messages (0.18s)
|
||||
context current ok
|
||||
|
||||
[PASS] test_health::context_parts_has_system_prompt (0.18s)
|
||||
context parts ok
|
||||
|
||||
[PASS] test_restart::clean_restart (0.36s)
|
||||
restart succeeded
|
||||
|
||||
[PASS] test_restart::status_after_restart (0.54s)
|
||||
status stable after restart
|
||||
|
||||
[PASS] test_restart::conversation_after_restart (0.73s)
|
||||
conversation works post-restart
|
||||
|
||||
[PASS] test_timeouts::response_within_timeout (0.57s)
|
||||
response within timeout
|
||||
|
||||
[PASS] test_timeouts::status_responds_fast (0.18s)
|
||||
status fast
|
||||
|
||||
[PASS] test_timeouts::context_responds_fast (0.18s)
|
||||
context fast
|
||||
|
||||
[ERROR] test_tools_blossom::blossom_list (0.64s)
|
||||
AssertionError('expected tool blossom_list, got []')
|
||||
|
||||
[ERROR] test_tools_cashu::wallet_balance (0.66s)
|
||||
AssertionError('expected tool cashu_wallet_balance, got []')
|
||||
|
||||
[ERROR] test_tools_identity::get_pubkey (0.40s)
|
||||
AssertionError('expected tool nostr_pubkey, got []')
|
||||
|
||||
[ERROR] test_tools_identity::get_npub (0.64s)
|
||||
AssertionError('expected tool nostr_npub, got []')
|
||||
|
||||
[ERROR] test_tools_identity::agent_identity (0.66s)
|
||||
AssertionError('expected tool agent_identity, got []')
|
||||
|
||||
[ERROR] test_tools_identity::agent_version (0.55s)
|
||||
AssertionError('expected tool agent_version, got []')
|
||||
|
||||
[ERROR] test_tools_identity::admin_identity (0.56s)
|
||||
AssertionError('expected tool admin_identity, got []')
|
||||
|
||||
[ERROR] test_tools_memory::task_list (0.60s)
|
||||
AssertionError('expected tool task_list, got []')
|
||||
|
||||
[ERROR] test_tools_memory::task_manage_add_remove (0.55s)
|
||||
AssertionError('expected tool task_manage, got []')
|
||||
|
||||
[ERROR] test_tools_memory::memory_save_recall (0.60s)
|
||||
AssertionError('expected tool memory_save, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_post_kind1 (0.65s)
|
||||
AssertionError('expected tool nostr_post, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_query_recent (0.59s)
|
||||
AssertionError('expected tool nostr_query, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_my_events (0.61s)
|
||||
AssertionError('expected tool nostr_my_events, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_relay_status (0.56s)
|
||||
AssertionError('expected tool nostr_relay_status, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_dm_send (0.71s)
|
||||
AssertionError('expected tool nostr_dm_send, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_encode_npub (0.54s)
|
||||
AssertionError('expected tool nostr_encode, got []')
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_profile_get (0.55s)
|
||||
AssertionError('expected tool nostr_profile_get, got []')
|
||||
|
||||
[ERROR] test_tools_skills::skill_list (0.61s)
|
||||
AssertionError('expected tool skill_list, got []')
|
||||
|
||||
[ERROR] test_tools_skills::trigger_list (0.55s)
|
||||
AssertionError('expected tool trigger_list, got []')
|
||||
|
||||
[ERROR] test_tools_skills::skill_create_and_remove (0.58s)
|
||||
AssertionError('expected tool skill_create, got []')
|
||||
|
||||
[ERROR] test_tools_system::tool_list (0.56s)
|
||||
AssertionError('expected tool tool_list, got []')
|
||||
|
||||
[ERROR] test_tools_system::model_get (0.56s)
|
||||
AssertionError('expected tool model_get, got []')
|
||||
|
||||
[ERROR] test_tools_system::model_list (0.73s)
|
||||
AssertionError('expected tool model_list, got []')
|
||||
|
||||
[ERROR] test_tools_system::local_http_fetch (0.56s)
|
||||
AssertionError('expected tool local_http_fetch, got []')
|
||||
|
||||
[ERROR] test_tools_system::config_store_recall (0.54s)
|
||||
AssertionError('expected tool config_store, got []')
|
||||
53
tests/results/20260325T174737Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260325T174737Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
400
tests/results/20260325T175332Z/agent_debug.log
Normal file
400
tests/results/20260325T175332Z/agent_debug.log
Normal file
@@ -0,0 +1,400 @@
|
||||
[2026-03-25 14:02:54] [INFO ] [main.c:1016] Didactyl v0.2.19 starting
|
||||
[2026-03-25 14:02:54] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-03-25 14:02:54] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-03-25 14:02:54] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-03-25 14:02:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1774461774", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1774461774", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1774461774"]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1774461774"]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1774461774"]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1774461774"]
|
||||
[2026-03-25 14:02:55] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-03-25 14:02:55] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-03-25 14:02:55] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1774461775", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1774461775", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1774461775"]
|
||||
[2026-03-25 14:02:55] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1774461775"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1774461775"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1774461775"]
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1774461776", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1774461776", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1774461776"]
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1774461776", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1774461776", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-03-25 14:02:56] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1774461776", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1774461776", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","2c21916b0e37e887a08e2ccb527ec01a01ef951ebb6c511c72e01482765b7e6d",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","1b70bbaf3501de3afe041adf5547036d809dc6d23645835f49434ecd4fc48845",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","ae44cb3eb696c7779a00075466af1323ea890d09a294e4b1bace7580d33d5391",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","2c21916b0e37e887a08e2ccb527ec01a01ef951ebb6c511c72e01482765b7e6d",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","1b70bbaf3501de3afe041adf5547036d809dc6d23645835f49434ecd4fc48845",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","8766d4cbf5f85035217dc8bd7c19b3c16723fb3415eec3c3b17ad4cc63e7aa76",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","8766d4cbf5f85035217dc8bd7c19b3c16723fb3415eec3c3b17ad4cc63e7aa76",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","ae44cb3eb696c7779a00075466af1323ea890d09a294e4b1bace7580d33d5391",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","9c5b8a1c0b580c4171f8e8623eaca96d61b3edac1a0c84569beddad608335358",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1774461776"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1774461776"]
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-03-25 14:02:56] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-03-25 14:02:56] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 14:02:56] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 14:02:56] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-03-25 14:02:56] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774461774,"last_event_time":1774461776},{"url":"wss://relay.primal.net","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774461774,"last_event_time":1774461776}]}
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1774461776", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1774461776", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","9c5b8a1c0b580c4171f8e8623eaca96d61b3edac1a0c84569beddad608335358",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","f780c7d39a7eb3ae9585615517c53199accf1ec68f8ba3e419294f7a5e5842bb",true,""]
|
||||
[2026-03-25 14:02:56] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","f780c7d39a7eb3ae9585615517c53199accf1ec68f8ba3e419294f7a5e5842bb",true,""]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1774461776"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1774461776"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1774461776"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1774461776"]
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774461774,"last_event_time":1774461776,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1774461774,"last_event_time":1774461776}]}
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1774461777", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1774461777", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1774461777", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1774461777", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1774461777", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1774461777", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1774461777", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1774461777", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1774461777", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1774461777", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1774461777", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1774461777", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=8766d4cbf5f85035217dc8bd7c19b3c16723fb3415eec3c3b17ad4cc63e7aa76 created_at=1774461776 via wss://relay.damus.io
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=1b70bbaf3501de3afe041adf5547036d809dc6d23645835f49434ecd4fc48845 created_at=1774461776 via wss://relay.damus.io
|
||||
[2026-03-25 14:02:57] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=8766d4cbf5f85035217dc8bd7c19b3c16723fb3415eec3c3b17ad4cc63e7aa76 created_at=1774461776 via wss://relay.primal.net
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=1b70bbaf3501de3afe041adf5547036d809dc6d23645835f49434ecd4fc48845 created_at=1774461776 via wss://relay.primal.net
|
||||
[2026-03-25 14:02:57] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1774461777"]
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-03-25 14:02:57] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-03-25 14:02:57] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=1b70bbaf3501de3afe041adf5547036d809dc6d23645835f49434ecd4fc48845 created_at=1774461776
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=8766d4cbf5f85035217dc8bd7c19b3c16723fb3415eec3c3b17ad4cc63e7aa76 created_at=1774461776
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1774461777", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774461774,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1774461777", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774461774,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1774461774 now=1774461777 delta=3 relay_count=2
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1774461777", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774461774,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1774461777", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1774461774,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1774461777", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1774461777", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1774461777"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1774461777"]
|
||||
[2026-03-25 14:02:57] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-03-25 14:02:57] [INFO ] [http_api.c:1570] [didactyl] http api listening on http://127.0.0.1:8485
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1532] [didactyl] HTTP API listening at http://127.0.0.1:8485
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1535] [didactyl] HTTP API endpoints: http://127.0.0.1:8485/api/context/current http://127.0.0.1:8485/api/context/parts
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-03-25 14:02:57 (version v0.2.19, connected relays: 2/2).
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1774461777,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"7vDBamgyRYv/n4ltqkKInvjb4EB7NOxO3xAHvHmt2vCC3I7D9OL6ZyxiAyQeWhUMFcUsLHenGvymbE1HVXunUdx/JOJDqwGsFvW9dFkGz3wY9vGE7KrFqz6VK6d07mQoDx5Cq2NrPdlW6Krf775db4tp6+ojecgVyja/D5rUiL4=?iv=LSn2WshlIWsAIuphL6UPiA==","id":"f2e4cffdde98d0102be90a9a9e8e1f978824d28500d6f6881e6c95d1b32b20c8","sig":"645c17011a904ccadc367244133e74cbd206fa8a7f0ae686ef0c6d4af02cfe2cd01b80657df52a31c983ebec5383b7ee23e7616cf94d89e4678b0b5b7cd079e6"}
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-03-25 14:02:57] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM f2e4cffdde98d010... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-03-25 14:02:57] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","f2e4cffdde98d0102be90a9a9e8e1f978824d28500d6f6881e6c95d1b32b20c8",false,"rate-limited: you are noting too much"]
|
||||
[2026-03-25 14:02:57] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","f2e4cffdde98d0102be90a9a9e8e1f978824d28500d6f6881e6c95d1b32b20c8",true,""]
|
||||
[2026-03-25 14:02:58] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27512 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"List available models"},{"role":"user","content":"List available models","_ts":1774461778}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","func...
|
||||
[2026-03-25 14:02:58] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 14:02:58] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 14:02:59] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27528 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Fetch https://httpbin.org/get"},{"role":"user","content":"Fetch https://httpbin.org/get","_ts":1774461779}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":...
|
||||
[2026-03-25 14:02:59] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 14:02:59] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 14:03:00] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.anthropic.com/v1/chat/completions body_bytes=27634 body_preview={"model":"claude-haiku-4.5","max_tokens":512,"temperature":0.3,"messages":[{"role":"system","content":"# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Store a test config with d_tag test_harness_probe containing hello, then recall it"},{"role":"user","content":"Store a test config with d_tag test_harness_probe containing hello, then recall it","_ts":1774461780}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubke...
|
||||
[2026-03-25 14:03:00] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401
|
||||
[2026-03-25 14:03:00] [WARN ] [llm.c:98] [didactyl] llm error response: {"error":{"code":"authentication_error","message":"Invalid Anthropic API Key","type":"invalid_request_error","param":null}}
|
||||
[2026-03-25 14:03:00] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-03-25 14:03:00] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1774461777"]
|
||||
[2026-03-25 14:03:00] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1774461777"]
|
||||
488
tests/results/20260325T175332Z/results.json
Normal file
488
tests/results/20260325T175332Z/results.json
Normal file
@@ -0,0 +1,488 @@
|
||||
{
|
||||
"run_meta": {
|
||||
"run_timestamp": "2026-03-25T18:03:00.628899+00:00",
|
||||
"base_url": "http://127.0.0.1:8485",
|
||||
"config": "tests/results/20260325T175332Z/runtime_test_genesis.jsonc",
|
||||
"binary": "didactyl_static_x86_64_debug",
|
||||
"test_count": 43
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "simple_greeting",
|
||||
"status": "pass",
|
||||
"message": "greeting response ok",
|
||||
"duration_seconds": 0.7118723430030514,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:53:38] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {
|
||||
"response": "LLM request failed."
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "agent_responds_about_itself",
|
||||
"status": "error",
|
||||
"message": "AssertionError('response missing expected identity terms')",
|
||||
"duration_seconds": 0.6928808490010852,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:53:39] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "empty_message_handling",
|
||||
"status": "pass",
|
||||
"message": "empty message handled",
|
||||
"duration_seconds": 0.7150301859983301,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:53:40] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "very_long_message",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.40904328100078,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "invalid_json_body",
|
||||
"status": "pass",
|
||||
"message": "invalid json rejected",
|
||||
"duration_seconds": 0.3312758339998254,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "missing_message_field",
|
||||
"status": "pass",
|
||||
"message": "missing message rejected",
|
||||
"duration_seconds": 0.33221357599904877,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "unknown_endpoint",
|
||||
"status": "pass",
|
||||
"message": "unknown endpoint 404",
|
||||
"duration_seconds": 0.33083409500250127,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "webhook_nonexistent_dtag",
|
||||
"status": "pass",
|
||||
"message": "nonexistent d_tag 404",
|
||||
"duration_seconds": 0.3310678790003294,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_returns_200",
|
||||
"status": "pass",
|
||||
"message": "status success",
|
||||
"duration_seconds": 0.3312179879976611,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"keys": [
|
||||
"success",
|
||||
"name",
|
||||
"version",
|
||||
"pubkey",
|
||||
"relay_count",
|
||||
"connected_relays",
|
||||
"active_triggers"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_has_fields",
|
||||
"status": "pass",
|
||||
"message": "required fields present",
|
||||
"duration_seconds": 0.3311822950017813,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_current_returns_messages",
|
||||
"status": "pass",
|
||||
"message": "context current ok",
|
||||
"duration_seconds": 0.33288373700270313,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"message_count": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_parts_has_system_prompt",
|
||||
"status": "pass",
|
||||
"message": "context parts ok",
|
||||
"duration_seconds": 0.33133809699938865,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"parts": [
|
||||
"system_prompt",
|
||||
"dm_history"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "clean_restart",
|
||||
"status": "pass",
|
||||
"message": "restart succeeded",
|
||||
"duration_seconds": 4.6176964590013085,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "status_after_restart",
|
||||
"status": "pass",
|
||||
"message": "status stable after restart",
|
||||
"duration_seconds": 4.909773605002556,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"pubkey": "1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "conversation_after_restart",
|
||||
"status": "pass",
|
||||
"message": "conversation works post-restart",
|
||||
"duration_seconds": 5.050862364001659,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:55:16] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "response_within_timeout",
|
||||
"status": "pass",
|
||||
"message": "response within timeout",
|
||||
"duration_seconds": 0.7110072859977663,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:55:17] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {
|
||||
"elapsed": 0.7109956109998166
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "status_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "status fast",
|
||||
"duration_seconds": 0.3315564660006203,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.33155244100271375
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "context_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "context fast",
|
||||
"duration_seconds": 0.3315621049987385,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.33155633700152976
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_blossom",
|
||||
"name": "blossom_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool blossom_list, got []')",
|
||||
"duration_seconds": 0.6940111899966723,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:55:18] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_cashu",
|
||||
"name": "wallet_balance",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.33774810400064,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_pubkey",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_pubkey, got []')",
|
||||
"duration_seconds": 0.7191562530024385,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:56:33] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_npub",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_npub, got []')",
|
||||
"duration_seconds": 0.6996072969996021,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:56:34] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_identity",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool agent_identity, got []')",
|
||||
"duration_seconds": 1.1282884260035644,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:56:35] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_version",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.35724607999873,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "admin_identity",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool admin_identity, got []')",
|
||||
"duration_seconds": 0.7115610000000743,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:57:50] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool task_list, got []')",
|
||||
"duration_seconds": 0.7350317499985977,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:57:51] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_manage_add_remove",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool task_manage, got []')",
|
||||
"duration_seconds": 0.8766229059983743,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:57:52] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "memory_save_recall",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.60836348800149,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_post_kind1",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_post, got []')",
|
||||
"duration_seconds": 0.7428539540014754,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:59:07] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_query_recent",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_query, got []')",
|
||||
"duration_seconds": 0.7209930099998019,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:59:08] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_my_events",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_my_events, got []')",
|
||||
"duration_seconds": 0.7880706729993108,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 13:59:09] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_relay_status",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.98576622600012,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_dm_send",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_dm_send, got []')",
|
||||
"duration_seconds": 0.7461701100000937,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:00:24] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_encode_npub",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_encode, got []')",
|
||||
"duration_seconds": 0.7844162699984736,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:00:25] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_profile_get",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool nostr_profile_get, got []')",
|
||||
"duration_seconds": 0.830511487001786,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:00:26] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_list",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.52532047299974,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "trigger_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool trigger_list, got []')",
|
||||
"duration_seconds": 0.8572921800005133,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:01:41] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_create_and_remove",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool skill_create, got []')",
|
||||
"duration_seconds": 0.7580235309978889,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:01:42] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "tool_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool tool_list, got []')",
|
||||
"duration_seconds": 1.2565209330023208,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:01:43] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_get",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.51243137799975,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_list",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool model_list, got []')",
|
||||
"duration_seconds": 0.7136340130018652,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:02:58] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "local_http_fetch",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool local_http_fetch, got []')",
|
||||
"duration_seconds": 0.7562634130008519,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:02:59] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "config_store_recall",
|
||||
"status": "error",
|
||||
"message": "AssertionError('expected tool config_store, got []')",
|
||||
"duration_seconds": 0.7716166019999946,
|
||||
"agent_errors": [
|
||||
"[2026-03-25 14:03:00] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
}
|
||||
],
|
||||
"summary": {
|
||||
"pass": 16,
|
||||
"error": 20,
|
||||
"timeout": 7
|
||||
}
|
||||
}
|
||||
163
tests/results/20260325T175332Z/results.txt
Normal file
163
tests/results/20260325T175332Z/results.txt
Normal file
@@ -0,0 +1,163 @@
|
||||
== Didactyl Test Results ==
|
||||
Run: 2026-03-25T18:03:00.628899+00:00
|
||||
Agent base URL: http://127.0.0.1:8485
|
||||
|
||||
Pass: 16
|
||||
Fail: 0
|
||||
Error: 20
|
||||
Timeout: 7
|
||||
Skip: 0
|
||||
Total: 43
|
||||
|
||||
[PASS] test_conversation::simple_greeting (0.71s)
|
||||
greeting response ok
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_conversation::agent_responds_about_itself (0.69s)
|
||||
AssertionError('response missing expected identity terms')
|
||||
Agent errors: 1
|
||||
|
||||
[PASS] test_conversation::empty_message_handling (0.72s)
|
||||
empty message handled
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_conversation::very_long_message (74.41s)
|
||||
timed out
|
||||
|
||||
[PASS] test_errors::invalid_json_body (0.33s)
|
||||
invalid json rejected
|
||||
|
||||
[PASS] test_errors::missing_message_field (0.33s)
|
||||
missing message rejected
|
||||
|
||||
[PASS] test_errors::unknown_endpoint (0.33s)
|
||||
unknown endpoint 404
|
||||
|
||||
[PASS] test_errors::webhook_nonexistent_dtag (0.33s)
|
||||
nonexistent d_tag 404
|
||||
|
||||
[PASS] test_health::status_returns_200 (0.33s)
|
||||
status success
|
||||
|
||||
[PASS] test_health::status_has_fields (0.33s)
|
||||
required fields present
|
||||
|
||||
[PASS] test_health::context_current_returns_messages (0.33s)
|
||||
context current ok
|
||||
|
||||
[PASS] test_health::context_parts_has_system_prompt (0.33s)
|
||||
context parts ok
|
||||
|
||||
[PASS] test_restart::clean_restart (4.62s)
|
||||
restart succeeded
|
||||
|
||||
[PASS] test_restart::status_after_restart (4.91s)
|
||||
status stable after restart
|
||||
|
||||
[PASS] test_restart::conversation_after_restart (5.05s)
|
||||
conversation works post-restart
|
||||
Agent errors: 1
|
||||
|
||||
[PASS] test_timeouts::response_within_timeout (0.71s)
|
||||
response within timeout
|
||||
Agent errors: 1
|
||||
|
||||
[PASS] test_timeouts::status_responds_fast (0.33s)
|
||||
status fast
|
||||
|
||||
[PASS] test_timeouts::context_responds_fast (0.33s)
|
||||
context fast
|
||||
|
||||
[ERROR] test_tools_blossom::blossom_list (0.69s)
|
||||
AssertionError('expected tool blossom_list, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_tools_cashu::wallet_balance (74.34s)
|
||||
timed out
|
||||
|
||||
[ERROR] test_tools_identity::get_pubkey (0.72s)
|
||||
AssertionError('expected tool nostr_pubkey, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_identity::get_npub (0.70s)
|
||||
AssertionError('expected tool nostr_npub, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_identity::agent_identity (1.13s)
|
||||
AssertionError('expected tool agent_identity, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_tools_identity::agent_version (74.36s)
|
||||
timed out
|
||||
|
||||
[ERROR] test_tools_identity::admin_identity (0.71s)
|
||||
AssertionError('expected tool admin_identity, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_memory::task_list (0.74s)
|
||||
AssertionError('expected tool task_list, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_memory::task_manage_add_remove (0.88s)
|
||||
AssertionError('expected tool task_manage, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_tools_memory::memory_save_recall (74.61s)
|
||||
timed out
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_post_kind1 (0.74s)
|
||||
AssertionError('expected tool nostr_post, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_query_recent (0.72s)
|
||||
AssertionError('expected tool nostr_query, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_my_events (0.79s)
|
||||
AssertionError('expected tool nostr_my_events, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_tools_nostr::nostr_relay_status (74.99s)
|
||||
timed out
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_dm_send (0.75s)
|
||||
AssertionError('expected tool nostr_dm_send, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_encode_npub (0.78s)
|
||||
AssertionError('expected tool nostr_encode, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_nostr::nostr_profile_get (0.83s)
|
||||
AssertionError('expected tool nostr_profile_get, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_tools_skills::skill_list (74.53s)
|
||||
timed out
|
||||
|
||||
[ERROR] test_tools_skills::trigger_list (0.86s)
|
||||
AssertionError('expected tool trigger_list, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_skills::skill_create_and_remove (0.76s)
|
||||
AssertionError('expected tool skill_create, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_system::tool_list (1.26s)
|
||||
AssertionError('expected tool tool_list, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[TIMEOUT] test_tools_system::model_get (74.51s)
|
||||
timed out
|
||||
|
||||
[ERROR] test_tools_system::model_list (0.71s)
|
||||
AssertionError('expected tool model_list, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_system::local_http_fetch (0.76s)
|
||||
AssertionError('expected tool local_http_fetch, got []')
|
||||
Agent errors: 1
|
||||
|
||||
[ERROR] test_tools_system::config_store_recall (0.77s)
|
||||
AssertionError('expected tool config_store, got []')
|
||||
Agent errors: 1
|
||||
53
tests/results/20260325T175332Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260325T175332Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "openai",
|
||||
"api_key": "sk-REPLACE_WITH_API_KEY",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.anthropic.com/v1",
|
||||
"max_tokens": 512,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
390
tests/results/20260404T135221Z/agent_debug.log
Normal file
390
tests/results/20260404T135221Z/agent_debug.log
Normal file
@@ -0,0 +1,390 @@
|
||||
[2026-04-04 10:04:51] [INFO ] [main.c:1016] Didactyl v0.2.20 starting
|
||||
[2026-04-04 10:04:51] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-04-04 10:04:51] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-04-04 10:04:51] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-04-04 10:04:51] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1775311491", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1775311491", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1775311492", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1775311492", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1775311492", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1775311492", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1775311493", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1775311493", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","98b892b33ce3731cbeb82d791f5e41c7deade4bb61756ed600a14f3aeaa7d45e",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","98b892b33ce3731cbeb82d791f5e41c7deade4bb61756ed600a14f3aeaa7d45e",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","7fb5e7e09092254b700df2e7a8473fdca42ee09e3a32b86d262ad2403807f920",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","7fb5e7e09092254b700df2e7a8473fdca42ee09e3a32b86d262ad2403807f920",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa",true,"duplicate: have this event"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=656>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","c27bd1317e1c716b8450c4302b42214397fd03d2620d39b8f28d3fe765b446d7",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","8842d5de102138e7f7bc72819624a5735360d575e1cd136cc69902b38544a717",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","8842d5de102138e7f7bc72819624a5735360d575e1cd136cc69902b38544a717",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","c27bd1317e1c716b8450c4302b42214397fd03d2620d39b8f28d3fe765b446d7",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":0,"events_published":6,"events_published_ok":4,"events_published_failed":2,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":3,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493}]}
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1775311493", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1775311493", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":0,"events_published":6,"events_published_ok":4,"events_published_failed":2,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":4,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493}]}
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1775311493", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1775311493", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1775311493", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1775311493", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493 via wss://relay.damus.io
|
||||
[2026-04-04 10:04:54] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493 via wss://relay.primal.net
|
||||
[2026-04-04 10:04:54] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493 via wss://relay.damus.io
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493 via wss://relay.primal.net
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1775311493"]
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-04-04 10:04:54] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:54] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1775311494", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1775311494", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1775311491 now=1775311494 delta=3 relay_count=2
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1775311494", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1775311494", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1775311494", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1775311494", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1775311494"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1775311494"]
|
||||
[2026-04-04 10:04:54] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-04-04 10:04:54] [WARN ] [main.c:1528] [didactyl] HTTP API disabled due to bind/init failure; agent will continue without local API
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-04-04 10:04:54 (version v0.2.20, connected relays: 2/2).
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1775311494,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"L7Q6tbtXVWYnJZFZkkVvVfG/+6NQa9V8UMMK2tICfBTaG9V2MfwaKg9cVmC5BkmDl44QuJo7HFMQWHhj9NRlM1D2mP8JVTFndXdVCM5KU6tslhRfrRpjRFhfkGd4+0/lpmhVSq7wUP3f7oLOAvQaH66mDA7bIebr5BIss/4rSFE=?iv=fOZr9Tl0qw3NBGqRXOJPAA==","id":"3edc6798888fa063a724c277ed553f35fcf339aa62a74b039edf35907bc4da9e","sig":"0fc1537a1729128950d0cdffee17822186b7fc1fc1b4c29cf1e23b8979ae7264b1e702600bfa6c9778916b316e2b8b1050a113c815ba8a890ad455b2d2947bdc"}
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM 3edc6798888fa063... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","3edc6798888fa063a724c277ed553f35fcf339aa62a74b039edf35907bc4da9e",true,""]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","3edc6798888fa063a724c277ed553f35fcf339aa62a74b039edf35907bc4da9e",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:05:36] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-04-04 10:05:36] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1775311493"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1775311494"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1775311494"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1775311494"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1775311494"]
|
||||
53
tests/results/20260404T135221Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260404T135221Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "https://api.ppq.ai",
|
||||
"api_key": "sk-SBI2Pga0J6n8jpPorHbRHC",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 10000,
|
||||
"temperature": 0.7
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
574
tests/results/20260404T135328Z/agent_debug.log
Normal file
574
tests/results/20260404T135328Z/agent_debug.log
Normal file
@@ -0,0 +1,574 @@
|
||||
[2026-04-04 09:53:31] [INFO ] [main.c:1016] Didactyl v0.2.20 starting
|
||||
[2026-04-04 09:53:31] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-04-04 09:53:31] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-04-04 09:53:31] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-04-04 09:53:31] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1775310811", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:31] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1775310811", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:31] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1775310811"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1775310811"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1775310811"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1775310811"]
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1775310812", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1775310812", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1775310812"]
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1775310812", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1775310812", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1775310812"]
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1775310812", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1775310812", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1775310812"]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 09:53:32] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-04-04 09:53:32] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1775310812", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:32] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1775310812", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","62db0aa31438a53f9811b70aa5de7d8b5e07f9327a1df1a1f28d1c56f2041cdd",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","62db0aa31438a53f9811b70aa5de7d8b5e07f9327a1df1a1f28d1c56f2041cdd",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","b2c46547046ec744abd08f147d49c1d218011fef013e6effc94fde7203db60d8",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","b2c46547046ec744abd08f147d49c1d218011fef013e6effc94fde7203db60d8",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","8e6842039e11bfabaa9ba7e2c9e94c9a75a87b2b2a8ea3f8c9ea4a31a8bbbbf8",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","8e6842039e11bfabaa9ba7e2c9e94c9a75a87b2b2a8ea3f8c9ea4a31a8bbbbf8",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","912179848fa53e52e842e13b124c8e49d3015ef48b15a079ea4bd687b6251fc4",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","912179848fa53e52e842e13b124c8e49d3015ef48b15a079ea4bd687b6251fc4",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1775310812"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1775310812"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","07e867604bb4b8bd8a8925cdc485f437c7e6463a3cf039d3f3b1af42f4f6e95e",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1775310812"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1775310812"]
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-04-04 09:53:33] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-04-04 09:53:33] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:33] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:53:33] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":0,"events_published":6,"events_published_ok":3,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775310811,"last_event_time":1775310813,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":5,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775310811,"last_event_time":1775310813}]}
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1775310813", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1775310813", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","b4ed5a24cfff8247076e5d3320511fee0a0546ec0000974382422e8f82e8ecb7",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","b4ed5a24cfff8247076e5d3320511fee0a0546ec0000974382422e8f82e8ecb7",true,""]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","07e867604bb4b8bd8a8925cdc485f437c7e6463a3cf039d3f3b1af42f4f6e95e",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1775310813"]
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":3,"events_published_failed":3,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775310811,"last_event_time":1775310813,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":2,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775310811,"last_event_time":1775310813}]}
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1775310813", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1775310813", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1775310813", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1775310813", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 09:53:33] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1775310813", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1775310813", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1775310813", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1775310813", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 09:53:33] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-04-04 09:53:33] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1775310813", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1775310813", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1775310813", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1775310813", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 09:53:33] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:53:33] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=9f094c21eade42f8c2f23fbce8127d13e6f0baacef8ead7afca66dd54d2033a7 created_at=1775310813 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:33] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:33] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:53:33] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=62107bfc20c3b449541878519bed40ebf94c21d49a1a9bb1da55c3f2d035fa7d created_at=1775310813 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1775310813"]
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 09:53:33] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1775310813"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1775310813"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=912179848fa53e52e842e13b124c8e49d3015ef48b15a079ea4bd687b6251fc4 created_at=1775310812 via wss://relay.damus.io
|
||||
[2026-04-04 09:53:34] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=e54b9c4384ee5e214a337f153c9cb7ecc61b46b77bce99851c2b80166cc3dd6d created_at=1775310771 via wss://relay.damus.io
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1775310813"]
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-04-04 09:53:34] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:34] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=9f094c21eade42f8c2f23fbce8127d13e6f0baacef8ead7afca66dd54d2033a7 created_at=1775310813
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=62107bfc20c3b449541878519bed40ebf94c21d49a1a9bb1da55c3f2d035fa7d created_at=1775310813
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1775310814", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775310811,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1775310814", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775310811,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1775310811 now=1775310814 delta=3 relay_count=2
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1775310814", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775310811,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1775310814", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775310811,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1775310814", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1775310814", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1775310813"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1775310814"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1775310814"]
|
||||
[2026-04-04 09:53:34] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-04-04 09:53:34] [WARN ] [main.c:1528] [didactyl] HTTP API disabled due to bind/init failure; agent will continue without local API
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-04-04 09:53:34 (version v0.2.20, connected relays: 2/2).
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1775310814,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"2IdS5q7P2xG6npiwo8XNCheTJ0ORjlriZhvvgByCrOrcY7U4roaoXA0AIJXM9CQxWLSkrWaXi0h1DTSOPZVCo5SqhQHEW4phQRWSz/bKnTjd3v8FTbCqO/JG1ghELrtmc3wED7CkEudSYgIEn46YYiYtomq/ulvkx7W6cm38tRM=?iv=jGIH5/frLMaWsdBfOKb0Gw==","id":"67ea8af90c4f8e8f1d9267beea62ce3c85c38493e386d22019b8a51b430782ba","sig":"1d6589f39630ad5e278b6c2a4b550903f7f09a0e5f5c4a42257a36e718c10ae9d959db9c73d72a3ab597baeac41076a71c7dfc3a87e6ba234e98946a6205dbef"}
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-04-04 09:53:34] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM 67ea8af90c4f8e8f... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-04-04 09:53:34] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","67ea8af90c4f8e8f1d9267beea62ce3c85c38493e386d22019b8a51b430782ba",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 09:53:34] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","67ea8af90c4f8e8f1d9267beea62ce3c85c38493e386d22019b8a51b430782ba",true,""]
|
||||
[2026-04-04 09:53:37] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:53:37] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:53:37] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:53:37] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=9153008526c935129f5e6aad28d37b8cf73eade2cac7a581ea19bb31ddfb77fd created_at=1775310817 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:37] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:37] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:53:37] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:53:37] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=e3c57af82d9726d819e56625794a1887914536576cc80c6dd9b5795dc533699b created_at=1775310817 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:38] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:53:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:53:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:53:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:53:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=6136e4b953dff6c275673c984419e3732528d588de5eedd8d492123638d4a459 created_at=1775310821 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:42] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:42] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:53:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:53:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=a42e4d656c81b6393d9ca684b2c4609d1268e8b41e6a6170ef33c8d25d448b8d created_at=1775310821 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:43] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:53:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:53:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:53:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:53:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=3e46947f0f9953c994de18c03873c8290528791d5e161489d3830288e758851e created_at=1775310826 via wss://relay.primal.net
|
||||
[2026-04-04 09:53:46] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:53:46] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:53:46] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:53:46] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=555277e0d773c2c05dfd59495698e0f2ae63b88a2c892716d34fbf731f90c93b created_at=1775310826 via wss://relay.primal.net
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 09:55:05] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=199821474ffaaedf3e7d90e8848fb95adfb3c547d25e62292f2ae01c6d15be26 created_at=1775310905 via wss://relay.damus.io
|
||||
[2026-04-04 09:55:05] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:55:05] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:55:05] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=199821474ffaaedf3e7d90e8848fb95adfb3c547d25e62292f2ae01c6d15be26 created_at=1775310905 via wss://relay.primal.net
|
||||
[2026-04-04 09:55:05] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:55:05] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 09:55:05] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=34ab5236e0848a5d27a6d98be6c3962919867267d861ae88d7887c186dc59d6f created_at=1775310905 via wss://relay.damus.io
|
||||
[2026-04-04 09:55:05] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:55:05] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=34ab5236e0848a5d27a6d98be6c3962919867267d861ae88d7887c186dc59d6f created_at=1775310905 via wss://relay.primal.net
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 09:56:27] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=3593e19374c0110c7fc6d62dddb4d5ea5aa96d71a6b5a87df3f58e7e6044b721 created_at=1775310986 via wss://relay.damus.io
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:56:27] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=3593e19374c0110c7fc6d62dddb4d5ea5aa96d71a6b5a87df3f58e7e6044b721 created_at=1775310986 via wss://relay.primal.net
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 09:56:27] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=a099e3e10e33e4874c687dd7a6c19efc4cf96500c9190279e8f7a0a02ba655bb created_at=1775310986 via wss://relay.damus.io
|
||||
[2026-04-04 09:56:27] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:56:27] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:56:27] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:56:27] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=a099e3e10e33e4874c687dd7a6c19efc4cf96500c9190279e8f7a0a02ba655bb created_at=1775310986 via wss://relay.primal.net
|
||||
[2026-04-04 09:56:27] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:56:27] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 09:57:50] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=6b1239e90ef1eb0cc6d01d5e23e46a35075f8676fa9bdee1f27844da3bceebae created_at=1775311069 via wss://relay.damus.io
|
||||
[2026-04-04 09:57:50] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:57:50] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:57:50] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=6b1239e90ef1eb0cc6d01d5e23e46a35075f8676fa9bdee1f27844da3bceebae created_at=1775311069 via wss://relay.primal.net
|
||||
[2026-04-04 09:57:50] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:57:50] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 09:57:50] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=93a70c1d405d848e4c0d8e6b73b1e5ca9111c06549ddce551a275590846865ab created_at=1775311069 via wss://relay.damus.io
|
||||
[2026-04-04 09:57:50] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:57:50] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=93a70c1d405d848e4c0d8e6b73b1e5ca9111c06549ddce551a275590846865ab created_at=1775311069 via wss://relay.primal.net
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 09:59:10] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=20ee7cfd49445a14a8163d37cc2113989f08db64d5bd97b6635e7b71d5067397 created_at=1775311149 via wss://relay.damus.io
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 09:59:10] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=20ee7cfd49445a14a8163d37cc2113989f08db64d5bd97b6635e7b71d5067397 created_at=1775311149 via wss://relay.primal.net
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 09:59:10] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=a1da473de1325a5a6d0b64d7f4435ac61ae8ebde1a7a76a3abb27746529e0414 created_at=1775311149 via wss://relay.damus.io
|
||||
[2026-04-04 09:59:10] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:59:10] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 09:59:10] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 09:59:10] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=a1da473de1325a5a6d0b64d7f4435ac61ae8ebde1a7a76a3abb27746529e0414 created_at=1775311149 via wss://relay.primal.net
|
||||
[2026-04-04 09:59:10] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 09:59:10] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:00:31] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=23e119df15e5dab7da6052bef17b973eb732d64f96f0cb81bae55c7eafe0cf84 created_at=1775311231 via wss://relay.damus.io
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:00:31] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=23e119df15e5dab7da6052bef17b973eb732d64f96f0cb81bae55c7eafe0cf84 created_at=1775311231 via wss://relay.primal.net
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:00:31] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=af0e63a9aa9b8dcdec1705ef2b0e6eb183a760563916ac1abe4ccd4b3ff31b9e created_at=1775311231 via wss://relay.damus.io
|
||||
[2026-04-04 10:00:31] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:00:31] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:00:31] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=af0e63a9aa9b8dcdec1705ef2b0e6eb183a760563916ac1abe4ccd4b3ff31b9e created_at=1775311231 via wss://relay.primal.net
|
||||
[2026-04-04 10:00:31] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:00:31] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:00:31] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:01:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:01:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:01:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:01:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:01:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:01:54] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=b08288f7f0691347979d73d8224d59ab518b4c4903d467261c6f54a4ac6438a6 created_at=1775311314 via wss://relay.damus.io
|
||||
[2026-04-04 10:01:55] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:01:55] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=e2da3b48d758a294257443571dbfaede7befff218e0a7ed633f8ae8d90d44b11 created_at=1775311314 via wss://relay.damus.io
|
||||
[2026-04-04 10:01:55] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:01:55] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:01:55] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:01:55] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=b08288f7f0691347979d73d8224d59ab518b4c4903d467261c6f54a4ac6438a6 created_at=1775311314 via wss://relay.primal.net
|
||||
[2026-04-04 10:01:55] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:01:55] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=e2da3b48d758a294257443571dbfaede7befff218e0a7ed633f8ae8d90d44b11 created_at=1775311314 via wss://relay.primal.net
|
||||
[2026-04-04 10:01:55] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:01:55] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b1e317e969767bd23746d85d16932a907d45c49911ec2d954f45253a0afc8c45 created_at=1775311361 via wss://relay.damus.io
|
||||
[2026-04-04 10:02:42] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=4ce55cdf481bdc52128adcf546c526819e910e6e429510a67b16aee6ab8a27ce created_at=1775311361 via wss://relay.primal.net
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b1e317e969767bd23746d85d16932a907d45c49911ec2d954f45253a0afc8c45 created_at=1775311361 via wss://relay.primal.net
|
||||
[2026-04-04 10:02:42] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=1de0c656f13e494782235710020ec1863236f385ea9bbde63973e32fac22e96e created_at=1775311362 via wss://relay.primal.net
|
||||
[2026-04-04 10:02:42] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:02:42] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=5e118f362ee720887516af8389a895327771a32d97be51d179061cc959856306 created_at=1775311362 via wss://relay.primal.net
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:02:42] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:02:43] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:03:47] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=91a98af6794b4cda3e23918a72596ea072432a3bf61d0d2f175266555f69ad2c created_at=1775311427 via wss://relay.damus.io
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:03:47] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=91a98af6794b4cda3e23918a72596ea072432a3bf61d0d2f175266555f69ad2c created_at=1775311427 via wss://relay.primal.net
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:03:47] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=a101386a4d04cfe90e3278a442f7d8a5666b822551679be9e1da7ee3b50e66c0 created_at=1775311427 via wss://relay.damus.io
|
||||
[2026-04-04 10:03:47] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:03:47] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:03:47] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:03:47] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=a101386a4d04cfe90e3278a442f7d8a5666b822551679be9e1da7ee3b50e66c0 created_at=1775311427 via wss://relay.primal.net
|
||||
[2026-04-04 10:03:47] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:03:47] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:03:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=564>
|
||||
[2026-04-04 10:03:54] [TRACE] [nostr_handler.c:1505] [didactyl] DEBUG on_event ENTRY from wss://relay.primal.net (event=0x75dedd26ac00 g_cfg=0x7fff11e75dd0 g_dm_callback=set)
|
||||
[2026-04-04 10:03:54] [TRACE] [nostr_handler.c:1539] [didactyl] DEBUG on_event: kind=4 id=d11595fbb84cc4e0... from=1eb171136dbb1ba6... via wss://relay.primal.net
|
||||
[2026-04-04 10:03:54] [TRACE] [nostr_handler.c:1491] [didactyl] received encrypted DM event: {"content":"vU6HDxbHyDPXuQc6QBb6mKaxpT/v84wpTSRnDxIKB9HUtoMXbkmSmEWOE84JW8dm?iv=COBkis+eKnjifb3Qs2dSCg==","created_at":1775311434,"id":"d11595fbb84cc4e0d86c0791c1fc2fb0cd3c00f0556fa80529a6b2004b4d8eee","kind":4,"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","sig":"7db392af3ada4cba8fb8d864629f503e864797cb7d76577e573ece9127e828bd82cc4b6366a2ed97dec524be412a32b9389f46f678c72dcaac6f66d3f1e206d3","tags":[["p","1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]]}
|
||||
[2026-04-04 10:03:54] [TRACE] [nostr_handler.c:1499] [didactyl] received decrypted DM content: This is a test DM from me to myself!
|
||||
[2026-04-04 10:03:54] [TRACE] [nostr_handler.c:1664] [didactyl] DEBUG on_event: ignoring self-sent DM 1eb171136dbb1ba6... via wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493 via wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493 via wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493 via wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493 via wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:05:36] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-04-04 10:05:36] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1775310813"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1775310814"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1775310814"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1775310814"]
|
||||
[2026-04-04 10:05:36] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1775310814"]
|
||||
53
tests/results/20260404T135328Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260404T135328Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "https://api.ppq.ai",
|
||||
"api_key": "sk-SBI2Pga0J6n8jpPorHbRHC",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 10000,
|
||||
"temperature": 0.7
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
395
tests/results/20260404T140236Z/agent_debug.log
Normal file
395
tests/results/20260404T140236Z/agent_debug.log
Normal file
@@ -0,0 +1,395 @@
|
||||
[2026-04-04 10:04:51] [INFO ] [main.c:1016] Didactyl v0.2.20 starting
|
||||
[2026-04-04 10:04:51] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-04-04 10:04:51] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-04-04 10:04:51] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-04-04 10:04:51] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1775311491", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1775311491", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1775311491"]
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1775311492", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1775311492", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1775311492"]
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-04-04 10:04:52] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1775311492", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1775311492", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1775311492"]
|
||||
[2026-04-04 10:04:52] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1775311492"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1775311493", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1775311493", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","7fb5e7e09092254b700df2e7a8473fdca42ee09e3a32b86d262ad2403807f920",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","7fb5e7e09092254b700df2e7a8473fdca42ee09e3a32b86d262ad2403807f920",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","98b892b33ce3731cbeb82d791f5e41c7deade4bb61756ed600a14f3aeaa7d45e",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","98b892b33ce3731cbeb82d791f5e41c7deade4bb61756ed600a14f3aeaa7d45e",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=656>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1775311493"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":0,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493},{"url":"wss://relay.primal.net","status":"connected","events_received":3,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493}]}
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1775311493", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1775311493", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","e94ea27dc06a8f4f1e70e7e96d1d3e7f328016ff1bbbc3a50723268f14277fb1",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","cfe5aafd9e84b8a7c6caf1842ce51a502a156b5706ecddadaee73b106796bc6c",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","cfe5aafd9e84b8a7c6caf1842ce51a502a156b5706ecddadaee73b106796bc6c",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","e94ea27dc06a8f4f1e70e7e96d1d3e7f328016ff1bbbc3a50723268f14277fb1",true,""]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1775311493"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":0,"events_published":6,"events_published_ok":5,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":4,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775311491,"last_event_time":1775311493}]}
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1775311493", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1775311493", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1775311493", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1775311493", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1775311493", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1775311493", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493 via wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493 via wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493 via wss://relay.damus.io
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493 via wss://relay.primal.net
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1775311493"]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:04:53] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=1)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=b3095dd390e3a08ff24404195292ed302711334687a7de5ca0b433d9fe66a92e created_at=1775311493
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=952130858723506c1eac58e94f253c8b35e137c056dcedf0619ab63348f43caa created_at=1775311493
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=1 adoptions=1)
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1775311493", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1775311493", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1775311491 now=1775311493 delta=2 relay_count=2
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1775311493", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1775311493", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775311491,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 10:04:53] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-04-04 10:04:53] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1775311493", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1775311493", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1775311493"]
|
||||
[2026-04-04 10:04:53] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1775311493"]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1775311493"]
|
||||
[2026-04-04 10:04:54] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-04-04 10:04:54] [INFO ] [http_api.c:1570] [didactyl] http api listening on http://127.0.0.1:8485
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1532] [didactyl] HTTP API listening at http://127.0.0.1:8485
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1535] [didactyl] HTTP API endpoints: http://127.0.0.1:8485/api/context/current http://127.0.0.1:8485/api/context/parts
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-04-04 10:04:54 (version v0.2.20, connected relays: 2/2).
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1775311494,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"jW17RpM/0GksuCPaI3kIdas95grzicaXf5xODF31xSY896PZQuQWRa9VFX3+TPRQuDmv2xLbRw32sox/BAhXasZZe2RFLKPjsHyFoeNBbQB4tRn9fGum/0djr/WL8nK+ppT64wLUPut/2vRFnM+sqv1pZ/nRQe/FFxy8K/VE1eM=?iv=g0c6X4mBxWM04miChtqXTA==","id":"73a9a8e4e3688d46cefb02643ead141fdb7397c632fdd9e6f336c0d31d9ad59c","sig":"08c739b14c9c8482b47dda28f82903eb60ef7fdfd6290b0804f8e4b1c5c7da59b9c82294773bc7394d0adba6474dac7530d36868e65c66f66b9c6e6bda1b6057"}
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-04-04 10:04:54] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM 73a9a8e4e3688d46... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-04-04 10:04:54] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","73a9a8e4e3688d46cefb02643ead141fdb7397c632fdd9e6f336c0d31d9ad59c",true,""]
|
||||
[2026-04-04 10:04:54] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","73a9a8e4e3688d46cefb02643ead141fdb7397c632fdd9e6f336c0d31d9ad59c",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:04:54] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.ppq.ai/chat/completions body_bytes=27553 body_preview={"model":"claude-haiku-4.5","max_tokens":10000,"temperature":0.7,"messages":[{"role":"system","content":"# Didactyl Agent\n\n## Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Look up your own Nostr profile"},{"role":"user","content":"Look up your own Nostr profile","_ts":1775311494}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"require...
|
||||
[2026-04-04 10:04:58] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.ppq.ai/chat/completions body_bytes=28078 body_preview={"model":"claude-haiku-4.5","max_tokens":10000,"temperature":0.7,"messages":[{"role":"system","content":"# Didactyl Agent\n\n## Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Look up your own Nostr profile"},{"role":"user","content":"Look up your own Nostr profile","_ts":1775311494},{"role":"assistant","content":"I'll look up my own Nostr profile by first getting my pubkey and then fetching the profile metadata.","tool_calls":[{"id":"toolu_bdrk_0163qj8DFnDXcpoJdjkF4jYj","type":"function","function":{"name":"nostr_pubkey","arguments":"{}"}}]},{"role":"tool","tool_call_id":"toolu_bdrk_0163qj8DFnDXcpoJdjkF4jYj","content":"{\"success\":true,\"pubkey\":\"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc\",\"content\":\"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc\"}"}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"s...
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_16_1775311511", {
|
||||
"kinds": [0],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_16_1775311511", {
|
||||
"kinds": [0],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=472>
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=470>
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_16_1775311511"]
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_16_1775311511"]
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_16_1775311511"]
|
||||
[2026-04-04 10:05:11] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_16_1775311511"]
|
||||
[2026-04-04 10:05:11] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.ppq.ai/chat/completions body_bytes=29027 body_preview={"model":"claude-haiku-4.5","max_tokens":10000,"temperature":0.7,"messages":[{"role":"system","content":"# Didactyl Agent\n\n## Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."},{"role":"user","content":"Look up your own Nostr profile"},{"role":"user","content":"Look up your own Nostr profile","_ts":1775311494},{"role":"assistant","content":"I'll look up my own Nostr profile by first getting my pubkey and then fetching the profile metadata.","tool_calls":[{"id":"toolu_bdrk_0163qj8DFnDXcpoJdjkF4jYj","type":"function","function":{"name":"nostr_pubkey","arguments":"{}"}}]},{"role":"tool","tool_call_id":"toolu_bdrk_0163qj8DFnDXcpoJdjkF4jYj","content":"{\"success\":true,\"pubkey\":\"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc\",\"content\":\"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc\"}"},{"role":"assistant","content":"Now let me fetch my profile metadata:","tool_calls":[{"id":"toolu_bdrk_01SvmURpNtVuQN363Gvcgsrc","type":"function","function":{"name":"nostr_profile_get","arguments":"{\"pubkey\": \"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc\"}"}}]},{"role":"tool","tool_call_id":"toolu_bdrk_01SvmURpNtVuQN363Gvcgsrc","content":"{\"success\":true,\"found\":true,\"event\":{\"content\":\"{\\\"name\\\":\\\"Didactyl Test Agent\\\",\\\"about\\\":\\\"Automated test instance\\\"}\",\"created_at\":1775311493,\"id\":\"98b892b33ce3731cbeb82d791f5e41c7deade4bb61756ed600a14f3aeaa7d45e\",\"kind\":0,\"pubkey\":\"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc\",\"sig\":\"b9d083081f36b1be3c60066af6680050fbbdc42d766277f534fd096f81279e5b70f1083a309a3b96e7065bd3c89c4682cf89cc17968d29b59ac6e062c13109bd\",\"tags\":[]},\"profile\":{\"name\":\"Didactyl Test Agent\",\"about\":\"Automated test instance\"}}"}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nost...
|
||||
[2026-04-04 10:05:16] [INFO ] [llm.c:336] [didactyl] llm request sanitizer: removed 2 empty text message(s) before provider request
|
||||
[2026-04-04 10:05:16] [INFO ] [llm.c:76] [didactyl] llm request: method=POST url=https://api.ppq.ai/chat/completions body_bytes=27418 body_preview={"model":"claude-haiku-4.5","max_tokens":10000,"temperature":0.7,"messages":[{"role":"system","content":"# Didactyl Agent\n\n## Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed."}],"tools":[{"type":"function","function":{"name":"nostr_post","description":"Publish a Nostr event to connected relays","parameters":{"type":"object","properties":{"kind":{"type":"integer","description":"Nostr event kind number (for example 1 for note, 7 for reaction, 30023 for longform)"},"content":{"type":"string","description":"Event content/body text to publish"},"tags":{"type":"array","description":"Optional Nostr tags array, e.g. [[\"d\",\"my-skill\"],[\"t\",\"nostr\"]]","items":{"type":"array","items":{"type":"string"}}}},"required":["kind","content"]}}},{"type":"function","function":{"name":"nostr_query","description":"Query events from relays using a Nostr filter","parameters":{"type":"object","properties":{"filter":{"type":"object","description":"Nostr filter object (authors, kinds, ids, since, until, limit, and tag filters)"},"timeout_ms":{"type":"integer","description":"Optional query timeout in milliseconds"}},"required":["filter"]}}},{"type":"function","function":{"name":"local_shell_exec","description":"Execute a shell command and return stdout/stderr","parameters":{"type":"object","properties":{"command":{"type":"string","description":"Shell command to execute in the configured working directory"}},"required":["command"]}}},{"type":"function","function":{"name":"local_file_read","description":"Read a local file as text from the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to read (relative to configured working directory)"},"max_bytes":{"type":"integer","description":"Optional maximum bytes to return"}},"required":["path"]}}},{"type":"function","function":{"name":"local_file_write","description":"Write text content to a local file in the configured working directory","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Path to file to write (relative to configured working directory)"},"content":{"type":"string","description":"Text content to write"},"append":{"type":"boolean","description":"When true, append to file instead of overwriting"}},"required":["path","content"]}}},{"type":"function","function":{"name":"nostr_post_readme","description":"Publish README.md as kind 30023 with deterministic d tag readme.md","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"nostr_delete","description":"Request deletion of one or more previously published events (NIP-09 kind 5)","parameters":{"type":"object","properties":{"event_ids":{"type":"array","description":"Event IDs to request deletion for","items":{"type":"string"}},"kinds":{"type":"array","description":"Optional kinds corresponding to event_ids entries","items":{"type":"integer"}},"reason":{"type":"string","description":"Optional human-readable reason"}},"required":["event_ids"]}}},{"type":"function","function":{"name":"nostr_react","description":"React to a Nostr event with like/dislike/emoji (NIP-25 kind 7)","parameters":{"type":"object","properties":{"event_id":{"type":"string","description":"Target event ID to react to"},"event_pubkey":{"type":"string","description":"Author pubkey of target event"},"event_kind":{"type":"integer","description":"Optional kind of target event"},"reaction":{"type":"string","description":"Reaction content such as +, -, ❤️, or emoji"}},"required":["event_id","event_pubkey"]}}},{"type":"function","function":{"name":"nostr_profile_get","description":"Look up a Nostr profile (kind 0 metadata) by pubkey","parameters":{"type":"object","properties":{"pubkey":{"type":"string","description":"Hex pubkey of the profile to fetch"}},"required":["pubkey"]}}},{"type":"function","function":{"name":"nostr_relay_status","description":"Get connection status and statistics for all...
|
||||
53
tests/results/20260404T140236Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260404T140236Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "https://api.ppq.ai",
|
||||
"api_key": "sk-SBI2Pga0J6n8jpPorHbRHC",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 10000,
|
||||
"temperature": 0.7
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
396
tests/results/20260404T140545Z/agent_debug.log
Normal file
396
tests/results/20260404T140545Z/agent_debug.log
Normal file
@@ -0,0 +1,396 @@
|
||||
[2026-04-04 10:29:17] [INFO ] [main.c:1016] Didactyl v0.2.20 starting
|
||||
[2026-04-04 10:29:17] [INFO ] [nostr_handler.c:2207] [didactyl] initializing relay pool with 2 relays
|
||||
[2026-04-04 10:29:17] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.damus.io
|
||||
[2026-04-04 10:29:17] [INFO ] [nostr_handler.c:2231] [didactyl] added relay: wss://relay.primal.net
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_1_1775312957", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_1_1775312957", {
|
||||
"kinds": [10000],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_1_1775312957"]
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_1_1775312957"]
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_1_1775312957"]
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_1_1775312957"]
|
||||
[2026-04-04 10:29:18] [INFO ] [main.c:248] [didactyl] startup checklist [01] Relay connectivity: begin
|
||||
[2026-04-04 10:29:18] [INFO ] [main.c:255] [didactyl] startup checklist [01] Relay connectivity: ok (connected relays: 2/2)
|
||||
[2026-04-04 10:29:18] [INFO ] [main.c:248] [didactyl] startup checklist [02] Recover runtime config from Nostr: begin
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_2_1775312958", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:18] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_2_1775312958", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["agent_config"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=702>
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_2_1775312958"]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=700>
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_2_1775312958"]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_2_1775312958"]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_2_1775312958"]
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:258] [didactyl] startup checklist [02] Recover runtime config from Nostr: ok
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:248] [didactyl] startup checklist [03] Validate LLM config: begin
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:258] [didactyl] startup checklist [03] Validate LLM config: ok
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:248] [didactyl] startup checklist [04] Validate admin config: begin
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:258] [didactyl] startup checklist [04] Validate admin config: ok
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:248] [didactyl] startup checklist [05] Initialize LLM client: begin
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:258] [didactyl] startup checklist [05] Initialize LLM client: ok
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:248] [didactyl] startup checklist [06] Detect first run via kind 10002: begin
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_3_1775312959", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_3_1775312959", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_3_1775312959"]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_3_1775312959"]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_3_1775312959"]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_3_1775312959"]
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:1245] [didactyl] startup phase: first-run detection via kind 10002 => subsequent-run
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:255] [didactyl] startup checklist [06] Detect first run via kind 10002: ok (subsequent-run)
|
||||
[2026-04-04 10:29:19] [INFO ] [main.c:248] [didactyl] startup checklist [07] Reconcile/persist startup state: begin
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_4_1775312959", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:19] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_4_1775312959", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_4_1775312959"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_4_1775312959"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_4_1775312959"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_4_1775312959"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=480>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=474>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=621>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=553>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.damus.io (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=482>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 0 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=476>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10002 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=623>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 31124 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=555>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 10123 event published to wss://relay.primal.net (async, reason=startup_reconcile)
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=0 (profile) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10002 (relay_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=31124 (skill) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3285] [didactyl] startup publish detail: kind=10123 (adoption_list) -> wss://relay.damus.io, wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3297] [didactyl] startup publish summary: 4/4 event(s) published to at least one relay; relays used=2/2
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=800>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=802>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:906] [didactyl] publish kind event target relays (2):
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=714>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=716>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.damus.io (async, reason=manual_publish)
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2949] [didactyl] kind 30078 event published to wss://relay.primal.net (async, reason=manual_publish)
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:3012] [didactyl] published kind 30078 event via 2 connected relay(s)
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1267] [didactyl] startup phase: persisted encrypted runtime config to Nostr
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [07] Reconcile/persist startup state: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [08] Initialize agent: begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_5_1775312960", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_5_1775312960", {
|
||||
"kinds": [30078],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"#d": ["memory"],
|
||||
"limit": 1
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","11bc4eb1ff5e51d8df325c1f16eab167535bd04f4768129437098aef02917a0c",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","5e774283a8db088821e3c20d7f5ec2dbc64e9ca32d5342ce31f699205e16b22c",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","5e774283a8db088821e3c20d7f5ec2dbc64e9ca32d5342ce31f699205e16b22c",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","e863ae73ffdb98391429ecbb36d4ad931ca994804cd673a310ed91f94806a795",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","9f540b534baeaa37d5bdfd1b3ef6ef1f9b65b8f00236ad28d63e098b56e56c35",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","11bc4eb1ff5e51d8df325c1f16eab167535bd04f4768129437098aef02917a0c",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","e863ae73ffdb98391429ecbb36d4ad931ca994804cd673a310ed91f94806a795",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","9f540b534baeaa37d5bdfd1b3ef6ef1f9b65b8f00236ad28d63e098b56e56c35",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=952>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_5_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_5_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_5_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_5_1775312960"]
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [08] Initialize agent: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [09] Initialize trigger manager: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:814] [didactyl] trigger manager initialized (capacity=16)
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [09] Initialize trigger manager: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1308] [didactyl] startup phase: deferred trigger load will run after self-skill EOSE
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [10] Load startup triggers: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1311] [didactyl] startup phase: startup-config trigger load begin
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:1138] [didactyl] trigger added d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:1021] [didactyl] startup trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:1029] [didactyl] trigger manager loaded 1 trigger(s) from startup config (considered=1)
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1315] [didactyl] startup phase: startup-config trigger load end
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [10] Load startup triggers: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [11] Discover self relay list via kind 10002: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:327] [didactyl] kind10002 query begin: timeout_ms=5000 author=1eb171136dbb1ba6... relay_count=2
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:334] [didactyl] kind10002 query relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775312957,"last_event_time":1775312960},{"url":"wss://relay.primal.net","status":"connected","events_received":3,"events_published":6,"events_published_ok":4,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775312957,"last_event_time":1775312960}]}
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_6_1775312960", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_6_1775312960", {
|
||||
"kinds": [10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 16
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","86a6101b5cd0fc5e04cd22ad7c897cecd8b4a6a827180b1a18d1da10c31ce9bf",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","59d0b381dcf93eb42a65bc1bbc31e54b82ac20bb3b2dd654b08d3780da41ee07",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","59d0b381dcf93eb42a65bc1bbc31e54b82ac20bb3b2dd654b08d3780da41ee07",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","86a6101b5cd0fc5e04cd22ad7c897cecd8b4a6a827180b1a18d1da10c31ce9bf",true,""]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_6_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_6_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_6_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_6_1775312960"]
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:354] [didactyl] kind10002 query received event_count=1
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:451] [didactyl] kind10002 query extracted relays=["wss://relay.damus.io","wss://relay.primal.net"]
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:556] [didactyl] kind10002 wait success: relay_count=2
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:558] [didactyl] kind10002 relay[0]=wss://relay.damus.io
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:558] [didactyl] kind10002 relay[1]=wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:562] [didactyl] kind10002 wait success relay snapshot: {"relay_count":2,"connected_count":2,"relays":[{"url":"wss://relay.damus.io","status":"connected","events_received":1,"events_published":6,"events_published_ok":5,"events_published_failed":1,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775312957,"last_event_time":1775312960,"last_publish_error":"rate-limited: you are noting too much"},{"url":"wss://relay.primal.net","status":"connected","events_received":4,"events_published":6,"events_published_ok":6,"events_published_failed":0,"ping_latency_current":0,"ping_latency_avg":0,"query_latency_avg":0,"publish_latency_avg":0,"connection_uptime_start":1775312957,"last_event_time":1775312960}]}
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:255] [didactyl] startup checklist [11] Discover self relay list via kind 10002: ok (kind10002=2 added=0 connected=2/2)
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [12] Subscribe admin context: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1366] [didactyl] startup phase: subscribe admin context begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_7_1775312960", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_7_1775312960", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 32
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_8_1775312960", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_8_1775312960", {
|
||||
"kinds": [1],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2352] [didactyl] admin context subscriptions active for admin 254d7a7f68b4443f...
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1370] [didactyl] startup phase: subscribe admin context end
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [12] Subscribe admin context: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [13] Subscribe agent self context: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1374] [didactyl] startup phase: subscribe agent self context begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_9_1775312960", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_9_1775312960", {
|
||||
"kinds": [0, 3, 10002],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 64
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_10_1775312960", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_10_1775312960", {
|
||||
"kinds": [1],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 10
|
||||
}]
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2440] [didactyl] agent self-context subscriptions active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1378] [didactyl] startup phase: subscribe agent self context end
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [13] Subscribe agent self context: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [14] Subscribe self-skill cache: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1382] [didactyl] startup phase: subscribe self skill cache begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_11_1775312960", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_11_1775312960", {
|
||||
"kinds": [31123, 31124, 10123],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"limit": 300
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_12_1775312960", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_12_1775312960", {
|
||||
"kinds": [31123],
|
||||
"authors": ["254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"],
|
||||
"limit": 150
|
||||
}]
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2532] [didactyl] self/admin skill subscriptions active (self=1eb171136dbb1ba6..., admin=254d7a7f68b4443f...)
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_7_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_7_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_8_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_8_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=462>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=460>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=471>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=469>
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_9_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_9_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_10_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_10_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=604>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=9f540b534baeaa37d5bdfd1b3ef6ef1f9b65b8f00236ad28d63e098b56e56c35 created_at=1775312960 via wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=602>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31124 d_tag=identity_and_rules id=9f540b534baeaa37d5bdfd1b3ef6ef1f9b65b8f00236ad28d63e098b56e56c35 created_at=1775312960 via wss://relay.damus.io
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:1207] [didactyl] live self-skill trigger registered d_tag=identity_and_rules action=llm enabled=1
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=540>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=11bc4eb1ff5e51d8df325c1f16eab167535bd04f4768129437098aef02917a0c created_at=1775312960 via wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=538>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=10123 d_tag=- id=11bc4eb1ff5e51d8df325c1f16eab167535bd04f4768129437098aef02917a0c created_at=1775312960 via wss://relay.damus.io
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] RECV <large EVENT frame suppressed, bytes=478>
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2151] [didactyl] self-skill cache received kind=31123 d_tag=test-harness-probe id=fbf278b5a6ccd7fd86b0c8c7bfb787aa3f94c578e0bda74241e1d8e613394467 created_at=1775312616 via wss://relay.primal.net
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_11_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_11_1775312960"]
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:1725] [didactyl] self-skill EOSE received: cached skill events=0
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:44] [didactyl] deferred trigger load begin after self-skill EOSE (event_count=0)
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:1364] [didactyl] trigger updated d_tag=identity_and_rules action=0 enabled=1
|
||||
[2026-04-04 10:29:20] [INFO ] [trigger_manager.c:918] [didactyl] trigger manager loaded 1 trigger(s) from self skills (considered=2)
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:54] [didactyl] deferred trigger load status: {"success":true,"count":1,"active":1,"triggers":[{"skill_d_tag":"identity_and_rules","filter_json":"{\"from\":\"admin\"}","type":"dm","action":"llm","enabled":true,"subscribed":false,"llm":"","tools":"","has_max_tokens":false,"has_temperature":false,"has_seed":false,"last_fired":0,"last_seen_created_at":0}]}
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31124 d_tag=identity_and_rules id=9f540b534baeaa37d5bdfd1b3ef6ef1f9b65b8f00236ad28d63e098b56e56c35 created_at=1775312960
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=10123 d_tag=- id=11bc4eb1ff5e51d8df325c1f16eab167535bd04f4768129437098aef02917a0c created_at=1775312960
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2757] [didactyl] self-skill cache event: kind=31123 d_tag=test-harness-probe id=fbf278b5a6ccd7fd86b0c8c7bfb787aa3f94c578e0bda74241e1d8e613394467 created_at=1775312616
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1449] [didactyl] startup phase: subscribe self skill cache end
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:255] [didactyl] startup checklist [14] Subscribe self-skill cache: ok (skills=2 adoptions=1)
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [15] Subscribe DMs: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1453] [didactyl] startup phase: subscribe DMs begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_13_1775312960", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775312957,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_13_1775312960", {
|
||||
"kinds": [4],
|
||||
"#p": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775312957,
|
||||
"limit": 100
|
||||
}]
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2643] [didactyl] DM subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:2644] [didactyl] DEBUG DM subscription g_start_time=1775312957 now=1775312960 delta=3 relay_count=2
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1468] [didactyl] startup phase: subscribe DMs end
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [15] Subscribe DMs: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [16] Subscribe wallet events: begin
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1472] [didactyl] startup phase: subscribe wallet events begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_14_1775312960", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775312957,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_14_1775312960", {
|
||||
"kinds": [17375, 7375, 5],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"],
|
||||
"since": 1775312957,
|
||||
"limit": 500
|
||||
}]
|
||||
[2026-04-04 10:29:20] [INFO ] [nostr_handler.c:2696] [didactyl] wallet event subscription active for pubkey 1eb171136dbb1ba6...
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:1476] [didactyl] startup phase: subscribe wallet events end
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:258] [didactyl] startup checklist [16] Subscribe wallet events: ok
|
||||
[2026-04-04 10:29:20] [INFO ] [main.c:248] [didactyl] startup checklist [17] Initialize cashu wallet: begin
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["REQ", "pool_15_1775312960", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["REQ", "pool_15_1775312960", {
|
||||
"kinds": [17375, 7375],
|
||||
"authors": ["1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"]
|
||||
}]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_12_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_12_1775312960"]
|
||||
[2026-04-04 10:29:20] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_13_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_13_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:1718] [didactyl] DEBUG on_eose called: event_count=0
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_14_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_14_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["EOSE","pool_15_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["EOSE","pool_15_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_15_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_15_1775312960"]
|
||||
[2026-04-04 10:29:21] [WARN ] [main.c:1492] [didactyl] startup phase: cashu wallet load/create deferred to first tool call
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:255] [didactyl] startup checklist [17] Initialize cashu wallet: ok (initialized; load/create deferred)
|
||||
[2026-04-04 10:29:21] [INFO ] [http_api.c:1570] [didactyl] http api listening on http://127.0.0.1:8485
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:1532] [didactyl] HTTP API listening at http://127.0.0.1:8485
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:1535] [didactyl] HTTP API endpoints: http://127.0.0.1:8485/api/context/current http://127.0.0.1:8485/api/context/parts
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:1499] [didactyl] sending plaintext DM content: Didactyl Test Agent has started up and is online at 2026-04-04 10:29:21 (version v0.2.20, connected relays: 2/2).
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:1491] [didactyl] sending encrypted DM event: {"pubkey":"1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc","created_at":1775312961,"kind":4,"tags":[["p","254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"]],"content":"TOAe6VwLkGJemoQ1F6TB3lfiGq251GlJjayadl04UGMhnkm/A/PKzaqzzqO5q0Xpn9LM83KjU575uHL+PSEaM76IfvFcMVN8Qa1C3hSF9/7vpn1LuIGBIpQn8fmDpHji+gjRVZk1wvWUPoC63CCTWH/cUgJkILYQaW4XMdJwA1E=?iv=cuZPWOh+jAIjqTR/U47BIg==","id":"d79dcbff5a6b5f37100d1a04e115c64231c28476fa0e21454cdaa30fc5010622","sig":"e356e8244b8930268aab91124db3d3632952b091a6880de13e2a9b1122f538f5fec3b5bffaae2615bcbcb42a3663b85d6f1f66f9f264967c4c5b44009ada977a"}
|
||||
[2026-04-04 10:29:21] [INFO ] [nostr_handler.c:906] [didactyl] publish DM target relays (2):
|
||||
[2026-04-04 10:29:21] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.damus.io
|
||||
[2026-04-04 10:29:21] [INFO ] [nostr_handler.c:908] [didactyl] -> wss://relay.primal.net
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=681>
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:162] [didactyl] [nostr:websocket] SEND <large EVENT frame suppressed, bytes=683>
|
||||
[2026-04-04 10:29:21] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.damus.io (async)
|
||||
[2026-04-04 10:29:21] [INFO ] [nostr_handler.c:2843] [didactyl] kind 4 event published to wss://relay.primal.net (async)
|
||||
[2026-04-04 10:29:21] [INFO ] [nostr_handler.c:2852] [didactyl] sent DM d79dcbff5a6b5f37... to 254d7a7f68b4443f... via 2 connected relay(s)
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:255] [didactyl] startup checklist [18] READY: ok (agent online; entering main poll loop)
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:1571] [didactyl] entering main poll loop
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:1572] [didactyl] running with pubkey 1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.primal.net:443: ["OK","d79dcbff5a6b5f37100d1a04e115c64231c28476fa0e21454cdaa30fc5010622",true,""]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] RECV relay.damus.io:443: ["OK","d79dcbff5a6b5f37100d1a04e115c64231c28476fa0e21454cdaa30fc5010622",false,"rate-limited: you are noting too much"]
|
||||
[2026-04-04 10:29:21] [INFO ] [main.c:1584] [didactyl] shutting down
|
||||
[2026-04-04 10:29:21] [INFO ] [trigger_manager.c:1602] [didactyl] trigger manager cleaned up
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_7_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_7_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_8_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_8_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_9_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_9_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_10_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_10_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_11_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_11_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_12_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_12_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_13_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_13_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.damus.io:443: ["CLOSE", "pool_14_1775312960"]
|
||||
[2026-04-04 10:29:21] [TRACE] [nostr_handler.c:169] [didactyl] [nostr:websocket] SEND relay.primal.net:443: ["CLOSE", "pool_14_1775312960"]
|
||||
494
tests/results/20260404T140545Z/results.json
Normal file
494
tests/results/20260404T140545Z/results.json
Normal file
@@ -0,0 +1,494 @@
|
||||
{
|
||||
"run_meta": {
|
||||
"run_timestamp": "2026-04-04T14:29:21.419470+00:00",
|
||||
"base_url": "http://127.0.0.1:8485",
|
||||
"config": "tests/results/20260404T140545Z/runtime_test_genesis.jsonc",
|
||||
"binary": "didactyl_static_x86_64_debug",
|
||||
"test_count": 43
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "simple_greeting",
|
||||
"status": "pass",
|
||||
"message": "greeting response ok",
|
||||
"duration_seconds": 4.245289196027443,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"response": "Hello! I'm a test agent built on the Didactyl platform. I don't have a specific personal name, but you can think of me as your Didactyl test agent. \n\nI'm here to help you with various tasks using the "
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "agent_responds_about_itself",
|
||||
"status": "pass",
|
||||
"message": "self description ok",
|
||||
"duration_seconds": 27.058145482034888,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"response": "i'm **didactyl**, a nostr-native ai agent. here's what i do:\n\n**core identity:**\n- i'm an autonomous agent built on the nostr protocol, operating with cryptographic keypairs for identity and authentic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "empty_message_handling",
|
||||
"status": "pass",
|
||||
"message": "empty message handled",
|
||||
"duration_seconds": 4.667415744974278,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_conversation",
|
||||
"name": "very_long_message",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 76.51407337700948,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "invalid_json_body",
|
||||
"status": "pass",
|
||||
"message": "invalid json rejected",
|
||||
"duration_seconds": 0.3308889329782687,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "missing_message_field",
|
||||
"status": "pass",
|
||||
"message": "missing message rejected",
|
||||
"duration_seconds": 0.3314382230164483,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "unknown_endpoint",
|
||||
"status": "pass",
|
||||
"message": "unknown endpoint 404",
|
||||
"duration_seconds": 0.33126351796090603,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_errors",
|
||||
"name": "webhook_nonexistent_dtag",
|
||||
"status": "pass",
|
||||
"message": "nonexistent d_tag 404",
|
||||
"duration_seconds": 0.33133913297206163,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"status": 404
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_returns_200",
|
||||
"status": "pass",
|
||||
"message": "status success",
|
||||
"duration_seconds": 0.3312724310089834,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"keys": [
|
||||
"success",
|
||||
"name",
|
||||
"version",
|
||||
"pubkey",
|
||||
"relay_count",
|
||||
"connected_relays",
|
||||
"active_triggers"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "status_has_fields",
|
||||
"status": "pass",
|
||||
"message": "required fields present",
|
||||
"duration_seconds": 0.3312905229977332,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_current_returns_messages",
|
||||
"status": "pass",
|
||||
"message": "context current ok",
|
||||
"duration_seconds": 0.33117285498883575,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"message_count": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_health",
|
||||
"name": "context_parts_has_system_prompt",
|
||||
"status": "pass",
|
||||
"message": "context parts ok",
|
||||
"duration_seconds": 0.3312868010252714,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"parts": [
|
||||
"system_prompt",
|
||||
"dm_history"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "clean_restart",
|
||||
"status": "pass",
|
||||
"message": "restart succeeded",
|
||||
"duration_seconds": 3.8490588110289536,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "status_after_restart",
|
||||
"status": "pass",
|
||||
"message": "status stable after restart",
|
||||
"duration_seconds": 4.151956218993291,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"pubkey": "1eb171136dbb1ba695b2f14296adfe88a1f81d4220cc7d186b0e139b8ce0cdbc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_restart",
|
||||
"name": "conversation_after_restart",
|
||||
"status": "pass",
|
||||
"message": "conversation works post-restart",
|
||||
"duration_seconds": 7.446270982036367,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "response_within_timeout",
|
||||
"status": "pass",
|
||||
"message": "response within timeout",
|
||||
"duration_seconds": 3.016901847033296,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 3.0168789690360427
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "status_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "status fast",
|
||||
"duration_seconds": 0.32919533003587276,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.3291910729603842
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_timeouts",
|
||||
"name": "context_responds_fast",
|
||||
"status": "pass",
|
||||
"message": "context fast",
|
||||
"duration_seconds": 0.33155528403585777,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"elapsed": 0.3315501930192113
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_blossom",
|
||||
"name": "blossom_list",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.46405867597787,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_cashu",
|
||||
"name": "wallet_balance",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 7.047360337048303,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"cashu_wallet_balance"
|
||||
],
|
||||
"final_response": "Your Cashu wallet balance is:\n\n- **Total**: 0 satoshis\n- **Wallet Status**: Not loaded\n- **Entries**: None\n\nThe wallet doesn't currently have any loaded mints or proofs. To start using the wallet, you"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_pubkey",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.42999882198637,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "get_npub",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 6.77238113101339,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"nostr_npub"
|
||||
],
|
||||
"final_response": "My npub is: **npub1r6chzymdhvd6d9dj79pfdt073zsls82zyrx86xrtpcfehr8qek7q3rkewf**"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_identity",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.39259405602934,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "agent_version",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 6.746906190994196,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"agent_version"
|
||||
],
|
||||
"final_response": "I'm **Didactyl v0.2.20**, a sovereign AI agent daemon on Nostr. \n\nHere are my details:\n- **Name**: Didactyl\n- **Description**: A sovereign AI agent daemon on Nostr\n- **Version**: v0.2.20 (major: 0, mi"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_identity",
|
||||
"name": "admin_identity",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.42458030197304,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_list",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 8.36226256104419,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"task_list"
|
||||
],
|
||||
"final_response": "Here's your current task list:\n\n**Active Tasks:**\n- [ ] **Task 1:** test harness probe (Status: pending)\n - Created: 1775311162\n - Last updated: 1775311162\n\nYou have one pending task in your task me"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "task_manage_add_remove",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 84.9701488899882,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_memory",
|
||||
"name": "memory_save_recall",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 10.4175310000428,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"memory_save",
|
||||
"memory_recall"
|
||||
],
|
||||
"final_response": "Perfect! The memory system is working correctly. Here's what happened:\n\n**Memory Save Result:**\n- \u2705 Successfully saved to kind 30078 (encrypted agent config)\n- Event ID: `b4aba2eb45a6b41eec9792fa381cf"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_post_kind1",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.96807993302355,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_query_recent",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 14.233945493993815,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"nostr_query"
|
||||
],
|
||||
"final_response": "Great! I found the 3 most recent kind 1 notes. Here they are:\n\n## 3 Most Recent Kind 1 Notes\n\n**1. Relaymonitor Latency Test**\n- **Author:** `0b01aa38c2cc9abfbe4a10d54b182793479fb80da14a91d13be38ea555"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_my_events",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.01618752401555,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_relay_status",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 6.104476057982538,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"nostr_relay_status"
|
||||
],
|
||||
"final_response": "Great! Here's the status of my relay connections:\n\n**Overall Status:**\n- **Total Relays:** 2\n- **Connected:** 2/2 \u2705\n\n**Detailed Relay Status:**\n\n1. **wss://relay.damus.io**\n - Status: Connected \u2705\n "
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_dm_send",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.01507185597438,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_encode_npub",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.42353967600502,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_nostr",
|
||||
"name": "nostr_profile_get",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 74.39149832999101,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_list",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 7.244145753968041,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"skill_list"
|
||||
],
|
||||
"final_response": "I have **1 available skill** that I'm currently using:\n\n**1. identity_and_rules** (Private - Agent-owned, Adopted)\n - **Scope:** Private\n - **Status:** Adopted and Active\n - **Description:** Thi"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "trigger_list",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.40902369801188,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_skills",
|
||||
"name": "skill_create_and_remove",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.94731772097293,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "tool_list",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 44.292774281988386,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"tool_list"
|
||||
],
|
||||
"final_response": "Great! Here's a comprehensive summary of all **83 available tools** organized by category:\n\n## **Nostr Core Tools**\n1. **nostr_post** - Publish events (notes, reactions, longform)\n2. **nostr_query** -"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_get",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.43525368801784,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "model_list",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.39378822001163,
|
||||
"agent_errors": [
|
||||
"[2026-04-04 10:26:46] [ERROR] [llm.c:93] [didactyl] llm http request failed: status=401"
|
||||
],
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "local_http_fetch",
|
||||
"status": "pass",
|
||||
"message": "ok",
|
||||
"duration_seconds": 11.767529862001538,
|
||||
"agent_errors": [],
|
||||
"details": {
|
||||
"tool_calls": [
|
||||
"local_http_fetch"
|
||||
],
|
||||
"final_response": "Perfect! I've successfully fetched https://httpbin.org/get. Here's what was returned:\n\n**Response Details:**\n- **Status Code:** 200 (Success)\n- **Content Type:** application/json\n- **Response Body:**\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"suite": "test_tools_system",
|
||||
"name": "config_store_recall",
|
||||
"status": "timeout",
|
||||
"message": "timed out",
|
||||
"duration_seconds": 73.9523419579491,
|
||||
"agent_errors": [],
|
||||
"details": {}
|
||||
}
|
||||
],
|
||||
"summary": {
|
||||
"pass": 27,
|
||||
"timeout": 16
|
||||
}
|
||||
}
|
||||
140
tests/results/20260404T140545Z/results.txt
Normal file
140
tests/results/20260404T140545Z/results.txt
Normal file
@@ -0,0 +1,140 @@
|
||||
== Didactyl Test Results ==
|
||||
Run: 2026-04-04T14:29:21.419470+00:00
|
||||
Agent base URL: http://127.0.0.1:8485
|
||||
|
||||
Pass: 27
|
||||
Fail: 0
|
||||
Error: 0
|
||||
Timeout: 16
|
||||
Skip: 0
|
||||
Total: 43
|
||||
|
||||
[PASS] test_conversation::simple_greeting (4.25s)
|
||||
greeting response ok
|
||||
|
||||
[PASS] test_conversation::agent_responds_about_itself (27.06s)
|
||||
self description ok
|
||||
|
||||
[PASS] test_conversation::empty_message_handling (4.67s)
|
||||
empty message handled
|
||||
|
||||
[TIMEOUT] test_conversation::very_long_message (76.51s)
|
||||
timed out
|
||||
|
||||
[PASS] test_errors::invalid_json_body (0.33s)
|
||||
invalid json rejected
|
||||
|
||||
[PASS] test_errors::missing_message_field (0.33s)
|
||||
missing message rejected
|
||||
|
||||
[PASS] test_errors::unknown_endpoint (0.33s)
|
||||
unknown endpoint 404
|
||||
|
||||
[PASS] test_errors::webhook_nonexistent_dtag (0.33s)
|
||||
nonexistent d_tag 404
|
||||
|
||||
[PASS] test_health::status_returns_200 (0.33s)
|
||||
status success
|
||||
|
||||
[PASS] test_health::status_has_fields (0.33s)
|
||||
required fields present
|
||||
|
||||
[PASS] test_health::context_current_returns_messages (0.33s)
|
||||
context current ok
|
||||
|
||||
[PASS] test_health::context_parts_has_system_prompt (0.33s)
|
||||
context parts ok
|
||||
|
||||
[PASS] test_restart::clean_restart (3.85s)
|
||||
restart succeeded
|
||||
|
||||
[PASS] test_restart::status_after_restart (4.15s)
|
||||
status stable after restart
|
||||
|
||||
[PASS] test_restart::conversation_after_restart (7.45s)
|
||||
conversation works post-restart
|
||||
|
||||
[PASS] test_timeouts::response_within_timeout (3.02s)
|
||||
response within timeout
|
||||
|
||||
[PASS] test_timeouts::status_responds_fast (0.33s)
|
||||
status fast
|
||||
|
||||
[PASS] test_timeouts::context_responds_fast (0.33s)
|
||||
context fast
|
||||
|
||||
[TIMEOUT] test_tools_blossom::blossom_list (73.46s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_cashu::wallet_balance (7.05s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_identity::get_pubkey (73.43s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_identity::get_npub (6.77s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_identity::agent_identity (73.39s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_identity::agent_version (6.75s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_identity::admin_identity (74.42s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_memory::task_list (8.36s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_memory::task_manage_add_remove (84.97s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_memory::memory_save_recall (10.42s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_nostr::nostr_post_kind1 (73.97s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_nostr::nostr_query_recent (14.23s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_nostr::nostr_my_events (74.02s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_nostr::nostr_relay_status (6.10s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_nostr::nostr_dm_send (74.02s)
|
||||
timed out
|
||||
|
||||
[TIMEOUT] test_tools_nostr::nostr_encode_npub (73.42s)
|
||||
timed out
|
||||
|
||||
[TIMEOUT] test_tools_nostr::nostr_profile_get (74.39s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_skills::skill_list (7.24s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_skills::trigger_list (73.41s)
|
||||
timed out
|
||||
|
||||
[TIMEOUT] test_tools_skills::skill_create_and_remove (73.95s)
|
||||
timed out
|
||||
|
||||
[PASS] test_tools_system::tool_list (44.29s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_system::model_get (73.44s)
|
||||
timed out
|
||||
|
||||
[TIMEOUT] test_tools_system::model_list (73.39s)
|
||||
timed out
|
||||
Agent errors: 1
|
||||
|
||||
[PASS] test_tools_system::local_http_fetch (11.77s)
|
||||
ok
|
||||
|
||||
[TIMEOUT] test_tools_system::config_store_recall (73.95s)
|
||||
timed out
|
||||
53
tests/results/20260404T140545Z/runtime_test_genesis.jsonc
Normal file
53
tests/results/20260404T140545Z/runtime_test_genesis.jsonc
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
// TEST CONFIGURATION
|
||||
// Use disposable keys/accounts only.
|
||||
"key": {
|
||||
"nsec": "d3011e59954403fb84729ab0e9fb239ba0f0238b3f353dfb5c08a32f4b3d21a1"
|
||||
},
|
||||
"admin": {
|
||||
"pubkey": "254d7a7f68b4443f5430564eb3a726f09aea57d27e75ab2b8ef57176f9ca3dac"
|
||||
},
|
||||
"dm_protocol": "nip04",
|
||||
"llm": {
|
||||
"provider": "https://api.ppq.ai",
|
||||
"api_key": "sk-SBI2Pga0J6n8jpPorHbRHC",
|
||||
"model": "claude-haiku-4.5",
|
||||
"base_url": "https://api.ppq.ai",
|
||||
"max_tokens": 10000,
|
||||
"temperature": 0.7
|
||||
},
|
||||
"api": {
|
||||
"enabled": true,
|
||||
"port": 8485,
|
||||
"bind_address": "127.0.0.1"
|
||||
},
|
||||
"startup_events": [
|
||||
{
|
||||
"kind": 0,
|
||||
"content_fields": {
|
||||
"name": "Didactyl Test Agent",
|
||||
"about": "Automated test instance"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"kind": 10002,
|
||||
"content": "",
|
||||
"tags": [
|
||||
["r", "wss://relay.damus.io"],
|
||||
["r", "wss://relay.primal.net"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": 31124,
|
||||
"content": "# Test Agent\n\nYou are a test agent. Respond to requests and use tools when needed.",
|
||||
"tags": [
|
||||
["d", "identity_and_rules"],
|
||||
["app", "didactyl"],
|
||||
["scope", "private"],
|
||||
["trigger", "dm"],
|
||||
["filter", "{\"from\":\"admin\"}"]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,6 +3,9 @@ from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import datetime as dt
|
||||
import json
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
@@ -20,7 +23,8 @@ from tests.harness.test_runner import TestRunner
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(description="Didactyl automated test harness")
|
||||
parser.add_argument("--config", default="tests/configs/test_genesis.jsonc")
|
||||
parser.add_argument("--binary", default="./didactyl")
|
||||
parser.add_argument("--keys", default="tests/configs/test_keys.jsonc", help="Path to local keys JSONC file")
|
||||
parser.add_argument("--binary", default=None, help="Path to didactyl binary; if omitted, build_static --debug is used")
|
||||
parser.add_argument("--suite", action="append", help="Run only this suite (repeatable)")
|
||||
parser.add_argument("--test", action="append", help="Run only this test name (repeatable)")
|
||||
parser.add_argument("--api-port", type=int, default=8485)
|
||||
@@ -30,9 +34,94 @@ def parse_args() -> argparse.Namespace:
|
||||
parser.add_argument("--output-dir", default=None)
|
||||
parser.add_argument("--verbose", action="store_true")
|
||||
parser.add_argument("--no-restart", action="store_true")
|
||||
parser.add_argument(
|
||||
"--skip-build-static-debug",
|
||||
action="store_true",
|
||||
help="Do not invoke ./build_static.sh --debug before running",
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def build_static_debug_binary() -> None:
|
||||
cmd = ["./build_static.sh", "--debug"]
|
||||
print("Building debug static binary via ./build_static.sh --debug ...")
|
||||
subprocess.run(cmd, check=True)
|
||||
|
||||
|
||||
def resolve_default_debug_binary() -> Path:
|
||||
candidates = [
|
||||
Path("./didactyl_static_x86_64_debug"),
|
||||
Path("./didactyl_static_arm64_debug"),
|
||||
Path("./didactyl_static_armv7_debug"),
|
||||
Path("./didactyl_static_armv6_debug"),
|
||||
]
|
||||
existing = [p for p in candidates if p.exists() and p.is_file()]
|
||||
if existing:
|
||||
return existing[0]
|
||||
return Path("./didactyl_static_x86_64_debug")
|
||||
|
||||
|
||||
def _strip_jsonc(text: str) -> str:
|
||||
text = re.sub(r"//.*?$", "", text, flags=re.MULTILINE)
|
||||
text = re.sub(r"/\*.*?\*/", "", text, flags=re.DOTALL)
|
||||
text = re.sub(r",\s*([}\]])", r"\1", text)
|
||||
return text
|
||||
|
||||
|
||||
def _load_keys(keys_path: Path) -> tuple[str | None, str | None]:
|
||||
raw = keys_path.read_text(encoding="utf-8")
|
||||
data = json.loads(_strip_jsonc(raw))
|
||||
|
||||
agent_nsec = None
|
||||
admin_pubkey = None
|
||||
|
||||
if isinstance(data, dict):
|
||||
agent = data.get("agent")
|
||||
admin = data.get("admin")
|
||||
if isinstance(agent, dict):
|
||||
nsec = agent.get("nsec")
|
||||
if isinstance(nsec, str) and nsec.strip():
|
||||
agent_nsec = nsec.strip()
|
||||
if isinstance(admin, dict):
|
||||
pubkey = admin.get("pubkey")
|
||||
if isinstance(pubkey, str) and pubkey.strip():
|
||||
admin_pubkey = pubkey.strip()
|
||||
|
||||
return agent_nsec, admin_pubkey
|
||||
|
||||
|
||||
def _apply_keys_to_config_text(config_text: str, agent_nsec: str | None, admin_pubkey: str | None) -> str:
|
||||
out = config_text
|
||||
if agent_nsec:
|
||||
out = re.sub(
|
||||
r'("nsec"\s*:\s*")[^"]*(")',
|
||||
lambda m: f"{m.group(1)}{agent_nsec}{m.group(2)}",
|
||||
out,
|
||||
count=1,
|
||||
)
|
||||
if admin_pubkey:
|
||||
out = re.sub(
|
||||
r'("pubkey"\s*:\s*")[^"]*(")',
|
||||
lambda m: f"{m.group(1)}{admin_pubkey}{m.group(2)}",
|
||||
out,
|
||||
count=1,
|
||||
)
|
||||
return out
|
||||
|
||||
|
||||
def prepare_runtime_config(config_path: Path, keys_path: Path, output_dir: Path) -> Path:
|
||||
config_text = config_path.read_text(encoding="utf-8")
|
||||
|
||||
if not keys_path.exists():
|
||||
return config_path
|
||||
|
||||
agent_nsec, admin_pubkey = _load_keys(keys_path)
|
||||
rendered = _apply_keys_to_config_text(config_text, agent_nsec, admin_pubkey)
|
||||
runtime_config = output_dir / "runtime_test_genesis.jsonc"
|
||||
runtime_config.write_text(rendered, encoding="utf-8")
|
||||
return runtime_config
|
||||
|
||||
|
||||
def main() -> int:
|
||||
args = parse_args()
|
||||
|
||||
@@ -40,22 +129,38 @@ def main() -> int:
|
||||
output_dir = args.output_dir or f"tests/results/{run_ts}"
|
||||
Path(output_dir).mkdir(parents=True, exist_ok=True)
|
||||
|
||||
binary = Path(args.binary)
|
||||
if not args.skip_build_static_debug:
|
||||
try:
|
||||
build_static_debug_binary()
|
||||
except subprocess.CalledProcessError as exc:
|
||||
print(f"build_static debug build failed with exit code {exc.returncode}")
|
||||
return 2
|
||||
|
||||
binary = Path(args.binary) if args.binary else resolve_default_debug_binary()
|
||||
if not binary.exists():
|
||||
print(f"didactyl binary not found: {binary}")
|
||||
print("Pass --binary <path> or run ./build_static.sh --debug")
|
||||
return 2
|
||||
|
||||
config = Path(args.config)
|
||||
if not config.exists():
|
||||
print(f"config not found: {config}")
|
||||
print("Create it from template: cp tests/configs/test_genesis.jsonc.example tests/configs/test_genesis.jsonc")
|
||||
return 2
|
||||
|
||||
keys = Path(args.keys)
|
||||
runtime_config = prepare_runtime_config(config, keys, Path(output_dir))
|
||||
|
||||
if not keys.exists():
|
||||
print(f"keys file not found (optional): {keys}")
|
||||
print("Create it from template for stable test identity: cp tests/configs/test_keys.jsonc.example tests/configs/test_keys.jsonc")
|
||||
|
||||
log_file = str(Path(output_dir) / "agent_debug.log")
|
||||
base_url = f"https://{args.api_bind}:{args.api_port}"
|
||||
base_url = f"http://{args.api_bind}:{args.api_port}"
|
||||
|
||||
agent = AgentProcess(
|
||||
binary_path=str(binary),
|
||||
config_path=str(config),
|
||||
config_path=str(runtime_config),
|
||||
api_port=args.api_port,
|
||||
api_bind=args.api_bind,
|
||||
debug_level=args.debug_level,
|
||||
@@ -84,7 +189,7 @@ def main() -> int:
|
||||
run_meta = {
|
||||
"run_timestamp": dt.datetime.now(dt.timezone.utc).isoformat(),
|
||||
"base_url": base_url,
|
||||
"config": str(config),
|
||||
"config": str(runtime_config),
|
||||
"binary": str(binary),
|
||||
"test_count": len(results),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user