# MANIFEST: FxRates
updated:     2026-10-26T20:29:37+00:00
state:       approved
blocks:      6

applied_specs: |
  ARCHITECTURE.md sha256=c0c8a5e7a3d5142d1daf0fd898de36ed4f766fb554c0250f80d781debf599a34 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-2 applied_at=2026-10-26T20:37:23+00:00 build_sha256=c0c8a5e7a3d5142d1daf0fd898de36ed4f766fb554c0250f80d781debf599a34
  ARCHITECTURE_compact.md sha256=a55095e166d9426a66bfd0cc18adde3a5bcf3c85b8d805af749f639644c3e89a commit=c742d432166759039f667ef596dc19b6a21873d6 applied_by=block-6 applied_at=2026-10-26T21:16:01+00:00 build_sha256=a55095e166d9426a66bfd0cc18adde3a5bcf3c85b8d805af749f639644c3e89a
  DATABASE.md sha256=54097832936d2ba5b7c2f8d44ed278d915a1ad842f4bab76d284889f3ecf4a66 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-2 applied_at=2026-10-26T20:37:23+00:00 build_sha256=7cff4fafd9d6fa20e67cfe3fd0cbe6079822aafc3aad31ed48729078535a6e78 database_operations=FEATURE-RATE-001:f220ad4a2a86d86cc111b646552b59692920e7a1675cb52a16c51edd0b8466a6;FEATURE-RATE-002:53c01dc64b670735fcc8ffe0239c1d5a9a4689b63f073d4a29306a7d71a966ad;FEATURE-RATE-003:2553034a3fb5ae1f8cf75b1cda6ec03d323abcd79255252230b4365c7e161826;FEATURE-RATE-004:0d813942f299a8e001fa1270a0b56db59aade0919de6f7afe2c2682e84a22d44;FEATURE-RATE-005:4baf8c31b45bc3b4b96eed3ec94be22641ce9a3933259b71a5d303d9f2690e1b
  DATABASE_compact.md sha256=bd6238392920be87b9b37e9827c7a62cc488be83ac4246f4cfd380bc943dd8eb commit=c742d432166759039f667ef596dc19b6a21873d6 applied_by=block-6 applied_at=2026-10-26T21:16:01+00:00 build_sha256=bd6238392920be87b9b37e9827c7a62cc488be83ac4246f4cfd380bc943dd8eb
  FEATURE-AppServer.md sha256=fbdc61874bdb9ee50e00dfae58c4f5e73202961fb387c4c6484da293971a836b commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-2 applied_at=2026-10-26T20:37:23+00:00 build_sha256=48832213d02d00edea2bdae2b7eb6e6d643cbf76ea91c81249958211d7b6e690
  FEATURE-CLI-Errors.md sha256=36b1e90f5dbf6e2bd984d59b7910f6d5ab391f1469342a9001bf5e5e109bec47 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=29db05ddb3e60467ae489fa375003ad711484e5d01a301cd66e03ee2bb9d393d
  FEATURE-CLI.md sha256=ab0f6165e634f8198f84c8d7cf09bf80ebe0ecedfa404b9848829ebb484ecdde commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-2 applied_at=2026-10-26T20:37:23+00:00 build_sha256=81df664f1d03bf7ac9ca161f02d6b1f05a58b59f62b5e2da758bcb142e1828ac
  FEATURE-Convert.md sha256=b9a9524694e7045850a60e91d48fa111517855dc7e2a8c9b017079225455f1d1 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=630b4f2d6b392bea9e224a9e291a1d12ecc2621efd82fb3f5a9322705d8109b9
  FEATURE-Currencies.md sha256=b9f0917e6f35f82637e8e7df00664a575b2faeb98e747ace81f178d25c02ef2b commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=69ab6cf92996021444712eea15024abf6bbdbff51fb5b6b7dcc99c4b0cd45281
  FEATURE-Fetch.md sha256=c61633194be5b502c39ad08f4f02c7084a3999aad519fd26f06728d3ce8f22a0 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-4 applied_at=2026-10-26T20:55:31+00:00 build_sha256=5cae160fc81ce594422941aa87fb2a62bf97b4ad7a586d68b3105658cae25369
  FEATURE-Grader.md sha256=6de5d46f6d49b6d255ee23a8ed6d28c3c681e4b5163e4009cc9ce4ae7903dd63 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-6 applied_at=2026-10-26T21:16:01+00:00 build_sha256=9fb34a127e2ddee148bdbf83a7e63e4f71bcd4923cad81bf94fa6f5fbef9528d
  FEATURE-Health.md sha256=da50c121428250068966dd0d0ff3cc6af37d87d0be357d07857d2ee617230719 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=b1257d7d7ec4359cad55ffc91675e7f3cd10b09236b5cea6e0cb20d170be4d78
  FEATURE-History.md sha256=6fe2d3dfd1c35dc551888a7ec4870ae23f8f85333e9b69cb5fadf6b3f6c48b62 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=da4e5269a391ec89c037296b0680d4ae89132ed92535009c2d7f9d68b7305c91
  FEATURE-Init.md sha256=c882b36c452bb2cf6bc42f4dc5b3acf1400643986ae2c66f9d6aca65733b40fe commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=ad751ba45dab1f75f0f8a50e34dd50303fd71a8559fcd172a00b8af424ac154d
  FEATURE-LatestRates.md sha256=c0f5d5f04880783dcf6ea173afb9ba2110e0c1d5e8d58f29fe7f2f5f32f2116a commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=d36d1c0e47ca7493737c039979ca763c5f9f89b39f56b9e09c8ecb39ffde9b2e
  FEATURE-Load.md sha256=a841aebcf20cf719019ab128b9e45c751a66da5b926ddc628eb5bb273c442121 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=d393f93cd67fe88acde60f6dba349fbccdc35ec90aa5987cb24151ac513eb38f
  FEATURE-Rates.md sha256=3e083320f6358aca460d8cfed70bc1490501ec9c34fe962294099de5f0bf495a commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=9f207b88e12af9cbc0bcc2f1fc2f9073d36af177f1b6771f4bd3d498b9749559
  FEATURE-Stats.md sha256=846bb52c706a8ddfc844e4de2d5764820663eef35e91b6c82f70c7a5bb219e89 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=7f1487e829c36f3c943768fc2ec25074be801d8da8db611ea23d0e13d368f82e
  FEATURE-Tests.md sha256=3644a3f97befdce7b51f58938d2f334618e6939c71c2e02973e887cca930ac75 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-5 applied_at=2026-10-26T21:07:17+00:00 build_sha256=2e41eef7e5225eb1685c90c8b063b5a59d9c258e6de8b54059e1ea060ef3c2ee
  eurofxref-hist_2025-01.csv sha256=a77de17e0b3c0b73f16805c200496298dae39e44c01bf6726f6c413d1634decf commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=a77de17e0b3c0b73f16805c200496298dae39e44c01bf6726f6c413d1634decf
  eurofxref-hist_2025-02-03_04.csv sha256=91c942eee600dc1dccaffd15bd2917625813d2050487be5de720ead2fc3e0d05 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=91c942eee600dc1dccaffd15bd2917625813d2050487be5de720ead2fc3e0d05
  eurofxref-hist_bad.csv sha256=91c5c0ffeacc455ee6e2e4f6c33996985d91f8a1bb6a1f35897660f3037d7b5e commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-3 applied_at=2026-10-26T20:51:20+00:00 build_sha256=91c5c0ffeacc455ee6e2e4f6c33996985d91f8a1bb6a1f35897660f3037d7b5e
  run.sh sha256=f0d6092c076f758abe72e7f0130422f3a1fbdcaa84e33eed747352af311efae7 commit=adf58027759cc0fd06ea2e33da95409452f1f547 applied_by=block-6 applied_at=2026-10-26T21:16:01+00:00 build_sha256=f0d6092c076f758abe72e7f0130422f3a1fbdcaa84e33eed747352af311efae7
