[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M797R2TFR354SRMJKW6R72MW":3,"skill-same:01M797R2TFR354SRMJKW6R72MW":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M797R2TFR354SRMJKW6R72MW","checker-and-local-evaluation",null,"Design, implement, debug, and validate independent C++ checkers, scorers, interactors, simulators, and local evaluation workflows for algorithmic and competitive-programming tasks. Use when concrete evidence makes evaluator reconstruction diagnostic: an official evaluator is absent or doubtful and blocks a decision, zero\u002Finvalid\u002FWA or impossible feedback is unexplained, local and remote behavior disagrees, output legality or score must be reconstructed, an interactive protocol fails, or Plateau Escape requires its phase-local evaluator gate. Do not invoke solely because the first candidate is non-full or no local evaluator exists; coherent accepted online submissions may continue while local construction is deferred. Pair with testlib-cpp-judging when the evaluator or data generator uses testlib.h.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FFrontierCS\u002Falgorithmic-problem-solving\u002Fsub-skills\u002Fchecker-and-local-evaluation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: checker-and-local-evaluation\ndescription: >-\n  Design, implement, debug, and validate independent C++ checkers, scorers,\n  interactors, simulators, and local evaluation workflows for algorithmic and\n  competitive-programming tasks. Use when concrete evidence makes evaluator\n  reconstruction diagnostic: an official evaluator is absent or doubtful and\n  blocks a decision, zero\u002Finvalid\u002FWA or impossible feedback is unexplained,\n  local and remote behavior disagrees, output legality or score must be\n  reconstructed, an interactive protocol fails, or Plateau Escape requires its\n  phase-local evaluator gate. Do not invoke solely because the first candidate\n  is non-full or no local evaluator exists; coherent accepted online submissions\n  may continue while local construction is deferred. Pair with\n  testlib-cpp-judging when the evaluator or data generator uses testlib.h.\n---\n\n# Checker and Local Evaluation\n\nBuild an evaluator that is independent of the solver, executable under the target toolchain, and adversarially tested. Treat local construction and evaluation as tools for finding or discriminating a problem, and treat the result as a debugging oracle until official artifacts, hand-computed fixtures, or remote evidence corroborate it.\n\n## Enter only on diagnostic evidence\n\nEnter this skill when at least one of these conditions holds:\n\n- evaluator semantics or missing official artifacts block a concrete diagnosis, promotion, or release decision;\n- official feedback is unexplained invalid, zero, WA, discontinuous, impossible under the stated formula, or inconsistent across comparable runs beyond known randomness;\n- local and official results or prose and executable behavior disagree;\n- legality, raw objective, normalization, transition\u002Freward replay, or a protocol state must be independently reconstructed;\n- an interactive run exposes deadlock, flush, EOF, timeout, action-budget, response-order, or termination uncertainty;\n- a specific suspected bug, rare edge, resource boundary, or score-quality hypothesis needs generated instances that official feedback cannot isolate; or\n- Plateau Escape has already been admitted for an interactive or scored heuristic\u002Foptimization task and requires repeated independent challenger evaluation.\n\nDo not enter merely because a task is interactive, heuristic, or scored; because a first candidate is non-full; because a local tool is absent; or because another online submission is planned. If official submissions are accepted, legality and protocol are stable, scores are coherent with the known contract, and the unresolved question is solver quality, return to the appropriate algorithm, Heuristic Search, Interactive, or Reactive route. Local construction may be postponed until a concrete signal makes it discriminating.\n\nOnce entered, build only the smallest evaluator, transcript, fixture, or generated campaign that can expose or falsify the signal. Stop expanding local infrastructure after the issue is localized, the hypothesis is falsified, or coherent official evidence resolves the uncertainty. Plateau Escape is the deliberate exception: its verified plateau or severe score gap activates the full phase-local evaluator gate before challenger comparison.\n\n## Assign ownership before coding\n\nKeep evaluator mechanics separate from solver or policy design:\n\n| Need | Owner |\n|---|---|\n| Parse a candidate, validate hard constraints, recompute an objective, or transform it into a score | This skill |\n| Implement an interactor\u002Fsimulator state machine, process wiring contract, transcript, or per-step reward replay | This skill |\n| Design hidden-state queries or prove hypothesis separation | [interactive problem solving](..\u002Finteractive-problem-solving\u002FSKILL.md) |\n| Design an estimator, planner, explorer, or reward-bearing online policy | [reactive online decision problem solving](..\u002Freactive-online-decision-problem-solving\u002FSKILL.md) |\n| Select concrete `testlib.h` registration functions, streams, verdicts, and build commands | [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md) |\n| Compare solver challengers, seeds, holdouts, and noisy experiments | [validation and experiments](..\u002Fvalidation-and-experiments\u002FSKILL.md) |\n\nFor a reactive task, let Reactive own action choice and let this skill own the independent transition\u002Freward replayer or judge-facing harness. Development-time repeated scoring of complete offline outputs is not a live reactive process.\n\nAssign the solver\u002Fchallenger and evaluator to different owners whenever delegation is available. The solver owner may run the frozen evaluator but must not silently change its contract, fixtures, or acceptance logic to admit a candidate.\n\n## 1. Recover the evaluator contract\n\nRecord the operational contract before implementing it:\n\n```\ninstance and candidate grammar\nhard validity constraints and first-failure policy\nraw objective, direction, numeric domain, and aggregation\ndisplayed-score transform, reference data, rounding, and clamps\nchecker\u002Fscorer\u002Finteractor arguments, streams, exit statuses, and diagnostics\ninteractive state, legal actions, feedback order, flush points, budget, and termination\ntoolchain, time\u002Fmemory limits, official artifacts, and unresolved discrepancies\n```\n\nRead every supplied checker, scorer, interactor, runner, configuration file, and sample that can determine this contract. Distinguish official executable behavior from prose and from assumptions. When they differ, document both and test the smallest witness that separates their interpretations.\n\nSeparate these outcomes explicitly:\n\n```\ncandidate invalid\ncandidate valid with raw objective\ncandidate valid with normalized or partial score\nevaluator, configuration, or judge-data failure\n```\n\nNever infer a score transform merely from leaderboard behavior.\n\n## 2. Isolate the evaluator from the solver\n\nImplement the evaluator through a separate code path. Do not copy solver feasibility tests, cached-delta formulas, or the solver's favored interpretation before independently writing the evaluator contract and fixtures.\n\nWhen this evidence-triggered route or Plateau Escape requires evaluator implementation or independent validation, MUST delegate evaluator ownership to a dedicated fresh-context sub-agent whenever delegation is available. Do not assign that sub-agent to implement or tune the solver or challenger it will evaluate, or later reuse it as a challenger owner, trajectory critic, method researcher, or other method reviewer for the same task. Treat this executor-evaluator separation as the default implementation path once evaluator work is actually routed, not as a reason to route early. If the required evaluator is missing or insufficient, the evaluator owner must implement, compile, and validate the missing executable artifact. If a faithful official evaluator already exists, it must instead own independent contract recovery, adversarial fixtures, validation, and any required runner or harness; do not rewrite official source merely to manufacture ownership separation. Require the evaluator owner to read this entire skill and own its end-to-end deliverables; a review memo or pseudocode does not discharge that ownership.\n\nThe evaluator sub-agent's initial packet must contain the original problem evidence, not a main-agent reconstruction:\n\n```\nverbatim original statement, title\u002FURL, and exact I\u002FO or protocol format\nofficial constraints, samples, configs, visualizer, scorer, and public rules\noriginal instance data or generator and official runner artifacts\ntarget C++ standard, compiler, flags, and available libraries\nonly necessary verified filesystem, process, resource, and submission-interface facts\n```\n\nDo not replace the original statement or official files with a summary. Initially withhold solver source, candidate identity, solver-derived formulas, attempted-method labels, main-agent reasoning, diagnoses, expected outcomes, claimed scores, and results that lack raw evaluator evidence. A main-agent statement is not a verified fact merely because it is confident or repeated.\n\nRequire the evaluator sub-agent to freeze a written contract, evaluator artifact, and initial hand-computed\u002Fadversarial fixtures before exposing raw candidate outputs, transcripts, or raw official verdict\u002Fscore responses. Reveal those later artifacts only when needed for differential validation, with their provenance intact and without the main agent's interpretation. Expose solver internals only after an independently reproduced discrepancy proves they are necessary.\n\nWithout delegation, preserve the same information barrier in a sealed pass with separate files, representations, derivations, and fixtures. Do not inspect solver formulas while deriving evaluator formulas. Solver-generated fixtures or agreement between two code paths copied from the same derivation are not independent evidence.\n\nStrongly prefer C++ for every new checker, scorer, interactor, simulator, and process harness. Use the official standard and flags when specified; otherwise use portable C++17. Use another language only when the user requests it, an official artifact must be modified in place, or a required interface makes faithful C++ implementation impractical. Record the concrete exception.\n\nReturn executable artifacts rather than only pseudocode:\n\n```\nevaluator source\u002Fexecutable paths, content hashes, and component roles\nexact run command and, when source exists, build command\nsmall valid, invalid, boundary, and transcript fixtures\nVALID\u002FINVALID or protocol verdict with the first actionable failure\nraw objective and direction\nnormalized score only when its transform is established\nassumptions and unresolved official\u002Flocal discrepancies\n```\n\n## 3. Choose the evaluator role and interface\n\nUse the smallest role that matches the contract:\n\n| Role | Required behavior |\n|---|---|\n| Checker | Parse one completed output, reject malformed or illegal candidates, and report the first failing rule |\n| Scorer | Establish validity first, recompute the raw objective, then apply only a known score transform and aggregation |\n| Interactor\u002Fsimulator | Reproduce the literal judge state machine over bidirectional pipes and emit a verdict plus transcript |\n| Reactive episode evaluator | Validate each action against the pre-action state, apply the transition, recompute reward, and aggregate the episode |\n| Runner | Supervise processes, deadlines, exit status, streams, and artifacts without duplicating semantic checks |\n\nFor a batch checker or scorer, keep stages explicit and independently testable:\n\n```\ninstance = parse_input(...)\ncandidate = parse_output(...)\nrequire_output_exhausted()\nvalidate(instance, candidate)\nraw = objective(instance, candidate)\nscore = normalize(raw, public_reference_data)  # optional\n```\n\nFor a non-testlib local tool, a simple interface is sufficient:\n\n```\nlocal_eval INPUT OUTPUT [ANSWER_OR_CONFIG]\nexit 0: valid; stdout contains raw objective and optional established score\nexit 1: invalid; stderr contains the first actionable candidate failure\nexit 2: evaluator, configuration, or judge-data failure\n```\n\nDo not impose this generic exit contract on `testlib.h`. Follow [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md) for its exact three-file invocation, streams, verdicts, points behavior, and interactor registration.\n\n## Build problem-finding data end to end\n\nConstruct a local input campaign only when it can test a named failure or quality hypothesis. Carry it through this complete chain:\n\n```\ncoverage strategy -> parameterized generator code -> input validator\n-> solver -> independent checker\u002Fscorer\u002Finteractor -> manifest and retained failures\n```\n\n### 1. Freeze a coverage strategy\n\nBefore generating volume, write a compact coverage table:\n\n```\ncase family | suspected failure\u002Fedge | varied parameters and range\nsize tier | expected oracle\u002Finvariant\u002Frelation | development or holdout\n```\n\nChoose only relevant axes from size, density, topology or structure, numeric magnitude, constraint slack, equality\u002Fcontact, duplication, symmetry\u002Fdegeneracy, feasibility margin, protocol branch, and randomness\u002Fnoise. Select the applicable official samples, hand-computed anchors, minimal or maximum boundaries, and families for implicated hard constraints. Add uniform random, biased, structured, adversarial, or metamorphic families only when each has a stated purpose. Random volume without a falsifiable target is not coverage.\n\n### 2. Implement a parameterized generator\n\nFor more than a handful of cases, any randomized or batch campaign, and every maximum-scale or otherwise large instance, write a problem-specific generator program. Do not hand-edit large inputs or copy-paste many near-duplicates. Expose the applicable family, size, density\u002Fbias, structure, and explicit seed or seed tag as command-line parameters so every case is reconstructible from one command. Generate one case per deterministic invocation, or use a small coded batch driver that records each invocation before running it.\n\nPrefer portable C++17 unless the official toolchain dictates otherwise. When `testlib.h` is available or appropriate, read and use [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md): Testlib supports deterministic data generation through `registerGen(argc, argv, 1)`, `opt`, `rnd`, and `println`; use standard C++ output when custom no-newline formatting is required. Keep generator logic separate from the solver and from the input validator.\n\n### 3. Validate every generated input\n\nImplement or use an independent strict input validator before trusting generated cases. Every generated case intended to be valid must pass it before the solver runs; deliberately invalid validator tests belong in a separate negative suite and must fail for the named reason. Fail the campaign immediately on a validator error rather than teaching the solver or evaluator to accept the generator's mistake.\n\nUse the literal sequence:\n\n```\ngenerator \u003Cfull parameters> > case.in\nvalidator \u003C case.in\nsolver \u003C case.in > case.out\nindependent evaluator case.in case.out [...]\n```\n\nPin source or executable hashes and exact build commands for the generator, validator, solver, and evaluator. The validator must enforce grammar, bounds, cross-field constraints, and EOF independently of the generator's construction logic.\n\n### 4. Pair evaluation and retain provenance\n\nCompare champion and challenger on the same generated inputs and instance\u002Fnoise seeds. Keep instance-generation, solver, and judge\u002Fnoise seeds separate. Record per-case validity, raw objective or protocol verdict, established score, runtime, and first failure instead of only an aggregate.\n\nRetain a machine-readable or line-oriented manifest containing at least:\n\n```\ncase id and family | full generator command | generator version\u002Fhash\ninstance seed\u002Ftag | input hash | validator version\u002Fresult\nsolver identity and seed | evaluator version | verdict\u002Fraw score\u002Fruntime\n```\n\nOn failure, preserve the original input, output, transcript, diagnostics, and full commands. Minimize the failure when practical, but keep both original and reduced artifacts; add the smallest stable reproducer to the regression set. Preserve the exact seed and parameter tuple for every rare, stochastic, invalid, timeout, or score-outlier case. Never retain only a screenshot, aggregate, or unlabeled data file.\n\nStart with hand-computed and tiny cases. Expand to batch or maximum-scale generation only when needed to expose a rare failure, distinguish close scoring hypotheses, or probe resources. Stop when the target problem is localized or falsified; local campaign size is not a completion metric.\n\n## 4. Parse and validate by reconstruction\n\nValidate serialization before semantics:\n\n- Check required token and line counts, premature EOF, and the exact trailing-output policy.\n- Bound integers, finite floating-point values, characters, enums, and declared lengths before allocation or iteration.\n- Check one-based versus zero-based indices, duplicates, missing objects, forbidden extras, and which submitted solution counts.\n- Detect overflow while parsing, accumulating, multiplying, or normalizing.\n- Use a real parser for expressions, grammars, paths, and operation sequences; avoid substring validation.\n\nNever trust a candidate's claimed score or derived state. Reconstruct the submitted object or replay every operation from the original instance:\n\n- For constructive output, rebuild the witness and test every hard constraint.\n- For graphs, check indices, multiplicity, degrees, connectivity, cycles, paths, capacities, and direction as applicable.\n- For geometry, check bounds, orientation, contact semantics, overlap, and exact or tolerance-aware predicates.\n- For schedules and assignments, recompute resource use, order, coverage, and cross-object constraints.\n- For action sequences, validate the whole action against the pre-action state before mutating state.\n\nUse wide integer types for costs, products, squared distances, pair counts, and normalization differences. Reject `NaN` and infinity explicitly.\n\n## 5. Recompute objectives and scores\n\nAnswer these questions independently:\n\n1. Is the candidate legal?\n2. What is its raw objective or episode reward?\n3. How does the evaluator transform and aggregate that value into the displayed score?\n\nDetermine minimization versus maximization, integer versus floating arithmetic, the rounding point, clamps, thresholds, piecewise rules, ratios, logarithms, and per-case or per-round aggregation. Establish whether reference data is an optimum, baseline, bound, or jury objective. Define behavior for zero denominators and degenerate equal-reference cases.\n\nDo not assume the displayed score is the fraction of fully passed test cases unless the operational evaluator establishes that equivalence. A case reported as `Wrong Answer` or otherwise non-perfect may still award partial points. Reconstruct each case's raw value or point contribution and the official cross-case weighting and aggregation. Once established, use the final official aggregate score as the solver-comparison and promotion target; use fully passed case count only as a diagnostic or as a proven-equivalent objective.\n\nKeep the raw objective authoritative even when normalization remains unknown. For reactive episodes, recompute transition-local rewards and the final aggregation rather than accepting policy logs; use [reactive online decision problem solving](..\u002Freactive-online-decision-problem-solving\u002FSKILL.md) to judge whether the policy itself estimates, plans, or explores well.\n\n## 6. Implement process-level interactors and simulators\n\nModel the same initial output, response order, state transitions, counted actions, special replies, final-answer rules, and termination conditions as the operational judge. Keep the solver unaware of simulator-only truth.\n\nConnect solver stdout to evaluator stdin and evaluator stdout to solver stdin through real pipes or the official runner. Direct function calls cannot expose missing flushes, buffering, premature close, EOF, deadlock, or timeout behavior. Keep response generation, transcript capture, process supervision, and strategy assertions separable.\n\nTest every legal hidden state for tiny sizes, boundary actions, exact budget exhaustion, early success, judge error, malformed messages, timeout, EOF, and transcript agreement with an official interactor when available. Cap deliberately exhaustive behavior to small instances; measure response complexity on large cases so the harness does not become the bottleneck.\n\nUse [interactive problem solving](..\u002Finteractive-problem-solving\u002FSKILL.md) for query selection and adversarial hypothesis reasoning. Use [reactive online decision problem solving](..\u002Freactive-online-decision-problem-solving\u002FSKILL.md) for reward-aware action choice. When `testlib.h` is present, use [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md) for concrete interactor APIs and flush\u002Fwiring requirements.\n\n## 7. Validate the evaluator itself\n\nCreate an adversarial evaluator suite:\n\n- one hand-computed valid fixture;\n- truncated, extra-token, duplicate, out-of-range, non-finite, and overflow candidates;\n- one violating fixture per hard constraint;\n- exact equality, contact, and other boundary cases;\n- metamorphic cases whose legality or raw objective has a known relationship;\n- tiny instances compared with brute enumeration;\n- mutation tests that corrupt one field of a valid candidate and require rejection;\n- official samples, visualizer output, official evaluator results, or remote feedback when available;\n- interactive transcript and real-pipe failure cases for an interactor.\n\nWhen possible, implement the tiny brute oracle or objective calculator with a different representation from both solver and evaluator. A checker that only agrees with solver-generated fixtures is not independent evidence.\n\n## 8. Integrate the local loop\n\nBuild the evaluator when source exists, then exercise its command-line or process contract before relying on it. For each challenger, run:\n\n```\nsolver -> independent evaluator -> first failure or raw objective delta\n```\n\nRecord only:\n\n```\ncandidate | valid\u002Finvalid | raw objective | established score\nruntime | first failure | official\u002Flocal discrepancy | keep\u002Frevert\n```\n\nIf local and official results disagree, stop solver tuning. Minimize the discrepancy, test competing contract interpretations, and change the evaluator or documented assumption before generating more solver cases under the unchanged validator. If local validation passes but official evaluation remains zero, rederive the missing acceptance condition instead of adding random tests that the same incomplete validator will accept.\n\nFor routed evaluator work, record completion only after all applicable items are present and actually run:\n\n```\nindependent evaluator-builder not reused as solver\u002Fchallenger\u002Freviewer, or documented sealed-pass fallback\nverbatim original problem packet and evaluator contract\nevaluator artifact path\u002Fhash and exact run command\nsource\u002Fbuild command when source exists; harness source\u002Fbuild command when required\nhand-computed, malformed, boundary, mutation, and tiny-oracle fixtures\ncoverage table, generator source\u002Fbuild\u002Ffull commands, validator evidence, and seed manifest when a generated campaign was needed\noriginal and minimized failing input\u002Foutput\u002Ftranscript artifacts when a failure was found\nreal-pipe transcript tests for interactive tasks\nlegality and raw-objective recomputation for scored heuristic\u002Foptimization tasks\nofficial\u002Flocal comparison where an official artifact or result exists\nremaining unknown score transforms or protocol assumptions\n```\n\nDo not report the evaluator trusted from pseudocode, a solver-authored validity function, sample-only agreement, a score estimate, or generated inputs that never passed an independent validator.\n","# Checker and Local Evaluation\n\nBuild an evaluator that is independent of the solver, executable under the target toolchain, and adversarially tested. Treat local construction and evaluation as tools for finding or discriminating a problem, and treat the result as a debugging oracle until official artifacts, hand-computed fixtures, or remote evidence corroborate it.\n\n## Enter only on diagnostic evidence\n\nEnter this skill when at least one of these conditions holds:\n\n- evaluator semantics or missing official artifacts block a concrete diagnosis, promotion, or release decision;\n- official feedback is unexplained invalid, zero, WA, discontinuous, impossible under the stated formula, or inconsistent across comparable runs beyond known randomness;\n- local and official results or prose and executable behavior disagree;\n- legality, raw objective, normalization, transition\u002Freward replay, or a protocol state must be independently reconstructed;\n- an interactive run exposes deadlock, flush, EOF, timeout, action-budget, response-order, or termination uncertainty;\n- a specific suspected bug, rare edge, resource boundary, or score-quality hypothesis needs generated instances that official feedback cannot isolate; or\n- Plateau Escape has already been admitted for an interactive or scored heuristic\u002Foptimization task and requires repeated independent challenger evaluation.\n\nDo not enter merely because a task is interactive, heuristic, or scored; because a first candidate is non-full; because a local tool is absent; or because another online submission is planned. If official submissions are accepted, legality and protocol are stable, scores are coherent with the known contract, and the unresolved question is solver quality, return to the appropriate algorithm, Heuristic Search, Interactive, or Reactive route. Local construction may be postponed until a concrete signal makes it discriminating.\n\nOnce entered, build only the smallest evaluator, transcript, fixture, or generated campaign that can expose or falsify the signal. Stop expanding local infrastructure after the issue is localized, the hypothesis is falsified, or coherent official evidence resolves the uncertainty. Plateau Escape is the deliberate exception: its verified plateau or severe score gap activates the full phase-local evaluator gate before challenger comparison.\n\n## Assign ownership before coding\n\nKeep evaluator mechanics separate from solver or policy design:\n\n| Need | Owner |\n|---|---|\n| Parse a candidate, validate hard constraints, recompute an objective, or transform it into a score | This skill |\n| Implement an interactor\u002Fsimulator state machine, process wiring contract, transcript, or per-step reward replay | This skill |\n| Design hidden-state queries or prove hypothesis separation | [interactive problem solving](..\u002Finteractive-problem-solving\u002FSKILL.md) |\n| Design an estimator, planner, explorer, or reward-bearing online policy | [reactive online decision problem solving](..\u002Freactive-online-decision-problem-solving\u002FSKILL.md) |\n| Select concrete `testlib.h` registration functions, streams, verdicts, and build commands | [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md) |\n| Compare solver challengers, seeds, holdouts, and noisy experiments | [validation and experiments](..\u002Fvalidation-and-experiments\u002FSKILL.md) |\n\nFor a reactive task, let Reactive own action choice and let this skill own the independent transition\u002Freward replayer or judge-facing harness. Development-time repeated scoring of complete offline outputs is not a live reactive process.\n\nAssign the solver\u002Fchallenger and evaluator to different owners whenever delegation is available. The solver owner may run the frozen evaluator but must not silently change its contract, fixtures, or acceptance logic to admit a candidate.\n\n## 1. Recover the evaluator contract\n\nRecord the operational contract before implementing it:\n\n```\ninstance and candidate grammar\nhard validity constraints and first-failure policy\nraw objective, direction, numeric domain, and aggregation\ndisplayed-score transform, reference data, rounding, and clamps\nchecker\u002Fscorer\u002Finteractor arguments, streams, exit statuses, and diagnostics\ninteractive state, legal actions, feedback order, flush points, budget, and termination\ntoolchain, time\u002Fmemory limits, official artifacts, and unresolved discrepancies\n```\n\nRead every supplied checker, scorer, interactor, runner, configuration file, and sample that can determine this contract. Distinguish official executable behavior from prose and from assumptions. When they differ, document both and test the smallest witness that separates their interpretations.\n\nSeparate these outcomes explicitly:\n\n```\ncandidate invalid\ncandidate valid with raw objective\ncandidate valid with normalized or partial score\nevaluator, configuration, or judge-data failure\n```\n\nNever infer a score transform merely from leaderboard behavior.\n\n## 2. Isolate the evaluator from the solver\n\nImplement the evaluator through a separate code path. Do not copy solver feasibility tests, cached-delta formulas, or the solver's favored interpretation before independently writing the evaluator contract and fixtures.\n\nWhen this evidence-triggered route or Plateau Escape requires evaluator implementation or independent validation, MUST delegate evaluator ownership to a dedicated fresh-context sub-agent whenever delegation is available. Do not assign that sub-agent to implement or tune the solver or challenger it will evaluate, or later reuse it as a challenger owner, trajectory critic, method researcher, or other method reviewer for the same task. Treat this executor-evaluator separation as the default implementation path once evaluator work is actually routed, not as a reason to route early. If the required evaluator is missing or insufficient, the evaluator owner must implement, compile, and validate the missing executable artifact. If a faithful official evaluator already exists, it must instead own independent contract recovery, adversarial fixtures, validation, and any required runner or harness; do not rewrite official source merely to manufacture ownership separation. Require the evaluator owner to read this entire skill and own its end-to-end deliverables; a review memo or pseudocode does not discharge that ownership.\n\nThe evaluator sub-agent's initial packet must contain the original problem evidence, not a main-agent reconstruction:\n\n```\nverbatim original statement, title\u002FURL, and exact I\u002FO or protocol format\nofficial constraints, samples, configs, visualizer, scorer, and public rules\noriginal instance data or generator and official runner artifacts\ntarget C++ standard, compiler, flags, and available libraries\nonly necessary verified filesystem, process, resource, and submission-interface facts\n```\n\nDo not replace the original statement or official files with a summary. Initially withhold solver source, candidate identity, solver-derived formulas, attempted-method labels, main-agent reasoning, diagnoses, expected outcomes, claimed scores, and results that lack raw evaluator evidence. A main-agent statement is not a verified fact merely because it is confident or repeated.\n\nRequire the evaluator sub-agent to freeze a written contract, evaluator artifact, and initial hand-computed\u002Fadversarial fixtures before exposing raw candidate outputs, transcripts, or raw official verdict\u002Fscore responses. Reveal those later artifacts only when needed for differential validation, with their provenance intact and without the main agent's interpretation. Expose solver internals only after an independently reproduced discrepancy proves they are necessary.\n\nWithout delegation, preserve the same information barrier in a sealed pass with separate files, representations, derivations, and fixtures. Do not inspect solver formulas while deriving evaluator formulas. Solver-generated fixtures or agreement between two code paths copied from the same derivation are not independent evidence.\n\nStrongly prefer C++ for every new checker, scorer, interactor, simulator, and process harness. Use the official standard and flags when specified; otherwise use portable C++17. Use another language only when the user requests it, an official artifact must be modified in place, or a required interface makes faithful C++ implementation impractical. Record the concrete exception.\n\nReturn executable artifacts rather than only pseudocode:\n\n```\nevaluator source\u002Fexecutable paths, content hashes, and component roles\nexact run command and, when source exists, build command\nsmall valid, invalid, boundary, and transcript fixtures\nVALID\u002FINVALID or protocol verdict with the first actionable failure\nraw objective and direction\nnormalized score only when its transform is established\nassumptions and unresolved official\u002Flocal discrepancies\n```\n\n## 3. Choose the evaluator role and interface\n\nUse the smallest role that matches the contract:\n\n| Role | Required behavior |\n|---|---|\n| Checker | Parse one completed output, reject malformed or illegal candidates, and report the first failing rule |\n| Scorer | Establish validity first, recompute the raw objective, then apply only a known score transform and aggregation |\n| Interactor\u002Fsimulator | Reproduce the literal judge state machine over bidirectional pipes and emit a verdict plus transcript |\n| Reactive episode evaluator | Validate each action against the pre-action state, apply the transition, recompute reward, and aggregate the episode |\n| Runner | Supervise processes, deadlines, exit status, streams, and artifacts without duplicating semantic checks |\n\nFor a batch checker or scorer, keep stages explicit and independently testable:\n\n```\ninstance = parse_input(...)\ncandidate = parse_output(...)\nrequire_output_exhausted()\nvalidate(instance, candidate)\nraw = objective(instance, candidate)\nscore = normalize(raw, public_reference_data)  # optional\n```\n\nFor a non-testlib local tool, a simple interface is sufficient:\n\n```\nlocal_eval INPUT OUTPUT [ANSWER_OR_CONFIG]\nexit 0: valid; stdout contains raw objective and optional established score\nexit 1: invalid; stderr contains the first actionable candidate failure\nexit 2: evaluator, configuration, or judge-data failure\n```\n\nDo not impose this generic exit contract on `testlib.h`. Follow [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md) for its exact three-file invocation, streams, verdicts, points behavior, and interactor registration.\n\n## Build problem-finding data end to end\n\nConstruct a local input campaign only when it can test a named failure or quality hypothesis. Carry it through this complete chain:\n\n```\ncoverage strategy -> parameterized generator code -> input validator\n-> solver -> independent checker\u002Fscorer\u002Finteractor -> manifest and retained failures\n```\n\n### 1. Freeze a coverage strategy\n\nBefore generating volume, write a compact coverage table:\n\n```\ncase family | suspected failure\u002Fedge | varied parameters and range\nsize tier | expected oracle\u002Finvariant\u002Frelation | development or holdout\n```\n\nChoose only relevant axes from size, density, topology or structure, numeric magnitude, constraint slack, equality\u002Fcontact, duplication, symmetry\u002Fdegeneracy, feasibility margin, protocol branch, and randomness\u002Fnoise. Select the applicable official samples, hand-computed anchors, minimal or maximum boundaries, and families for implicated hard constraints. Add uniform random, biased, structured, adversarial, or metamorphic families only when each has a stated purpose. Random volume without a falsifiable target is not coverage.\n\n### 2. Implement a parameterized generator\n\nFor more than a handful of cases, any randomized or batch campaign, and every maximum-scale or otherwise large instance, write a problem-specific generator program. Do not hand-edit large inputs or copy-paste many near-duplicates. Expose the applicable family, size, density\u002Fbias, structure, and explicit seed or seed tag as command-line parameters so every case is reconstructible from one command. Generate one case per deterministic invocation, or use a small coded batch driver that records each invocation before running it.\n\nPrefer portable C++17 unless the official toolchain dictates otherwise. When `testlib.h` is available or appropriate, read and use [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md): Testlib supports deterministic data generation through `registerGen(argc, argv, 1)`, `opt`, `rnd`, and `println`; use standard C++ output when custom no-newline formatting is required. Keep generator logic separate from the solver and from the input validator.\n\n### 3. Validate every generated input\n\nImplement or use an independent strict input validator before trusting generated cases. Every generated case intended to be valid must pass it before the solver runs; deliberately invalid validator tests belong in a separate negative suite and must fail for the named reason. Fail the campaign immediately on a validator error rather than teaching the solver or evaluator to accept the generator's mistake.\n\nUse the literal sequence:\n\n```\ngenerator \u003Cfull parameters> > case.in\nvalidator \u003C case.in\nsolver \u003C case.in > case.out\nindependent evaluator case.in case.out [...]\n```\n\nPin source or executable hashes and exact build commands for the generator, validator, solver, and evaluator. The validator must enforce grammar, bounds, cross-field constraints, and EOF independently of the generator's construction logic.\n\n### 4. Pair evaluation and retain provenance\n\nCompare champion and challenger on the same generated inputs and instance\u002Fnoise seeds. Keep instance-generation, solver, and judge\u002Fnoise seeds separate. Record per-case validity, raw objective or protocol verdict, established score, runtime, and first failure instead of only an aggregate.\n\nRetain a machine-readable or line-oriented manifest containing at least:\n\n```\ncase id and family | full generator command | generator version\u002Fhash\ninstance seed\u002Ftag | input hash | validator version\u002Fresult\nsolver identity and seed | evaluator version | verdict\u002Fraw score\u002Fruntime\n```\n\nOn failure, preserve the original input, output, transcript, diagnostics, and full commands. Minimize the failure when practical, but keep both original and reduced artifacts; add the smallest stable reproducer to the regression set. Preserve the exact seed and parameter tuple for every rare, stochastic, invalid, timeout, or score-outlier case. Never retain only a screenshot, aggregate, or unlabeled data file.\n\nStart with hand-computed and tiny cases. Expand to batch or maximum-scale generation only when needed to expose a rare failure, distinguish close scoring hypotheses, or probe resources. Stop when the target problem is localized or falsified; local campaign size is not a completion metric.\n\n## 4. Parse and validate by reconstruction\n\nValidate serialization before semantics:\n\n- Check required token and line counts, premature EOF, and the exact trailing-output policy.\n- Bound integers, finite floating-point values, characters, enums, and declared lengths before allocation or iteration.\n- Check one-based versus zero-based indices, duplicates, missing objects, forbidden extras, and which submitted solution counts.\n- Detect overflow while parsing, accumulating, multiplying, or normalizing.\n- Use a real parser for expressions, grammars, paths, and operation sequences; avoid substring validation.\n\nNever trust a candidate's claimed score or derived state. Reconstruct the submitted object or replay every operation from the original instance:\n\n- For constructive output, rebuild the witness and test every hard constraint.\n- For graphs, check indices, multiplicity, degrees, connectivity, cycles, paths, capacities, and direction as applicable.\n- For geometry, check bounds, orientation, contact semantics, overlap, and exact or tolerance-aware predicates.\n- For schedules and assignments, recompute resource use, order, coverage, and cross-object constraints.\n- For action sequences, validate the whole action against the pre-action state before mutating state.\n\nUse wide integer types for costs, products, squared distances, pair counts, and normalization differences. Reject `NaN` and infinity explicitly.\n\n## 5. Recompute objectives and scores\n\nAnswer these questions independently:\n\n1. Is the candidate legal?\n2. What is its raw objective or episode reward?\n3. How does the evaluator transform and aggregate that value into the displayed score?\n\nDetermine minimization versus maximization, integer versus floating arithmetic, the rounding point, clamps, thresholds, piecewise rules, ratios, logarithms, and per-case or per-round aggregation. Establish whether reference data is an optimum, baseline, bound, or jury objective. Define behavior for zero denominators and degenerate equal-reference cases.\n\nDo not assume the displayed score is the fraction of fully passed test cases unless the operational evaluator establishes that equivalence. A case reported as `Wrong Answer` or otherwise non-perfect may still award partial points. Reconstruct each case's raw value or point contribution and the official cross-case weighting and aggregation. Once established, use the final official aggregate score as the solver-comparison and promotion target; use fully passed case count only as a diagnostic or as a proven-equivalent objective.\n\nKeep the raw objective authoritative even when normalization remains unknown. For reactive episodes, recompute transition-local rewards and the final aggregation rather than accepting policy logs; use [reactive online decision problem solving](..\u002Freactive-online-decision-problem-solving\u002FSKILL.md) to judge whether the policy itself estimates, plans, or explores well.\n\n## 6. Implement process-level interactors and simulators\n\nModel the same initial output, response order, state transitions, counted actions, special replies, final-answer rules, and termination conditions as the operational judge. Keep the solver unaware of simulator-only truth.\n\nConnect solver stdout to evaluator stdin and evaluator stdout to solver stdin through real pipes or the official runner. Direct function calls cannot expose missing flushes, buffering, premature close, EOF, deadlock, or timeout behavior. Keep response generation, transcript capture, process supervision, and strategy assertions separable.\n\nTest every legal hidden state for tiny sizes, boundary actions, exact budget exhaustion, early success, judge error, malformed messages, timeout, EOF, and transcript agreement with an official interactor when available. Cap deliberately exhaustive behavior to small instances; measure response complexity on large cases so the harness does not become the bottleneck.\n\nUse [interactive problem solving](..\u002Finteractive-problem-solving\u002FSKILL.md) for query selection and adversarial hypothesis reasoning. Use [reactive online decision problem solving](..\u002Freactive-online-decision-problem-solving\u002FSKILL.md) for reward-aware action choice. When `testlib.h` is present, use [testlib C++ judging](..\u002Ftestlib-cpp-judging\u002FSKILL.md) for concrete interactor APIs and flush\u002Fwiring requirements.\n\n## 7. Validate the evaluator itself\n\nCreate an adversarial evaluator suite:\n\n- one hand-computed valid fixture;\n- truncated, extra-token, duplicate, out-of-range, non-finite, and overflow candidates;\n- one violating fixture per hard constraint;\n- exact equality, contact, and other boundary cases;\n- metamorphic cases whose legality or raw objective has a known relationship;\n- tiny instances compared with brute enumeration;\n- mutation tests that corrupt one field of a valid candidate and require rejection;\n- official samples, visualizer output, official evaluator results, or remote feedback when available;\n- interactive transcript and real-pipe failure cases for an interactor.\n\nWhen possible, implement the tiny brute oracle or objective calculator with a different representation from both solver and evaluator. A checker that only agrees with solver-generated fixtures is not independent evidence.\n\n## 8. Integrate the local loop\n\nBuild the evaluator when source exists, then exercise its command-line or process contract before relying on it. For each challenger, run:\n\n```\nsolver -> independent evaluator -> first failure or raw objective delta\n```\n\nRecord only:\n\n```\ncandidate | valid\u002Finvalid | raw objective | established score\nruntime | first failure | official\u002Flocal discrepancy | keep\u002Frevert\n```\n\nIf local and official results disagree, stop solver tuning. Minimize the discrepancy, test competing contract interpretations, and change the evaluator or documented assumption before generating more solver cases under the unchanged validator. If local validation passes but official evaluation remains zero, rederive the missing acceptance condition instead of adding random tests that the same incomplete validator will accept.\n\nFor routed evaluator work, record completion only after all applicable items are present and actually run:\n\n```\nindependent evaluator-builder not reused as solver\u002Fchallenger\u002Freviewer, or documented sealed-pass fallback\nverbatim original problem packet and evaluator contract\nevaluator artifact path\u002Fhash and exact run command\nsource\u002Fbuild command when source exists; harness source\u002Fbuild command when required\nhand-computed, malformed, boundary, mutation, and tiny-oracle fixtures\ncoverage table, generator source\u002Fbuild\u002Ffull commands, validator evidence, and seed manifest when a generated campaign was needed\noriginal and minimized failing input\u002Foutput\u002Ftranscript artifacts when a failure was found\nreal-pipe transcript tests for interactive tasks\nlegality and raw-objective recomputation for scored heuristic\u002Foptimization tasks\nofficial\u002Flocal comparison where an official artifact or result exists\nremaining unknown score transforms or protocol assumptions\n```\n\nDo not report the evaluator trusted from pseudocode, a solver-authored validity function, sample-only agreement, a score estimate, or generated inputs that never passed an independent validator.\n",{"name":5,"description":7},"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Ftask-oriented\u002FFrontierCS\u002Falgorithmic-problem-solving\u002Fsub-skills\u002Fchecker-and-local-evaluation",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill checker-and-local-evaluation",{"tool":36,"command":37},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill checker-and-local-evaluation",{"tool":39,"command":40},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill checker-and-local-evaluation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FFrontierCS\u002Falgorithmic-problem-solving\u002Fsub-skills\u002Fchecker-and-local-evaluation\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]