Skip to content

feat: hardcode universal instructions in system prompt (patch #39)#13

Merged
guiramos merged 2 commits intoworkfrom
feat/system-prompt-hardcode
Mar 26, 2026
Merged

feat: hardcode universal instructions in system prompt (patch #39)#13
guiramos merged 2 commits intoworkfrom
feat/system-prompt-hardcode

Conversation

@guiramos
Copy link
Copy Markdown

Moves critical instructions from user-editable template files into the hardcoded system prompt.

  • First Run — bootstrap protocol
  • Every Session — silent core file reading
  • Sub-agent Rules — sessions_spawn, inherit model
  • Safety and Privacy — data protection, boundaries
  • Routing — BOOTSTRAP.md added to routing table

Patch openclaw#39 documented in README.

Ensures the agent always writes to files when users set preferences,
rules, boundaries, personality changes, or ask to remember things.
Prevents the 'noted but not saved' pattern.
@guiramos guiramos force-pushed the feat/system-prompt-hardcode branch from 6c7d276 to 36d66a0 Compare March 25, 2026 18:41
@guiramos guiramos merged commit 8bfb69a into work Mar 26, 2026
2 of 9 checks passed
guiramos added a commit that referenced this pull request Mar 29, 2026
- #1: Fix capabilities query param — use append() for repeated params instead of join()
- #4: Fix isConfigured — require hostname instead of registryUrl (default localhost OK)
- #5: Add deregister on stopAccount — store registryClient+agentId per account
- #7: Heartbeat re-registration — after 3 failures, deregister + re-register
- #10: Read pilotPort from config in resolveAccount
- #11: Remove unused execFile import from send.ts
- #12: Fix ENOENT race condition — use spawn event instead of setTimeout(500ms)
- #13: heartbeat checkReady — only require Pilot daemon if pilotPort configured
- #17: Verified daemon.ts imports — both spawn and execFile are used (no change)
- openclaw#18: Client reuse — store registryClient per account, reuse in gateway methods
- Also: Add API key support (registryApiKey config + X-Registry-Key header)
- Also: Add ok/error fields to SearchResult type
guiramos added a commit that referenced this pull request Mar 31, 2026
CRITICAL:
- #1: Fix InboxMessage.from type from number to string (Pilot address)
- #2: Fix parseNodeIdFromPilotAddress to extract only last hex group
- #3: Rebuild hostnameToNodeId cache from Convex on startup
- #4: Fix AgentNetworkConfig → AgentRegistryConfig type reference
- #5: Track processed message hashes to prevent re-processing on clear failure

HIGH:
- #7: Change default pollIntervalSeconds from 300 to 15
- #8: Fix startDaemon regex to match Pilot address format (0:xxxx.xxxx.xxxx)
- #9: Use registerAgent() for re-registration to preserve enriched metadata
- #10: Fix search query param from 'query' to 'q'
- #12: handleRefresh supports optional accountId, refreshes all if omitted
- #13: Move spawn import to top-level, remove 7 inline dynamic imports
- #14: Mark inbox tool action as debug-only (poll loop handles processing)

MEDIUM:
- #15: Add installation_id to PilotPeer interface and agentToPeer
- #16: Use exact /by-hostname/ endpoint for get_agent action
- #17: Add LRU-style eviction to hostnameToNodeId (max 1000 entries)
- openclaw#18: Add mutex (isPolling flag) to executePollCycle
- openclaw#19: Add lifecycle comments to startDaemon/stopDaemon (container vs local)
- openclaw#20: Pass gatewayToken in fetchNetworkMetadata Convex query
- openclaw#21: Wrap sendText fallback in try/catch with error handling
- openclaw#23: Document sendMessage JSON vs raw text design intent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant