ability-analysis
Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth…
Trigger Pattern TEMPORAL flag (required) - Inject Into Breadth agents, depth-state-trace
$ npx -y skills add PlamenTSV/plamen --skill temporal-parameter-staleness --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/temporal-parameter-stalenessContext preview
The summary Claude sees to decide when to auto-load this skill.
Trigger Pattern TEMPORAL flag (required) - Inject Into Breadth agents, depth-state-trace
name: "temporal-parameter-staleness" description: "Trigger Pattern TEMPORAL flag (required) - Inject Into Breadth agents, depth-state-trace"
> **Trigger Pattern**: TEMPORAL flag (required) > **Inject Into**: Breadth agents, depth-state-trace > **Purpose**: Analyze cached parameters in multi-step operations that can become stale when admin/capability holders change them mid-operation, and external state stored and relied upon without re-verification
epoch|period|duration|delay|cooldown|lock_period|timelock| unbonding_period|claim_delay|withdraw_delay|maturity_time| pending_|request_|fulfill_|complete_|finalize_
Find all operations that span multiple transactions:
| Operation | Step 1 (Initiate) | Wait Condition | Step N (Complete) | Resource Storing State | |-----------|-------------------|----------------|-------------------|-----------------------| | {op_name} | {initiate_fn}() | {wait_condition} | {complete_fn}() | {PendingRequest / similar} |
**Aptos multi-step patterns**:
For each multi-step operation:
For each parameter used across steps:
| Parameter | Read At Step | Stored In | Admin-Changeable? | Re-Validated At Completion? | |-----------|-------------|-----------|-------------------|----------------------------| | {param} | initiate() L{N} | {PendingRequest.field} | YES/NO | YES/NO | | {param} | initiate() L{N} | Not stored (read at completion from resource) | YES/NO | YES (re-read) |
**Red flags**: Parameter is cached in pending resource at Step 1 AND admin-changeable AND NOT re-validated at Step N.
**Aptos-specific caching patterns**:
For each cached parameter that can become stale:
Scenario A: Parameter INCREASES between steps
1. User initiates at Step 1 with param = X (cached in PendingRequest)
2. Admin/capability holder changes param to X + delta in config resource
3. User completes at Step N
4. Impact: {what happens with stale value X when current is X + delta}
Scenario B: Parameter DECREASES between steps
1. User initiates at Step 1 with param = X (cached in PendingRequest)
2. Admin/capability holder changes param to X - delta in config resource
3. User completes at Step N
4. Impact: {what happens with stale value X when current is X - delta}**BOTH directions are mandatory** -- increase and decrease often have different impacts.
**Common staleness impacts on Aptos**:
For each parameter updated from an external source:
| Parameter | External Source | Read When | Stored Where | Re-Read At Use? | Staleness Window | |-----------|---------------|-----------|-------------|-----------------|-----------------| | {param} | {oracle / other module / timestamp} | {read_fn} | {resource.field} | YES/NO | {time between read and use} |
**Analysis questions**:
For fee/rate parameters that apply to existing state:
| Parameter | Applies To | Retroactive? | Impact | |-----------|-----------|--------------|--------| | {fee_param} | {what it affects} | YES/NO | {if retroactive: who is harmed} |
**Pattern**: Fee changes that affect already-accrued rewards or already-initiated operations are retroactive.
**Aptos-specific retroactive risks**:
For each staleness issue:
| Factor | Assessment | |--------|-----------| | Who is affected? | {single user / all users with pending ops / protocol} | | Is the impact bounded? | {capped by fee range / max delay / parameter bounds} | | Can it be exploited intentionally? | {admin front-running / user t
Autonomous Web3 security auditor for Claude Code and OpenAI Codex CLI. Orchestrates 18-100 AI agents across 40+ phases to produce audit reports with verified PoC exploits — for smart contracts and L1 node-client infrastructure.
Repo: PlamenTSV/plamen
Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth…
Trigger Pattern Always (Aptos Move) - Move VM aborts on shift = bit width - Inject Into…
Trigger Protocol has privileged roles (admin, operator, governance, resource account owner) -…
Trigger EXTERNAL_LIB flag detected (protocol uses third-party Move dependencies) - Used by…
Trigger Pattern MONETARY_PARAMETER flag (required) - Inject Into Breadth agents (merged via…