hara-stage2

Community

Convert Stage 1 safety faults into vehicle hazards.

AuthorWSJ40
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Stage 2 turns per-function safety-relevant fault analysis from Stage 1 into vehicle-level hazards with the correct JSON output structure and review gates, reducing inconsistent hazard mapping.

Core Features & Use Cases

  • Stage 1 → Vehicle hazard conversion: Converts only non-nan faults whose field_reasoning.推理.是否有安全风险=是 into mf_vehicle_hazards, producing one record per safety-related fault cell.
  • Strict traceability preservation: Copies Stage1_Fault_Text verbatim into 故障描述 and retains Stage 1 row/function/fault field trace fields for later Stage 3 extraction.
  • Schema-locked outputs: Produces deterministic Stage 2 slice JSON that matches references/json-contracts.md, using references/stage2-hazard.md for mapping semantics.
  • Review and merge guardrails: Runs stage2_slice --fix, blocks final merging until Stage2R semantic review passes, and merges slices only via tools/hara/merge_stage2.py.

Quick Start

Run hara-stage2 for a single Function_ID to generate output/<RUN_ID>_stage2_<Function_ID>_mf_vehicle_hazards.json, then run the Stage 2 checks and merge only after Stage2R approval.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hara-stage2
Download link: https://github.com/WSJ40/hara-mutiagent/archive/main.zip#hara-stage2

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.