# 905 Feature Order Checker F3d540ca

> Task breakdown for implementing the order checker.

- Skill: `tools-only/905-feature-order-checker-f3d540ca` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/905-feature-order-checker-f3d540ca`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/905-feature-order-checker-f3d540ca/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/tools-only/905-feature-order-checker-f3d540ca

---


# Project Planning & Task Breakdown

## Milestones
**What are the major checkpoints?**

- [x] Milestone 1: LIS Algorithm Implementation
- [x] Milestone 2: Integration with Validation Result
- [x] Milestone 3: Unit & Integration Tests

## Task Breakdown
**What specific work needs to be done?**

### Phase 1: Core Logic
- [x] Task 1.1: Implement `calculate_lis_length` utility.
- [x] Task 1.2: Implement `OrderChecker` class.
    - Input: List of found chunks (from completeness checker) with their positions.
    - Logic: Extract the sequence of observed positions. Check how long the increasing subsequence is.
- [x] Task 1.3: Integrate order metrics into `ValidationResult`.

### Phase 2: Testing
- [x] Task 2.1: Unit tests for specific reordering scenarios (A B C -> A C B).
- [x] Task 2.2: Add order check to standard `Validator` flow.

## Timeline & Estimates
- Implementation: 1.5 hours.

## Risks & Mitigation
- **Risk:** LCS is slow O(N^2).
- **Mitigation:** Use pylib `difflib.SequenceMatcher` or optimized O(N log N) LIS (Longest Increasing Subsequence) since chunk indices are unique.