## story 1: Define application modules and their ownership boundaries.
id:           architecture
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-1.md
summary:      Define application modules and their ownership boundaries.
type:         foundational
kind:         capability
phase:        1
block:        1
implements:   ARCHITECTURE.md
instructions: |
  Define the application module layout and ownership boundaries for configuration, CLI, API,
  services, and persistence. Application code must use the shipped persistence library and
  generated relational layer for all database access. Keep ECB parsing and validation in the
  load workflow, exact decimal arithmetic in the rate service, and HTTP handling in the API
  layer. Document the selected technologies and their roles from TECHNOLOGY_STACK.md.
stack:        common.md, python.md
stack_mode:   builder
size:         4102
provides:     application module boundaries
acceptance:   yes
state: closed/implemented

## story 2: Declare the rates schema and generated repository contract.
id:           database
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-2.md
summary:      Declare the rates schema and generated repository contract.
type:         foundational
kind:         capability
phase:        1
block:        2
implements:   DATABASE.md
instructions: |
  Declare the rates table with a unique (date, currency) key and text columns for date,
  currency, and the ECB-published rate. Declare the repository operations required to insert or
  replace rates, query rates by date, select the effective publication date, count dates and
  rates, list currencies, retrieve currency history over optional inclusive bounds, and find
  the latest publication. Use only operations supported by the generated persistence contract.
  Include executable acceptance for every declared repository operation.
