Requirements
Source:
.kiro/specs/track-command/requirements.md
Feature: track-command
Status: Specified
Product: Parcel Path (mock)
Table of Contents
Requirements — Track command
Feature: track-command
Status: Specified
Product: Parcel Path (mock)
Introduction¶
Users paste a carrier tracking id and need a clear answer: where the package is now, and what they should do next — without reading raw carrier status codes.
Requirements¶
Requirement 1: Track by id¶
User story: As a shopper, I track DEMO-1001 locally and see “Out for
delivery — wait for the courier today” instead of a cryptic status enum.
Acceptance criteria¶
- WHEN the user runs
parcel-path track --id DEMO-1001with the offline fixture available, THE SYSTEM SHALL print a timeline plus one plain-language next action and exit0. - WHEN the user runs
trackwith an unknown id, THE SYSTEM SHALL exit1with usage-safe guidance and SHALL NOT print a stack trace to stdout. - WHEN a carrier adapter throws at runtime, THE SYSTEM SHALL exit
2and SHALL NOT leak PII in error output.
Requirement 2: Offline tests¶
User story: As a developer, I add a failing fixture first when a carrier field is unclear.
Acceptance criteria¶
- WHEN
npm testruns, THE SYSTEM SHALL include a happy-path unit test that usestests/fixtures/DEMO-1001.jsonwith no network. - WHEN
npm testruns, THE SYSTEM SHALL include at least one failure-path unit test for exit1or exit2.
Requirement 3: Documented flag¶
Acceptance criteria¶
- WHEN a contributor opens
README.md, THE SYSTEM documentation SHALL describe thetrack --idflag.