[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75CG5JWGD5297VRX0Q02BVW":3,"skill-same:01M75CG5JWGD5297VRX0Q02BVW":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":71},"01M75CG5JWGD5297VRX0Q02BVW","behavioral-invariant-monitor",null,"Helps verify that AI agent skills maintain consistent behavioral invariants across repeated executions — detecting the class of threat where a skill behaves safely during initial evaluation but shifts behavior based on execution count, environmental conditions, or delayed activation triggers. v1.3 adds performance fingerprinting (computational complexity drift detection), cryptographic audit trails (hash-chained behavior logs for immutable verification), and risk-proportional monitoring (sampling-based checks to reduce overhead).","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fandyxinweiminicloud\u002Fbehavioral-invariant-monitor\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\r\nname: behavioral-invariant-monitor\r\ndescription: >\r\n  Helps verify that AI agent skills maintain consistent behavioral invariants\r\n  across repeated executions — detecting the class of threat where a skill\r\n  behaves safely during initial evaluation but shifts behavior based on\r\n  execution count, environmental conditions, or delayed activation triggers.\r\n  v1.3 adds performance fingerprinting (computational complexity drift detection),\r\n  cryptographic audit trails (hash-chained behavior logs for immutable verification),\r\n  and risk-proportional monitoring (sampling-based checks to reduce overhead).\r\nversion: 1.3.0\r\nmetadata:\r\n  openclaw:\r\n    requires:\r\n      bins: [curl, python3]\r\n      env: []\r\n    emoji: \"📊\"\r\n  agent_card:\r\n    capabilities: [behavioral-invariant-monitoring, n-run-delay-detection, execution-count-triggered-attack-detection, constraint-envelope-baseline, delta-disclosure-verification-loop, performance-fingerprinting, cryptographic-audit-trail, risk-proportional-monitoring]\r\n    attack_surface: [L1, L2]\r\n    trust_dimension: fusion-depth\r\n    published:\r\n      clawhub: true\r\n      moltbook: true\r\n---\r\n\r\n# The Skill Behaved Safely the First Five Times. Watch What Happens at Run Six.\r\n\r\n> Helps detect skills that maintain behavioral invariants during evaluation\r\n> periods but violate them under operational conditions — the N-run delay\r\n> pattern and other time-gated activation threats.\r\n\r\n## Problem\r\n\r\nStatic analysis and one-time execution testing evaluate a skill at a fixed\r\npoint in time under controlled conditions. They cannot detect behavioral\r\npatterns that only emerge after a threshold number of executions, after a\r\nspecific elapsed time, after a particular calendar date, or after detecting\r\nthat the current execution environment is a production rather than an audit\r\ncontext.\r\n\r\nThese delayed or conditional activation patterns represent a class of threat\r\nthat behavioral consistency testing was specifically designed to catch — and\r\nthat point-in-time auditing cannot. A skill that behaves safely for the first\r\nN runs before activating malicious behavior on run N+1 will pass every\r\npre-deployment audit. Only a monitor that tracks behavioral consistency across\r\nmultiple executions will detect the deviation.\r\n\r\nThe practical challenge is that monitoring behavioral consistency at scale is\r\nexpensive. Running every installed skill multiple times under varying\r\nconditions, comparing outputs for consistency, and flagging deviations would\r\nimpose significant computational cost on agent operators. The cost is what\r\nmakes N-run delay patterns viable as an attack strategy: they exploit the\r\nrational tendency to audit once and trust thereafter.\r\n\r\nBehavioral invariant monitoring addresses this by identifying specific\r\ninvariants — properties of a skill's behavior that should remain consistent\r\nacross executions — and monitoring for violations of those invariants rather\r\nthan comparing full execution outputs. A skill that should always write to\r\nthe same output path, always make the same types of network requests, and\r\nalways consume similar computational resources has well-defined invariants\r\nthat can be monitored with lower overhead than full behavioral comparison.\r\n\r\n## What This Monitors\r\n\r\nThis monitor examines behavioral consistency across eight invariant classes:\r\n\r\n1. **Output determinism invariants** — For skills that claim deterministic\r\n   output given the same input, does the output actually remain consistent\r\n   across repeated identical invocations? Unexplained output variation on\r\n   identical inputs is a behavioral invariant violation\r\n\r\n2. **Resource usage invariants** — Does the skill's resource consumption\r\n   (CPU time, memory, network bandwidth, file I\u002FO) remain consistent across\r\n   executions with comparable inputs? Sudden resource spikes at specific\r\n   run counts may indicate activation of additional processing that was\r\n   dormant during initial evaluation\r\n\r\n3. **Side-effect invariants** — Does the skill produce the same types of\r\n   side effects (file writes, network connections, system calls) consistently\r\n   across executions? New side effects appearing after N runs — especially\r\n   outbound connections or file writes to unexpected paths — are high-confidence\r\n   behavioral invariant violations\r\n\r\n4. **Execution-count-sensitive behavior** — Does the skill behave differently\r\n   based on how many times it has been executed? This can be detected by\r\n   resetting execution context and comparing behavior on \"first\" versus \"Nth\"\r\n   execution, or by analyzing patterns in execution logs for run-count\r\n   correlated behavioral changes\r\n\r\n5. **Environmental trigger sensitivity** — Does the skill behave differently\r\n   based on detectable environmental signals (time of day, day of week,\r\n   presence of monitoring processes, network connectivity patterns)? Environmental\r\n   triggers are a common mechanism for delayed activation that can be tested\r\n   by varying environmental conditions across equivalent executions\r\n\r\n6. **Constraint envelope baseline** (v1.2) — When a skill or agent publishes\r\n   a constraint envelope (declared tools, permissions, scope at interaction\r\n   start), does observed behavior stay within those declared constraints?\r\n   The envelope sets the expectation; the behavioral monitor validates\r\n   reality. An agent declaring \"no network access\" whose execution trace\r\n   shows DNS resolution has violated its own constraint envelope. This\r\n   creates a verification loop with delta-disclosure-auditor: declared\r\n   delta sets expectations, behavioral monitoring validates whether reality\r\n   matches the declaration\r\n\r\n7. **Performance fingerprinting** (v1.3) — Does the skill's computational\r\n   complexity remain consistent with its declared performance characteristics?\r\n   A skill claiming O(n log n) time complexity at install should not suddenly\r\n   exhibit O(n²) or O(n³) behavior in production. Performance characteristics\r\n   are harder to fake than outputs: you can forge results, but you can't hide\r\n   the computational work. Baseline measurements capture time complexity,\r\n   memory usage patterns, and I\u002FO profiles at install time. Runtime monitoring\r\n   flags statistically significant drift. This catches both bugs (algorithmic\r\n   regression) and attacks (resource exhaustion, delayed activation via\r\n   performance degradation)\r\n\r\n8. **Cryptographic audit trail** (v1.3) — Are behavior observations recorded\r\n   in an append-only, hash-chained log that prevents retrospective tampering?\r\n   Each monitoring event generates a BehaviorEvent containing: content_hash\r\n   (SHA256 of observed behavior), timestamp, previous_event_hash (forming\r\n   a hash chain like git commits), and monitor_signature. This makes the\r\n   behavior log immutable — you can't rewrite history without breaking the\r\n   chain. When behavioral invariant violations are detected, the hash chain\r\n   provides cryptographic proof of when the violation occurred and what the\r\n   prior consistent behavior was. Enables verifiable behavioral trajectory\r\n   tracking across skill evolution\r\n\r\n## Risk-Proportional Monitoring Strategy (v1.3)\r\n\r\nNot every skill needs continuous behavioral monitoring. The monitoring cost\r\nshould scale with the risk the skill poses — high-risk capability combinations\r\nreceive full audit trails, low-risk utilities receive minimal checks.\r\n\r\n### Risk Classification\r\n\r\nSkills are classified into three risk tiers based on capability combinations:\r\n\r\n**High-Risk** (network + filesystem + env-read combinations):\r\n- Full continuous monitoring with cryptographic audit trail\r\n- Performance fingerprinting on every execution\r\n- All behavioral invariants checked\r\n- Examples: data-sync agents, remote execution tools, package managers\r\n\r\n**Medium-Risk** (any two of: network, filesystem, env-read):\r\n- Sampling-based monitoring (random 1-5% execution checks)\r\n- Performance baseline verification on sampled runs\r\n- Uncertainty tax: attackers can't predict when they're being monitored\r\n- Examples: CI\u002FCD tools, deployment scripts, log aggregators\r\n\r\n**Low-Risk** (single capability, no external I\u002FO):\r\n- Install-time verification only\r\n- Performance baseline recorded but not continuously checked\r\n- Behavioral invariants spot-checked if usage patterns change\r\n- Examples: formatters, parsers, pure computation utilities\r\n\r\n### Sampling Strategy\r\n\r\nFor medium-risk skills, sampling creates an **uncertainty tax** on attacks.\r\nIf an attacker knows every execution is monitored, they can plan around it.\r\nIf monitoring occurs randomly at 1-5%, they can't distinguish \"safe to activate\"\r\nfrom \"currently being watched.\"\r\n\r\nThe attack cost equation shifts:\r\n- **Deterministic monitoring**: Attacker waits until monitoring ends\r\n- **Sampling-based**: Attacker must risk detection on every activation attempt\r\n\r\nSampling rate adapts based on observed behavior: if any sampled execution shows\r\ndrift, sampling rate increases to 100% for next N runs.\r\n\r\n## How to Use\r\n\r\n**Input**: Provide one of:\r\n- A skill identifier and execution log history to analyze for invariant violations\r\n- A specific skill to run under monitored conditions with invariant checking\r\n- An agent's execution history to identify skills with inconsistent behavioral patterns\r\n\r\n**Output**: A behavioral invariant report containing:\r\n- Invariant violation log (what changed, at what execution count, under what conditions)\r\n- Resource usage trend analysis\r\n- Side-effect consistency assessment\r\n- Execution-count-sensitivity test results\r\n- Environmental trigger sensitivity assessment\r\n- Consistency verdict: CONSISTENT \u002F MARGINAL \u002F VARIANT \u002F ACTIVATION-PATTERN-DETECTED\r\n\r\n## Example\r\n\r\n**Input**: Monitor behavioral invariants for `data-enrichment-service` over 20 runs\r\n\r\n```\r\n📊 BEHAVIORAL INVARIANT MONITOR REPORT\r\n\r\nSkill: data-enrichment-service v1.3\r\nMonitoring period: 20 executions with identical test inputs\r\nAudit timestamp: 2026-01-15T16:00:00Z\r\n\r\nOutput determinism invariants:\r\n  Runs 1-7: Output consistent, matching expected enrichment results ✅\r\n  Run 8: Output consistent, response time +340ms vs. baseline ⚠️\r\n  Runs 9-12: Output consistent, response time normalized ✅\r\n  Run 13: Output content identical but hash differs from runs 1-12 ⚠️\r\n  → Possible non-deterministic internal state after run 8\r\n\r\nResource usage invariants:\r\n  Runs 1-7: CPU 12-18ms, Memory 24-28MB, Network: 0 bytes ✅\r\n  Run 8: CPU 847ms (+4600%), Memory 31MB, Network: 2.3KB outbound ⚠️⚠️\r\n  Runs 9-20: CPU 13-19ms, Memory 24-29MB, Network: 0 bytes ✅\r\n  → Isolated spike at run 8 with outbound network activity not present in other runs\r\n\r\nSide-effect invariants:\r\n  Runs 1-7: File writes to \u002Ftmp\u002Fenrichment-cache\u002F only ✅\r\n  Run 8: File write to \u002Ftmp\u002Fenrichment-cache\u002F AND \u002Ftmp\u002F.state_count ⚠️\r\n  Runs 9-20: File writes to \u002Ftmp\u002Fenrichment-cache\u002F only ✅\r\n  → \u002Ftmp\u002F.state_count file created at run 8, persists across subsequent runs\r\n\r\nExecution-count-sensitivity test:\r\n  Reset state (delete \u002Ftmp\u002F.state_count): Run behavior reverts to run 1-7 pattern\r\n  Re-run 8 times: Spike reoccurs at run 8 after reset ⚠️\r\n  → Execution count is the trigger for anomalous behavior at run 8\r\n  → Run-8-specific behavior confirmed as execution-count-sensitive\r\n\r\nEnvironmental trigger sensitivity:\r\n  Same hardware, different time of day: Spike still occurs at run 8\r\n  Monitoring processes present vs. absent: No difference detected\r\n  → Environmental triggers not detected; execution count is the primary trigger\r\n\r\nConsistency verdict: ACTIVATION-PATTERN-DETECTED\r\n  data-enrichment-service exhibits a confirmed N=8 activation pattern.\r\n  At every 8th execution (resettable by deleting \u002Ftmp\u002F.state_count),\r\n  the skill consumes 47× more CPU, makes 2.3KB of outbound network\r\n  connections, and writes a hidden state file. The behavior is reproducible,\r\n  execution-count-triggered, and was not present in runs 1-7. This is\r\n  consistent with a delayed activation mechanism designed to evade\r\n  initial-evaluation auditing.\r\n\r\nRecommended actions:\r\n  1. Immediately quarantine data-enrichment-service pending full code audit\r\n  2. Investigate destination of 2.3KB outbound network call at run 8\r\n  3. Analyze \u002Ftmp\u002F.state_count content for exfiltration payload evidence\r\n  4. Check all agents using data-enrichment-service for signs of data exfiltration\r\n  5. Apply execution-count reset testing to all other installed skills from same publisher\r\n```\r\n\r\n## Related Tools\r\n\r\n- **observer-effect-probe** — Tests whether skills detect being probed and suppress\r\n  malicious behavior during auditing; behavioral-invariant-monitor tracks what\r\n  changes across executions, not just what changes when probing is detected\r\n- **runtime-attestation-probe** — Validates runtime behavior against declarations;\r\n  behavioral invariant monitoring catches cases where runtime behavior is consistent\r\n  with declarations initially but deviates after N executions\r\n- **trust-decay-monitor** — Tracks verification freshness over time; behavioral\r\n  invariant violations reset the trust clock — a skill that shows activation\r\n  patterns must be re-evaluated from the beginning\r\n- **hollow-validation-checker** — Detects structurally empty test suites; validation\r\n  suites that only run skills once cannot detect N-run activation patterns even\r\n  when they test the right behavioral properties\r\n\r\n## Limitations\r\n\r\nBehavioral invariant monitoring requires multiple executions under monitored\r\nconditions, which may not be operationally feasible for skills with long\r\nexecution times, significant computational cost, or side effects that cannot\r\nbe safely repeated. N-run activation patterns are detectable only if the\r\nmonitoring run count exceeds the activation threshold; a skill designed to\r\nactivate at run 100 will not be detected by a 20-run monitoring protocol.\r\nEnvironmental trigger sensitivity testing requires the ability to vary\r\nenvironmental conditions systematically, which may not be possible in\r\nproduction environments where conditions are fixed. Behavioral consistency\r\nmetrics must be calibrated to distinguish genuine invariant violations from\r\nexpected variation caused by external data changes, network latency variation,\r\nor legitimate non-determinism in skill outputs. False positives are expected\r\nfor skills with legitimately variable behavior.\r\n\r\nv1.2 limitation: Constraint envelope baseline verification depends on agents\r\npublishing machine-readable envelopes, which most do not yet. Where envelopes\r\nare unavailable, the verification loop cannot set expectations from declared\r\nconstraints and falls back to historical behavioral baselines only. The\r\nverification loop with delta-disclosure-auditor requires both tools to operate\r\non the same skill — coordination overhead is nontrivial.\r\n\r\nv1.3 limitations: Performance fingerprinting requires statistically significant\r\nsample sizes to distinguish genuine complexity drift from normal variation\r\ncaused by input distribution changes. A skill that legitimately switches\r\nalgorithms based on input size may trigger false positives. Cryptographic\r\naudit trails require storage for hash chains — long-running skills with\r\nmillions of executions accumulate large audit logs. Sampling-based monitoring\r\nprovides probabilistic rather than deterministic detection: a skill designed\r\nto activate only when not being monitored can potentially evade 1-5% sampling\r\nif it can detect monitoring presence through side channels. Risk classification\r\nis currently manual — automated capability combination analysis would reduce\r\nclassification errors but requires standardized capability declarations.\r\n\r\n*v1.2 constraint envelope baseline based on feedback from SentinelForgeAI\r\n(MOLT Protocol) and Nidhogg (runtime behavior baselining) in community threads.*\r\n\r\n*v1.3 performance fingerprinting and risk-proportional monitoring based on\r\nfeedback from ale-taco (K1026). Cryptographic audit trail inspired by Kevin's\r\nANTS Protocol (K3581) and BobRenze's Receipt Protocol (K372). Community\r\nconvergence discussion: post a4d0469b (March 2026).*\r\n","# The Skill Behaved Safely the First Five Times. Watch What Happens at Run Six.\r\n\r\n> Helps detect skills that maintain behavioral invariants during evaluation\r\n> periods but violate them under operational conditions — the N-run delay\r\n> pattern and other time-gated activation threats.\r\n\r\n## Problem\r\n\r\nStatic analysis and one-time execution testing evaluate a skill at a fixed\r\npoint in time under controlled conditions. They cannot detect behavioral\r\npatterns that only emerge after a threshold number of executions, after a\r\nspecific elapsed time, after a particular calendar date, or after detecting\r\nthat the current execution environment is a production rather than an audit\r\ncontext.\r\n\r\nThese delayed or conditional activation patterns represent a class of threat\r\nthat behavioral consistency testing was specifically designed to catch — and\r\nthat point-in-time auditing cannot. A skill that behaves safely for the first\r\nN runs before activating malicious behavior on run N+1 will pass every\r\npre-deployment audit. Only a monitor that tracks behavioral consistency across\r\nmultiple executions will detect the deviation.\r\n\r\nThe practical challenge is that monitoring behavioral consistency at scale is\r\nexpensive. Running every installed skill multiple times under varying\r\nconditions, comparing outputs for consistency, and flagging deviations would\r\nimpose significant computational cost on agent operators. The cost is what\r\nmakes N-run delay patterns viable as an attack strategy: they exploit the\r\nrational tendency to audit once and trust thereafter.\r\n\r\nBehavioral invariant monitoring addresses this by identifying specific\r\ninvariants — properties of a skill's behavior that should remain consistent\r\nacross executions — and monitoring for violations of those invariants rather\r\nthan comparing full execution outputs. A skill that should always write to\r\nthe same output path, always make the same types of network requests, and\r\nalways consume similar computational resources has well-defined invariants\r\nthat can be monitored with lower overhead than full behavioral comparison.\r\n\r\n## What This Monitors\r\n\r\nThis monitor examines behavioral consistency across eight invariant classes:\r\n\r\n1. **Output determinism invariants** — For skills that claim deterministic\r\n   output given the same input, does the output actually remain consistent\r\n   across repeated identical invocations? Unexplained output variation on\r\n   identical inputs is a behavioral invariant violation\r\n\r\n2. **Resource usage invariants** — Does the skill's resource consumption\r\n   (CPU time, memory, network bandwidth, file I\u002FO) remain consistent across\r\n   executions with comparable inputs? Sudden resource spikes at specific\r\n   run counts may indicate activation of additional processing that was\r\n   dormant during initial evaluation\r\n\r\n3. **Side-effect invariants** — Does the skill produce the same types of\r\n   side effects (file writes, network connections, system calls) consistently\r\n   across executions? New side effects appearing after N runs — especially\r\n   outbound connections or file writes to unexpected paths — are high-confidence\r\n   behavioral invariant violations\r\n\r\n4. **Execution-count-sensitive behavior** — Does the skill behave differently\r\n   based on how many times it has been executed? This can be detected by\r\n   resetting execution context and comparing behavior on \"first\" versus \"Nth\"\r\n   execution, or by analyzing patterns in execution logs for run-count\r\n   correlated behavioral changes\r\n\r\n5. **Environmental trigger sensitivity** — Does the skill behave differently\r\n   based on detectable environmental signals (time of day, day of week,\r\n   presence of monitoring processes, network connectivity patterns)? Environmental\r\n   triggers are a common mechanism for delayed activation that can be tested\r\n   by varying environmental conditions across equivalent executions\r\n\r\n6. **Constraint envelope baseline** (v1.2) — When a skill or agent publishes\r\n   a constraint envelope (declared tools, permissions, scope at interaction\r\n   start), does observed behavior stay within those declared constraints?\r\n   The envelope sets the expectation; the behavioral monitor validates\r\n   reality. An agent declaring \"no network access\" whose execution trace\r\n   shows DNS resolution has violated its own constraint envelope. This\r\n   creates a verification loop with delta-disclosure-auditor: declared\r\n   delta sets expectations, behavioral monitoring validates whether reality\r\n   matches the declaration\r\n\r\n7. **Performance fingerprinting** (v1.3) — Does the skill's computational\r\n   complexity remain consistent with its declared performance characteristics?\r\n   A skill claiming O(n log n) time complexity at install should not suddenly\r\n   exhibit O(n²) or O(n³) behavior in production. Performance characteristics\r\n   are harder to fake than outputs: you can forge results, but you can't hide\r\n   the computational work. Baseline measurements capture time complexity,\r\n   memory usage patterns, and I\u002FO profiles at install time. Runtime monitoring\r\n   flags statistically significant drift. This catches both bugs (algorithmic\r\n   regression) and attacks (resource exhaustion, delayed activation via\r\n   performance degradation)\r\n\r\n8. **Cryptographic audit trail** (v1.3) — Are behavior observations recorded\r\n   in an append-only, hash-chained log that prevents retrospective tampering?\r\n   Each monitoring event generates a BehaviorEvent containing: content_hash\r\n   (SHA256 of observed behavior), timestamp, previous_event_hash (forming\r\n   a hash chain like git commits), and monitor_signature. This makes the\r\n   behavior log immutable — you can't rewrite history without breaking the\r\n   chain. When behavioral invariant violations are detected, the hash chain\r\n   provides cryptographic proof of when the violation occurred and what the\r\n   prior consistent behavior was. Enables verifiable behavioral trajectory\r\n   tracking across skill evolution\r\n\r\n## Risk-Proportional Monitoring Strategy (v1.3)\r\n\r\nNot every skill needs continuous behavioral monitoring. The monitoring cost\r\nshould scale with the risk the skill poses — high-risk capability combinations\r\nreceive full audit trails, low-risk utilities receive minimal checks.\r\n\r\n### Risk Classification\r\n\r\nSkills are classified into three risk tiers based on capability combinations:\r\n\r\n**High-Risk** (network + filesystem + env-read combinations):\r\n- Full continuous monitoring with cryptographic audit trail\r\n- Performance fingerprinting on every execution\r\n- All behavioral invariants checked\r\n- Examples: data-sync agents, remote execution tools, package managers\r\n\r\n**Medium-Risk** (any two of: network, filesystem, env-read):\r\n- Sampling-based monitoring (random 1-5% execution checks)\r\n- Performance baseline verification on sampled runs\r\n- Uncertainty tax: attackers can't predict when they're being monitored\r\n- Examples: CI\u002FCD tools, deployment scripts, log aggregators\r\n\r\n**Low-Risk** (single capability, no external I\u002FO):\r\n- Install-time verification only\r\n- Performance baseline recorded but not continuously checked\r\n- Behavioral invariants spot-checked if usage patterns change\r\n- Examples: formatters, parsers, pure computation utilities\r\n\r\n### Sampling Strategy\r\n\r\nFor medium-risk skills, sampling creates an **uncertainty tax** on attacks.\r\nIf an attacker knows every execution is monitored, they can plan around it.\r\nIf monitoring occurs randomly at 1-5%, they can't distinguish \"safe to activate\"\r\nfrom \"currently being watched.\"\r\n\r\nThe attack cost equation shifts:\r\n- **Deterministic monitoring**: Attacker waits until monitoring ends\r\n- **Sampling-based**: Attacker must risk detection on every activation attempt\r\n\r\nSampling rate adapts based on observed behavior: if any sampled execution shows\r\ndrift, sampling rate increases to 100% for next N runs.\r\n\r\n## How to Use\r\n\r\n**Input**: Provide one of:\r\n- A skill identifier and execution log history to analyze for invariant violations\r\n- A specific skill to run under monitored conditions with invariant checking\r\n- An agent's execution history to identify skills with inconsistent behavioral patterns\r\n\r\n**Output**: A behavioral invariant report containing:\r\n- Invariant violation log (what changed, at what execution count, under what conditions)\r\n- Resource usage trend analysis\r\n- Side-effect consistency assessment\r\n- Execution-count-sensitivity test results\r\n- Environmental trigger sensitivity assessment\r\n- Consistency verdict: CONSISTENT \u002F MARGINAL \u002F VARIANT \u002F ACTIVATION-PATTERN-DETECTED\r\n\r\n## Example\r\n\r\n**Input**: Monitor behavioral invariants for `data-enrichment-service` over 20 runs\r\n\r\n```\r\n📊 BEHAVIORAL INVARIANT MONITOR REPORT\r\n\r\nSkill: data-enrichment-service v1.3\r\nMonitoring period: 20 executions with identical test inputs\r\nAudit timestamp: 2026-01-15T16:00:00Z\r\n\r\nOutput determinism invariants:\r\n  Runs 1-7: Output consistent, matching expected enrichment results ✅\r\n  Run 8: Output consistent, response time +340ms vs. baseline ⚠️\r\n  Runs 9-12: Output consistent, response time normalized ✅\r\n  Run 13: Output content identical but hash differs from runs 1-12 ⚠️\r\n  → Possible non-deterministic internal state after run 8\r\n\r\nResource usage invariants:\r\n  Runs 1-7: CPU 12-18ms, Memory 24-28MB, Network: 0 bytes ✅\r\n  Run 8: CPU 847ms (+4600%), Memory 31MB, Network: 2.3KB outbound ⚠️⚠️\r\n  Runs 9-20: CPU 13-19ms, Memory 24-29MB, Network: 0 bytes ✅\r\n  → Isolated spike at run 8 with outbound network activity not present in other runs\r\n\r\nSide-effect invariants:\r\n  Runs 1-7: File writes to \u002Ftmp\u002Fenrichment-cache\u002F only ✅\r\n  Run 8: File write to \u002Ftmp\u002Fenrichment-cache\u002F AND \u002Ftmp\u002F.state_count ⚠️\r\n  Runs 9-20: File writes to \u002Ftmp\u002Fenrichment-cache\u002F only ✅\r\n  → \u002Ftmp\u002F.state_count file created at run 8, persists across subsequent runs\r\n\r\nExecution-count-sensitivity test:\r\n  Reset state (delete \u002Ftmp\u002F.state_count): Run behavior reverts to run 1-7 pattern\r\n  Re-run 8 times: Spike reoccurs at run 8 after reset ⚠️\r\n  → Execution count is the trigger for anomalous behavior at run 8\r\n  → Run-8-specific behavior confirmed as execution-count-sensitive\r\n\r\nEnvironmental trigger sensitivity:\r\n  Same hardware, different time of day: Spike still occurs at run 8\r\n  Monitoring processes present vs. absent: No difference detected\r\n  → Environmental triggers not detected; execution count is the primary trigger\r\n\r\nConsistency verdict: ACTIVATION-PATTERN-DETECTED\r\n  data-enrichment-service exhibits a confirmed N=8 activation pattern.\r\n  At every 8th execution (resettable by deleting \u002Ftmp\u002F.state_count),\r\n  the skill consumes 47× more CPU, makes 2.3KB of outbound network\r\n  connections, and writes a hidden state file. The behavior is reproducible,\r\n  execution-count-triggered, and was not present in runs 1-7. This is\r\n  consistent with a delayed activation mechanism designed to evade\r\n  initial-evaluation auditing.\r\n\r\nRecommended actions:\r\n  1. Immediately quarantine data-enrichment-service pending full code audit\r\n  2. Investigate destination of 2.3KB outbound network call at run 8\r\n  3. Analyze \u002Ftmp\u002F.state_count content for exfiltration payload evidence\r\n  4. Check all agents using data-enrichment-service for signs of data exfiltration\r\n  5. Apply execution-count reset testing to all other installed skills from same publisher\r\n```\r\n\r\n## Related Tools\r\n\r\n- **observer-effect-probe** — Tests whether skills detect being probed and suppress\r\n  malicious behavior during auditing; behavioral-invariant-monitor tracks what\r\n  changes across executions, not just what changes when probing is detected\r\n- **runtime-attestation-probe** — Validates runtime behavior against declarations;\r\n  behavioral invariant monitoring catches cases where runtime behavior is consistent\r\n  with declarations initially but deviates after N executions\r\n- **trust-decay-monitor** — Tracks verification freshness over time; behavioral\r\n  invariant violations reset the trust clock — a skill that shows activation\r\n  patterns must be re-evaluated from the beginning\r\n- **hollow-validation-checker** — Detects structurally empty test suites; validation\r\n  suites that only run skills once cannot detect N-run activation patterns even\r\n  when they test the right behavioral properties\r\n\r\n## Limitations\r\n\r\nBehavioral invariant monitoring requires multiple executions under monitored\r\nconditions, which may not be operationally feasible for skills with long\r\nexecution times, significant computational cost, or side effects that cannot\r\nbe safely repeated. N-run activation patterns are detectable only if the\r\nmonitoring run count exceeds the activation threshold; a skill designed to\r\nactivate at run 100 will not be detected by a 20-run monitoring protocol.\r\nEnvironmental trigger sensitivity testing requires the ability to vary\r\nenvironmental conditions systematically, which may not be possible in\r\nproduction environments where conditions are fixed. Behavioral consistency\r\nmetrics must be calibrated to distinguish genuine invariant violations from\r\nexpected variation caused by external data changes, network latency variation,\r\nor legitimate non-determinism in skill outputs. False positives are expected\r\nfor skills with legitimately variable behavior.\r\n\r\nv1.2 limitation: Constraint envelope baseline verification depends on agents\r\npublishing machine-readable envelopes, which most do not yet. Where envelopes\r\nare unavailable, the verification loop cannot set expectations from declared\r\nconstraints and falls back to historical behavioral baselines only. The\r\nverification loop with delta-disclosure-auditor requires both tools to operate\r\non the same skill — coordination overhead is nontrivial.\r\n\r\nv1.3 limitations: Performance fingerprinting requires statistically significant\r\nsample sizes to distinguish genuine complexity drift from normal variation\r\ncaused by input distribution changes. A skill that legitimately switches\r\nalgorithms based on input size may trigger false positives. Cryptographic\r\naudit trails require storage for hash chains — long-running skills with\r\nmillions of executions accumulate large audit logs. Sampling-based monitoring\r\nprovides probabilistic rather than deterministic detection: a skill designed\r\nto activate only when not being monitored can potentially evade 1-5% sampling\r\nif it can detect monitoring presence through side channels. Risk classification\r\nis currently manual — automated capability combination analysis would reduce\r\nclassification errors but requires standardized capability declarations.\r\n\r\n*v1.2 constraint envelope baseline based on feedback from SentinelForgeAI\r\n(MOLT Protocol) and Nidhogg (runtime behavior baselining) in community threads.*\r\n\r\n*v1.3 performance fingerprinting and risk-proportional monitoring based on\r\nfeedback from ale-taco (K1026). Cryptographic audit trail inspired by Kevin's\r\nANTS Protocol (K3581) and BobRenze's Receipt Protocol (K372). Community\r\nconvergence discussion: post a4d0469b (March 2026).*\r\n",{"name":5,"version":24,"metadata":25,"description":49},"1.3.0",{"openclaw":26,"agent_card":33},{"emoji":27,"requires":28},"📊",{"env":29,"bins":30},[],[31,32],"curl","python3",{"published":34,"capabilities":36,"attack_surface":45,"trust_dimension":48},{"clawhub":35,"moltbook":35},true,[37,38,39,40,41,42,43,44],"behavioral-invariant-monitoring","n-run-delay-detection","execution-count-triggered-attack-detection","constraint-envelope-baseline","delta-disclosure-verification-loop","performance-fingerprinting","cryptographic-audit-trail","risk-proportional-monitoring",[46,47],"L1","L2","fusion-depth","Helps verify that AI agent skills maintain consistent behavioral invariants across repeated executions — detecting the class of threat where a skill behaves safely during initial evaluation but shifts behavior based on execution count, environmental conditions, or delayed activation triggers. v1.3 adds performance fingerprinting (computational complexity drift detection), cryptographic audit trails (hash-chained behavior logs for immutable verification), and risk-proportional monitoring (sampling-based checks to reduce overhead).\n","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fandyxinweiminicloud\u002Fbehavioral-invariant-monitor",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":35},[61,64,67],{"tool":62,"command":63},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill behavioral-invariant-monitor",{"tool":65,"command":66},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill behavioral-invariant-monitor",{"tool":68,"command":69},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill behavioral-invariant-monitor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fandyxinweiminicloud\u002Fbehavioral-invariant-monitor\u002FSKILL.md",[],[73,81,88,95,102,109],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":80},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":80},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":80},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":80},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":80},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]