Skip to content

Add more PFMEA and Control Plan column aliases#6

Merged
migmcc merged 1 commit into
mainfrom
feat/more-aliases
Jun 20, 2026
Merged

Add more PFMEA and Control Plan column aliases#6
migmcc merged 1 commit into
mainfrom
feat/more-aliases

Conversation

@migmcc

@migmcc migmcc commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Implements #2 — broaden real-template header coverage.

Scope

  • Extend PFMEA_ALIASES and CONTROL_PLAN_ALIASES in parsers/excel.py with common, unambiguous variants:
    • operation_id: Operation No/Operation Number/Op Number/Op #/Process No/Step No
    • process_step: Process Description/Step Description
    • severity: Severity Rating
    • detection_control (PFMEA): Detection Method
    • special_characteristic: Special Characteristics/Key Characteristic/Critical Characteristic
    • control_method (CP): Control Technique/Measurement Technique
    • reaction_plan (CP): Out of Control Action
  • Additive only — every existing alias still resolves.

Tests

  • Parametrized new-alias tests for PFMEA and Control Plan (one+ per field).
  • No-regression test for original aliases.
  • Missing required column still raises a clear ParseError.
  • Existing Markdown / JSON / pipeline tests still pass (54 tests total).

Limits (unchanged)

No ambiguous aliases (control, method, description, number, id, status); inspection/evaluation method stay mapped to detection_method only. No configurable mapping, no CSV, no change to scoring / matching / finding types / JSON schema.

Checklist

  • PFMEA + Control Plan aliases added
  • parametrized + no-regression tests
  • ruff + pytest green (54 tests)
  • CI green on branch

Closes #2.

Extend the PFMEA and Control Plan header alias sets with common, unambiguous
variants (Operation No / Op # / Process No, Severity Rating, Detection Method,
Special Characteristics / Key Characteristic / Critical Characteristic,
Control Technique / Measurement Technique, Out of Control Action, Step
Description). Existing aliases and all behaviour are unchanged.

Ambiguous tokens (control, method, description, number, id, status) are not
added; "inspection/evaluation method" stay mapped to detection_method only.

Adds parametrized alias tests + a no-regression check; missing required column
still raises a clear ParseError. Scoring, matching, finding types and the
Markdown/JSON output are untouched. Closes #2.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@migmcc migmcc added this to the v0.2 milestone Jun 20, 2026
@migmcc migmcc marked this pull request as ready for review June 20, 2026 20:33
@migmcc migmcc merged commit 9f63b1d into main Jun 20, 2026
4 checks passed
@migmcc migmcc deleted the feat/more-aliases branch June 20, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more PFMEA / Control Plan column aliases

1 participant