"""What a chunk's worker writes into its epic: a finding, filed as an issue, and a decision, appended to the description. A finding about one of the epic's goals is filed in the epic, and one about a repo's goals by that repo's rules (docs/decisions.md → `do-epic: drives one Jira epic …` → "Findings"). A decision that governs the epic goes under the description's ## Decisions, where the judge of each later chunk reads it.""" import typing from do_epic.backend.protocol import EpicStore from do_epic.epic_record import EpicRecord from failure import Failure from text_files.piped_text import piped # Three readers, seated as the human and as a chunk's worker, ranked four spellings of each flag: ` --file` came first, second and second, ahead of `--file `, `add` and `--finding`; `--record-decision` won 2-1 over `--decision`, since `--decide` reads as do-epic deciding. FILE = "--file" LABEL = "--label" RECORD_DECISION = "--record-decision" USAGE = f"""do-epic {FILE} [{LABEL}