AGENT SKILL

rosie-suspicion-pipeline

Run, inspect, adapt, and troubleshoot Rosie's suspicious-reimbursement pipeline for Chamber of Deputies and Federal Senate data.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
rosie-suspicion-pipeline
license
MIT
metadata
{ "disco-role": "operating" }
description
Run, inspect, adapt, and troubleshoot Rosie's suspicious-reimbursement pipeline for Chamber of Deputies and Federal Senate data.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Rosie Suspicion Pipeline

Use this sub-skill when you need to run Rosie, inspect or adapt its suspicious-reimbursement pipeline, reason about classifier inputs/outputs, or debug why suspicions.xz or classifier model caches were not produced as expected.

Start here

  • For CLI commands, programmatic pipeline flow, Core(settings, adapter), model-cache behavior, and safe offline adaptation, read references/cli-and-workflows.md.
  • For classifier catalog entries, settings keys, required dataframe columns, and prediction semantics, read references/classifier-reference.md.
  • For Chamber of Deputies and Federal Senate adapter normalization, expected input/output files, suspicions.xz shape, and download caveats, read references/data-formats.md.
  • For dependency, data, legacy-library, cache, and network failure modes, read references/troubleshooting.md.
  • To run a deterministic no-download smoke check for Core and any bundled classifier (default: invalid CNPJ/CPF), run scripts/rosie_smoke.py.

Fast routing

  • Run the native pipeline: use python rosie.py run chamber_of_deputies --output <directory> or python rosie.py run federal_senate --output <directory> from a Rosie runtime checkout or container.
  • Run native tests: use python rosie.py test, optionally followed by core, chamber_of_deputies, or federal_senate.
  • Avoid downloads or service starts: do not call the native run command. Use a tiny dataframe and a classifier directly, or use Core with a custom adapter whose dataset and path are already local.
  • Understand a suspicious flag: identify the classifier column in suspicions.xz, then use classifier-reference.md for required columns and true/false meaning.
  • Stale or surprising model output: inspect/delete the classifier .pkl cache in the selected output directory, except for the monthly-subquota classifier, which is fitted every run and intentionally not cached.
  • Jarbas API questions: route to the sibling jarbas-data-api sub-skill.
  • Data loading, Docker/services, deployment, or setup operations: route to the sibling deployment-and-data-ops sub-skill.

Operating boundaries

Rosie is the suspicion-generation application. It reads reimbursement datasets, normalizes them through the selected adapter, applies a settings-defined classifier catalog, and writes a compressed CSV named suspicions.xz. It does not serve the web API, run Jarbas, start databases, or load data into Jarbas by itself.

The native run workflow is not safe for offline-only checks because adapter access triggers data update/download routines. For deterministic local verification, use the bundled smoke script or construct a minimal dataframe for the specific classifier under inspection.

Verification anchors

This sub-skill is grounded in the native CLI surface (run, test, module choices, and --output), Core(settings, adapter) behavior, Chamber/Federal adapter normalization, classifier docstrings and tests, model-cache tests, and installed API inspection for Rosie public classes and methods.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp 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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert 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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match 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).

★ 351