Run artifact

evidence/prompts/20261028.150839.078Z_jq_lineage_attribute_codex.prompt.md

Attribute Stories to Source Requirements

You are the lineage attribution agent. You are given one imported source file and the complete list of stories that already exist for this Target. Identify the distinct requirements the source states, and for each one name the stories that implement it.

This is a matching task against a closed set. Every story you may name is listed in <stories>. You are not decomposing work, proposing new stories, or judging whether the existing stories are correct.

Method

  1. Read the source and identify each distinct requirement it states. A requirement is a thing the

system must do, at whatever granularity the author wrote it. One sentence may state one requirement that several stories implement — for example "add a table and show it on screen" is one requirement implemented by a schema story, a route story, and a view story. Do not split a requirement to make the mapping tidier, and do not merge two requirements that a reader would act on separately.

  1. Give each requirement a short kebab-case name that describes it. The name is an identifier, not

a summary: mark-book-read, not the-reader-can-mark-a-book-as-read.

  1. For each requirement, list every story that implements any part of it. A story may implement

more than one requirement; a requirement may need more than one story.

  1. List any story that implements no requirement in the source as <unattached>. This is expected

and correct for foundational work — application scaffolding, configuration, shared UI framing, test harnesses — that the author never asked for by name. Do not force such a story onto an unrelated requirement.

Rules

Output

<requirement name="add-remove-books" stories="add-book,remove-book,database">
The reader can add a book with a title and author, view the books in the order added, and remove a book.
</requirement>
<requirement name="reject-empty-fields" stories="validate-book">
An empty title or author is rejected with a clear error message.
</requirement>
<unattached story="architecture"/>
<unattached story="ui-general"/>

Attribution job

<source name="exclusions.txt">

exclusions.txt — corpus cases this kit cannot run, and why.

#

The corpus in sources/jq.test is byte-for-byte upstream and is never edited. Where a case

cannot run under this kit's harness, it is named here instead, so every skip is visible,

reasoned, and auditable against the upstream file. This file is a scoring asset: it is

hash-verified against the import and restored before grading.

#

One verbatim program line per entry. An entry that matches no case in the corpus is a hard

error (exit 2), not a shrug — a silent no-op would quietly re-admit a case the kit cannot run

if the corpus pin ever moved.

#

Nothing is excluded for being hard. The module-loader cases below are excluded because the

kit physically cannot deliver their inputs, not because the semantics are difficult.

--------------------------------------------------------------------------------------------

Module loading from disk.

#

These cases resolve import and include against a module search path supplied by jq's -L

flag, reading roughly twenty fixture files spread across nested directories upstream

(tests/modules/{b,c,lib/jq/e,home2/.jq,...}). Drydock copies a kit's declared sources into the

application flattened by basename, so that directory tree cannot be carried, and the interface

this kit fixes exercises no flag but -c.

#

Only the loader cases are excluded. The module grammar cases — module (.+1); 0,

module []; 0, include "a" (.+1); 0, include "a" []; 0, include "\ "; 0,

include "\(a)"; 0, and %::wat — remain in the scored set: they are parse errors that a

correct front end rejects without ever touching the filesystem.

--------------------------------------------------------------------------------------------

import "a" as foo; import "b" as bar; def fooa: foo::a; [fooa, bar::a, bar::b, foo::a] import "c" as foo; [foo::a, foo::c] include "c"; [a, c] import "data" as $e; import "data" as $d; [$d[].this,$e[].that,$d::d[].this,$e::e[].that]|join(";") import "data" as $a; import "data" as $b; def f: {$a, $b}; f include "shadow1"; e include "shadow1"; include "shadow2"; e import "shadow1" as f; import "shadow2" as f; import "shadow1" as e; [e::e, f::e] import "syntaxerror" as e; . import "test_bind_order" as check; check::check

modulemeta reports a module's declared dependencies and definitions. Its three cases take

the module name "c" as input and read tests/modules/c/c.jq from the search path, so they fail

for the same reason as the loader cases above.

modulemeta modulemeta | .deps | length modulemeta | .defs | length </source>

<stories> <story id="foundation" implements="ARCHITECTURE.md">Establish the Python application structure and interpreter boundaries.</story> <story id="corpus-staging" implements="FEATURE-CorpusStaging.md">Stage and validate the supplied conformance assets.</story> <story id="lexer" implements="FEATURE-Lexer.md">Tokenize jq programs including strings and interpolation.</story> <story id="parser" implements="FEATURE-Parser.md">Parse and statically validate jq programs.</story> <story id="core" implements="FEATURE-GeneratorCore.md">Evaluate basic filters as ordered generators.</story> <story id="constructors" implements="FEATURE-Collections.md">Construct and access jq arrays and objects.</story> <story id="operators" implements="FEATURE-Operators.md">Evaluate jq arithmetic and comparison operators.</story> <story id="control" implements="FEATURE-Control.md">Evaluate conditional and error-control expressions.</story> <story id="bindings" implements="FEATURE-Bindings.md">Support lexical bindings, destructuring, and user functions.</story> <story id="paths" implements="FEATURE-Paths.md">Generate and retrieve jq paths.</story> <story id="assignment" implements="FEATURE-Assignment.md">Update and delete values through jq paths.</story> <story id="loops" implements="FEATURE-GeneratorControl.md">Implement reductions and generator control.</story> <story id="conversion" implements="FEATURE-Conversion.md">Implement jq type and conversion builtins.</story> <story id="collection-builtins" implements="FEATURE-CollectionBuiltins.md">Implement array and object utility builtins.</story> <story id="strings" implements="FEATURE-Strings.md">Implement string and regular-expression builtins.</story> <story id="formats" implements="FEATURE-Formats.md">Implement jq format and encoding filters.</story> <story id="numeric" implements="FEATURE-Numeric.md">Implement mathematical and numeric edge-case builtins.</story> <story id="dates" implements="FEATURE-Dates.md">Implement jq date and time builtins.</story> <story id="traversal" implements="FEATURE-Traversal.md">Implement recursive traversal and streaming utilities.</story> <story id="io" implements="FEATURE-InputDiagnostics.md">Implement jq input, environment, and diagnostic filters.</story> <story id="sql" implements="FEATURE-SqlBuiltins.md">Implement SQL-style filters and builtin inventory.</story> <story id="cli" implements="FEATURE-Command.md">Deliver the standalone jq command interface.</story> <story id="documentation" implements="FEATURE-Documentation.md">Document the command and verification interface.</story> <story id="scoped-integration" implements="FEATURE-ScopedConformance.md">Execute the remaining cross-feature conformance slices.</story> <story id="terminal-verification" implements="VERIFICATION.md">Verify the completed interpreter against the scoring script.</story> </stories>