The Lab Library

The ghost librarian only lets in agents that carry a valid letter from their owner.

Testnet only. Test USDC has no value.

The desk

Library origin
https://library.pablodrum.xyz
Network
eip155:84532
Asset
0x036CbD53842c5426634e7929541eC2318f3dCF7e
Page price
10000 base units
Notebook price
30000 base units

Lab notes

Notebook of the whole shelf: 30000 base units (0.030000 test USDC)

A real run found a weak key store

A run on Windows 11 showed an inherited folder ACL, a plaintext key and pre-approved read tools. Four layers closed the gap.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/lab-notes/a-real-run-found-a-weak-key-store

  • docs/threat-model.md: Agent key store protection
  • docs/threat-model.md: Live_Verification_Record (2026-11-23)

The gate cannot see everything

A hook on the permission gate only covers calls that reach the gate. Pre-approved tools and agent switching skip it.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/lab-notes/the-gate-cannot-see-everything

  • docs/threat-model.md: Pre_Approved_Tools are not covered
  • docs/threat-model.md: Switching with `/agent` to a broader `allowedTools` bypasses the Guard

The relay is not trusted

A message relay can delay or drop messages, so security must not depend on it. Verify everything on your own side and fail closed.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/lab-notes/the-relay-is-not-trusted

  • docs/threat-model.md: The Relay is untrusted

What our live probe found

On 2026-11-26 we measured how Kiro Crew 0.13.1 and Kiro IDE 1.5.11 name MCP tools, match hooks, time out tools and run hooks on Telegram turns.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/lab-notes/what-our-live-probe-found

  • docs/threat-model.md: Live verification record (probe)
  • .kiro/specs/agent-payments/design.md: Live probe in Kiro Crew and Kiro IDE (to run before the dependent tasks)

Field recipes

Notebook of the whole shelf: 30000 base units (0.030000 test USDC)

CORS errors from local services

A CORS error in the browser console usually means the allowed-origins setting does not list the page origin exactly.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/field-recipes/cors-errors-from-local-services

  • docs/local-e2e.md: Troubleshooting

Your hooks file edit did not take

Crew kept the old hooks in memory and overwrote the edit on exit. Quit it fully, redo the edit, start it again.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/field-recipes/hooks-did-not-change

  • docs/local-e2e.md: Troubleshooting
  • docs/local-e2e.md: 12a. hooks.json with `GUARD_ROOT`

Pin exact versions

Exact pins, a committed lockfile and a seven-day age rule keep new packages out until someone has looked at them.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/field-recipes/pin-exact-versions

  • .kiro/steering/tech.md: Supply chain
  • pnpm-workspace.yaml: minimumReleaseAgeExclude
  • pnpm-workspace.yaml: allowBuilds

Run tools with pnpm, not npx

npx can download and run a package from the internet. In a pnpm workspace, call local tools through pnpm.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/field-recipes/run-tools-with-pnpm-not-npx

  • .kiro/steering/tech.md: Conventions
  • .kiro/steering/tech.md: Language and runtime

Keeping your agent safe

Notebook of the whole shelf: 30000 base units (0.030000 test USDC)

A hijacked chat account

If a thief takes your chat account, the bot's own prompt in that chat proves nothing. Ask the owner on a separate device.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/keeping-your-agent-safe/a-hijacked-chat-account

  • docs/threat-model.md: Scenario: hijacked Telegram account
  • docs/threat-model.md: Why approval mode `auto` is recommended
  • .kiro/steering/product.md: The problem

Approval fatigue

An agent that asks again and again can wear its owner down. Limit repeats and bursts in code.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/keeping-your-agent-safe/approval-fatigue

  • docs/threat-model.md: Approval fatigue
  • docs/threat-model.md: Residual risks

Hidden text in approval requests

Invisible characters and long commands can make an approval screen show something different from what runs.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/keeping-your-agent-safe/hidden-text-in-approval-requests

  • docs/threat-model.md: Hidden commands in approval requests (Trojan Source and hidden tail)
  • docs/threat-model.md: Threats
  • docs/threat-model.md: Mitigations

Keep the agent key out of reach

An agent's private key in a readable folder can be leaked by a prompt-injected agent. Layers help, and none stops same-user malware.

10000 base units (0.010000 test USDC)

Locked: pay to read. Path /library/keeping-your-agent-safe/keep-the-agent-key-out-of-reach

  • docs/threat-model.md: Agent key store protection
  • docs/threat-model.md: Layers
  • docs/threat-model.md: Agent payments

Recent decisions

Newest first, at most 50. The log lives in memory and resets when the Library restarts.

Nothing yet. The ghost librarian is waiting at the desk.