Echo-aloha/asphalt-codex-skills-5 / skills/pfc5-servo-calibration
pfc5-servo-calibration
VerifiedDesign and audit PFC 5.0 wall servo, loading-rate control, equilibrium checks, micro-to-macro calibration, two-target local solves, DOE campaigns, and independent confirmation for asphalt models.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.4 KB |
| agents/openai.yaml | config | 241 B |
| dependencies.json | config | 117 B |
| references/calibration-contract.md | markdown | 908 B |
| scripts/dual_target_solver.py | script | 3.1 KB |
| scripts/servo_gain.py | script | 1.4 KB |
scripts/servo_gain.py
View on GitHubfrom __future__ import annotations
import argparse
import json
def clamp(value: float, limit: float) -> float:
return max(-limit, min(limit, value))
def main() -> int:
parser = argparse.ArgumentParser(description="Compute one bounded PFC5 servo velocity step")
parser.add_argument("--target", type=float, required=True)
parser.add_argument("--reaction", type=float, required=True)
parser.add_argument("--stiffness", type=float, required=True)
parser.add_argument("--dt", type=float, required=True)
parser.add_argument("--alpha", type=float, default=0.2)
parser.add_argument("--vmax", type=float, required=True)
parser.add_argument("--sign", type=float, choices=(-1.0, 1.0), default=1.0)
args = parser.parse_args()
if args.stiffness <= 0 or args.dt <= 0 or args.vmax <= 0:
parser.error("stiffness, dt and vmax must be positive")
if not 0 < args.alpha <= 1:
parser.error("alpha must be in (0, 1]")
error = args.target - args.reaction
gain = args.alpha / (args.stiffness * args.dt)
unclamped = args.sign * gain * error
velocity = clamp(unclamped, args.vmax)
print(json.dumps({
"error": error,
"gain": gain,
"velocity_unclamped": unclamped,
"velocity": velocity,
"clamped": velocity != unclamped,
"sign_requires_runtime_probe": True,
}, indent=2))
return 0
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |