agentleFS
Mr-Fang-VLSIMr-Fang-VLSI/EDAgent/skills/delay-model-gate-evaluator/SKILL.md

delay-model-gate-evaluator

Skill8 starsChanged 7 months agoMITView on GitHub

Execute delay-model validation gates against HPWL baselines. Use when evaluating model consistency, running Gate-0 contract checks, building Gate-1 bucketed scorecards, performing wirelength-aware correlation checks, or deciding readiness for active optimization.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run these checks before promoting model changes into placement/CTS optimization.

    line 8
  2. Very specific:

    Use --strict for CI-style hard fail.

    line 28
  3. Distinctive:

    If Gate-0 fails: Check the contract output first.

    line 30
  4. Distinctive:

    If promotion criteria are not met: Do not proceed to active optimization.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Delay Model Gate Evaluator

Run these checks before promoting model changes into placement/CTS optimization.

Placeholder conventions

  • <merged_or_unified_tsv>: Path to a merged or unified TSV file, for example data/merged_asap7_delay_v2.tsv or data/unified_timing_run03.tsv.
  • <tag>: Descriptive run identifier such as run03_lr1e-3 or v2_bspdn_baseline. Use one naming scheme consistently across gates.

Gate-0: Contract and sign consistency

ROOT=/mnt/research/Hu_Jiang/Students/Fang_Donghao/TAMU-ASAP07-BSPDN-BPR-V0.00
cd "$ROOT"

python3 scripts/debug/check_delay_model_contract.py \
  --input-tsv <merged_or_unified_tsv> \
  --delta-sign back_minus_front \
  --min-sign-acc 0.60 \
  --out-prefix slurm_logs/04_delay_modeling/<tag>.contract

Use --strict for CI-style hard fail.

If Gate-0 fails: Check the contract output first. If sign accuracy is below the threshold, inspect the worst-performing net groups for data quality issues such as missing features, outlier wirelengths, or inconsistent labels. Re-train or filter the input TSV before proceeding.

Gate-1: Bucketed scorecard

python3 scripts/debug/bucketed_delay_model_scorecard.py \
  --input-tsv <merged_or_unified_tsv> \
  --delta-sign back_minus_front \
  --out-prefix slurm_logs/04_delay_modeling/<tag>.bucketed

Promotion criteria

  1. Gate-0 sign contract passes (sign accuracy >= 0.60; use >= 0.75 for production-critical flows).
  2. Key buckets (long + high fanout) show correlation equal to or better than the HPWL baseline.
  3. Scorecard results are archived with clear run tag and data source.

If promotion criteria are not met: Do not proceed to active optimization. Iterate on the delay model instead by reviewing feature engineering, checking training-data coverage for underperforming buckets, and re-running both gates after the update.

Load references/metric_contract.md before interpreting results.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.