Run artifact

workspace/targets/toml/ANALYSIS.md

Blueprint Analysis: toml

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: Architecture and Decoder Contract

IDStoryHigh-level AC
ARCHITECTURE-001Establish the standard-library-only Go module and decoder commandThe module builds successfully and declares no third-party dependencies.
ARCHITECTURE-002Implement the stdin, stdout, stderr, and exit-status filter contractValid TOML produces tagged JSON on stdout with no diagnostic output; invalid TOML produces a diagnostic on stderr and exits non-zero.

Feature: TOML Strings

IDStoryHigh-level AC
STRINGS-001Parse basic and literal stringsBasic and literal strings, including required escapes and Unicode, are decoded according to TOML 1.0.0.
STRINGS-002Parse multiline basic and literal stringsMultiline strings support delimiter, trimming, newline, continuation, quote, and control-character rules from TOML 1.0.0.

Feature: Lexical Scalars

IDStoryHigh-level AC
SCALARS-001Parse booleans and integersBoolean and signed, decimal, hexadecimal, octal, and binary integer values are accepted and represented losslessly.
SCALARS-002Parse floating-point valuesDecimal, exponent, underscore, signed-zero, infinity, and NaN forms are parsed according to TOML 1.0.0.

Feature: Lexical Boundaries

IDStoryHigh-level AC
LEXICAL-001Parse comments, whitespace, and line endingsComments and permitted whitespace/newline forms are handled without changing string contents.
LEXICAL-002Reject invalid encoding and prohibited control charactersInvalid UTF-8 and prohibited control characters are rejected in the applicable TOML contexts.

Feature: Keys and Definitions

IDStoryHigh-level AC
KEYS-001Parse bare, quoted, and dotted keysAll supported key forms produce the required nested object structure.
KEYS-002Enforce key-definition and redefinition semanticsDuplicate keys and attempts to redefine values or non-extensible structures are rejected.

Feature: Tables

IDStoryHigh-level AC
TABLES-001Parse standard tables and implicit parent tablesTable headers, dotted table paths, empty tables, and implicit parents produce the required object structure.
TABLES-002Enforce table ordering and redefinition rulesRepeated or conflicting table definitions are rejected while valid ordering cases are accepted.
TABLES-003Parse arrays of tables and nested table pathsArrays of tables, their most-recent-element targeting, nested tables, and conflict rules are handled correctly.

Feature: Arrays and Inline Tables

IDStoryHigh-level AC
ARRAYS-001Parse arrays and nested arraysArrays support mixed values, nesting, multiline layout, comments, and permitted trailing commas.
ARRAYS-002Parse inline tablesInline tables support nested keys and values while rejecting prohibited newlines and trailing commas.
ARRAYS-003Enforce inline-table closure and array conflictsInline tables cannot be extended later, and static-array/table conflicts are rejected.

Feature: Datetimes

IDStoryHigh-level AC
DATETIMES-001Parse offset and local date/time valuesOffset datetime, local datetime, local date, and local time forms are validated and emitted with the required tagged types and formatting.
DATETIMES-002Enforce datetime precision and invalid-form rulesInvalid dates/times and unsupported precision behavior are rejected or truncated as required by TOML 1.0.0.

Feature: Complete Conformance

IDStoryHigh-level AC
CONFORMANCE-001Verify complete TOML 1.0.0 conformanceSuite: full — the supplied unfiltered conformance command exits zero with every supplied valid and invalid case passing.

Surfaced Acceptance Criteria

IDStory IDCriterion
AC-001ARCHITECTURE-002The decoder takes no arguments, reads TOML only from stdin, writes tagged JSON only to stdout on success, and writes diagnostics only to stderr on failure.
AC-002STRINGS-001Every decoded TOML value is represented with a TOML type tag and a JSON string value, including string scalar values.
AC-003SCALARS-001Integer values are handled losslessly across the supported signed 64-bit range.
AC-004DATETIMES-001Offset datetimes are emitted as RFC 3339 values; local datetime, date, and time values omit unavailable offset/date components.
AC-005CONFORMANCE-001The complete verification uses sources/full_test.sh without filtering, skipping, or reinterpretation.

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_contract.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/INSTRUCTIONS.mdinstruction-to-testsources/full_test.shDefines the decoder contract and sole scoring entry point.Build the exact cmd/toml-decoder boundary and preserve the supplied test command.
sources/toml-v1.0.0.mdreference-to-replacementinternal/tomlNormative syntax and semantic rules define the parser behavior.Implement the parser from the specification without third-party TOML modules.
sources/full_test.shtest-kit-to-implementationcmd/toml-decoderBuilds the executable and invokes the complete harness.Keep the command path and buildability stable.
sources/run_conformance.shtest-kit-to-implementationcmd/toml-decoderPipes the suite into DECODER and uses exit status as verdict.Ensure stdin/stdout behavior is compatible with the harness.
sources/stage_contract.shtest-kit-to-implementationcmd/toml-decoderVerifies architecture and valid/invalid decoder behavior.Satisfy the focused build and contract gates before conformance.
sources/stage_test.shtest-kit-to-implementationparser feature storiesRuns bounded toml-test slices.Each implementation story uses only its owned scoped suite.
sources/setup_harness.shtest helpersources/run_conformance.shInstalls the pinned upstream harness version.Stage it as setup context; do not make runtime parsing depend on network access.