stack:        common.md, python.md, persistence.md, sqlite.md
stack_mode:   builder
size:         11428
provides:     rates repository operations
acceptance:   yes
state: closed/implemented

## story 3: Establish the FastAPI application and test client.
id: app_server
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-2.md
summary: Establish the FastAPI application and test client.
type: foundational
kind: capability
phase: 1
block: 2
implements: FEATURE-AppServer.md
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md
stack_mode: builder
size: 6931
provides: create_app(), app_server.testing.web_client()
instructions: |
  Establish app_server.main.create_app() returning a FastAPI application and the module-level
  app used by uvicorn. Provide app_server.testing.web_client() as the published in-process test
  client callable. Do not implement endpoints owned by later stories.
acceptance: yes
state: closed/implemented

## story 4: Establish the fxrates executable and CLI entry point.
id: cli
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-2.md
summary: Establish the fxrates executable and CLI entry point.
type: foundational
kind: capability
phase: 1
block: 2
implements: FEATURE-CLI.md
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, cli.md
stack_mode: builder
size: 7982
provides: ./fxrates, ./fxrates init, ./fxrates load, ./fxrates fetch, ./fxrates serve, cli.testing.cli_runner()
instructions: |
  Establish the executable at the application root and the published cli.main(argv) and
  cli.testing.cli_runner() interfaces. Route commands to their owning capabilities; do not
  claim command behavior before those stories implement it. Keep diagnostics on standard error.
  Declare the usage and operational error conventions used by the command implementations.
acceptance: yes
state: closed/implemented

## story 5: Validate and load ECB CSV history files atomically.
id: load
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Validate and load ECB CSV history files atomically.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Load.md
covers: LOAD-002
accepts: st-003
context: eurofxref-hist_2025-01.csv, eurofxref-hist_2025-02-03_04.csv, eurofxref-hist_bad.csv, ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, sqlite.md
stack_mode: consumer
size: 8544
provides: ./fxrates load, ECB CSV validation and loading
consumes: ./fxrates, rates repository operations
instructions: |
  Implement load as a complete validation pass followed by writes only if the entire file is
  valid. Parse the ECB CSV header and rows, ignore the trailing empty field, validate three-letter
  uppercase currency codes, real non-repeated YYYY-MM-DD dates, exact field counts, and values
  matching [0-9]+(\.[0-9]+)? that are not zero. Ignore N/A values. Store all other rate strings
  exactly as published and replace an existing rate for the same date and currency. On rejection,
  write nothing and return the rejected-file exit status. On success, report the number of dates
  with at least one stored rate and the number of rates stored from the file.
acceptance: yes
depends: cli, database
state: closed/implemented

