Run artifact

workspace/targets/toml/ANALYSIS.md

Blueprint Analysis: TOML 1.0.0 Parser

Commander Expectations

Crew

CrewCharge
CommanderDefines intent and decides what done means.
Team LeadConfirms epic completeness and stakeholder expectations.
Planning CrewAuthors atomic specifications and the ordered Manifest.
Shipyard CrewBuilds the tickets without synchronous Commander access.

Story List

Feature: Decoder Contract

IDStoryHigh-level AC
DECODER-001Build the TOML decoder commandcmd/toml-decoder reads TOML from stdin, emits tagged JSON on stdout, and exits zero for valid input.
DECODER-002Report invalid inputInvalid TOML produces a diagnostic on stderr and a non-zero exit without emitting a successful result.
DECODER-003Encode parsed values as tagged JSONTables, arrays, and all supported TOML values use the required JSON structure and string-valued payloads.

Feature: TOML Lexical Values

IDStoryHigh-level AC
LEXICAL-001Parse TOML stringsBasic, multiline basic, literal, and multiline literal strings follow TOML 1.0.0 escaping, trimming, UTF-8, and control-character rules.
LEXICAL-002Parse numbers and booleansDecimal, hexadecimal, octal, binary, floating-point, special float, and boolean values follow TOML 1.0.0 syntax and lossless integer requirements.
LEXICAL-003Parse date and time valuesOffset datetime, local datetime, local date, and local time values are recognized and encoded using the required representations.
LEXICAL-004Process whitespace and commentsWhitespace, line endings, comments, and continuation rules are handled without altering valid values or accepting prohibited control characters.

Feature: Keys and Key-Value Semantics

IDStoryHigh-level AC
KEYS-001Parse bare, quoted, and dotted keysKey forms and whitespace around dotted components produce the required nested structure.
KEYS-002Enforce key definition rulesDuplicate keys, invalid keys, and attempts to turn scalar or closed structures into tables are rejected.

Feature: Arrays and Inline Tables

IDStoryHigh-level AC
STRUCTURES-001Parse arraysNested, mixed-type, multiline, commented, empty, and trailing-comma arrays are parsed correctly.
STRUCTURES-002Parse inline tablesNested inline tables and dotted keys are parsed, while multiline and trailing-comma violations are rejected.
STRUCTURES-003Enforce inline-table closureKeys and subtables cannot be added outside an already-defined inline table.

Feature: Tables

IDStoryHigh-level AC
TABLES-001Parse standard tablesExplicit and implicitly created tables, including empty and nested tables, are represented correctly.
TABLES-002Enforce table redefinition rulesDuplicate tables and conflicts between tables, values, and arrays are rejected.
TABLES-003Parse arrays of tablesArray-of-table headers create ordered table elements and support nested tables and nested arrays of tables.
TABLES-004Enforce array-of-table ordering rulesInvalid parent ordering and conflicts with statically defined arrays or normal tables are rejected.

Feature: Conformance Verification

IDStoryHigh-level AC
CONFORMANCE-001Run the complete TOML conformance suiteSuite: full — the supplied sources/full_test.sh exits zero with every supplied valid and invalid case passing.

Surfaced Acceptance Criteria

IDStory IDCriterion
AC-001DECODER-001The program accepts no arguments, has no configuration or side effects, and operates as a stdin/stdout filter.
AC-002DECODER-003Offset datetimes use RFC 3339 encoding; local datetimes omit the offset; local dates and times use their date and time representations.
AC-003LEXICAL-001The parser accepts only valid UTF-8 documents and rejects prohibited control characters and invalid string escapes.
AC-004LEXICAL-002Integers are handled losslessly across the supported signed 64-bit range.
AC-005CONFORMANCE-001The complete suite is invoked unfiltered, and its exit status is the acceptance verdict.

Source Inventory

PathContent kindDispositionReason
sources/INSTRUCTIONS.mdmarkdownanalyzedreadable UTF-8
sources/full_test.shcodeanalyzedreadable UTF-8
sources/run_conformance.shcodeanalyzedreadable UTF-8
sources/setup_harness.shcodeanalyzedreadable UTF-8
sources/stage_test.shcodeanalyzedreadable UTF-8
sources/toml-v1.0.0.mdmarkdownanalyzedreadable UTF-8

Relationship Model

Source or groupRelationship typeRelated source or groupEvidenceDelivery implication
sources/toml-v1.0.0.mdinstruction-to-testsources/run_conformance.shThe specification defines TOML 1.0.0 behavior; the harness runs toml-test test -toml 1.0.Implementation stories must follow the specification and use scoped conformance slices.
sources/full_test.shtest-kit-to-implementationcmd/toml-decoderThe script builds ./cmd/toml-decoder and supplies it through DECODER.The decoder command must exist before terminal verification.
sources/run_conformance.shtest-kit-to-implementationcmd/toml-decoderThe harness pipes TOML to the configured decoder and checks valid and invalid outcomes.Decoder process behavior is an integration contract.
sources/stage_test.shtest-kit-to-implementationparser featuresThe stage gate accepts a -run pattern for one owned suite slice.Feature stories may run bounded conformance patterns.
sources/setup_harness.shdependencytoml-testThe setup script installs the pinned v2.2.0 harness.Harness installation is an external prerequisite, not parser functionality.

Source Roles

PathRolePlan dispositionBuild disposition
sources/INSTRUCTIONS.mdauthor intentcompassprompt-only
sources/full_test.shconformance harnesscontextstage
sources/run_conformance.shconformance harnesscontextstage
sources/setup_harness.shtest helpercontextstage
sources/stage_test.shconformance harnesscontextstage
sources/toml-v1.0.0.mdnormative specification and conformance test suitecontextprompt-only

Planning Instructions

Delivery Shape

Deliver a Go command-line filter with an internal TOML parser. It consumes UTF-8 TOML on stdin and produces tagged JSON on stdout, or a diagnostic and non-zero exit for invalid input. The staged shell harness builds the command and executes the pinned upstream TOML 1.0.0 conformance suite.

Story Realization Map

Test and Acceptance Strategy

Parser stories use focused unit tests and bounded toml-test patterns through sources/stage_test.sh, declaring Suite: scoped. Decoder contract stories use process-level stdin, stdout, stderr, and exit-code tests. CONFORMANCE-001 is the sole terminal story declaring Suite: full; it runs sh sources/full_test.sh unfiltered and gates on the harness exit status.

Sequencing and Dependencies

Create the Go module and decoder contract first. Implement lexical values before composite structures, then keys and table semantics, followed by scoped conformance verification. Build the decoder before any harness execution. Install the pinned toml-test binary before acceptance. CONFORMANCE-001 depends on every parser and decoder story.

Source Conflicts and Gaps

No conflicting product definitions were found. Product identity is proposed for Commander confirmation because the metadata fields are blank. The source does not define a separate deployment target; the inferred target is local command-line execution.

Analysis Notes

generated: 2026-08-14 blueprint: /mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/workspace/targets/toml/blueprint

Quality: Questions blockers: 0 questions: 1 features: 6 stories: 18 stack: Go display_name: TOML 1.0.0 Parser short_description: A Go command-line parser that converts TOML 1.0.0 from stdin into tagged JSON and rejects invalid documents.

None.