Run artifact

evidence/prompts/20261023.145037.257Z_readinglist_lineage_attribute_claude.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="reading-list.md">

Reading List

Build a web application that keeps a list of books to read.

The reader can add a book with a title and author, view the books in the order added, and remove a book. An empty title or author is rejected with a clear error message.

The application includes automated tests for each behavior.

The completed application provides a POSIX-compatible bin/test.sh that runs the complete automated test suite from the application root. sh bin/test.sh exits zero only when every test passes. The final build story runs this command after every implementation story and preserves its command, exit code, standard output, and standard error as evidence. </source>

<stories> <story id="foundation" implements="ARCHITECTURE.md">Stand up the Python project root, environment, pytest runner, and application skeleton.</story> <story id="database" implements="DATABASE.md">Declare and provision the books table and its repository operations.</story> <story id="web-shell" implements="UI-GENERAL.md">Provide the shared page layout and register the web server wiring in the application factory.</story> <story id="add-book" implements="FEATURE-AddBook.md">Let a reader add a book with a title and an author.</story> <story id="list-books" implements="FEATURE-ListBooks.md">Present the stored books in the order they were added.</story> <story id="remove-book" implements="FEATURE-RemoveBook.md">Let a reader remove a book from the list.</story> <story id="reject-empty-title" implements="FEATURE-RejectEmptyTitle.md">Reject a submission whose title is empty and report the reason.</story> <story id="reject-empty-author" implements="FEATURE-RejectEmptyAuthor.md">Reject a submission whose author is empty and report the reason.</story> <story id="screen-reading-list" implements="SCREEN-ReadingList.md">Render the reading list page with the add form, rejection messages, and remove controls.</story> <story id="test-add-book" implements="FEATURE-AddBookTests.md">Provide automated pytest tests for adding a book.</story> <story id="test-list-books" implements="FEATURE-ListBooksTests.md">Provide automated pytest tests for listing books in the order added.</story> <story id="test-remove-book" implements="FEATURE-RemoveBookTests.md">Provide automated pytest tests for removing a book.</story> <story id="test-validation" implements="FEATURE-ValidationTests.md">Provide automated pytest tests for rejecting an empty title or author.</story> <story id="verification" implements="VERIFICATION.md">Provide the POSIX bin/test.sh runner and gate on the complete suite.</story> </stories>