## story 6: Initialize an empty rates store.
id: init
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Initialize an empty rates store.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Init.md
covers: LOAD-001
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, sqlite.md
stack_mode: consumer
size: 7361
provides: ./fxrates init
consumes: ./fxrates, rates repository operations
instructions: |
  Implement init to drop the rates table if present and create it empty using the persistence
  boundary. It prints nothing on success.
acceptance: yes
depends: cli, database
state: closed/implemented

## story 7: List currencies that have stored rates.
id: api_currencies
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: List currencies that have stored rates.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Currencies.md
covers: API-003
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md, sqlite.md
stack_mode: consumer
size: 8273
provides: GET /currencies
consumes: create_app(), rates repository operations
instructions: |
  Implement GET /currencies with EUR as base and the currencies that have at least one stored
  rate, sorted in ascending order.
acceptance: yes
depends: app_server, database
state: closed/implemented

## story 8: Retrieve rates from the latest publication.
id: api_latest
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Retrieve rates from the latest publication.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-LatestRates.md
covers: API-005
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md, sqlite.md
stack_mode: consumer
size: 8292
provides: GET /rates/latest
consumes: create_app(), rates repository operations
instructions: |
  Implement GET /rates/latest using the latest publication and its stored rates. Identify the
  request as "latest" and return 404 if the store has no publication.
acceptance: yes
depends: app_server, database
state: closed/implemented

## story 9: Report stored rate statistics.
id: api_stats
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Report stored rate statistics.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Stats.md
covers: API-002
accepts: st-008
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md, sqlite.md
stack_mode: consumer
size: 8442
provides: GET /stats
consumes: create_app(), rates repository operations
instructions: |
  Implement GET /stats with date and rate counts and the first and last publication dates.
  Return null bounds when the store contains no publication dates. Derive all values from
  repository queries.
acceptance: yes
depends: app_server, database
state: closed/implemented

## story 10: Retrieve rates by effective date.
id: api_rates
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Retrieve rates by effective date.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Rates.md
covers: API-004
accepts: st-005, st-007
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md, sqlite.md
stack_mode: consumer
size: 8465
provides: GET /rates/{date}
consumes: create_app(), rates repository operations
instructions: |
  Implement GET /rates/{date}. Validate that the path value is a real YYYY-MM-DD date and
  return 422 for malformed dates. Resolve the latest publication date on or before the request;
  return 404 if none exists. Return every stored rate for the effective date as its published
  text, with the requested date and EUR base in the response.
acceptance: yes
depends: app_server, database
state: closed/implemented

## story 11: Retrieve currency history and summary statistics.
id: history
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Retrieve currency history and summary statistics.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-History.md
covers: HISTORY-001
accepts: st-006, st-007
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md, sqlite.md
stack_mode: consumer
size: 8841
provides: GET /history/{code}
consumes: create_app(), rates repository operations
instructions: |
  Implement GET /history/{code} with optional inclusive start and end dates. Malformed bounds
  return 422. Return publication points in ascending date order, preserving stored rate text.
  For a currency with no stored rate at all, return 404, including EUR. For a currency with
  history but no points in the selected range, return count zero, null min/max/mean, and an empty
  points list. Compute min and max by numeric value and compute the exact Decimal mean rounded
  half-even to six decimal places.
acceptance: yes
depends: app_server, database
state: closed/implemented

## story 12: Convert amounts between currencies.
id: convert
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Convert amounts between currencies.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Convert.md
covers: CONVERT-001
accepts: st-006, st-007
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md, sqlite.md
stack_mode: consumer
size: 8942
provides: GET /convert
consumes: create_app(), rates repository operations
instructions: |
  Implement GET /convert with required from, to, and amount parameters and an optional date.
  Validate amount against [0-9]+(\.[0-9]+)? and validate any supplied date as a real
  YYYY-MM-DD date; malformed or missing parameters return 422. Without a date, use the latest
  publication. Otherwise resolve the effective publication date on or before the request.
  Return 404 when there is no effective publication or a requested non-EUR currency lacks a
  rate on that date. EUR has implicit rate 1. Use Decimal only. Compute the response rate as
  rate(to) / rate(from), rounded half-even to six decimal places, and compute result directly
  from the unrounded stored rates and amount, rounded half-even to two decimal places. Emit
  both values with fixed decimal places and echo the amount text unchanged.
