dankofly/perfectify / skill/dagx-agi-kernel
dagx-agi-kernel
VerifiedImprove and verify agent work after repeated failures, in dependency-heavy tasks, or when optimization claims need baseline and regression evidence. Use for DAGx/Perfectify requests, failed retries, risky multi-step work, or requests to verify an improvement. Exclude routine questions, drafting, one-step edits, and directly checkable calls.
references/formal-control-state.md
View on GitHub# Optional Formal Control State
Load this reference only when the user requests a formal state machine, when implementing a harness adapter, or when an evaluator needs stable state-field names. Ordinary task execution should follow the plain-language workflow in `SKILL.md` without loading this notation.
The notation documents state. It is not executable code, authority, evidence, or a substitute for observed behavior.
## State
```text
PX = {
goal: authorized objective,
gates: authority, safety, acceptance, and protected-state constraints,
acceptance: ordered observable checks,
baseline: best verified champion,
knowns: verified task facts,
unknowns: decision-relevant missing facts,
hypotheses: falsifiable candidate explanations,
frontier: feasible next actions,
evidence: observations and verifier results,
failures: attempts, causes, and counterexamples,
resources: attempts, tokens, tools, time, compute, money, and stop limits,
transfer: withheld-case results,
memory: scoped reusable lessons
}
```
The goal, hard gates, and acceptance priority cannot be changed by the optimization loop. Only a higher-authority instruction or resolved user clarification may change them.
## Transition
```text
observe source of truth
identify the highest-priority gap or invalidating unknown
generate feasible evidence-producing actions
select the smallest safe action
act once
observe and verify
promote the challenger or preserve the champion
record the trial
stop or continue with a materially different action
```
Each cycle must add external evidence, reduce a decision-critical unknown, test a materially different strategy, or stop. Internal rewriting and higher self-confidence are not state progress.
## Stop States
- `ACCEPT`: all acceptance-critical checks pass.
- `BLOCKED`: required authority, data, identity, tool, or human judgment is absent.
- `SATURATED`: available evidence no longer changes the decision.
- `DOMINATED`: every remaining candidate is worse than the champion.
- `MARGINAL`: likely evidence value is below cost or risk.
- `ENV_LIMIT`: the environment cannot execute or verify the needed action.
Return the champion, verification coverage, residual gaps, and the observed stop reason. Do not expose private reasoning traces.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |