Commit Graph

99 Commits

Author SHA1 Message Date
David Baity
b850eb5338 fix: remove requires block from book_chapter -- context vars from package step are optional 2026-04-15 18:56:47 -04:00
David Baity
3163053f25 fix: make Tool_WebSearcher step optional for resilience 2026-04-15 18:18:20 -04:00
David Baity
c621c4a803 fix: genesis uses openai/gpt-4o-mini to avoid gemini-flash-preview timeout 2026-04-15 02:21:06 -04:00
David Baity
65f0b03ebf fix: remove misplaced debug:true from genesis.yml schema, use nova agent
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-15 00:45:41 -04:00
David Baity
9263e92283 Fix adjudication template resolution -- add adjudication.yml 2026-04-11 12:28:14 -04:00
18fcd02a36 fix: remove Unicode chars from template 2026-04-09 23:03:49 +00:00
d642481f0a fix: remove Unicode chars from template 2026-04-09 23:03:48 +00:00
83f5eddf16 fix: remove Unicode chars from template 2026-04-09 23:03:46 +00:00
3ec14c1cb5 fix: remove Unicode chars from template 2026-04-09 23:03:45 +00:00
1032e89deb fix: remove Unicode chars from template 2026-04-09 23:03:44 +00:00
23b486cfca fix: remove Unicode chars from template 2026-04-09 23:03:43 +00:00
3cdbd4768d fix: remove Unicode chars from template 2026-04-09 23:03:41 +00:00
bbf47f1085 fix: remove Unicode chars from template 2026-04-09 23:03:40 +00:00
4b1c637939 fix: remove Unicode chars from template 2026-04-09 23:03:39 +00:00
1b8cb6684e fix: remove Unicode chars from template 2026-04-09 23:03:37 +00:00
faa956befd fix: remove Unicode chars from template 2026-04-09 23:03:36 +00:00
1b6b6c0397 fix: remove Unicode chars from template 2026-04-09 23:03:34 +00:00
c6671cb1fd fix: remove Unicode chars from template 2026-04-09 23:03:33 +00:00
3394595572 fix: remove Unicode chars from template 2026-04-09 23:03:32 +00:00
18c9d13e69 fix: remove Unicode chars from template 2026-04-09 23:03:31 +00:00
a56394a6d3 fix: remove Unicode chars from template 2026-04-09 23:03:30 +00:00
aae9370c61 fix: remove Unicode chars from template 2026-04-09 23:03:29 +00:00
e110f598db fix: remove Unicode chars from template 2026-04-09 23:03:28 +00:00
e15130d54b fix: remove Unicode chars from template 2026-04-09 23:03:28 +00:00
1d76880b29 fix: remove Unicode chars from template 2026-04-09 23:03:26 +00:00
314bb6565a fix: remove Unicode chars from template 2026-04-09 23:03:25 +00:00
39a14afa75 fix: remove Unicode chars from template 2026-04-09 23:03:23 +00:00
8a288c957c fix: remove Unicode chars from template 2026-04-09 23:03:22 +00:00
David Baity
20112eac6a feat: add debug:true to all templates; add LLM_LOG_DIR config 2026-04-09 14:38:11 -04:00
David Baity
99c4718baf updating 2026-04-06 21:51:34 -04:00
David Baity
4a7318bc53 Sprint 66g: template architecture -- company templates only, starter_pack, rename to lower_case_with_underscores
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 22:43:31 -04:00
David Baity
9c362b92f8 Strengthen chapter review quality gates
- chapter_review.yml: mandatory PROSE EVIDENCE section (3-5 verbatim quotes)
- CHARACTER VOICE AUDIT with per-constraint checks and violation quoting
- Score anchors (95-100/85-94/70-84/<70) to break rubber-stamp clustering
- MUST-FIX items require ORIGINAL quote + PROBLEM + FIX rewrite
- Adjudication: prose_evidence(35) specificity(30) voice_audit(20) coverage(15)
- chapter_roundtable.yml: require quoted evidence, add character_profiles check
2026-04-01 22:33:55 -04:00
David Baity
682454bc7b refactor: remove genre-specific chapter templates; all genres use book_chapter 2026-04-01 17:58:10 -04:00
David Baity
1675b87268 outline: populate bible/outline.md for crimson-vows and binding-thread 2026-04-01 16:53:28 -04:00
David Baity
15d8ac44d2 Reader Knows Rule: truncate outline at chapter N, character state from prev chapter
- book_chapter.yml PASS 0: Reader Knows Rule box, outline truncated at chapter_number_next,
  character state priority chain (RAG first, then prev-chapter traits, not final-book state)