acceptance: yes
depends: app_server, database
state: closed/implemented

## story 13: Serve the health endpoint.
id: api_health
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Serve the health endpoint.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-Health.md
covers: API-001
accepts: st-004
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, fastapi.md
stack_mode: consumer
size: 6121
provides: GET /health
consumes: create_app()
instructions: Implement GET /health returning status 200 and the JSON object {"status":"ok"}.
acceptance: yes
depends: app_server
state: closed/implemented

## story 14: Report CLI usage and operational errors.
id: cli_errors
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-3.md
summary: Report CLI usage and operational errors.
type: service
kind: capability
phase: 1
block: 3
implements: FEATURE-CLI-Errors.md
covers: CLI-001
accepts: yes
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, cli.md
stack_mode: consumer
size: 7328
provides: CLI usage and error exit behavior
consumes: ./fxrates
instructions: |
  Implement shared CLI error behavior: unknown commands, wrong argument counts, and a non-integer
  port return exit status 2; operational file read failures return 1; rejected CSV files return
  3. Failed commands produce no standard output and write a diagnostic line to standard error.
acceptance: no
depends: cli
state: closed/implemented

## story 15: Download and load the ECB history archive.
id: fetch
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-4.md
summary: Download and load the ECB history archive.
type: service
kind: capability
phase: 1
block: 4
implements: FEATURE-Fetch.md
covers: LOAD-003
accepts: st-010
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md, sqlite.md
stack_mode: consumer
size: 7714
provides: ./fxrates fetch
consumes: ./fxrates load, ECB CSV validation and loading
instructions: |
  Download the ECB history ZIP from the specified ECB URL, extract eurofxref-hist.csv, and
  process it through the same validation, persistence, and reporting behavior as load. A download
  failure returns exit status 1, emits no standard output, and writes a diagnostic to standard
  error. Keep tests offline by replacing the download operation with a stub.
acceptance: yes
depends: load
state: closed/implemented

## story 16: Provide the offline pytest suite and test launcher.
id: tests
finding: ADVISORY: implemented, not verified — every binding criterion this story passed was already green before the story built, so none measured the work. Repair the criteria in the Blueprint to exercise this story and rebuild to obtain a verdict.
evidence: evidence/block-5.md
summary: Provide the offline pytest suite and test launcher.
type: service
kind: test harness
phase: 1
block: 5
implements: FEATURE-Tests.md
covers: TEST-001
accepts: st-002, st-009, st-010
context: ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md
stack_mode: consumer
size: 5634
provides: bin/test.sh
consumes: ./fxrates, cli.testing.cli_runner(), app_server.testing.web_client(), rates repository operations
instructions: |
  Provide a POSIX-compatible bin/test.sh that runs the project's pytest suite from the application
  root and exits zero only when every test passes. The suite must run offline and cover commands,
  CSV validation and atomicity, API endpoints, effective dates, decimal rounding, and error
  statuses. Stub the fetch download and cover both successful loading and a failed download that
  returns exit status 1.
acceptance: yes
depends: cli, app_server, database, load, fetch, init, api_health, api_stats, api_currencies, api_rates, api_latest, convert, history, cli_errors
state: closed/implemented

## story 17: Verify complete supplied grader conformance.
id: grader
finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it.
evidence: evidence/block-6.md
summary: Verify complete supplied grader conformance.
type: service
kind: test harness
phase: 1
block: 6
implements: FEATURE-Grader.md
covers: TEST-002
accepts: st-001
context: run.sh, ARCHITECTURE_compact.md, DATABASE_compact.md
stack: common.md, python.md
stack_mode: consumer
size: 7836
provides: complete supplied grader verification
instructions: |
  Run the staged, unmodified sources/run.sh as the terminal project verification. Its exit status
  is the sole acceptance verdict. Do not filter or reinterpret its checks.
acceptance: yes
depends: architecture, database, app_server, cli, load, fetch, init, api_health, api_stats, api_currencies, api_rates, api_latest, convert, history, cli_errors, tests
state: closed/implemented