Source Roles

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

Planning Instructions

Delivery Shape

The product is a command-line filter. It accepts a UTF-8 TOML document on stdin, parses it into an internal representation, emits tagged JSON on stdout, and reports invalid input through stderr with a non-zero exit status. Verification proceeds through focused stage contracts and feature slices, followed by one unfiltered complete-suite gate.

Story Realization Map

Story IDBlueprint scopeEvidenceRelated filesDelivery kind
ARCHITECTURE-001Go module and command scaffoldsources/INSTRUCTIONS.mdgo.mod, cmd/toml-decodercapability, acceptance contract
ARCHITECTURE-002Decoder I/O and tagged encodingsources/INSTRUCTIONS.md, sources/stage_contract.shcmd/toml-decoder, internal/tomlcapability, acceptance contract
STRINGS-001Basic/literal string lexer and decodersources/toml-v1.0.0.mdinternal/tomlcapability
STRINGS-002Multiline string lexer and decodersources/toml-v1.0.0.mdinternal/tomlcapability
SCALARS-001Boolean and integer parsingsources/toml-v1.0.0.mdinternal/tomlcapability
SCALARS-002Float parsingsources/toml-v1.0.0.mdinternal/tomlcapability
LEXICAL-001Comments, whitespace, and line handlingsources/toml-v1.0.0.mdinternal/tomlcapability
LEXICAL-002UTF-8 and control validationsources/toml-v1.0.0.mdinternal/tomlcapability
KEYS-001Key parsing and nested assignmentsources/toml-v1.0.0.mdinternal/tomlcapability
KEYS-002Duplicate and redefinition validationsources/toml-v1.0.0.mdinternal/tomlcapability
TABLES-001Standard and implicit tablessources/toml-v1.0.0.mdinternal/tomlcapability
TABLES-002Table lifecycle validationsources/toml-v1.0.0.mdinternal/tomlcapability
TABLES-003Arrays of tablessources/toml-v1.0.0.mdinternal/tomlcapability
ARRAYS-001Arrays and nested arrayssources/toml-v1.0.0.mdinternal/tomlcapability
ARRAYS-002Inline tablessources/toml-v1.0.0.mdinternal/tomlcapability
ARRAYS-003Closure and conflict validationsources/toml-v1.0.0.mdinternal/tomlcapability
DATETIMES-001Datetime parsing and tagged formattingsources/toml-v1.0.0.mdinternal/tomlcapability
DATETIMES-002Datetime validation and precisionsources/toml-v1.0.0.mdinternal/tomlcapability
CONFORMANCE-001Full unfiltered suitesources/full_test.sh, sources/run_conformance.shsources/*, cmd/toml-decoderconformance acceptance contract

Test and Acceptance Strategy

Implementation stories use focused unit tests and bounded sources/stage_test.sh slices where applicable; no implementation story runs the complete suite. ARCHITECTURE-001 and ARCHITECTURE-002 use the corresponding stage_contract.sh modes. CONFORMANCE-001 is the sole terminal story and runs sh sources/full_test.sh with Suite: full.

Sequencing and Dependencies

Build the module and decoder boundary first. Implement lexical values before keys and document structure. Implement keys before tables, arrays, and inline-table semantics. Implement all parser capabilities before datetime completion and the terminal conformance story. The harness must be available before verification; no network access is required during parsing or final execution after harness setup.

Source Conflicts and Gaps

No cross-source conflicts or blockers were found. The only open item is Commander confirmation of the proposed project identity. Deployment, persistence, authentication, and UI workflows are not applicable to the stdin/stdout CLI parser described by the sources.

Analysis Notes

generated: 2026-08-16T00:00:00-04:00 blueprint: /mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260816.121804/workspace/targets/toml/blueprint

Quality: Questions blockers: 0 questions: 1 features: 9 stories: 19 stack: Go standard library display_name: TOML 1.0.0 Parser short_description: A standard-library-only Go command-line filter that parses TOML 1.0.0 into tagged JSON.

None.