- drafting.yml PASS 0: same rule applied, voice-only character profiles
- chapter_pass0_bible.yml (included by scifi/ya/romance/cozy genre templates): same fix
  All three reference {chapter_number_prev}, {chapter_number_next}, {chapter_ref_prev}
  which are now injected by OutlineSyncService.CreateChapterTaskAsync

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-31 17:34:12 -04:00
David Baity
1836ffcd75 Sprint 61k — Template & Pipeline Correctness Audit
- Fix {task.prompt} → {task.message} in all marketing templates (6 files)
- Add author_bio.yml and ad_copy.yml templates for crimson_leaf_marketing
- Add author_bio task_type to marketing_campaign.yml package schema
- Fix book_outline.yml: remove {prose_style} literal, add anti-truncation rule, fix scifi routing
- Fix InputFromUser.yml: echo full operator message in think output
- Fix planning.yml: add agent:Nova top-level field to lock chair
- Fix publishing genesis.yml: fix {task.message} variable and hardcode Nova title
- Add professional_title to AgentContext and build_state_map
- Increase _DEFAULT_MAX_RAG_CHARS from 4000 to 8000
- Fix adj_pass_rate=0.0: thread adjudication criteria through C# and Python

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 10:35:51 -04:00
PAE
9b4ea8f403 Bootstrap: scaffold templates/ 2026-03-30 07:05:01 +00:00
David Baity
b5ddd0506b Cleaned up 2026-03-28 20:36:24 -04:00
David Baity
68d58d3caf Cleaning up 2026-03-28 11:34:36 -04:00
David Baity
8734114885 fix: disable adjudication on roundtable (package step has no staging path, gets stuck at AdjudicationPending) 2026-03-28 03:52:45 -04:00
David Baity
d0305310bc fix: book_chapter spawn context - use {character_profiles|} fallback to handle missing var
Tasks fail at step 7:package when character_profiles is not in context_vars because the
spawn context check incorrectly reports {character_profiles} as an unresolved placeholder.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-28 03:20:24 -04:00
David Baity
d042a47856 PASS 3 bucket model: clean dies-in-chapter vs carried-dead 2026-03-25 17:50:55 -04:00
David Baity
efc8402d43 PASS 3 prose-first rule: character in prose = alive 2026-03-25 17:34:39 -04:00
David Baity
c8dfc1e4ee PASS 3: add future-chapter contamination guard to SECRET CARRY-FORWARD RULE
When writing ch-07, PASS 3 was reading character-state-ch-08 deliverables and
carrying 'Known secrets' from future chapters into the current state. Added
explicit FUTURE-CHAPTER CONTAMINATION GUARD: only use secrets from state files
whose chapter number is EARLIER than the current chapter being written.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-25 17:11:17 -04:00
David Baity
92311e9904 Fix PASS 3: MANDATORY CHECK and DEATH-FORWARD RULE respect author_intent retcon
The MANDATORY CHECK was rigidly applying DECEASED status from previous
character-state deliverables even when author_intent explicitly retconned
the character as alive. Similarly, the DEATH-FORWARD RULE had no exception
for author-directed resurrection/retcon.

Fixes:
- MANDATORY CHECK: add STEP 2 resurrection check -- if AUTHOR'S INTENT
  explicitly states character is ALIVE, skip DECEASED format entirely
- DEATH-FORWARD RULE: add EXCEPTION clause -- author_intent overrides
  previous state DECEASED status; prose is authoritative source of truth

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-25 17:03:11 -04:00
David Baity
1bc7440d32 Remove PASS 3 hardcoded Kaelen death from system prompt; add general future-death prohibition 2026-03-25 16:29:55 -04:00
David Baity
5987c4646a Remove hardcoded Kaelen Ch04 death — butterfly effect edit: Kaelen now dies in Ch09 2026-03-25 16:21:19 -04:00
42219085ee fix: strengthen DEATH-FORWARD rule — prevent relative/sibling resurrection in PASS 3 2026-03-25 17:47:43 +00:00
2efc2ab787 fix: add DEATH-FORWARD RULE to PASS 3 — prevents deceased chars getting living state 2026-03-25 17:14:27 +00:00
David Baity
89d472f6dc template: PASS 3 carry-forward rule for unresolved chapter secrets 2026-03-25 08:56:20 -04:00