2026-11-29 · openai/gpt-6-luna
3 seeds · build-doen, resume-builder · source: decisions
Seed 0
Escalations · 59 questions · chance: 36%
| Arm | Right | Right where no memory was wrong / reverse |
|---|---|---|
| stateless | 63% | |
| promoted | 70% | +6 / −2 |
| signals | 66% | +5 / −3 |
Final memories
build-doen · promoted
{
"index": "Doen captures durable human product intent\u2014not abstract engineering rules. Prioritize reasoning capture, grounded artifacts, then retrieval; preserve honest uncertainty and fix defects without weakening intent. Jev may draft/judge with calibrated confidence, not verify human behavior.\n- `principles`: product purpose and priorities.\n- `execution`: evidence, tests, gates, authoring.\n- `research-mcp`: research writes and MCP contract.\n- `learn-ui`: stage visibility.\n- `signals`: importance and scoring decisions.\n- `quality`: regression and fidelity tradeoffs.\n- `retrieval`: embedding migration.\n- `corpus`: autonomous rule maintenance boundaries.\n- `authoring`: initiative/spec editing rules.\n- `memory-learning`: live experiment, capture, confirmation, onboarding.",
"notes": {
"principles": "Doen is a shared spec framework for product engineers (designers, engineers, product owners), centered on one durable intent artifact, explicit constraint/discretion split, escalation of genuine intent calls, and useful precedent. Priorities: capture human reasoning during shaping (all 25 recorded decisions were agent-raised; 9 initiatives yielded none), ground generated artifacts (invented references/outcomes), then improve retrieval once product precedent exists (18% useful baseline). Retire abstract engineering-rule distillation: 228 rules yielded 5 useful and the metric was circular (docs/design-principles.md, 2026-10-02). Jev drafts, grounds, detects conflicts, and weighs precedent; it cannot verify product behavior or human judgment.",
"execution": "Prefer observable evidence over claims/proxies. Use existing durable channels (SQL plus RESEARCH_LOG.md), not imagined dashboards/metric stores; correct stale baselines at measurement time. Capture before-values, but leave criteria open/needs_judgment until consequential after-values are observed. Arithmetic/drain tests prove signal correctness, not changed behavior; preserve open status when an executor pass or deployment is out of scope. Preserve criterion intent when removing unsupported implementation-specific wording. Repair stale test wiring/signatures so intended guards run; don't weaken checks. When reversing a contract, rewrite assertions toward the new contract and record deliberate exceptions. Deterministic cassette-replayed checks belong in default bench; live paid/non-deterministic evals remain opt-in. Keep default gates deterministic.",
"research-mcp": "Research findings are the executor's working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and can overwrite human edits; document this in the tool description. Keep semantics simple\u2014no locks/versioning. Use dedicated explicit submit_research_findings(initiative_id, findings), not an optional parameter on submit_evidence, preserving that contract and improving discoverability.",
"learn-ui": "Hide the Learn model entirely in Draft and Building; render/display it only in Learn. Do not render a disabled or inactive version earlier.",
"signals": "Hide the importance recommendation only when the project has exactly one initiative; do not use completed-after-creation-date or hybrid rules. For criterion item_91be5a17ec5d, test the dispersion mechanism, not literal live-corpus dispersion: sweep realistic survived/removed/citation counts through the rebalanced formula and require >20 distinct scores, plus verify live recompute correctness. Six raw event-count combinations cannot yield more than six scores; live dispersion awaits future events.",
"quality": "Do not accept a known regression against a confirmed acceptance bar without trying in-scope fixes. BD-91 Jev dedup scored 55.91% vs StructuredLLM's 67.74% on 186 gold cases; iterate rubric and remeasure because wording was in approved discretion, rather than ship regression or abandon replacement immediately. Narrow fidelity loss can be accepted when affected cases are rare, humans acted, recurrence unlikely, and preserving signal adds schema/complexity for marginal value. BD-51 folded initiative_created into dismissed without extra trace; no state solely to retain resolved cases.",
"retrieval": "For the 1536\u21923072 embedding migration, preserve indexed retrieval rather than accept even a temporary unindexed full cosine scan or pause migration. Extend migration to halfvec + HNSW (HNSW supports up to 4000 dimensions), rather than plain 3072-dimensional vector that cannot retain the index.",
"corpus": "Avoid human-gated maintenance queues that stall. Jev may auto-admit standalone unclustered rules judged sound, well-scoped, condition-bearing; invariant is sound judgment, not human judgment. Jev may confirm merge/generalization proposals above confidence threshold; borderline proposals go to humans, who can override. Keep retirement human-gated because removal feels irreversible and rejected/restorable sentinel warrants human judgment. Preserve broad coverage where excluded items aren't reliably low-value; don't lower clustering threshold or exclude unclustered rules by default. BD-101 widens the existing verdict step to all pending judgeable proposals, fixing stranded proposals without changing step order, proposal logic, or never-raises contract.",
"authoring": "People can start initiatives from project page and add/edit spec items in draft; executors still draft from brief, people shape spec before building. New initiative requires description and type (Build default); title optional, with description's first line as temporary title until executor renames it. Constraints, latitude, criteria optional. Brief"
}
}build-doen · signals
{
"index": "Doen is durable shared intent for product teams: separate constraints from delegated discretion, escalate genuine intent calls, and use grounded precedent\u2014not abstract engineering rules. Capture human reasoning when stated; ground generated artifacts; test memory only as a capped, measured experiment. Jev drafts, grounds, and makes bounded judgments; it does not verify human-judgment outcomes. Executor-authored details are not requirements without human adoption. Accept choices within explicit latitude; resolve material gaps, avoid marginal schema complexity, and keep evidence honest. Open **principles** for priorities/trust; **lifecycle** for stages and initiative authoring; **discretion** for delegated choices; **verification** for evidence/tests; **spec-edits** for adoption; **corpus** for learning",
"notes": {
"principles": "Doen is one durable intent artifact for designers, engineers, and product owners. Separate fixed constraints from explicitly delegated discretion; escalate genuine product-intent calls; use comparable decisions as precedent. Avoid abstract engineering-rule distillation: the heuristic flywheel produced only 5 usable rules from 228 and had a circular success metric. Priorities: capture human reasoning at decision time; ground generated specs and learning records in real project data; improve precedent retrieval once a product corpus exists (baseline usefulness was 18%). Fabricated references/outcomes erode trust. Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a verifier for behavior or human-judgment criteria.",
"lifecycle": "Hide Learn entirely in Draft/Building; render only in Learn. Treat not-yet-applicable as absent, not disabled. `research_findings` is executor-owned working text: documented last-write-wins, including over human edits; people generally annotate after investigation. Use dedicated `submit_research_findings`, not a changed `submit_evidence` contract. People may add/edit spec items during Draft; afterward changes remain executor proposals. Starting requires description and Build/Research choice (Build default); title is optional, with description's first line as provisional readable title; executor may rename while drafting. Keep UI, constraints, latitude, and criteria consistent.",
"discretion": "Honor fixed intent versus delegated choices; a bounded precedent is not blanket delegation. Choices left standing within scope: show simultaneous redundancy/conflict verdicts separately with citations; evaluator judgment for overlap while surfacing close calls; dashboard-only spec loops v1; exact criterion-text matching for criteria-domain loops; 0.75 similarity threshold for rewritten heuristic items; retain StructuredLLM for variable-length importance judgments with reasoning/citations; low-confidence type inference may best-guess with warning; an 8-fixture live eval suffices for simple type inference without a heavier bench. For a measured regression plausibly caused by implementation within latitude, iterate and remeasure before escalating. Escalate uncertainty about product intent.",
"verification": "Distinguish mechanism tests from live-corpus limits: six raw combinations cannot produce >6 scores, so sweep realistic event counts to test >20 distinct scores and separately verify live recompute correctness. Do not leave material criteria unverified or cosmetically weaken them. Prefer deterministic, cheap merge gates: cassette-replayed checks in backend/tests/bench/default suite; live, costly, nondeterministic model evals stay opt-in in backend/tests/evals. If requested CI does not exist, use a reliable available gate and amend criterion to reality. Preserve test intent: repair stale test/API contracts; invert assertions when the intended contract reverses; don't weaken guards. Local comparisons do not prove deployment outcomes: submit pre-deploy evidence, mark needs_judgment, and leave post-deploy criteria open until production evidence exists. Use current baselines and established measurement channels.",
"spec-edits": "Executor authorship is not product intent: distinguish mere inclusion from deliberate human adoption. Human review removed Advisor Observations' exact-two-follow-up-actions/no-standalone-close-button criterion. Conversely, adoption made these requirements: LLM cost entries record project/model/purpose/token counts; pricing is updateable and cost entries retrievable/value-correct; MCP reshape supports stdio and HTTP. Keep optional-title language consistent across UI, constraints, and latitude. A spec that intentionally reverses a contract should update tests encoding the old contract; this is not weakening assertions.",
"corpus": "Human promotion queue recreated the maintenance bottleneck. Jev may auto-admit confident, sound, well-scoped, condition-bearing standalone rules; uncertain rules remain raw, humans can override. Jev may confirm high-confidence merge/generalization proposals; borderline cases queue for human judgment and override. Retirement remains human-gated because removal feels more irreversible, even with a restorable rejected sentinel. A dormant gate is a stall, not safety. Verdict evaluation may cover all pending project proposals, not only newly created ones, to avoid stranding; preserve five-step order, proposal logic, and never-raises contract. Quiet confirmation applies only to executor calls on completed initiatives that people could see and did not retire; `record_work` is not reviewed and silence/time alone is not confirmation.",
"architecture": "Avoid schema complexity when trace value is marginal; bounded fidelity loss can be acceptable. Accepted collapsing `initiative_created` into dismissed"
}
}resume-builder · promoted
{
"index": "User owns professional history/documents; AI advises and proposes, never gatekeeps export. Prefer clear, reversible edits; trust shipped architecture and recorded intent over stale specs, while preserving committed requirements and irreplaceable data. Current resume model is pure markdown. Profiles are career library; resumes editable, one role each. Open `principles` for judgment; `model` for ownership/overview/duplication; `document` for markdown/rendering; `guidance` for anchors/marks; `assistant` for C2 workflow and requirements; `settings` for context defaults; `data` for skills/drift/JSONB; `ops` for auth/revisions/generation; `ui-tests` for browser harness and UI decisions.",
"notes": {
"principles": "The user owns and edits professional history; AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker. Users must always be able to export. Localization may adapt structure, length, formatting and cultural norms. Prefer proven mechanisms, clear edits and the smallest reversible change. Resolve specs against shipped architecture and intent, not stale wording or superficial substitutes. Preserve committed requirements and information that cannot be reconstructed.",
"model": "Profiles are the career library; resumes are directly editable documents. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Targeting considers user-authored material across the library; provenance/write-back remains important. One resume = one role/context/thread. Duplicate copies document/context fields and appears beside siblings, but gets a fresh assistant thread and requirement decisions; role-choice timing is discretionary. Overview tables: title, created/edited, actions, and archived date where applicable\u2014no score or compliance. RB-9 retired score column/scorer/endpoints; never restore.",
"document": "Current storage is resumes.content={markdown:\"...\"}, pure free text: no required headings, sections, fields or structural contract. This supersedes RB-12's structured Tiptap schema and H2 compromise; RB-12 was correct for its then-direction. Convert existing structured JSONB rows without DDL. Downstream compliance, ordering, bullet quality, keyword attribution and localization need document understanding. RB-10 remains authority for ATS-safe output. Renderer parity: editing surface consumes render_resume_html(standalone=False), semantic editable nodes and JSON paths; structural edits update local content then re-fetch rendered body. Read-only render query needs no schema/migration.",
"guidance": "Guidance anchors are exact text {quote, occurrence}; apply scoped atomic replacement. Stale anchors fail closed (409 on accept); resolve at read/accept, not every autosave. Dismissal hashes category + normalized quote. One card/proposal is considered at a time, but document marks map every open suggestion: quiet, layout-neutral dotted underline per anchored line, quieter than active solid underline/tint. Clicking selects/targets the line and places caret normally; repeated clicks cycle multiple suggestions on a line. No suggestion panel: proposals live in assistant thread, accessible via agenda, queue popover or marks. Calibration findings stay advisory unless adopted into this existing queue; only grounded exact anchors/replacements are actionable.",
"assistant": "RB-21/C2 Guided Assistant is sole guidance surface, not general chatbot or rigid wizard. Keep RB-20 backend foundation (stored job profile, OpenRouter calibration, pre-call refusals for missing profile/empty document, unique-anchor grounding, adopt finding into guidance queue); remove unshipped findings column and prose panel. Conversation leads to grounded actions; no blank start. Route typed input to known targets/actions; narrow vague asks, clarify unclear targets, fallback; disable composer until role exists; derive chips from resume state, avoid unsupported claims. Durable per-resume thread, requirement status/skipped/dismissed decisions, fact capture, placeholders, continuous checks and diff/apply/undo. Findings are advisory until accepted; document changes go through guidance. Placeholder count/markers warn but never block export. Requirements derive from advert; preserve decisions by stable item_key (category + requirement ID, not wording); close removed items, open genuinely new ones, don't re-ask answered items.",
"settings": "Account assistant defaults (language, tone, default market) live in one validated JSONB document in existing users.preferences, using app/schemas/jsonb.py; no migration or bespoke settings UI. These are account defaults, not profile attributes: profile switching must not change assistant behavior. Distinguish product language from profiles.languages (spoken languages). Resume-specific overrides such as region_code take precedence. Extend settings through registry entries/prompt variables.",
"data": "Keep skills and profile_skills relational; skills.aliases canonicalize shared vocabulary (e.g. K8s/Kubernetes), resume_keywords.skill_id references skills. Drift uses profiles.version and resumes.profile_version; bump on profile/entry/bullet writes, snapshot at generation. Compare integers, not timestamps; child edits may not update profiles.updated_at and old state cannot be backfilled. For JSONB, declare PostgreSQL JSONB with .with_variant(sqlite.JSON,'sqlite') on every JSONB column. Keep SQLite suite/conftest/create_all; separate PostgreSQL fixture for behavior SQLite cannot validate (shared CHECK, in-place JSONB mutation), not wholesale Docker migration or split ORM metadata.",
"ops": "Autosave writes content without snapshots. Every"
}
}resume-builder · signals
{
"index": "Users own and manage professional history; AI is on-demand support, never a workflow gate. Prefer small reversible changes, preserve optionality around data loss/backfills, and honor committed constraints unless explicitly superseded. Current resume is one free-form Markdown document; follow latest edited C2 prototype. Open `resume` for ownership/drift and Markdown; `assistant` for guided C2/RB-21 and duplication; `guidance` for queue, anchors and marks; `generation` for compliance/export; `revisions` for snapshots; `testing` for boundaries; `authorization` for 401/404; `infra-prompts` for worker/prompt conventions; `overview` for display.",
"notes": {
"resume": "Profiles are reusable user-owned career library; resumes are directly editable, keep resumes.profile_id NOT NULL and seed a profile from first resume. Preserve normalized skills + profile_skills, aliases, and resume_keywords.skill_id. Drift: bump profiles.version on profile/entry/bullet writes; copy to resumes.profile_version at generation (timestamps miss child edits). Current target supersedes structured RB-12: resumes.content={markdown:\"...\"}, no required headings/sections/fields/custom-node contract. Convert old structured rows and revisit rendering/PDF, provenance, keyword evidence, compliance, outline/reordering, Markdown support. Localization adapts conventions to target market; RB-10 ATS constraints remain.",
"assistant": "RB-20 remains shipped backend foundation (job_profile_text, OpenRouter calibration, preflight refusals, exact-once anchor grounding, finding-to-guidance adoption, tone); unpublished Guided Assistant/RB-21 replaces findings UI outright\u2014no duplicate surface. C2 assistant is user-steered chat-like guidance, not general chat or fixed wizard: ranked agenda, concrete action per turn; route input to known targets/goals, clarify missing targets, ground vague asks in high-impact fixes, provide fallback; never treat text as unconstrained instructions. Disable messaging until role exists; derive chips from state and ground changes in user facts. Proposal cards in-thread (diff/reason/Apply/Not now/Undo); access via agenda, queue popover, or document marks. One role/context/thread per resume; duplicate for another role, copying document/context but not threads or role-specific decisions; siblings rooted at original. Always allow download; warn prominently and mark/count placeholders.",
"guidance": "Guidance is adopted through one queue, with atomic scoped replacement and updated content/version returned. Anchor={quote, occurrence}; stale exact quote drops at read/accept, not each autosave. Dismissal key hashes category + normalized quote. RB-9 keywords were sole producer; later calibration findings can become queue items only with exact anchor/replacement, while calibration response itself remains unpersisted. Assistant absorbs the old suggestions panel; document marks remain as map, not a second card surface. One quiet layout-neutral dotted underline per anchored line, quieter than active style; clicking places caret normally and scopes composer to line, not hijacks typing; repeated clicks cycle suggestions sharing a line.",
"generation": "check_compliance() before generation. ERROR blocks; warnings do not. Store/surface all findings; required-field errors prompt user. Hand-created resumes unchecked; targeted generation persists compliance; GET recomputes without persisting (reads must not write). Revisit compliance, generation/provenance and document understanding for free-form Markdown; don't assume fields/sections. Placeholder warning is prominent, but export is never blocked.",
"revisions": "Continuous active-typing autosave updates content without snapshots. Idle-gap timeout always creates exactly one revision, even if unchanged since a prior snapshot. Overlapping checkpoint conditions create one row for the checkpoint event and preserve every fired trigger in audit metadata; no duplicate rows or lost trigger details.",
"testing": "Postgres JSONB with SQLite compatibility: JSONB().with_variant(sqlite.JSON,'sqlite') per column; keep real JSONB in production/migrations and unchanged SQLite tests; dedicated PostgreSQL coverage for CHECK constraints/in-place mutation. Playwright against running stack is E2E harness; verify persisted content via API; DB/revision invariants in pytest. Vitest for pure anchor quote+occurrence cases and ProseMirror decoration surviving text insertion without onChange. Don't alter existing tests or split ORM metadata.",
"authorization": "Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, including resumes/profiles; never 403. Scope ownership in DB query so foreign rows are never loaded. Test cross-user and nonexistent separately; supersedes inherited RB-3 403.",
"infra-prompts": "Worker shared-code decision: build worker from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements, delete stale worker/app/shared duplicate. Railway worker points to repo root with explicit Dockerfile. Prompts live under api/app/prompts; SYSTEM_PROMPT moved there preserving name/module/text/behavior, one convention.",
"preferences-design": "Account assistant settings (language, tone, default market) use one extensible JSONB document in existing users.preferences validated by Pydantic in app/schemas/jsonb.py, not profile facts; account values are defaults, per-resume overrides win. Follow latest owner-edited C2 prototype over stale scope: persistent Assistant and Document tabs; document properties in Document; Auto adjust in formatting row; avoid duplicate homes/bulky sideways controls. Keep"
}
}Dream stages (recorded from runs after 2026-11-27)
build-doen · promoted · dream at call 5
Doen favors grounded product intent over abstract rule extraction: capture human reasoning, separate constraints from discretion, escalate real intent choices, and make precedent useful. Keep implementation simple and preserve stable contracts. See `principles` for priorities and anti-patterns; `research-mcp` for findings workflow/tool choices; `learn-ui` for stage visibility; `importance` for recommendation visibility; `scoring` for sparse-corpus verification. ## principles Doen is a spec framework for product engineers (designers, software engineers, product owners) centered on one durable intent artifact. Separate constraints from discretion, escalate genuine intent decisions rather than silently coding them, and make precedent useful (chosen, rejected, and follow-on outcomes). Do not optimize for abstract engineering-rule distillation: the heuristic flywheel was retired after 228 rules yielded 5 usable; its success metric was circular (docs/design-principles.md, “Retiring the heuristic flywheel”). Priorities: capture human reasoning (25 recorded decisions were agent-raised; 9 product initiatives yielded none); ground Doen's own artifacts, which have nonexistent references/invented outcomes; improve precedent retrieval after a product corpus exists (18% useful baseline). Jev is not the verifier for product audiences: it often auto-approves tests and excludes human judgment. Focus on drafting, groundedness, conflict detection, and precedent weighing. ## research-mcp Research findings are the executor’s working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and may overwrite human edits; document this in the MCP tool description. No locks or versioning. Use a dedicated explicit `submit_research_findings(initiative_id, findings)` tool rather than changing `submit_evidence` with an optional parameter: preserve the existing contract and improve discoverability. ## learn-ui Learn model visibility: truly hide it in Draft and Building; only render/display it in Learn. Do not show a disabled/inactive version in those earlier stages. ## importance Importance recommendation visibility: use the simpler rule—hide only when the project has exactly one initiative. Do not use the BD-46 completed-after-creation-date condition or hybrid rule. ## scoring For acceptance criterion item_91be5a17ec5d, verify the dispersion mechanism, not literal live-corpus dispersion. The current corpus has only 6 distinct raw event-count combinations, so no formula can produce >6 scores from it. Test realistic survived/removed/citation event-count sweeps through the rebalanced formula and require >20 distinct scores; also show the live recompute preserves correctness. Accept that live dispersion requires future events.
build-doen · promoted · dream at call 10
Doen centers on durable product intent: capture human reasoning, separate constraints from discretion, escalate genuine intent calls, and make precedent useful. Prefer grounded evidence, simple systems, and stable contracts; avoid abstract rule-distillation and human-gated queues that stall. Within approved discretion, fix and remeasure confirmed regressions; tolerate narrow fidelity loss when value is marginal. Jev can draft, ground, detect conflicts, and make confidence-bounded corpus judgments—not verify human product judgment. See `principles` for priorities; `research-mcp`, `learn-ui`, `importance`, `scoring` for specific choices; `quality` for regression/fidelity choices; `corpus` for automation and review boundaries; `retrieval` for embedding indexes. ## principles Doen is a shared spec framework for product engineers (designers, software engineers, product owners), centered on durable intent. Separate constraints from discretion, escalate genuine intent choices instead of silently coding them, and make chosen/rejected/follow-on precedent useful. Do not optimize for abstract engineering-rule distillation: the heuristic flywheel was retired after 228 rules yielded 5 usable; its success metric was circular (docs/design-principles.md, 2026-10-02). Priorities: capture human reasoning during shaping (all recorded decisions were agent-raised; product precedent corpus is empty), ground/check generated artifacts (Doen's own artifacts have nonexistent references/invented outcomes), and improve precedent retrieval once product corpus exists (18% useful baseline). Jev helps draft, ground, detect conflicts, and weigh precedent—not verify product judgment; it can auto-approve criteria and does not assess human judgment. ## research-mcp Research findings are the executor's working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and can overwrite human edits; document this in the tool description. Keep semantics simple: no locks/versioning. Use a dedicated explicit `submit_research_findings(initiative_id, findings)` tool, not an optional parameter on `submit_evidence`, preserving that contract and improving discoverability. ## learn-ui Hide the Learn model entirely in Draft and Building; render/display it only in Learn. Do not render a disabled/inactive version earlier. ## importance Hide importance recommendation only when the project has exactly one initiative. Do not use the BD-46 completed-after-creation-date condition or hybrid rule. ## scoring For acceptance criterion item_91be5a17ec5d, verify the dispersion mechanism, not literal live-corpus dispersion. Six distinct raw event-count combinations cannot yield more than six scores regardless of formula. Test realistic survived/removed/citation event-count sweeps through the rebalanced formula and require >20 distinct scores; also show live recompute correctness. Accept that live dispersion requires future events. ## quality Do not accept a known quality regression against a confirmed acceptance bar without trying in-scope fixes. In BD-91, the Jev dedup path scored 55.91% vs prior StructuredLLM's 67.74% on 186 gold cases; human chose to iterate the rubric and remeasure, since exact wording was within approved discretion, rather than ship regression or immediately abandon replacement. Conversely, accept narrow fidelity loss when affected cases are rare, humans have acted, and preserving the signal would add schema/complexity for marginal value. Do not add state solely to retain resolved cases when recurrence is unlikely. ## retrieval For the 1536→3072 embedding migration, preserve indexed retrieval rather than accept even a temporary unindexed full cosine scan or pause migration. Extend migration to `halfvec` + HNSW, which supports HNSW through 4000 dimensions, rather than plain 3072-dimensional `vector` that cannot retain the index. ## corpus Avoid human-gated maintenance queues that stall. Jev may auto-admit a standalone unclustered rule judged sound, well-scoped, condition-bearing guidance; the invariant is that it was judged sound, not that a human judged it. Jev may confirm merge/generalization proposals above a confidence threshold; borderline proposals go to humans, who can override. Keep retirement human-gated: removal feels irreversible, and a rejected/restorable sentinel warrants human judgment. Preserve broad coverage when excluded items are not reliably low-value; do not substitute a lower clustering threshold or exclude unclustered rules by default. ## signals When collapsing DriftReportStatus, accept folding `initiative_created` into `dismissed` without extra trace, even though BD-51 then stops counting those reports. The affected slice is narrow, the human has already acted, recurrence is unlikely at low usage, and preserving marginal signal fidelity does not justify a schema field.
build-doen · promoted · dream at call 15
Doen is a durable shared spec framework: capture human intent, separate constraints from discretion, escalate genuine product calls, and make precedent useful. Prioritize reasoning capture, grounded artifacts, then retrieval; reject abstract rule distillation and queues that stall. Prefer simple, deterministic gates and durable fixes that honor protected intent; verify checks actually run. Jev may make confidence-bounded corpus judgments, not verify human product judgment. See `principles` for priorities and execution norms; `research-mcp`, `learn-ui`, `importance`, `scoring`, `quality`, `retrieval`, `corpus` for specific decisions. ## principles Doen is a shared spec framework for product engineers, centered on durable human intent. Separate constraints from discretion; escalate genuine intent calls rather than silently coding them; preserve chosen, rejected, and follow-on precedent. Priorities: capture human reasoning during shaping (product-call precedent is absent), ground/check generated artifacts (Doen artifacts have nonexistent references/invented outcomes), then improve retrieval once a product corpus exists (18% useful baseline). Retire abstract engineering-rule distillation: 228 rules yielded 5 usable and the success metric was circular (docs/design-principles.md, 2026-10-02). Jev can draft, ground, detect conflicts, and weigh precedent, but cannot verify product judgment; it may auto-approve criteria and does not assess human judgment. Prefer practical deterministic gates aligned with repo capabilities; don't imply nonexistent infrastructure. Deterministic checks belong in default bench; live-model evals stay opt-in due cost/nondeterminism. Avoid paid, uncalibrated LLM judgments as merge gates. Read constraints by protected intent: preserve specified steps/order/decision rules, but distinguish changing a core algorithm/contract from broadening the records it evaluates. Prefer durable structural fixes over one-off backfills; explain scope. Stale test wiring/signatures may be repaired so intended guards run; don't weaken checks. When reversing a contract, rewrite assertions to enforce the new contract and record the exception. ## research-mcp Research findings are the executor's working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and can overwrite human edits; document this in the tool description. Keep semantics simple—no locks/versioning. Use dedicated explicit `submit_research_findings(initiative_id, findings)`, not an optional parameter on `submit_evidence`, preserving that contract and improving discoverability. ## learn-ui Hide the Learn model entirely in Draft and Building; render/display it only in Learn. Do not render a disabled/inactive version earlier. ## importance Hide importance recommendation only when the project has exactly one initiative. Do not use the BD-46 completed-after-creation-date condition or hybrid rule. ## scoring For acceptance criterion item_91be5a17ec5d, verify the dispersion mechanism, not literal live-corpus dispersion. Six distinct raw event-count combinations cannot yield more than six scores regardless of formula. Test realistic survived/removed/citation event-count sweeps through the rebalanced formula and require >20 distinct scores; also show live recompute correctness. Accept that live dispersion requires future events. ## quality Do not accept a known quality regression against a confirmed acceptance bar without trying in-scope fixes. In BD-91, Jev dedup scored 55.91% vs StructuredLLM's 67.74% on 186 gold cases; iterate rubric and remeasure because exact wording was within approved discretion, rather than ship regression or immediately abandon replacement. Conversely, accept narrow fidelity loss when affected cases are rare, humans have acted, recurrence is unlikely, and preserving the signal adds schema/complexity for marginal value. Don't add state solely to retain resolved cases. For BD-51, folding `initiative_created` into `dismissed` without extra trace was accepted; the affected slice is narrow and marginal signal loss did not justify a schema field. ## retrieval For the 1536→3072 embedding migration, preserve indexed retrieval rather than accept even a temporary unindexed full cosine scan or pause migration. Extend migration to `halfvec` + HNSW, which supports HNSW through 4000 dimensions, rather than plain 3072-dimensional `vector` that cannot retain the index. ## corpus Avoid human-gated maintenance queues that stall. Jev may auto-admit a standalone unclustered rule judged sound, well-scoped, condition-bearing guidance; invariant is that it was judged sound, not that a human judged it. Jev may confirm merge/generalization proposals above a confidence threshold; borderline proposals go to humans, who can override. Keep retirement human-gated: removal feels irreversible, and a rejected/restorable sentinel warrants human judgment. Preserve broad coverage when excluded items are not reliably low-value; don't lower clustering threshold or exclude unclustered rules by default. Fix structural recurrence, not just schedule/backfill: in BD-101 widen the existing verdict step to evaluate all pending judgeable proposals, preserving the five-step order, per-proposal rule, and never-raises contract. ## verification Verify the mechanism where
build-doen · promoted · dream at call 20
Doen is a durable shared spec framework for product engineers: capture human intent, distinguish constraints from discretion, escalate genuine product calls, and preserve useful precedent. Prioritize reasoning capture, grounded artifacts, then retrieval; reject abstract rule distillation and queues that stall. Favor observable evidence, honest open status, simple deterministic gates, and durable fixes that honor intent. Jev can judge corpus items with confidence bounds, not verify human product judgment. See `principles` for product priorities; `execution` for evidence and authoring; `research-mcp`, `learn-ui`, `importance`, `scoring`, `quality`, `retrieval`, `corpus`, `verification` for specific decisions. ## principles Doen is a shared spec framework for product engineers (designers, software engineers, product owners), centered on durable human intent: one intent artifact, explicit constraint/discretion split, escalation of genuine intent calls, and useful precedent. Priorities: capture human reasoning during shaping (all 25 recorded decisions were agent-raised; 9 initiatives yielded none), ground generated artifacts (invented references/outcomes), then improve retrieval once product precedent exists (18% useful baseline). Retire abstract engineering-rule distillation: 228 rules yielded 5 useful and the metric was circular (docs/design-principles.md, 2026-10-02). Jev can draft, ground, detect conflicts, and weigh precedent; it cannot verify product behavior or human judgment. ## execution Prefer observable evidence over claims/proxies. Use existing durable channels (SQL plus RESEARCH_LOG.md), not imagined dashboards/metric stores; correct stale baselines at measurement time. Capture before-values, but leave criteria open/needs_judgment until consequential after-values are observed. Arithmetic/drain tests prove signal correctness, not changed behavior; preserve open status when an actual executor pass or deployment is out of scope. Preserve criterion intent when removing unsupported implementation-specific wording. Repair stale test wiring/signatures so intended guards run; don't weaken checks. When reversing a contract, rewrite assertions toward the new contract and record deliberate exceptions. Authoring: people can start initiatives on project page and add/edit spec items in draft; executors still draft from brief, people shape spec before building. New initiative requires description and type (Build default), title optional; first description line stands in until executor names it. Constraints, latitude, criteria optional; brief stays separate and uneditable after creation. Ensure related spec wording is updated consistently. ## research-mcp Research findings are the executor's working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and can overwrite human edits; document this in the tool description. Keep semantics simple—no locks/versioning. Use dedicated explicit submit_research_findings(initiative_id, findings), not an optional parameter on submit_evidence, preserving that contract and improving discoverability. ## learn-ui Hide the Learn model entirely in Draft and Building; render/display it only in Learn. Do not render a disabled or inactive version earlier. ## importance Hide the importance recommendation only when the project has exactly one initiative. Do not use BD-46's completed-after-creation-date condition or a hybrid rule. ## scoring For criterion item_91be5a17ec5d, verify the dispersion mechanism, not literal live-corpus dispersion. Six raw event-count combinations cannot yield more than six scores under any formula. Sweep realistic survived/removed/citation counts through the rebalanced formula and require >20 distinct scores; also verify live recompute correctness. Accept that live dispersion needs future events. ## quality Do not accept a known regression against a confirmed acceptance bar without trying in-scope fixes. BD-91 Jev dedup scored 55.91% vs StructuredLLM's 67.74% on 186 gold cases; iterate rubric and remeasure because wording was in approved discretion, rather than ship regression or abandon replacement immediately. Narrow fidelity loss can be accepted when affected cases are rare, humans acted, recurrence unlikely, and preserving signal adds schema/complexity for marginal value. BD-51 folded initiative_created into dismissed without extra trace; no state solely to retain resolved cases. ## retrieval For the 1536→3072 embedding migration, preserve indexed retrieval rather than accept even a temporary unindexed full cosine scan or pause migration. Extend migration to halfvec + HNSW (HNSW supports up to 4000 dimensions), rather than plain 3072-dimensional vector that cannot retain the index. ## corpus Avoid human-gated maintenance queues that stall. Jev may auto-admit standalone unclustered rules judged sound, well-scoped, condition-bearing; invariant is sound judgment, not human judgment. Jev may confirm merge/generalization proposals above confidence threshold; borderline proposals go to humans, who can override. Keep retirement human-gated because removal feels irreversible and rejected/restorable sentinel warrants human judgment. Preserve broad coverage where excluded items aren't reliably low-value; don't lower clustering threshold or exclude unclustered rules by default. Fix recurrence structurally: BD-101 widens existing verdict step to all pending judgeable proposals, preserving
build-doen · promoted · dream at call 25
Doen captures durable human product intent—not abstract engineering rules. Prioritize reasoning capture, grounded artifacts, then retrieval; preserve honest uncertainty and fix defects without weakening intent. Jev may draft/judge with calibrated confidence, not verify human behavior. - `principles`: product purpose and priorities. - `execution`: evidence, tests, gates, authoring. - `research-mcp`: research writes and MCP contract. - `learn-ui`: stage visibility. - `signals`: importance and scoring decisions. - `quality`: regression and fidelity tradeoffs. - `retrieval`: embedding migration. - `corpus`: autonomous rule maintenance boundaries. - `authoring`: initiative/spec editing rules. - `memory-learning`: live experiment, capture, confirmation, onboarding. ## principles Doen is a shared spec framework for product engineers (designers, engineers, product owners), centered on one durable intent artifact, explicit constraint/discretion split, escalation of genuine intent calls, and useful precedent. Priorities: capture human reasoning during shaping (all 25 recorded decisions were agent-raised; 9 initiatives yielded none), ground generated artifacts (invented references/outcomes), then improve retrieval once product precedent exists (18% useful baseline). Retire abstract engineering-rule distillation: 228 rules yielded 5 useful and the metric was circular (docs/design-principles.md, 2026-10-02). Jev drafts, grounds, detects conflicts, and weighs precedent; it cannot verify product behavior or human judgment. ## execution Prefer observable evidence over claims/proxies. Use existing durable channels (SQL plus RESEARCH_LOG.md), not imagined dashboards/metric stores; correct stale baselines at measurement time. Capture before-values, but leave criteria open/needs_judgment until consequential after-values are observed. Arithmetic/drain tests prove signal correctness, not changed behavior; preserve open status when an executor pass or deployment is out of scope. Preserve criterion intent when removing unsupported implementation-specific wording. Repair stale test wiring/signatures so intended guards run; don't weaken checks. When reversing a contract, rewrite assertions toward the new contract and record deliberate exceptions. Deterministic cassette-replayed checks belong in default bench; live paid/non-deterministic evals remain opt-in. Keep default gates deterministic. ## research-mcp Research findings are the executor's working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and can overwrite human edits; document this in the tool description. Keep semantics simple—no locks/versioning. Use dedicated explicit submit_research_findings(initiative_id, findings), not an optional parameter on submit_evidence, preserving that contract and improving discoverability. ## learn-ui Hide the Learn model entirely in Draft and Building; render/display it only in Learn. Do not render a disabled or inactive version earlier. ## signals Hide the importance recommendation only when the project has exactly one initiative; do not use completed-after-creation-date or hybrid rules. For criterion item_91be5a17ec5d, test the dispersion mechanism, not literal live-corpus dispersion: sweep realistic survived/removed/citation counts through the rebalanced formula and require >20 distinct scores, plus verify live recompute correctness. Six raw event-count combinations cannot yield more than six scores; live dispersion awaits future events. ## quality Do not accept a known regression against a confirmed acceptance bar without trying in-scope fixes. BD-91 Jev dedup scored 55.91% vs StructuredLLM's 67.74% on 186 gold cases; iterate rubric and remeasure because wording was in approved discretion, rather than ship regression or abandon replacement immediately. Narrow fidelity loss can be accepted when affected cases are rare, humans acted, recurrence unlikely, and preserving signal adds schema/complexity for marginal value. BD-51 folded initiative_created into dismissed without extra trace; no state solely to retain resolved cases. ## retrieval For the 1536→3072 embedding migration, preserve indexed retrieval rather than accept even a temporary unindexed full cosine scan or pause migration. Extend migration to halfvec + HNSW (HNSW supports up to 4000 dimensions), rather than plain 3072-dimensional vector that cannot retain the index. ## corpus Avoid human-gated maintenance queues that stall. Jev may auto-admit standalone unclustered rules judged sound, well-scoped, condition-bearing; invariant is sound judgment, not human judgment. Jev may confirm merge/generalization proposals above confidence threshold; borderline proposals go to humans, who can override. Keep retirement human-gated because removal feels irreversible and rejected/restorable sentinel warrants human judgment. Preserve broad coverage where excluded items aren't reliably low-value; don't lower clustering threshold or exclude unclustered rules by default. BD-101 widens the existing verdict step to all pending judgeable proposals, fixing stranded proposals without changing step order, proposal logic, or never-raises contract. ## authoring People can start initiatives from project page and add/edit spec items in draft; executors still draft from brief, people shape spec before building. New initiative requires description and type (Build default); title optional, with description's first line as temporary title until executor renames it. Constraints, latitude, criteria optional. Brief
build-doen · signals · dream at call 5
Doen is a product-engineering spec framework: preserve human intent, separate constraints from delegated discretion, and use precedent—not abstract engineering rules. Prioritize recording human reasoning and grounding specs/learn records; fabricated references or outcomes erode trust. Executor choices are acceptable inside explicit latitude, but do not promote executor-added details into product requirements without support. Open **principles** for framework priorities and trust; **lifecycle** for UI/work-document rules; **discretion** for delegated decisions; **verification** for sparse-corpus metrics and validation; **spec edits** for signals about executor-authored requirements. ## principles Doen serves designers, software engineers, and product owners through one durable intent artifact: distinguish constraints from discretion, escalate genuine intent calls, and guide decisions with precedent. Avoid optimizing for abstract engineering rules. The heuristic flywheel is retired (228 rules yielded only 5 usable; circular success metric); see docs/design-principles.md, “Retiring the heuristic flywheel.” Priorities: (1) Capture human reasoning—25 recorded decisions were agent-raised and 9 initiatives yielded zero; product precedent remains empty. (2) Groundness—validate generated specs and learn records, not only executor output; fabricated references/outcomes especially undermine designer trust. (3) Improve precedent retrieval after building a product corpus (18% useful baseline). Jev is not the verifier for this audience: auto-approves test criteria 71% of the time and excludes human_judgment by design; its value is drafting, grounding, conflict detection, and weighing precedent. ## lifecycle Do not render stage-specific models before their stage. Hide Learn in Draft/Building; render it only in Learn. Treat “not yet applicable” as absent, not disabled. For executor-owned working documents (research_findings), prefer simple last-write-wins over locks/versioning absent clear benefit; clearly document that MCP writes overwrite human edits. Humans generally annotate after investigation concludes. For this field, a dedicated submit_research_findings tool was chosen over changing submit_evidence, preserving the existing contract and making the write path discoverable. ## discretion Respect the boundary between fixed intent and explicitly delegated choices. The executor's choices were left standing when they fit stated latitude: separate simultaneous redundancy/conflict verdicts with citations; use evaluator judgment for overlap threshold while flagging close calls; show spec loops on the dashboard only for v1; use exact criterion-text matching for criteria-domain loop detection. These are evidence that bounded discretion is useful, not a license to infer broad delegation or invent requirements. When uncertainty crosses into product intent, escalate. ## verification When live data cannot satisfy a metric because it has too few distinct input combinations, verify the mechanism with a property/sweep test over realistic inputs and separately establish correctness on the live recompute; accept that live dispersion will emerge as events accumulate. Specifically, six raw combinations cannot yield >6 distinct current scores, so test the rebalanced formula for >20 distinct scores across realistic survived/removed/citation counts, plus live correctness evidence. Do not leave the criterion unverified or weaken it to a cosmetic live-corpus change. ## spec-edits Human review can remove executor-authored requirements: in Advisor Observations, the person removed a criterion requiring exactly two follow-up actions and no standalone close button. Conversely, some executor-proposed cost-tracking details were accepted into the spec: record project/model/call purpose/token counts; calculate cost from updateable pricing; and verify retrievable entries and pricing-derived values. Also accepted transport support for both stdio and HTTP in the MCP reshape spec. Distinguish deliberate human adoption from mere executor inclusion; do not assume every generated constraint is wanted. ## recommendations Specific product decisions: importance recommendation visibility uses the simple rule—hide only when the project has exactly one initiative (not a completed-after-creation-date condition). For partially redundant and partially conflicting initiatives, give both verdicts separately and cite the relevant initiatives, within the granted discretion.
build-doen · signals · dream at call 10
Doen is a product-engineering spec framework: preserve human intent, separate constraints from delegated discretion, and use precedent—not abstract engineering rules. Prioritize recording human reasoning and grounding specs/learn records; build precedent retrieval as the product corpus grows. Executor choices are acceptable inside explicit latitude, but do not turn executor-added details into requirements without evidence of human adoption. They favor resolving material gaps, iterating within discretion, and avoiding marginal schema complexity. Open **principles** for priorities/trust; **lifecycle** for UI and working docs; **discretion** for delegated choices; **verification** for evidence standards; **spec-edits** for adoption signals; **corpus** for Jev/gates; **architecture** for trace/index tradeoffs. ## principles Doen serves designers, software engineers, and product owners through one durable intent artifact: distinguish constraints from discretion, escalate genuine intent calls, and guide decisions with precedent. Avoid optimizing for abstract engineering rules. The heuristic flywheel was retired (228 rules yielded only 5 usable; circular success metric). Priorities: (1) capture human reasoning (25 recorded decisions agent-raised; 9 initiatives yielded zero; product precedent remains empty); (2) ground generated specs and learn records, not only executor output—fabricated references/outcomes especially erode designer trust; (3) improve precedent retrieval after a product corpus exists (18% useful baseline). Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a behavior verifier and excludes human-judgment criteria by design. ## lifecycle Do not render stage-specific models before their stage. Hide Learn in Draft/Building; render only in Learn. Treat “not yet applicable” as absent, not disabled. For executor-owned research_findings, use simple last-write-wins absent clear benefit from locks/versioning; document that MCP writes overwrite human edits. Humans generally annotate after investigation. Use dedicated submit_research_findings rather than changing submit_evidence: stable contract and discoverable write path. ## discretion Respect fixed intent versus explicitly delegated choices. Within granted latitude, executor decisions were left standing: separate simultaneous redundancy/conflict verdicts and cite initiatives; evaluator judgment for overlap threshold with close calls surfaced; spec loops dashboard-only for v1; exact criterion-text matching for criteria-domain loops; 0.75 similarity threshold for rewritten heuristic items; keep importance validation on StructuredLLM where variable-length cited reasoning exceeds Jev's fixed-choice interface; low-confidence type inference may best-guess with a warning; direct 8-fixture live eval suffices without heavier bench. These are bounded precedents, not blanket delegation. Escalate when uncertainty becomes product intent. ## verification When a live corpus cannot satisfy a metric because it has too few distinct input combinations, test the mechanism over realistic inputs and separately establish correctness on live recompute; accept dispersion emerging as events accumulate. Specifically, six raw combinations cannot yield >6 scores: sweep realistic survived/removed/citation counts to show >20 distinct scores, plus live correctness. Do not leave unverified or weaken to cosmetic live-corpus change. For genuine measured regressions plausibly caused by implementation within discretion, iterate and remeasure before escalating (e.g. Jev dedup rubric regression against 186 cases). ## spec-edits Human review can remove executor-authored requirements: removed Advisor Observations criterion mandating exactly two follow-up actions and no standalone close button. Other executor-proposed details were adopted: LLM cost entries record project/model/purpose/token counts; cost uses updateable pricing and has retrievable/value correctness criteria; MCP reshape supports stdio and HTTP. Distinguish deliberate adoption from mere inclusion; executor authorship alone is not product intent. ## corpus Human promotion queue was too much maintenance and recreated the bottleneck. Jev may auto-admit confident, sound, well-scoped, condition-bearing standalone rules; uncertain rules remain raw; human override remains. Jev may confirm high-confidence merge/generalization proposals; borderline cases queue for human judgment and override. A dormant gate is a stall, not a safety property. Retirement stays human-gated: removing a rule feels more irreversible, even if a rejected sentinel is restorable. This superseded the earlier human-gated admission invariant. ## architecture Avoid schema complexity when trace value is marginal; bounded fidelity loss can be acceptable. Example: accepted collapsing initiative_created into dismissed without trace, despite BD-51 loop-signal undercount, because the addressed drift slice was narrow and schema cost outweighed marginal signal. Conversely, resolve material architecture gaps before rollout: chose halfvec + HNSW in 3072-dimension migration rather than ship production with unindexed retrieval, even temporarily. ## product-signals Importance recommendation visibility: hide only when project has exactly one initiative. For partially redundant and partially conflicting initiatives, show both verdicts separately with citations. Routine human review that recreates the bottleneck a feature should remove should be automated for confident cases while preserving coverage and override. Heuristic precedent: confident standalone rules can be admitted automatically;
build-doen · signals · dream at call 15
Doen is a durable shared-intent framework for product engineers: separate constraints from delegated discretion, escalate genuine intent calls, and use grounded precedent—not abstract engineering rules. Prioritize recording human reasoning and grounding generated artifacts; improve precedent retrieval as the product corpus grows. Jev drafts/grounds and makes bounded judgments, not final behavior verification. Accept executor choices within explicit latitude; don’t convert executor-authored details into requirements without evidence of human adoption. Prefer resolving material gaps and avoiding marginal schema complexity. Open **principles** for priorities/trust; **lifecycle** for UI and research docs; **discretion** for delegated choices; **verification** for test/evidence standards; **spec-edits** for adoption; **corpus** for ## principles Doen is a shared, durable intent artifact for designers, engineers, and product owners. Distinguish fixed constraints from delegated discretion; escalate genuine intent calls; use comparable decisions as precedent. Avoid abstract engineering-rule distillation. The heuristic flywheel was retired (228 rules yielded only 5 usable; circular success metric). Priorities: capture human reasoning during shaping; ground generated specs and learn records, not just executor output (fabricated references/outcomes erode designer trust); improve precedent retrieval after a product corpus exists (18% useful baseline; product precedent remains empty). Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a behavior verifier and excludes human-judgment criteria by design. ## lifecycle Do not render stage-specific models before their stage: hide Learn in Draft/Building; render only in Learn. Treat 'not yet applicable' as absent, not disabled. executor-owned research_findings use simple last-write-wins; document MCP overwrite behavior. Humans generally annotate after investigation. Use dedicated submit_research_findings, not a changed submit_evidence contract. ## discretion Respect fixed intent versus explicitly delegated choices; bounded precedents are not blanket delegation. Choices left standing within scope include: separate simultaneous redundancy/conflict verdicts with citations; evaluator judgment on overlap with close calls surfaced; dashboard-only spec loops for v1; exact criterion-text matching for criteria-domain loops; 0.75 similarity threshold for rewritten heuristic items; retain StructuredLLM for variable-length importance judgments with reasoning/citations; low-confidence type inference may best-guess with a warning; direct 8-fixture live eval suffices without a heavier bench. Escalate when uncertainty becomes product intent. For a measured regression plausibly caused by implementation within latitude, iterate and remeasure before escalating. ## verification Verify mechanisms separately from live corpus limits, and establish correctness on live recompute: six raw combinations cannot yield >6 scores, so test realistic event-count sweeps for >20 distinct scores, plus live correctness. Do not leave material criteria unverified or cosmetically weaken them. Prefer deterministic, cheap merge gates: cassette-replayed checks in backend/tests/bench/default tests; live, costly, nondeterministic model evals stay opt-in in backend/tests/evals. Do not put paid model calls in default runs. If requested CI does not exist, use a reliable available gate and amend the criterion/spec to reality. Preserve test intent: repair stale test/API contracts when needed; invert assertions when the intended contract reverses; do not weaken guards. Local comparisons do not prove deployment outcomes; submit pre-deploy evidence, mark needs_judgment, and leave post-deploy criteria open until production evidence exists. ## spec-edits Executor authorship is not product intent. Human review removed the Advisor Observations requirement for exactly two follow-up actions and no standalone close button. Conversely, human adoption made these real requirements: LLM cost entries record project/model/purpose/token counts; cost uses updateable pricing and has retrievable-entry/value-correctness criteria; MCP reshape supports stdio and HTTP. Distinguish deliberate adoption from mere inclusion. ## corpus The human promotion queue recreated the maintenance bottleneck. Jev may auto-admit confident, sound, well-scoped, condition-bearing standalone rules; uncertain rules remain raw, human override remains. Jev may confirm high-confidence merge/generalization proposals; borderline cases queue for human judgment and override. Retirement stays human-gated: removing a rule feels more irreversible, even with a restorable rejected sentinel. A dormant gate is a stall, not a safety property. To prevent pending judgeable proposals being stranded, verdict evaluation may cover all pending project proposals, not only ones created that pass; preserve the five-step order, proposal logic, and never-raises contract. ## architecture Avoid schema complexity when trace value is marginal; bounded fidelity loss can be acceptable. Accepted collapsing initiative_created into dismissed without trace despite BD-51 loop-signal undercount: narrow slice, marginal signal, schema cost not justified. Conversely, resolve material architecture gaps before rollout: chose halfvec + HNSW for 3072-dimension migration rather than leave production retrieval unindexed, even temporarily. ## signals Importance recommendation visibility: hide only when project has exactly one initiative. For partially redundant and partially conflicting initiatives, show both verdicts separately with
build-doen · signals · dream at call 20
Doen is a durable shared-intent framework for product teams: separate constraints from delegated discretion, escalate genuine intent calls, and use grounded precedent—not abstract engineering rules. Prioritize capturing human reasoning, grounding artifacts, and improving retrieval as the corpus grows. Jev drafts/grounds and makes bounded judgments; it does not verify human-judgment outcomes. Accept choices within explicit latitude; executor-authored details are not requirements without human adoption. Resolve material gaps; avoid marginal schema complexity. Open **principles** for priorities/trust; **lifecycle** for stages and authoring; **discretion** for delegated choices; **verification** for evidence/tests; **spec-edits** for adoption; **corpus** for learning automation; **architecture** for complexity tradeoffs; **signals** for recommendations. ## principles Doen is durable shared intent for designers, engineers, and product owners. Separate fixed constraints from delegated discretion; escalate genuine intent calls; use comparable decisions as precedent. Avoid abstract engineering-rule distillation: the heuristic flywheel was retired (228 rules yielded only 5 usable, with a circular success metric). Priorities: capture human reasoning during shaping (historically agent-raised decisions dominated and product initiatives yielded none); ground generated specs and learning records in real project data; improve retrieval after a product corpus exists. Fabricated references/outcomes erode trust. Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a verifier for human-judgment criteria. ## lifecycle Hide Learn entirely in Draft/Building; render it only in Learn. Treat not-yet-applicable as absent, not disabled. `research_findings` is executor-owned working text: MCP writes use documented last-write-wins, even over human edits; humans generally annotate after investigation. Use dedicated `submit_research_findings`, not a changed `submit_evidence` contract. People may add/edit spec items during Draft; after draft, changes remain executor proposals. Starting needs a description and Build/Research choice (default Build); title is optional, with description first line as readable provisional title, and executor may rename while drafting. Keep downstream constraints/specs consistent with this. ## discretion Honor fixed intent versus explicitly delegated choices; a bounded precedent is not blanket delegation. Choices left standing within scope include: show simultaneous redundancy/conflict verdicts separately with citations; evaluator judgment for overlap, surfacing close calls; dashboard-only spec loops for v1; exact criterion-text matching for criteria-domain loops; 0.75 similarity threshold for rewritten heuristic items; retain StructuredLLM for variable-length importance judgments with reasoning/citations; low-confidence type inference may best-guess with warning; an 8-fixture live eval suffices for simple type inference without heavier bench. For a measured regression plausibly caused by implementation within latitude, iterate and remeasure before escalating. Escalate when uncertainty is product intent. ## verification Distinguish mechanism tests from live-corpus limits. Six raw combinations cannot yield >6 scores: test realistic event-count sweeps for >20 distinct scores and separately verify live recompute correctness. Do not leave material criteria unverified or cosmetically weaken them. Prefer deterministic, cheap merge gates: cassette-replayed checks in backend/tests/bench/default tests; live, costly, nondeterministic model evals stay opt-in in backend/tests/evals. If requested CI does not exist, use a reliable available gate and amend the criterion to reality. Preserve test intent: repair stale test/API contracts; invert assertions when the intended contract reverses; do not weaken guards. Local comparisons do not prove deployment outcomes: submit pre-deploy evidence, mark needs_judgment, and keep post-deploy criteria open until production evidence exists. Use actual current baselines and established measurement channels. ## spec-edits Executor authorship is not product intent; distinguish mere inclusion from deliberate human adoption. Human review removed Advisor Observations' exact-two-follow-up-actions/no-standalone-close-button criterion. Conversely, adoption made these requirements: LLM cost entries record project/model/purpose/token counts; pricing is updateable and cost entries retrievable/value-correct; MCP reshape supports stdio and HTTP. Keep optional-title language consistent across UI, constraints, and latitude. ## corpus The human promotion queue recreated the maintenance bottleneck. Jev may auto-admit confident, sound, well-scoped, condition-bearing standalone rules; uncertain rules remain raw and humans can override. Jev may confirm high-confidence merge/generalization proposals; borderline cases queue for human judgment and override. Retirement remains human-gated because removal feels more irreversible, even with a restorable rejected sentinel. A dormant gate is a stall, not a safety property. To avoid stranding pending proposals, verdict evaluation may cover all pending project proposals, not only newly created ones; preserve five-step order, proposal logic, and never-raises contract. ## architecture Avoid schema complexity when trace value is marginal; bounded fidelity loss can be acceptable. Accepted collapsing initiative_created into dismissed without trace despite BD-51 loop-signal undercount: narrow slice, marginal signal, schema cost not justified. Conversely, resolve material architecture gaps before rollout: chose halfvec + HNSW for 3072-dimension migration rather than leave production retrieval
build-doen · signals · dream at call 25
Doen is durable shared intent for product teams: separate constraints from delegated discretion, escalate genuine intent calls, and use grounded precedent—not abstract engineering rules. Capture human reasoning when stated; ground generated artifacts; test memory only as a capped, measured experiment. Jev drafts, grounds, and makes bounded judgments; it does not verify human-judgment outcomes. Executor-authored details are not requirements without human adoption. Accept choices within explicit latitude; resolve material gaps, avoid marginal schema complexity, and keep evidence honest. Open **principles** for priorities/trust; **lifecycle** for stages and initiative authoring; **discretion** for delegated choices; **verification** for evidence/tests; **spec-edits** for adoption; **corpus** for learning ## principles Doen is one durable intent artifact for designers, engineers, and product owners. Separate fixed constraints from explicitly delegated discretion; escalate genuine product-intent calls; use comparable decisions as precedent. Avoid abstract engineering-rule distillation: the heuristic flywheel produced only 5 usable rules from 228 and had a circular success metric. Priorities: capture human reasoning at decision time; ground generated specs and learning records in real project data; improve precedent retrieval once a product corpus exists (baseline usefulness was 18%). Fabricated references/outcomes erode trust. Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a verifier for behavior or human-judgment criteria. ## lifecycle Hide Learn entirely in Draft/Building; render only in Learn. Treat not-yet-applicable as absent, not disabled. `research_findings` is executor-owned working text: documented last-write-wins, including over human edits; people generally annotate after investigation. Use dedicated `submit_research_findings`, not a changed `submit_evidence` contract. People may add/edit spec items during Draft; afterward changes remain executor proposals. Starting requires description and Build/Research choice (Build default); title is optional, with description's first line as provisional readable title; executor may rename while drafting. Keep UI, constraints, latitude, and criteria consistent. ## discretion Honor fixed intent versus delegated choices; a bounded precedent is not blanket delegation. Choices left standing within scope: show simultaneous redundancy/conflict verdicts separately with citations; evaluator judgment for overlap while surfacing close calls; dashboard-only spec loops v1; exact criterion-text matching for criteria-domain loops; 0.75 similarity threshold for rewritten heuristic items; retain StructuredLLM for variable-length importance judgments with reasoning/citations; low-confidence type inference may best-guess with warning; an 8-fixture live eval suffices for simple type inference without a heavier bench. For a measured regression plausibly caused by implementation within latitude, iterate and remeasure before escalating. Escalate uncertainty about product intent. ## verification Distinguish mechanism tests from live-corpus limits: six raw combinations cannot produce >6 scores, so sweep realistic event counts to test >20 distinct scores and separately verify live recompute correctness. Do not leave material criteria unverified or cosmetically weaken them. Prefer deterministic, cheap merge gates: cassette-replayed checks in backend/tests/bench/default suite; live, costly, nondeterministic model evals stay opt-in in backend/tests/evals. If requested CI does not exist, use a reliable available gate and amend criterion to reality. Preserve test intent: repair stale test/API contracts; invert assertions when the intended contract reverses; don't weaken guards. Local comparisons do not prove deployment outcomes: submit pre-deploy evidence, mark needs_judgment, and leave post-deploy criteria open until production evidence exists. Use current baselines and established measurement channels. ## spec-edits Executor authorship is not product intent: distinguish mere inclusion from deliberate human adoption. Human review removed Advisor Observations' exact-two-follow-up-actions/no-standalone-close-button criterion. Conversely, adoption made these requirements: LLM cost entries record project/model/purpose/token counts; pricing is updateable and cost entries retrievable/value-correct; MCP reshape supports stdio and HTTP. Keep optional-title language consistent across UI, constraints, and latitude. A spec that intentionally reverses a contract should update tests encoding the old contract; this is not weakening assertions. ## corpus Human promotion queue recreated the maintenance bottleneck. Jev may auto-admit confident, sound, well-scoped, condition-bearing standalone rules; uncertain rules remain raw, humans can override. Jev may confirm high-confidence merge/generalization proposals; borderline cases queue for human judgment and override. Retirement remains human-gated because removal feels more irreversible, even with a restorable rejected sentinel. A dormant gate is a stall, not safety. Verdict evaluation may cover all pending project proposals, not only newly created ones, to avoid stranding; preserve five-step order, proposal logic, and never-raises contract. Quiet confirmation applies only to executor calls on completed initiatives that people could see and did not retire; `record_work` is not reviewed and silence/time alone is not confirmation. ## architecture Avoid schema complexity when trace value is marginal; bounded fidelity loss can be acceptable. Accepted collapsing `initiative_created` into dismissed
resume-builder · promoted · dream at call 5
Product default: user owns and edits career material; AI assists on demand and never blocks. Preserve committed requirements and data that cannot be reconstructed. Profiles are the career library; resumes are editable, localized documents. Open `model` for ownership, provenance, and targeting; `skills` for normalization; `drift` for version tracking; `jsonb-tests` for DB/test compatibility; `revisions` for autosave and snapshot triggers. ## model Profiles are the career library; resumes are directly editable documents and the visible editing surface. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Retain source-entry/bullet provenance in resume content and offer edits back to the profile. Targeting considers the union of user-authored material. AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker; localization adapts structure, length, formatting, and cultural norms by market. Treat documented, committed requirements as evidence, not hypothetical future needs; preserve information that cannot be reconstructed. ## skills Keep skills and profile_skills relational tables, with skills.aliases for canonical vocabulary. RB-5 commits to alias normalization (e.g. K8s/Kubernetes to one normalized_term) and resume_keywords.skill_id FK; shared vocabulary is therefore a real requirement, not speculative complexity. Do not collapse skills into profiles.skills JSONB. ## drift Track profile-to-resume variant drift with profiles.version and resumes.profile_version. Bump profile version on every profile, entry, or bullet write; snapshot it when generating a resume. Compare the integers to detect drift. Do not use timestamps: profiles.updated_at can miss child entry/bullet edits. This preserves historical generation state that cannot be backfilled later. ## jsonb-tests Declare PostgreSQL JSONB with .with_variant(sqlite.JSON, 'sqlite') on each JSONB column. Production, migrations, and Postgres use real JSONB, while the existing SQLite suite and its conftest/create_all remain unchanged. Add a separate Postgres-backed fixture for behavior SQLite cannot validate, especially the shares CHECK constraint and in-place JSONB mutation. Avoid migrating the whole suite to Docker Postgres or splitting ORM metadata. ## revisions Continuous autosave writes resume content without creating snapshots. Each idle-gap timeout is a distinct trigger and creates exactly one revision row every time it fires—even if another snapshot trigger occurred; do not gate it on changed-since-last-snapshot. Explicit user actions may also create revisions.
resume-builder · promoted · dream at call 10
User owns career material; AI assists on demand and never blocks. Preserve committed requirements and data that cannot be reconstructed. Profiles are the career library; resumes are editable, localized documents. Open `model` for ownership/provenance; `skills` for shared vocabulary; `drift` for versioning; `db-tests` for JSONB compatibility; `revisions` for checkpoint semantics; `auth` for status codes/scoping; `generation` for compliance; `worker-prompts` for worker setup and prompt conventions. ## model Profiles are the career library; resumes are directly editable documents and the visible editing surface. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Retain source-entry/bullet provenance in resume content and offer edits back to the profile. Targeting considers the union of user-authored material. AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker; localization adapts structure, length, formatting, and cultural norms by market. Treat documented, committed requirements as evidence, not hypothetical future needs; preserve information that cannot be reconstructed. ## skills Keep skills and profile_skills relational tables, with skills.aliases for canonical vocabulary. RB-5 commits to alias normalization (e.g. K8s/Kubernetes to one normalized_term) and resume_keywords.skill_id FK; shared vocabulary is a real requirement. Do not collapse skills into profiles.skills JSONB. ## drift Track profile-to-resume variant drift with profiles.version and resumes.profile_version. Bump profile version on every profile, entry, or bullet write; snapshot it when generating a resume. Compare integers to detect drift. Do not use timestamps: profiles.updated_at can miss child entry/bullet edits. This preserves historical generation state that cannot be backfilled later. ## db-tests Declare PostgreSQL JSONB with .with_variant(sqlite.JSON, 'sqlite') on each JSONB column. Production, migrations, and Postgres use real JSONB; existing SQLite suite and conftest/create_all stay unchanged. Add a separate Postgres-backed fixture for behavior SQLite cannot validate, especially shares CHECK constraint and in-place JSONB mutation. Do not migrate the whole suite to Docker Postgres or split ORM metadata. ## revisions Continuous autosave writes resume content without creating snapshots. Each idle-gap timeout is its own trigger and always creates exactly one revision row, even if another snapshot was previously made; never gate on changed-since-last-snapshot. If checkpoint conditions overlap simultaneously, write one row for that checkpoint event and record every fired trigger/reason. Explicit user actions may also create revisions. ## auth Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, never 403 for ownership mismatch; non-enumerability overrides conflicting spec wording. Scope service queries by user_id so foreign rows are never loaded. Test unauthenticated and cross-user cases separately. ## generation Run check_compliance before writing a targeted resume. ERROR findings block generation; warnings do not. Store and surface all findings on resumes.compliance. Ask users to provide missing market-required fields (e.g. ME nationality); do not generate a likely-rejected resume. ## worker-prompts Prefer the smallest reversible worker change: build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, include AI dependencies in worker requirements, reuse API code, and delete stale worker/app/shared/ duplicate. Keep shared-package extraction separate. Railway worker uses repo-root context and explicit Dockerfile path. If specs require prompts/ but none exists, establish one convention: move shared SYSTEM_PROMPT into api/app/prompts/ with exact text and same name/module; avoid competing inline prompts.
resume-builder · promoted · dream at call 15
User owns professional history; AI assists on demand, never blocks. Preserve committed requirements and non-reconstructible data. Profiles are the career library; resumes are editable documents. Current direction is pure markdown free text, superseding RB-12 structure. Open `model` for ownership/provenance; `free-text` for resume format and downstream implications; `skills` for shared vocabulary; `drift` for versioning; `db-tests` for JSONB compatibility; `revisions` for checkpoints; `auth` for status/scoping; `generation` for compliance; `worker-prompts` for worker setup; `concurrency` for version tokens.
## model
Profiles are the career library; resumes are directly editable documents and visible editing surface. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Preserve source-entry/bullet provenance where it remains meaningful and offer resume edits back to profile. Targeting considers the union of user-authored material. AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker; localization adapts structure, length, formatting, and cultural norms by market. Treat committed requirements as evidence, not hypothetical future needs; preserve information that cannot be reconstructed.
## free-text
Current human decision: resumes.content = {markdown: "..."}, pure free text with no required headings, sections, fields, or recognized structural contract. This supersedes RB-12's structured Tiptap schema/editor and the H2-as-section compromise; RB-12 was shipped correctly for its then-direction, not a defect. Do not quietly preserve structural assumptions. Existing structured JSONB rows need data conversion despite no DDL. Downstream needs (compliance/order, bullet quality, keyword attribution, localization) must use GenAI document understanding. Revisit generation/provenance guards, keyword evidence/acceptance, compliance section_order/included_fields, and outline/reordering UI. Define provenance without per-bullet fields. Markdown support should fit free-text editing; RB-10 remains authority for ATS-safe output. Prior renderer-as-editing-surface and structured-schema choices are invalidated by this direction. Playwright browser verification was chosen for editing behavior; adapt the suite to the new model.
## skills
Keep skills and profile_skills relational tables, with skills.aliases for canonical vocabulary. RB-5 commits to alias normalization (e.g. K8s/Kubernetes to one normalized_term) and resume_keywords.skill_id FK; shared vocabulary is a real requirement. Do not collapse skills into profiles.skills JSONB.
## drift
Track profile-to-resume variant drift with profiles.version and resumes.profile_version. Bump profile version on every profile, entry, or bullet write; snapshot it when generating a resume. Compare integers to detect drift. Do not use timestamps: profiles.updated_at can miss child entry/bullet edits. This preserves historical generation state that cannot be backfilled later.
## db-tests
Declare PostgreSQL JSONB with .with_variant(sqlite.JSON, 'sqlite') on each JSONB column. Production, migrations, and Postgres use real JSONB; existing SQLite suite and conftest/create_all stay unchanged. Add a separate Postgres-backed fixture for behavior SQLite cannot validate, especially shares CHECK constraint and in-place JSONB mutation. Do not migrate the whole suite to Docker Postgres or split ORM metadata.
## revisions
Continuous autosave writes resume content without creating snapshots. Each idle-gap timeout is a distinct trigger and always creates exactly one revision row, even if another snapshot was previously made; never gate on changed-since-last-snapshot. If checkpoint conditions overlap simultaneously, write one row for that checkpoint event and record every fired trigger/reason. Explicit user actions may also create revisions.
## auth
Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, never 403 for ownership mismatch; non-enumerability overrides conflicting spec wording. Scope service queries by user_id so foreign rows are never loaded. Test unauthenticated and cross-user cases separately.
## generation
Run check_compliance before writing a targeted resume. ERROR findings block generation; warnings do not. Store and surface all findings on resumes.compliance. Ask users to provide missing market-required fields (e.g. ME nationality); do not generate a likely-rejected resume. Structured-content compliance assumptions such as section_order/included_fields must be redesigned for free-text documents using document understanding.
## worker-prompts
Prefer the smallest reversible worker change: build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, include AI dependencies in worker requirements, reuse API code, and delete stale worker/app/shared/ duplicate. Keep shared-package extraction separate. Railway worker uses repo-root context and explicit Dockerfile path. Establish one prompt convention under api/app/prompts/: move shared SYSTEM_PROMPT there with exact text and same name/module; avoid competing inline prompts.
## concurrency
Resume version_token hashes client-editable state (content, presentation, title, status, template_key, region_code), not updated_at. Derived-value writes/recomputes triggered by reads must not invalidate a client writer; content remains in the hash to avoid timestamp-resolution collisions. Byte-identical resulting state may share a token.resume-builder · promoted · dream at call 20
User owns and edits professional history; AI assists on demand and never blocks. Preserve committed requirements and non-reconstructible data; resolve specs against shipped architecture and intent, not stale wording. Profiles are the career library; resumes are directly editable. Current direction is pure markdown free text. Open `principles` for product judgment; `model` for ownership/provenance; `document` for markdown and downstream effects; `guidance` for anchors and suggestion UI; `data` for skills/drift/storage; `ops` for auth, revisions, generation, worker and prompts; `ui-tests` for browser verification and overview rules.
## principles
User owns and edits base professional history; AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker. Localization adapts structure, length, formatting and cultural norms to markets. Resolve specs against shipped architecture and intent: stale requirements do not justify resurrecting retired features or superficial substitutes. Preserve committed requirements and information that cannot be reconstructed.
## model
Profiles are the career library; resumes are directly editable documents and visible editing surface. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Preserve meaningful source provenance and offer resume edits back to profile. Targeting considers the union of user-authored material. RB-9 retired resume score (column, scorer, endpoints/API): never restore it. Overview tables show title, created/edited, actions, and archived date where applicable—no score or compliance.
## document
Current direction: resumes.content = {markdown: "..."}, pure free text with no required headings, sections, fields or structural contract. This supersedes RB-12's structured Tiptap schema and H2-as-section compromise; RB-12 shipped correctly for its then-direction. Convert existing structured JSONB rows despite no DDL. Downstream compliance/order, bullet quality, keyword attribution and localization require document understanding. Revisit generation/provenance guards, keyword evidence, section_order/included_fields and outline UI; define provenance without per-bullet fields. RB-10 remains authority for ATS-safe output.
## guidance
Guidance uses exact-text anchors {quote, occurrence}; apply by scoped atomic replacement. Stale anchors fail closed; resolve at read/accept, not every autosave. Dismissal key hashes category + normalized quote. RB-9 producer scope is keywords only; keep formatting and quantification/rule authorship separate. Panel shows exactly one card; no job target means empty queue. Document surface exposes open queue, allows client selection (server order default), suppresses stale markers. Mark each anchored line with quiet, layout-neutral dotted underline, quieter than active solid underline/tint. Clicking selects an anchored suggestion and places caret normally; repeated clicks cycle through suggestions on that line. RB-18 shipped active highlight remains unchanged.
## data
Keep skills and profile_skills relational tables; skills.aliases canonicalize shared vocabulary (e.g. K8s/Kubernetes) and resume_keywords.skill_id references skills. Track drift with profiles.version and resumes.profile_version; bump on every profile, entry or bullet write, snapshot on generation. Compare integers, not timestamps; child edits may not update profiles.updated_at and historical state cannot be backfilled.
## storage-tests
Declare PostgreSQL JSONB with .with_variant(sqlite.JSON, 'sqlite') on each JSONB column. Production, migrations and Postgres use real JSONB; preserve SQLite suite and conftest/create_all. Add separate Postgres fixture for behavior SQLite cannot validate, especially shares CHECK constraint and in-place JSONB mutation; do not move whole suite to Docker Postgres or split ORM metadata.
## revisions-auth
Continuous autosave writes content without snapshots. Each idle-gap timeout always creates exactly one revision; do not gate on change since prior snapshot. Simultaneous checkpoint conditions make one row recording every fired reason; explicit actions may also snapshot. Auth: unauthenticated=401; cross-user and nonexistent resources=404 on every route, never 403. Scope service queries by user_id so foreign rows are never loaded; test unauthenticated and cross-user separately.
## generation
Run check_compliance before writing a targeted resume. ERROR blocks generation; warnings do not. Store and surface all findings on resumes.compliance. Ask users for missing market-required fields (e.g. ME nationality), rather than generate a likely-rejected resume. Compliance is persisted only by targeted generation, never on reads.
## worker-prompts
Prefer smallest reversible worker change: build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, include AI dependencies in worker requirements, reuse API code and delete stale worker/app/shared duplicate. Keep shared-package extraction separate. Railway worker uses repo-root context and explicit Dockerfile path. Establish one prompt convention under api/app/prompts/: move shared SYSTEM_PROMPT there with exact text and same name/module.
## ui-tests-concurrency
Use Playwright against the running stack for browser behavior, especially contentEditable/caret and cross-tier criteria; retain pytest for server invariants. Resume version_token hashes client-editable state (content, presentation, title, status, template_key, region_code), not updated_at. Derived writes/recomputes triggeredresume-builder · promoted · dream at call 25
User owns professional history and documents; AI advises, never gatekeeps. Prefer clear, reversible edits and proven mechanisms. Resolve conflicts against shipped architecture and recorded intent, not stale specs; preserve committed requirements and non-reconstructible data. Current document model is pure markdown. Profiles are the career library; resumes are editable. Open `principles` for judgment; `model` for ownership and RB-21; `document` for markdown/rendering; `guidance` for anchors and suggestions; `data` for skills/drift/storage; `ops` for auth, revisions, generation, worker/prompts; `ui-tests` for browser testing and overview rules.
## principles
User owns and edits professional history; AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker. Users must always be able to export their document. Localization may adapt structure, length, formatting and cultural norms. Prefer proven mechanisms, unambiguous edits and smallest reversible changes. Resolve specifications against shipped architecture and intent: stale wording must not resurrect retired features or create superficial substitutes. Preserve committed requirements and information that cannot be reconstructed.
## model
Profiles are the career library; resumes are directly editable documents. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Targeting considers user-authored material across the library; preserve source provenance and offer resume edits back to profile. RB-9 retired score column, scorer and endpoints—never restore. Overview tables show title, created/edited, actions, archived date if applicable; no score or compliance. One resume = one role/context/thread. Duplicate copies document/context fields and appears beside siblings, but starts with fresh assistant thread and requirement decisions; role choice timing is discretionary.
## document
Current target: resumes.content = {markdown: "..."}, pure free text with no required headings, sections, fields or structural contract. This supersedes RB-12's structured Tiptap schema and H2 compromise; RB-12 shipped correctly for its then-direction. Convert existing structured JSONB rows without DDL. Downstream compliance, ordering, bullet quality, keyword attribution and localization need document understanding. Revisit generation/provenance guards, section_order/included_fields and outline UI; define provenance without per-bullet fields. RB-10 remains authority for ATS-safe output. Renderer parity decision: editing surface consumes render_resume_html(standalone=False), with semantic editable nodes and JSON paths; structural edits update local content then re-fetch rendered body. Read-only render query adds no schema/migration.
## guidance
Guidance anchors are exact text {quote, occurrence}; apply scoped atomic replacement. Stale anchors fail closed (409 on accept); resolve at read/accept, not every autosave. Dismissal key hashes category + normalized quote. Panel shows one card; open queue supports client selection, server order default; no job target means empty queue. Quiet, layout-neutral dotted underline marks each anchored line, quieter than active solid underline/tint. Clicking selects a suggestion and places caret normally; repeated clicks cycle when multiple suggestions share a line. RB-18 active highlight stays unchanged. Calibration findings may be adopted into this existing guidance queue; only grounded items with exact anchor and replacement can be accepted. Findings themselves remain advisory, not auto-applied.
## assistant
RB-21/C2 Guided Assistant is the sole guidance surface; remove unshipped RB-20 findings column and prose panel. Keep backend foundation: stored job profile, OpenRouter calibration, pre-call refusals for missing profile/empty document, unique-anchor grounding, adopt-finding-to-guidance-queue. C2 includes requirement contract, fact capture, durable per-resume thread, status/skipped/dismissed decisions, placeholders, continuous checks, diff/apply/undo. Findings are advisory until accepted; all document-changing suggestions go through guidance. Placeholder count on export control and in-document markers, but export is never blocked; preserve export path. RB-20 panel criterion is historical only.
## data
Keep skills and profile_skills relational; skills.aliases canonicalize shared vocabulary (e.g. K8s/Kubernetes), resume_keywords.skill_id references skills. Drift uses profiles.version and resumes.profile_version; bump on every profile/entry/bullet write, snapshot at generation. Compare integers, not timestamps; child edits may not update profiles.updated_at and historical state cannot be backfilled. For JSONB, declare PostgreSQL JSONB with .with_variant(sqlite.JSON, 'sqlite') on every JSONB column. Keep SQLite suite/conftest/create_all; add separate Postgres fixture for behavior SQLite cannot validate (shares CHECK, in-place JSONB mutation), not a wholesale Docker migration or split ORM metadata.
## ops
Continuous autosave writes content without snapshots. Each idle-gap timeout always creates exactly one revision; simultaneous checkpoint conditions create one row recording all fired reasons; explicit actions may snapshot too. Auth: unauthenticated 401; cross-user and nonexistent 404 on every route. Scope service queries by user_id; test unauthenticated and cross-user separately. version_token hashes client-editable state (content, presentation, title, status, template_key, region_code), not updated_at. Targeted generation runs check_compliance before writing: ERROR blocks, warningsresume-builder · promoted · dream at call 30
User owns professional history/documents; AI advises and proposes, never gatekeeps export. Prefer clear, reversible edits; trust shipped architecture and recorded intent over stale specs, while preserving committed requirements and irreplaceable data. Current resume model is pure markdown. Profiles are career library; resumes editable, one role each. Open `principles` for judgment; `model` for ownership/overview/duplication; `document` for markdown/rendering; `guidance` for anchors/marks; `assistant` for C2 workflow and requirements; `settings` for context defaults; `data` for skills/drift/JSONB; `ops` for auth/revisions/generation; `ui-tests` for browser harness and UI decisions.
## principles
The user owns and edits professional history; AI is an on-demand reviewer/enhancer/localizer, never a workflow blocker. Users must always be able to export. Localization may adapt structure, length, formatting and cultural norms. Prefer proven mechanisms, clear edits and the smallest reversible change. Resolve specs against shipped architecture and intent, not stale wording or superficial substitutes. Preserve committed requirements and information that cannot be reconstructed.
## model
Profiles are the career library; resumes are directly editable documents. Keep resumes.profile_id NOT NULL; first run seeds a profile from the first resume. Targeting considers user-authored material across the library; provenance/write-back remains important. One resume = one role/context/thread. Duplicate copies document/context fields and appears beside siblings, but gets a fresh assistant thread and requirement decisions; role-choice timing is discretionary. Overview tables: title, created/edited, actions, and archived date where applicable—no score or compliance. RB-9 retired score column/scorer/endpoints; never restore.
## document
Current storage is resumes.content={markdown:"..."}, pure free text: no required headings, sections, fields or structural contract. This supersedes RB-12's structured Tiptap schema and H2 compromise; RB-12 was correct for its then-direction. Convert existing structured JSONB rows without DDL. Downstream compliance, ordering, bullet quality, keyword attribution and localization need document understanding. RB-10 remains authority for ATS-safe output. Renderer parity: editing surface consumes render_resume_html(standalone=False), semantic editable nodes and JSON paths; structural edits update local content then re-fetch rendered body. Read-only render query needs no schema/migration.
## guidance
Guidance anchors are exact text {quote, occurrence}; apply scoped atomic replacement. Stale anchors fail closed (409 on accept); resolve at read/accept, not every autosave. Dismissal hashes category + normalized quote. One card/proposal is considered at a time, but document marks map every open suggestion: quiet, layout-neutral dotted underline per anchored line, quieter than active solid underline/tint. Clicking selects/targets the line and places caret normally; repeated clicks cycle multiple suggestions on a line. No suggestion panel: proposals live in assistant thread, accessible via agenda, queue popover or marks. Calibration findings stay advisory unless adopted into this existing queue; only grounded exact anchors/replacements are actionable.
## assistant
RB-21/C2 Guided Assistant is sole guidance surface, not general chatbot or rigid wizard. Keep RB-20 backend foundation (stored job profile, OpenRouter calibration, pre-call refusals for missing profile/empty document, unique-anchor grounding, adopt finding into guidance queue); remove unshipped findings column and prose panel. Conversation leads to grounded actions; no blank start. Route typed input to known targets/actions; narrow vague asks, clarify unclear targets, fallback; disable composer until role exists; derive chips from resume state, avoid unsupported claims. Durable per-resume thread, requirement status/skipped/dismissed decisions, fact capture, placeholders, continuous checks and diff/apply/undo. Findings are advisory until accepted; document changes go through guidance. Placeholder count/markers warn but never block export. Requirements derive from advert; preserve decisions by stable item_key (category + requirement ID, not wording); close removed items, open genuinely new ones, don't re-ask answered items.
## settings
Account assistant defaults (language, tone, default market) live in one validated JSONB document in existing users.preferences, using app/schemas/jsonb.py; no migration or bespoke settings UI. These are account defaults, not profile attributes: profile switching must not change assistant behavior. Distinguish product language from profiles.languages (spoken languages). Resume-specific overrides such as region_code take precedence. Extend settings through registry entries/prompt variables.
## data
Keep skills and profile_skills relational; skills.aliases canonicalize shared vocabulary (e.g. K8s/Kubernetes), resume_keywords.skill_id references skills. Drift uses profiles.version and resumes.profile_version; bump on profile/entry/bullet writes, snapshot at generation. Compare integers, not timestamps; child edits may not update profiles.updated_at and old state cannot be backfilled. For JSONB, declare PostgreSQL JSONB with .with_variant(sqlite.JSON,'sqlite') on every JSONB column. Keep SQLite suite/conftest/create_all; separate PostgreSQL fixture for behavior SQLite cannot validate (shared CHECK, in-place JSONB mutation), not wholesale Docker migration or split ORM metadata.
## ops
Autosave writes content without snapshots. Everyresume-builder · signals · dream at call 5
Product decisions favor preserving future optionality when data loss/backfill would be irreversible, while keeping the product surface aligned with the reference UI. Explicit committed specs and constraints outrank hypothetical simplification; satisfy constraints literally and avoid unrelated test changes. Keep the reusable career library plus editable resume variants, normalized shared skills, and version-based drift tracking. Open `resume-model` for ownership, provenance, skills, and drift; `testing` for DB/test constraints; `revisions` for autosave semantics. ## resume-model Resume platform decisions: Use both a reusable, user-owned career library (`profiles`) and directly editable resume documents/variants. Resumes are the primary editing surface; profiles support reuse and targeting across all career material. Keep `resumes.profile_id` NOT NULL and seed a profile from the user's first resume. Preserve `source_entry_id`/`source_bullet_id` provenance in resume content for optional promote/write-back to the library. Do not make resumes profile-only snapshots or make the profile a derived library. Skills: retain `skills` + `profile_skills`, with shared canonical vocabulary and aliases (e.g. K8s/Kubernetes); `resume_keywords.skill_id` references `skills`. This is justified by committed normalization and cross-user analytics requirements, not speculation. Drift: increment `profiles.version` for any profile/entry/bullet write; copy it to `resumes.profile_version` on generation. Drift is inequality. Prefer counters over timestamps because child edits evade parent `updated_at`; historical state cannot reliably be backfilled. ## testing For PostgreSQL JSONB columns while preserving the existing SQLite test suite unchanged, use `JSONB().with_variant(sqlite.JSON, 'sqlite')` per column. PostgreSQL production/migrations still use real JSONB; SQLite remains compatible with `Base.metadata.create_all`. Add a dedicated PostgreSQL fixture for behavior SQLite cannot validate (including CHECK constraints and in-place JSONB mutation). Avoid changing existing tests or splitting ORM metadata. ## revisions Resume editor revision semantics: continuous active-typing autosave writes resume content without creating snapshots. The idle-gap timeout is a separate, named trigger and creates exactly one revision row per timeout, even if another snapshot mechanism may have captured unchanged content. Do not conflate the idle-gap snapshot with the continuous autosave or suppress it based on content-change checks.
resume-builder · signals · dream at call 10
Preserve future optionality when irreversible data loss or backfill is at stake, but keep the product surface aligned with the reference UI. Honor committed constraints literally; avoid unrelated test changes and prefer the smallest reversible implementation. The product is user-led with AI as on-demand support. Open `resume-model` for library/editor ownership, skills, drift, and AI role; `revisions` for autosave/checkpoints; `testing` for DB constraints; `generation` for compliance; `authorization` for 401/404; `worker-infra` for deployment; `prompts` for prompt conventions. ## resume-model Keep both a reusable, user-owned career library (`profiles`) and directly editable resume variants. Resumes are the editing surface; profiles enable reuse/targeting. `resumes.profile_id` remains NOT NULL; seed a profile from the first resume. Preserve source_entry_id/source_bullet_id provenance for optional promote/write-back. Users own/manage career history; AI is an on-demand reviewer, enhancer, and localizer, adapting structure, length, formatting, and cultural expectations by market. Keep normalized `skills` + `profile_skills`, aliases for canonical terms (e.g. K8s/Kubernetes), and `resume_keywords.skill_id` FK: committed shared-vocabulary and cross-user analytics requirements justify them. Track drift with `profiles.version` bumped for profile/entry/bullet writes and copied to `resumes.profile_version` on generation; inequality means drift. Counters avoid child-edit timestamp gaps, and historical state cannot be backfilled. ## revisions Continuous active-typing autosave updates resume content without creating snapshots. Idle-gap timeout is a distinct trigger and creates exactly one revision row per timeout, even if unchanged since another snapshot. If checkpoint conditions overlap at the same moment, write one row for that checkpoint event and record every fired condition; do not duplicate rows or lose trigger auditability. ## testing For PostgreSQL JSONB columns while keeping existing SQLite tests unchanged, use `JSONB().with_variant(sqlite.JSON, 'sqlite')` on each column. Production/migrations retain real JSONB; SQLite supports existing `Base.metadata.create_all`. Add a dedicated PostgreSQL fixture for behavior SQLite cannot validate (including CHECK constraints and in-place JSONB mutation). Do not alter existing tests or split ORM metadata. ## generation Run `check_compliance()` before writing a resume row. ERROR findings block generation; warnings do not. Store all findings in `resumes.compliance` and surface them. Required-field errors should prompt users; warnings alone must not make generation unusable. ## authorization Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, including resumes and profiles; do not return 403. Scope ownership in the database query so foreign rows are never loaded. Test cross-user and nonexistent cases separately. The IDOR rationale and shipped RB-2 404 decision supersede RB-3's inherited 403 wording. ## worker-infra For feature work needing API code in a separate worker, prefer the smallest reversible repo-root Docker build: COPY `api/` and `worker/`, add `api/` to PYTHONPATH, include required AI dependencies in worker requirements, and delete stale `worker/app/shared/` duplicates. Configure Railway worker with repo root and explicit Dockerfile path. Shared-package extraction is a separate, longer-term refactor. ## prompts Prefer one authoritative `api/app/prompts/` convention over competing prompt patterns, even though the spec falsely claimed the directory already existed. Consolidate the existing inline `SYSTEM_PROMPT` there too. Preserve its name, module, exact text, and behavior; keep dependent pipeline/tests working unchanged.
resume-builder · signals · dream at call 15
Users own and manage professional history; AI is on-demand support, never a workflow gate. Preserve optionality around irreversible data loss/backfills, honor committed constraints, and prefer the smallest reversible change. Resumes are the editing surface; latest direction is one free-form Markdown document, not structured fields. Open `resume-model` for ownership/drift and document-direction implications; `revisions` for checkpoint semantics; `testing` for DB/browser test boundaries; `generation` for compliance; `authorization` for 401/404; `worker-infra` for deployment; `prompts` for prompt conventions.
## resume-model
Keep a reusable user-owned career library (`profiles`) and directly editable resumes; `resumes.profile_id` stays NOT NULL and first run seeds a profile from the first resume. Preserve provenance/write-back where applicable. Keep normalized `skills` + `profile_skills`, aliases, and `resume_keywords.skill_id` for shared vocabulary/analytics. Track drift with `profiles.version` bumped on profile/entry/bullet writes and copy to `resumes.profile_version` at generation; timestamps miss child edits. Product principle: users own/manage history; AI helps on demand and must not block workflow.
Latest direction supersedes RB-12's shipped structured schema: `resumes.content = {markdown: "..."}` is one free-form Markdown document. No required headings, sections, fields, or custom-node one-to-one schema. Downstream compliance, keyword/evidence attribution, evaluation, and formatting must use GenAI document understanding, not structural contracts. Treat this as a change of direction, not a defect. When revising/building, explicitly plan migration of structured JSONB rows, replacement of structured HTML/PDF rendering, redefined generation provenance and keyword acceptance/evidence, rethought compliance and section-outline/reordering, and broader Markdown support while RB-10 ATS constraints remain authoritative. Prior structured Tiptap schema, semantic-node renderer-editing plan, and section-field assumptions no longer define the target.
## revisions
Continuous active-typing autosave updates resume content without snapshots. Idle-gap timeout is a distinct trigger and always creates exactly one revision, even if unchanged since another snapshot. If checkpoint conditions overlap, create one row for the checkpoint event and preserve every fired trigger in its audit metadata; never duplicate rows or discard trigger details.
## testing
For PostgreSQL JSONB while retaining existing SQLite tests unchanged, use `JSONB().with_variant(sqlite.JSON, 'sqlite')` on each column. Production/migrations retain real JSONB; add dedicated PostgreSQL coverage for behavior SQLite cannot prove (including CHECK constraints and in-place JSONB mutation). Do not alter existing tests or split ORM metadata. For browser-dependent editing/cross-tier behavior, prefer Playwright against the running stack and verify persisted resume content via API; keep DB/revision invariants in pytest.
## generation
Run `check_compliance()` before writing a resume. ERROR findings block generation; warnings do not. Store all findings in `resumes.compliance` and surface them. Required-field errors should prompt the user; warnings alone must not make generation unusable. With the free-form Markdown direction, revisit checks and generation/provenance logic rather than assuming structured fields or sections.
## authorization
Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, including resumes and profiles; never 403. Scope ownership in the database query so foreign rows are never loaded. Test cross-user and nonexistent cases separately. This supersedes RB-3's inherited 403 wording; RB-2's IDOR rationale and shipped 404 decision win.
## worker-infra
When feature work needs API code in a separate worker, prefer the smallest reversible repo-root Docker build: COPY `api/` and `worker/`, add `api/` to PYTHONPATH, include required AI dependencies in worker requirements, and delete stale `worker/app/shared/` duplicates. Configure Railway worker with repo root and explicit Dockerfile path. Shared-package extraction is a separate, longer-term refactor.
## prompts
Prefer one authoritative `api/app/prompts/` convention, even though the spec falsely claimed that directory already existed. Consolidate inline `SYSTEM_PROMPT` there too. Preserve its name, module, exact text, and behavior; keep dependent pipeline/tests working unchanged.
## editor-state
The user chose one editor for the whole resume (not multiple editors per section), then most recently chose pure free text: one Markdown document with no structural contract. The earlier Tiptap custom-node/field schema and renderer-semantic-node editing plan were based on the now-superseded structured model; do not carry them forward as requirements. Browser editing and cross-tier behavior favor Playwright against a live stack; assert stored content through the API, and keep server-side revision invariants in pytest. Concurrency tokens should represent editable document state, not incidental row activity: exclude `updated_at` when derived reads/writes bump it; hash client-editable state (content, presentation, title, status, template, region).resume-builder · signals · dream at call 20
Users own and manage professional history; AI is on-demand support, never a workflow gate. Prefer the smallest reversible change, preserve optionality around irreversible data loss/backfills, and honor committed constraints unless explicitly superseded. Resumes are the editing surface; latest direction is one free-form Markdown document. Open `resume-model` for ownership/drift; `editor-state` for document, concurrency and guidance marks; `guidance` for queue semantics; `generation` for compliance; `revisions` for checkpoints; `testing` for test boundaries; `authorization` for 401/404; `worker-infra` for deployment; `prompts` for prompt conventions; `resume-overview` for score/compliance display rules.
## resume-model
Profiles are a reusable user-owned career library; resumes are directly editable documents with provenance/write-back where applicable. Keep resumes.profile_id NOT NULL and seed a profile from the first resume. Preserve normalized skills + profile_skills, aliases, and resume_keywords.skill_id for shared vocabulary/analytics. Track drift using profiles.version bumped on profile/entry/bullet writes and copy to resumes.profile_version at generation; timestamps miss child edits. Users manage history; AI helps on demand and must not gate workflow. Localization adapts structure, length, formatting and conventions to target markets.
## editor-state
Current target is resumes.content = {markdown: "..."}: one free-form document, no required headings, fields, sections or custom-node contract. This supersedes RB-12's structured model as a direction change, not a defect. Plan conversion of structured JSONB rows, Markdown rendering/PDF changes, generation provenance and keyword evidence redefinition, compliance/outline/reordering changes, and broader Markdown support; RB-10 ATS constraints remain authoritative. Earlier one-editor/Tiptap custom schema and renderer-semantic-node plans are superseded. Concurrency tokens hash client-editable state (content, presentation, title, status, template, region), not updated_at or read-side derived writes.
## guidance
RB-9 is the sole keyword-guidance producer: no whole-document GenAI, deterministic checks or compliance findings in that queue. RB-10 owns formatting; RB-11 quantification. Five-field items use exact-text anchor {quote, occurrence}; proposed_change uses the user's sentence. Accept scoped replacement atomically; stale anchors are dropped at read and accept, not each autosave. Dismissal key hashes category + normalized quote. Compliance verdicts remain separate. Answer surface is one card/decision at a time, while document marks map open items. Latest mark: quiet, layout-neutral dotted underline per anchored line (not per suggestion), quieter than active styling; panel count gives total. Clicking activates suggestion and places caret normally; repeated clicks cycle suggestions on the same line.
## revisions
Continuous active-typing autosave updates content without snapshots. Idle-gap timeout is a separate trigger and always creates exactly one revision, even if content is unchanged since another snapshot. When checkpoint conditions overlap, write one row per checkpoint event and preserve every fired trigger in audit metadata; never duplicate rows or discard trigger details.
## testing
For PostgreSQL JSONB while preserving existing SQLite tests unchanged, use JSONB().with_variant(sqlite.JSON, 'sqlite') on each column. Keep real JSONB in production/migrations; add dedicated PostgreSQL coverage for behavior SQLite cannot prove (including CHECK constraints and in-place mutation). Do not alter existing tests or split ORM metadata. Use Playwright against the running stack for browser/cross-tier behavior and verify persisted content via API; DB/revision invariants belong in pytest. Vitest is also chosen for pure anchor-matcher cases and ProseMirror decoration surviving text insertion without onChange; Playwright remains the only E2E harness.
## generation
Run check_compliance() before writing a generated resume. ERROR findings block generation; warnings do not. Store and surface all findings. Required-field errors should prompt the user; warnings alone must not make generation unusable. Hand-created resumes remain unchecked; targeted generation persists compliance; GET recomputes without persisting. Reads must not write state. Revisit compliance, generation/provenance and document understanding for free-form Markdown rather than assuming fields/sections.
## authorization
Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, including resumes and profiles; never 403. Scope ownership in the database query so foreign rows are never loaded. Test cross-user and nonexistent cases separately. This supersedes inherited RB-3 403 wording; RB-2's IDOR rationale and shipped 404 decision win.
## worker-infra
For API code needed by a separate worker, prefer the smallest reversible repo-root Docker build: COPY api/ and worker/, add api/ to PYTHONPATH, include required AI dependencies in worker requirements, and delete stale worker/app/shared/ duplicates. Configure Railway worker with repo root and explicit Dockerfile path. Shared-package extraction is a separate longer-term refactor.
## prompts
Use one authoritative api/app/prompts/ convention, even though the spec falsely claimed the directory already existed. Consolidate inline SYSTEM_PROMPT there too. Preserve its name, module, exact text andresume-builder · signals · dream at call 25
Users own and manage professional history; AI is on-demand support, never a workflow gate. Prefer small reversible changes, preserve optionality around data loss/backfills, and honor committed constraints unless explicitly superseded. Resumes are the editing surface; current target is one free-form Markdown document. Open `resume-model` for ownership/drift; `editor-state` for Markdown and concurrency; `guidance` for anchored suggestions; `assistant` for RB-20/21 and role duplication; `generation` for compliance; `revisions` for checkpoints; `testing` for test boundaries; `authorization` for 401/404; `worker-infra` for deployment; `prompts` for prompt conventions; `overview` for display rules.
## resume-model
Profiles are the reusable user-owned career library; resumes are directly editable documents with provenance/write-back where applicable. Keep resumes.profile_id NOT NULL and seed a profile from the first resume. Preserve normalized skills + profile_skills, aliases, and resume_keywords.skill_id for shared vocabulary/analytics. Track drift using profiles.version bumped on profile/entry/bullet writes and copy to resumes.profile_version at generation; timestamps miss child edits. Users manage history; AI helps on demand and must not gate workflow. Localization adapts structure, length, formatting and conventions to target markets.
## editor-state
Current target: resumes.content = {markdown: "..."}, one free-form document with no required headings, fields, sections or custom-node contract. This supersedes RB-12's structured model as a direction change, not a defect; plan conversion of structured JSONB rows and update Markdown rendering/PDF, provenance, keyword evidence, compliance, outline/reordering, and Markdown support. RB-10 ATS constraints remain authoritative. Earlier Tiptap custom-schema/renderer-semantic-node plans are superseded. Concurrency tokens hash client-editable state (content, presentation, title, status, template, region), not updated_at or read-side derived writes.
## guidance
Guidance is adopted through the existing queue, not applied via separate paths. Findings remain read-only until adopted; actionable items require exact anchor {quote, occurrence} plus replacement text. Accept performs scoped replacement atomically and returns updated content/version for editor adoption; stale anchors are dropped at read/accept, not every autosave. Dismissal key hashes category + normalized quote. RB-9 was keywords-only; calibration becomes another producer under later direction. Compliance verdicts remain separate. Panel shows one decision/card; document marks map open items: quiet, layout-neutral dotted underline per anchored line, quieter than active styling. Clicking activates the suggestion and places caret normally; repeated clicks cycle suggestions on same line.
## assistant
RB-20 stays shipped/verified as backend foundation: stored job profile, OpenRouter calibration, preflight refusals before model spend, exact-once anchor grounding, adopt-finding-to-guidance path, and prompt tone. RB-21's unpublished Guided Assistant replaces RB-20 findings UI outright; no duplicate findings surface. Broader context registry, fact capture, proposal diff/apply/undo, and per-requirement decisions belong to RB-21 scope unless approved. Assistant context is per resume: one role, context and thread per resume. For another role, duplicate the resume; copy document/context fields, but not conversation threads or role-specific requirement decisions. Copies remain ordinary siblings rooted at original. C2's 'Duplicate for this role' implies choosing a new role; exact prompt flow is discretionary. Users may always download, including with placeholders; show prominent count and mark placeholders, but never block export.
## generation
Run check_compliance() before writing a generated resume. ERROR findings block generation; warnings do not. Store and surface all findings; required-field errors should prompt the user. Hand-created resumes remain unchecked; targeted generation persists compliance; GET recomputes without persisting. Reads must not write state. Revisit compliance, generation/provenance and document understanding for free-form Markdown rather than assuming fields/sections.
## revisions
Continuous active-typing autosave updates content without snapshots. Idle-gap timeout is a separate trigger and always creates exactly one revision, even if content is unchanged since another snapshot. When checkpoint conditions overlap, write one row per checkpoint event and preserve every fired trigger in audit metadata; never duplicate rows or discard trigger details.
## testing
For PostgreSQL JSONB while preserving existing SQLite tests unchanged, use JSONB().with_variant(sqlite.JSON, 'sqlite') on each column. Keep production/migrations real JSONB; add dedicated PostgreSQL coverage for CHECK constraints and in-place mutation. Do not alter existing tests or split ORM metadata. Playwright against running stack is the only E2E harness; verify persisted content via API. DB/revision invariants belong in pytest. Vitest is also chosen for pure anchor-matcher cases and ProseMirror decoration surviving text insertion without onChange.
## authorization
Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, including resumes and profiles; never 403. Scope ownership in the database query so foreign rows are never loaded. Test cross-user and nonexistent separately. This supersedes inherited RB-3resume-builder · signals · dream at call 30
Users own and manage professional history; AI is on-demand support, never a workflow gate. Prefer small reversible changes, preserve optionality around data loss/backfills, and honor committed constraints unless explicitly superseded. Current resume is one free-form Markdown document; follow latest edited C2 prototype. Open `resume` for ownership/drift and Markdown; `assistant` for guided C2/RB-21 and duplication; `guidance` for queue, anchors and marks; `generation` for compliance/export; `revisions` for snapshots; `testing` for boundaries; `authorization` for 401/404; `infra-prompts` for worker/prompt conventions; `overview` for display.
## resume
Profiles are reusable user-owned career library; resumes are directly editable, keep resumes.profile_id NOT NULL and seed a profile from first resume. Preserve normalized skills + profile_skills, aliases, and resume_keywords.skill_id. Drift: bump profiles.version on profile/entry/bullet writes; copy to resumes.profile_version at generation (timestamps miss child edits). Current target supersedes structured RB-12: resumes.content={markdown:"..."}, no required headings/sections/fields/custom-node contract. Convert old structured rows and revisit rendering/PDF, provenance, keyword evidence, compliance, outline/reordering, Markdown support. Localization adapts conventions to target market; RB-10 ATS constraints remain.
## assistant
RB-20 remains shipped backend foundation (job_profile_text, OpenRouter calibration, preflight refusals, exact-once anchor grounding, finding-to-guidance adoption, tone); unpublished Guided Assistant/RB-21 replaces findings UI outright—no duplicate surface. C2 assistant is user-steered chat-like guidance, not general chat or fixed wizard: ranked agenda, concrete action per turn; route input to known targets/goals, clarify missing targets, ground vague asks in high-impact fixes, provide fallback; never treat text as unconstrained instructions. Disable messaging until role exists; derive chips from state and ground changes in user facts. Proposal cards in-thread (diff/reason/Apply/Not now/Undo); access via agenda, queue popover, or document marks. One role/context/thread per resume; duplicate for another role, copying document/context but not threads or role-specific decisions; siblings rooted at original. Always allow download; warn prominently and mark/count placeholders.
## guidance
Guidance is adopted through one queue, with atomic scoped replacement and updated content/version returned. Anchor={quote, occurrence}; stale exact quote drops at read/accept, not each autosave. Dismissal key hashes category + normalized quote. RB-9 keywords were sole producer; later calibration findings can become queue items only with exact anchor/replacement, while calibration response itself remains unpersisted. Assistant absorbs the old suggestions panel; document marks remain as map, not a second card surface. One quiet layout-neutral dotted underline per anchored line, quieter than active style; clicking places caret normally and scopes composer to line, not hijacks typing; repeated clicks cycle suggestions sharing a line.
## generation
check_compliance() before generation. ERROR blocks; warnings do not. Store/surface all findings; required-field errors prompt user. Hand-created resumes unchecked; targeted generation persists compliance; GET recomputes without persisting (reads must not write). Revisit compliance, generation/provenance and document understanding for free-form Markdown; don't assume fields/sections. Placeholder warning is prominent, but export is never blocked.
## revisions
Continuous active-typing autosave updates content without snapshots. Idle-gap timeout always creates exactly one revision, even if unchanged since a prior snapshot. Overlapping checkpoint conditions create one row for the checkpoint event and preserve every fired trigger in audit metadata; no duplicate rows or lost trigger details.
## testing
Postgres JSONB with SQLite compatibility: JSONB().with_variant(sqlite.JSON,'sqlite') per column; keep real JSONB in production/migrations and unchanged SQLite tests; dedicated PostgreSQL coverage for CHECK constraints/in-place mutation. Playwright against running stack is E2E harness; verify persisted content via API; DB/revision invariants in pytest. Vitest for pure anchor quote+occurrence cases and ProseMirror decoration surviving text insertion without onChange. Don't alter existing tests or split ORM metadata.
## authorization
Unauthenticated requests return 401. Cross-user and nonexistent resources return 404 on every route, including resumes/profiles; never 403. Scope ownership in DB query so foreign rows are never loaded. Test cross-user and nonexistent separately; supersedes inherited RB-3 403.
## infra-prompts
Worker shared-code decision: build worker from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements, delete stale worker/app/shared duplicate. Railway worker points to repo root with explicit Dockerfile. Prompts live under api/app/prompts; SYSTEM_PROMPT moved there preserving name/module/text/behavior, one convention.
## preferences-design
Account assistant settings (language, tone, default market) use one extensible JSONB document in existing users.preferences validated by Pydantic in app/schemas/jsonb.py, not profile facts; account values are defaults, per-resume overrides win. Follow latest owner-edited C2 prototype over stale scope: persistent Assistant and Document tabs; document properties in Document; Auto adjust in formatting row; avoid duplicate homes/bulky sideways controls. KeepSeed 1
Escalations · 59 questions · chance: 36%
| Arm | Right | Right where no memory was wrong / reverse |
|---|---|---|
| stateless | 61% | |
| promoted | 73% | +8 / −1 |
| signals | 64% | +6 / −4 |
Final memories
build-doen · promoted
{
"index": "Doen is a shared intent-spec framework: capture human reasoning during shaping, distinguish constraints from discretion, escalate genuine intent calls, ground claims, and use precedent. Prefer simple, explicit, discoverable rules; protect consequential production invariants; judge criteria by purpose and real evidence. Jev may make confident corpus judgments with human override, but is not a verifier of behavior or human-fit. Live memory is an instrumented experiment, not a replay prerequisite. Open `strategy` for direction; `memory` for capture/serving/confirmation; `corpus` for Jev autonomy; `production` for migration/regression; `lifecycle` for stage visibility; `writes` for MCP semantics; `rules` for gates/onboarding; `verification` for sparse data; `criteria` for evidence;",
"notes": {
"strategy": "Doen serves designers, engineers, and product owners through one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent. Priorities: capture human reasoning during shaping; ground specs/generated artifacts and claims in reality; improve precedent retrieval once a useful product corpus exists (18% useful baseline). Capture precedes retrieval. Do not revive abstract engineering-rule distillation: the heuristic flywheel was retired (docs/design-principles.md, \u201cRetiring the heuristic flywheel\u201d). Jev drafts, grounds, finds conflicts, and weighs precedent; it is not a verifier of product behavior or human-judgment fit. Keep criteria aligned with behavior and prior decisions; specify fallback for intentionally optional fields and reject only genuinely missing required inputs.",
"memory": "When a person states a new rule or constraint, executor records it immediately as a decision and tells them; do not wait for a request. Live executor memory was approved as a capped, measured experiment without requiring offline replay to beat \u201calways built\u201d: random no-memory initiative holdout, outcomes, predeclared kill rule, and show people everything served. The failed flywheel lacked truth feedback; live predictions scored against human choices and real conversation provide it. Quiet confirmation counts only for executor calls on initiatives that reach Complete and were not retired: the person had a chance to see decisions on the initiative page. Time-window silence and record_work are not confirmation.",
"corpus": "Reduce human maintenance without losing sound coverage. Jev may auto-admit an unclustered standalone rule when confidently judged sound, scoped, and condition-bearing; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases go to humans. Humans can override. Retirement remains human-gated because removal is less reversible. Invariant is sound judgment, not human approval of every admission/merge; this supersedes the old human-gate-on-admission rule.",
"production": "Protect consequential production invariants when migration risks degrading them: 1536\u21923072 embeddings extended narrowly to halfvec + HNSW to avoid an unindexed production retrieval path. For an in-scope measured regression, iterate within granted discretion and remeasure on the same benchmark before deciding; no new approval for scoped changes (Jev dedup rubric vs prior classifier). Accept narrow fidelity loss rather than schema complexity when marginal value is low: collapsing drift statuses without preserving a spawned-initiative trace was accepted because signal targets unresolved drift and affected slice was small.",
"lifecycle": "Do not render a feature's model in lifecycle stages where it does not apply. Learn is hidden in Draft and Building, rendered only in Learn; Complete is governed separately. Rationale: the learn model should not be rendered in draft/building.",
"writes": "Executor-owned working docs favor simple pure last-write-wins over human-edit locks/versioning absent clear benefit; disclose human edits may be overwritten by later MCP writes. Research findings are executor working docs; humans annotate after investigation concludes. Prefer a dedicated, clearly named domain-specific tool when it preserves contracts and makes semantics discoverable: `submit_research_findings`, not changing `submit_evidence`.",
"rules": "Prefer simple decision rules over compound gates without clear benefit. Importance-recommendation visibility: hide only when project has exactly one initiative; do not add completion-date or hybrid conditions. Shipping gates should be deterministic, affordable, and real: cassette-replayed checks belong in backend/tests/bench and default suite; live-LLM evals belong in tests/evals and stay opt-in unless separately decided. Any MCP surface or executor-convention change must update installed onboarding `agents.md` (`_AGENTS_MD` in backend/app/onboarding_config.py) in the same change.",
"verification": "When sparse live data makes a numerical threshold impossible, test the mechanism with realistic input sweeps and correctness on live recompute. Example: only six raw event-count combinations existed in live corpus; verify >20 distinct scores across realistic survived/removed/citation sweeps plus correctness evidence for live recompute, accepting live dispersion awaits future events.",
"criteria": "Preserve criterion intent, not brittle wording: repairing stale test interfaces is not weakening guards; tests encoding a deliberately reversed contract"
}
}build-doen · signals
{
"index": "Doen should preserve durable human product intent: explicit constraints versus discretion, capture reasoning at choice, escalate genuine intent calls. Human edits and removals are strong signals; executor proposals or unreviewed silence are not human preferences. Favor simple semantics, grounded evidence, deterministic gates, and fixing real regressions/architecture gaps. Open: purpose [philosophy]; authorship/workflows [authorship]; delegated judgment [delegation]; evidence [evidence]; UI [product]; research MCP [research]; corpus governance [corpus]; live memory experiment [memory]; reliability/gates [reliability]; learning signals and onboarding [signals].",
"notes": {
"philosophy": "Doen serves designers, engineers, and product owners through one durable intent artifact: explicit constraints/discretion, escalation for genuine intent calls, and guidance from precedent. Priorities: capture human product reasoning; ground generated artifacts in reality; retrieve precedent once a useful corpus exists. Jev can draft, ground, detect conflicts, and weigh precedent; it is not a verifier of human product judgment. Retire the abstract engineering-rule flywheel: 228 rules yielded only 5 useful ones and its success metric was circular.",
"authorship": "Product calls should be shaped and recorded by people, not silently delegated. Executors may draft specs from briefs, but people can add/edit spec items in the app during Draft and before Building; afterward changes go through executor proposals. Restore app-based shaping when removing a workflow leaves no way for people to shape specs. New initiatives need description and type (Build default); title is optional, provisionally first line of description, and executor may rename. Constraints, latitude, and criteria are optional line lists. Save brief separately, leave spec empty; brief need not be editable afterward. User brief also framed executor/MCP questionnaire for description and optional fields.",
"delegation": "Do not escalate implementation choices explicitly delegated by the spec. Preserve discretion and rationale; an executor choice merely left standing is not a human preference. Examples: separate cited redundancy/conflict verdicts; evaluator judgment for semantic overlap with close calls surfaced to human; dashboard-only loop surfacing for v1; exact criterion-text matching for criteria-domain loops, revisit if too narrow. For Jev migration, if a controlled benchmark misses the bar and a plausible rubric fix is within approved discretion, revise and remeasure before declaring a fundamental limit or seeking approval.",
"evidence": "Ground claims and artifacts: verify cited entities/surfaces exist and outcomes actually occurred. Prefer real project channels and current measurements over invented infrastructure or stale spec values; remeasure baselines. Preserve acceptance intent while removing nonexistent surfaces. Do not substitute local proxy evidence when a criterion requires production evidence. If evidence awaits deployment, submit what exists and leave criterion open/needs_judgment. For impossible live-corpus thresholds, test the mechanism and live-data correctness without claiming live results prove future behavior. Separate metric correctness from evidence intended behavior occurred.",
"product": "Render features only where their model applies: Learn is absent in Draft/Building, shown only in Learn. Hide importance recommendation only when a project has exactly one initiative. A partly redundant and partly conflicting initiative may receive separate cited verdicts within delegated discretion. Be alert to over-specified executor-authored requirements: the person has removed proposed constraints, criteria, and interaction requirements from drafts; do not treat executor wording as settled human intent.",
"research": "research_findings is the executor's working document during investigation; humans annotate after investigation concludes. MCP writes are pure last-write-wins and may overwrite human edits; disclose this in tool description. Prefer simple ownership semantics over locks/versioning absent clear benefit. Use discoverable dedicated submit_research_findings; keep submit_evidence contract stable.",
"corpus": "Human promotion queue was too much maintenance. Jev may auto-admit unclustered rules it confidently judges sound, well-scoped, condition-bearing; uncertain cases stay raw. Invariant is 'judged sound,' with human override\u2014not human gatekeeping. Jev confirms merge/generalization proposals above confidence threshold; borderline proposals queue. Retirement remains human-gated because removal is less reversible. Dream-pass verdict input covers all pending judgeable proposals to prevent stranded proposals, without changing five-step order or per-proposal rule. Collapsing drift statuses deliberately loses loop-signal counts for reports resolved by creating an initiative; no schema addition.",
"memory": "Live executor memory was approved as a measured experiment despite replay-only constitution: cap memory, randomly hold out initiatives with no memory, declare outcomes and a kill rule before serving, and show people everything served. Serve and measure in one loop, score live predictions against the person's choice, and let people inspect/retire wrong"
}
}resume-builder · promoted
{
"index": "Users own career materials; AI is optional, grounded, and never blocks editing/export. Resume content is one free-text Markdown document, not a field schema. Preserve safe, user-controlled apply paths and follow the updated C2 prototype over stale specs. Open product for ownership/export; data-model for schema/drift; editing-rendering for tokens, revisions, editor parity; privacy-deploy for access/compliance/infrastructure; guidance for queue/anchors; overview for score retirement; assistant for C2 workflow, thread, context, and layout; testing for browser/server strategy.",
"notes": {
"product": "Users own/control materials. AI is optional, on-demand reviewer/enhancer/localizer, never a blocker. Preserve user-driven workflows and export: downloads always work, including with placeholders; warn clearly with count and mark placeholders in-document. Stale mockups/specs do not override decisions; follow the updated user-authored prototype closely.",
"data-model": "Profiles are the user-managed career library; resumes are directly editable variants with profile_id NOT NULL, initially seeded from first resume. resumes.content = {markdown: \"...\"}: one free-text Markdown document, with no required or recognized headings/fields. This supersedes structured-content assumptions. Structure-dependent compliance, keyword attribution, provenance, and outlines need GenAI or redesign; do not assume bullet provenance. Keep skills + profile_skills and canonical skills.aliases; resume_keywords uses skill_id. profiles.version increments on profile/entry/bullet writes; resumes.profile_version snapshots at generation; compare counters, not updated_at. Convert existing structured rows in a data migration. Account-level assistant settings use validated JSONB in existing users.preferences; per-resume values override defaults.",
"editing-rendering": "Whole-document editing is favored; do not revive structured-editor assumptions. Canonical renderer is render_resume_html(standalone=False), exposed through read-only query parameter on existing render GET for editor parity, with no schema migration. Avoid React re-rendering editable nodes; structural edits update local content and re-fetch rendered body. Renderer escapes user values. version_token hashes content, presentation, title, status, template_key, region_code; excludes updated_at; identical state gives identical token. Autosave during typing updates content but creates no revision. Idle-gap always creates exactly one revision, even unchanged; simultaneous triggers produce one row recording all triggers. Keyword acceptance atomically replaces exact {quote, occurrence}; stale quote fails closed. Do not revalidate stored guidance on autosave.",
"privacy-compliance": "Scope ownership in queries; foreign and nonexistent IDs both return 404 without loading foreign rows; unauthenticated is 401. Test separately. Compliance ERROR findings block generation, warnings do not; persist and surface every finding. Required-field errors prompt user input; warnings never block. GET recomputes compliance without saving; only targeted generation persists it. Hand-created resumes may have {}.",
"guidance": "RB-9 originally shipped keyword pipeline only; queue derived, one-at-a-time, no document-wide checks/GenAI/compliance findings; quantified_impact out of scope. No job target => empty queue. Guidance uses exact anchor {quote, occurrence}; producer supplies claim, grounded anchor, keyword-integrated exact replacement preserving sentence, and reason. Accept atomically updates content; stale quote fails closed. Dismiss key hashes category + normalized quote. Calibration later becomes another producer: findings remain transient until promoted to queue; require grounded anchor + exact replacement; unresolved anchors cannot be accepted. One canonical apply path; adopt returned content/version. Marks are quiet, layout-neutral dotted underline per anchored LINE; mark every anchored line, not each suggestion. Click places caret normally; line targets composer, but does not open a proposal.",
"overview": "RB-9 retired score entirely (gauge, service, endpoints, API field, resumes.score JSONB; migration dropped column). Never reintroduce due to stale specifications; do not substitute compliance. Overview rows show title, created_at, updated_at; archived table also shows archived_at.",
"deploy-test": "Targeted-resume worker: smallest reversible unblock is build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, add required AI dependencies to worker requirements, reuse existing clients/actions/checks, delete stale worker/app/shared duplicate. Railway uses root context + explicit Dockerfile path. Keep shared-package extraction in docs/todo.md. Prompts live in api/app/prompts/; move SYSTEM_PROMPT there preserving name/module/exact text/behavior and load from file. Playwright against running stack for browser/accessibility/cross-tier; pytest for server invariants. For JSONB with unchanged SQLite tests use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column; separate Postgres fixture for real CHECK/in-place mutation.",
"assistant": "C2 guided assistant is a guided experience in a chat-like interface, not general chat or a fixed-step wizard. Lead with steerable ranked agenda; never start blank or block on AI. Composer routes to known actions/targets, clarifies missing targets, narrows vague requests, and has fallback. Suggestions derive from resume state; edits grounded in user-provided history. Assistant is sole guidance surface: remove"
}
}resume-builder · signals
{
"index": "Users own/edit career history and tailored resumes; AI advises on demand and never blocks access/export. Resume is the editable document; profile is the career library. Current content is free-text Markdown; downstream AI reads structure. Proposed edits apply only through a human-approved guidance queue. Follow explicit supersession and latest prototype/code direction; prefer small reversible changes. Open `document`, `product`, `guidance`, `assistant` for product direction; `implementation`, `testing` for constraints.",
"notes": {
"document": "Decision 15 supersedes conflicting structure decisions: resumes.content={markdown:\"...\"}, pure free-text Markdown; no required fields, headings, recognized sections, or structural schema. One editor spans the whole document; AI reads structure downstream. RB-12 structured editor remains shipped/verified, not defective. Re-spec generation/provenance, keyword attribution/insertion, compliance structure and outline work; renderer must render Markdown. Convert old JSONB rows despite no DDL. Expand Markdown thoughtfully; RB-10 ATS safety remains authoritative.",
"product": "Users own/manage career history and tailored resumes; AI assists on demand and never blocks editing/export. Profile is career library; resume is directly editable and targeting uses union of library material. resumes.profile_id stays NOT NULL; first resume seeds profile. Localization adapts market conventions. profiles.version increments on profile/entry/bullet writes; resumes.profile_version copies at generation; timestamps miss child edits. Scores permanently retired (column/scorer/endpoints/API); overview has title/dates/actions only. Prefer smallest reversible shared-code change; track broad refactors separately.",
"guidance": "Human approval is the only apply path for AI proposals. Queue anchor={exact quote, occurrence}; accept scoped replacement atomically, reject stale quote (409), return content/version for editor adoption. Drop stale quotes at read/accept, not every autosave. Dismissal key hashes category + normalized quote. Keyword and calibration can produce queue items; calibration findings themselves remain unpersisted/read-only and need exact anchor + replacement; unresolved/nonunique anchors get no accept action. One proposal/card at a time, but quiet dotted underline per anchored line; clicking places caret normally and activates/cycles suggestions on that line. RB-10 owns formatting; RB-11 quantification.",
"assistant": "Build RB-21 from C2 docs/prototype; leave RB-20 shipped/verified, but remove its findings column/panel outright\u2014assistant/thread is sole guidance surface, no parity period. Keep job-profile storage, OpenRouter calibration, pre-call refusals, exact-once grounding and finding-to-guidance path. Guided chat, not general chat or wizard: ranked agenda, user steers, every turn ends in concrete action; no blank start/free instructions; composer disabled until role exists; narrow vague asks and ground in history. Thread proposals have diff/reason/Apply/Not now/Undo; access via agenda, queue popover or document marks. Marks locate work; clicks place caret/scope composer, never fetch or hijack writing. Preserve context/provenance, fact capture, per-resume thread and requirement decisions. One resume=one role/context/thread; duplicate copies document/context (including target), not thread/decisions. Re-extraction preserves decided matching requirements (item_key category+requirement ID, not wording), closes disappeared open items, opens genuinely new ones. Placeholders warn/count but never block PDF export.",
"preferences": "Account assistant settings (language, tone, default market) belong in validated Pydantic JSONB `users.preferences` (`app/schemas/jsonb.py`), not profiles/freeform fields. They persist across career profiles; `profiles.languages` means spoken languages. These are defaults; per-resume overrides such as region_code win.",
"prototype": "Latest human-edited C2 prototype/code direction overrides older spec exclusions. Rail is two tabs: Assistant and Document. Move document properties from top toolbar into Document tab; move Auto adjust into formatting row; follow prototype closely using Tailwind and shadcn. Suggestions panel folds into thread; keep document marks. Avoid interpreting old exclusion of tabbed rail as current direction.",
"implementation": "PostgreSQL JSONB columns use JSONB().with_variant(sqlite.JSON,'sqlite'); preserve SQLite tests and add PostgreSQL integration coverage for CHECK/in-place mutation. Worker builds from repo root, copies api+worker, adds api to PYTHONPATH and AI deps; delete duplicated worker shared module. Railway worker service uses repo root + explicit Dockerfile. Prompt convention: create api/app/prompts and move SYSTEM_PROMPT there, behavior/text/name preserved. Ownership query scopes user_id; unauthenticated=401, foreign and missing=404, separately tested. Autosave persists without revisions; each idle timeout exactly one revision; simultaneous triggers one row retaining all triggers.",
"compliance": "Persist/surface every compliance finding. ERROR blocks generation; warnings do not. Required-field errors should prompt user, not silently generate noncompliant output. Compliance verdict persists only through targeted generation; reads never write/recompute persisted state. Existing section_order/included_fields rely on superseded structure and must be redesigned for Markdown/AI reading.",
"editing": "Editing surface uses renderer's own HTML (`render_resume_html(standalone=False)`) with semantic editable nodes/path attributes; read-only render endpoint query parameter is in"
}
}Dream stages (recorded from runs after 2026-11-27)
build-doen · promoted · dream at call 5
Doen is a product-engineering spec framework: capture human intent and reasoning, clarify constraints vs discretion, escalate genuine intent calls, and use precedent—not abstract engineering heuristics. Prefer simple, explicit, discoverable rules and tools; avoid complexity without clear benefit. Ground generated artifacts and detect conflicts; improve precedent retrieval as corpus grows. Open notes: `strategy` for product direction and Jev; `lifecycle` for stage visibility; `writes` for executor docs/MCP semantics; `rules` for simple gates; `verification` for sparse-data metrics. ## strategy Doen serves designers, engineers, and product owners through one durable intent artifact, clear constraint/discretion boundaries, escalation of genuine intent calls, and guidance from precedent. Priorities: capture human reasoning during shaping (product precedent is scarce); ground/check Doen-generated artifacts as well as executor work; improve precedent retrieval when a useful corpus exists. Do not optimize around abstract engineering rules; the heuristic flywheel was retired (docs/design-principles.md, 2026-10-02). Jev-style test verification fits product behavior and human-judgment criteria poorly; value is drafting, grounding, conflict detection, and precedent synthesis. ## lifecycle If a feature's model does not apply in a lifecycle stage, do not render it there. Learn is hidden in Draft and Building, rendered only in Learn; Complete is governed separately. Chosen because the learn model should not be rendered in draft/building. ## writes Executor-owned working docs favor simple pure last-write-wins over human-edit locks or versioning absent clear benefit. Human edits may be overwritten by later MCP writes; disclose this clearly in tool descriptions. Research findings are executor working docs, with humans annotating after investigation concludes. Prefer a dedicated, clearly named domain-specific tool when it preserves existing contracts and makes semantics discoverable: `submit_research_findings` rather than changing `submit_evidence`. ## rules Prefer simple decision rules over unnecessary compound gates. For importance-recommendation visibility, hide only when the project has exactly one initiative; do not add a completion-date condition or hybrid gate. ## verification When sparse live data makes a numerical acceptance threshold mathematically unattainable, verify the mechanism with realistic input sweeps and verify correctness on live recompute. Example: live corpus had only six distinct raw event-count combinations, so verify the rebalanced scoring formula yields >20 distinct scores across realistic survived/removed/citation event-count sweeps, plus correctness evidence for live recompute; accept that live dispersion awaits future events.
build-doen · promoted · dream at call 10
Doen is a product-engineering spec framework: capture human intent and reasoning, clarify constraints vs discretion, escalate genuine intent calls, and guide from precedent—not abstract engineering heuristics. Prefer simple, explicit, discoverable rules, preserving important production invariants and avoiding complexity without clear benefit. Delegate routine corpus judgments to Jev when coverage is preserved; keep human override and gate irreversible retirement. Open `strategy` for direction; `corpus` for Jev decision authority; `production` for migration/regression tradeoffs; `lifecycle` for stage visibility; `writes` for MCP semantics; `rules` for simple gates; `verification` for sparse-data metrics. ## strategy Doen serves designers, engineers, and product owners through one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent. Priorities: capture human reasoning during shaping (25 recorded decisions were agent-raised; 9 initiatives captured none); ground/check generated artifacts and claims as well as executor work; improve precedent retrieval after a useful decision corpus exists (baseline usefulness 18%). Do not distill abstract engineering rules: the heuristic flywheel was retired (228 rules yielded 5 usable; circular success metric; docs/design-principles.md, 2026-10-02). Jev helps draft, ground, detect conflicts, and weigh precedent; it is not the verifier, since it can auto-approve criteria and misses human-judgment fit. ## corpus Reduce human maintenance overhead without losing useful coverage. Jev may auto-admit an unclustered standalone rule when it confidently judges it sound, well-scoped, and condition-bearing; otherwise leave it raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline proposals go to humans, who can override. Retirement stays human-gated because removing a rule is the less reversible direction. Human override remains available; the invariant is sound judgment, not a human gate on every admission/merge. ## production When migration risks degrading an important production invariant, extend narrowly if the gap is consequential: the 1536→3072 embedding migration was extended to halfvec + HNSW to avoid an unindexed production retrieval path. For an in-scope measured regression, iterate within granted discretion and remeasure on the same benchmark before deciding; no new approval is needed for scoped changes (Jev dedup rubric vs prior classifier). Accept narrow fidelity loss rather than schema complexity when marginal value is low: collapsing drift statuses without preserving a spawned-initiative trace was accepted, since the loop signal is for unresolved drift and the affected slice was small. ## lifecycle If a feature's model does not apply in a lifecycle stage, do not render it there. Learn is hidden in Draft and Building, rendered only in Learn; Complete is governed separately. Rationale: the learn model should not be rendered in draft/building. ## writes Executor-owned working docs favor simple pure last-write-wins over human-edit locks or versioning absent clear benefit. Human edits may be overwritten by later MCP writes; disclose this clearly in tool descriptions. Research findings are executor working docs, with humans annotating after investigation concludes. Prefer a dedicated, clearly named domain-specific tool when it preserves existing contracts and makes semantics discoverable: `submit_research_findings` rather than changing `submit_evidence`. ## rules Prefer simple decision rules over unnecessary compound gates. For importance-recommendation visibility, hide only when the project has exactly one initiative; do not add a completion-date condition or hybrid gate. ## verification When sparse live data makes a numerical acceptance threshold mathematically unattainable, verify the mechanism with realistic input sweeps and verify correctness on live recompute. Example: live corpus had only six distinct raw event-count combinations, so verify the rebalanced scoring formula yields >20 distinct scores across realistic survived/removed/citation event-count sweeps, plus correctness evidence for live recompute; accept that live dispersion awaits future events.
build-doen · promoted · dream at call 15
Doen is a product-engineering spec framework: capture human intent, mark constraint vs discretion, escalate genuine intent calls, and use precedent—not abstract engineering heuristics. Prefer simple, explicit, discoverable rules; preserve consequential production invariants and avoid complexity without clear benefit. Delegate routine corpus judgments to Jev when sound coverage remains; retain override and human-gate retirement. Shipping gates should be deterministic and affordable; judge criteria by purpose, not brittle literalism. Open `strategy` for direction; `corpus` for Jev authority; `production` for migration/regression tradeoffs; `lifecycle` for stage visibility; `writes` for MCP semantics; `rules` for simple gates; `verification` for sparse-data metrics; `criteria` for test gates and ## strategy Doen serves designers, engineers, and product owners through one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent. Priorities: capture human reasoning during shaping (25 recorded decisions were agent-raised; 9 initiatives captured none); ground/check generated artifacts and claims as well as executor work; improve precedent retrieval after a useful decision corpus exists (baseline usefulness 18%). Do not distill abstract engineering rules: the heuristic flywheel was retired (228 rules yielded 5 usable; circular success metric; docs/design-principles.md, 2026-10-02). Jev helps draft, ground, detect conflicts, and weigh precedent; it is not the verifier, since it can auto-approve criteria and misses human-judgment fit. ## corpus Reduce human maintenance without losing useful coverage. Jev may auto-admit an unclustered standalone rule when confidently sound, well-scoped, and condition-bearing; otherwise leave it raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline proposals go to humans, who can override. Retirement remains human-gated because removal is less reversible. Human override remains available; sound judgment is the invariant, not a human gate on every admission/merge. This supersedes the former human-gate-on-admission invariant. ## production When migration risks degrading an important production invariant, extend narrowly if the gap is consequential: the 1536→3072 embedding migration was extended to halfvec + HNSW to avoid an unindexed production retrieval path. For an in-scope measured regression, iterate within granted discretion and remeasure on the same benchmark before deciding; no new approval is needed for scoped changes (Jev dedup rubric vs prior classifier). Accept narrow fidelity loss rather than schema complexity when marginal value is low: collapsing drift statuses without preserving a spawned-initiative trace was accepted because the loop signal targets unresolved drift and the affected slice was small. ## lifecycle If a feature's model does not apply in a lifecycle stage, do not render it there. Learn is hidden in Draft and Building, rendered only in Learn; Complete is governed separately. Rationale: the learn model should not be rendered in draft/building. ## writes Executor-owned working docs favor simple pure last-write-wins over human-edit locks or versioning absent clear benefit. Human edits may be overwritten by later MCP writes; disclose this clearly in tool descriptions. Research findings are executor working docs, with humans annotating after investigation concludes. Prefer a dedicated, clearly named domain-specific tool when it preserves existing contracts and makes semantics discoverable: `submit_research_findings` rather than changing `submit_evidence`. ## rules Prefer simple decision rules over unnecessary compound gates. For importance-recommendation visibility, hide only when the project has exactly one initiative; do not add a completion-date condition or hybrid gate. ## verification When sparse live data makes a numerical acceptance threshold mathematically unattainable, verify the mechanism with realistic input sweeps and verify correctness on live recompute. Example: live corpus had only six distinct raw event-count combinations, so verify the rebalanced scoring formula yields >20 distinct scores across realistic survived/removed/citation event-count sweeps, plus correctness evidence for live recompute; accept that live dispersion awaits future events. ## criteria Make shipping gates deterministic, affordable, and real: cassette-replayed checks belong in backend/tests/bench and default suite; live-LLM evals belong in tests/evals and stay opt-in unless separately decided. Do not make paid, nondeterministic calls merge arbiters; name the actual gate in criteria. Scheduling evals is a separate gap. Interpret constraints by purpose: repairing a stale test interface so its guard runs is not weakening it; tests encoding a deliberately reversed contract must change, with exceptions recorded. Do not claim deployment evidence from local counterfactuals: submit available pre-deploy evidence and leave post-deploy criteria open/needs_judgment until deployment. Fix structural stalls rather than one-off backfills when a narrow change preserves the specified process: e.g. judge all pending proposals, not only newly created ones, while retaining step order, decision rule, and never-raises contract.
build-doen · promoted · dream at call 20
Doen is a shared intent-spec framework: capture human reasoning, distinguish constraints from discretion, escalate genuine intent calls, then use precedent. Prefer simple, explicit, discoverable rules; protect consequential production invariants; judge criteria by purpose and real evidence. Jev can make sound corpus judgments with confidence thresholds and human override, but is not a verifier of behavior or human-fit. Open `strategy` for direction; `corpus` for Jev autonomy; `production` for migration/regression tradeoffs; `lifecycle` for stage visibility; `writes` for MCP semantics; `rules` for gates; `verification` for sparse data; `criteria` for test/evidence decisions; `initiatives` for starting and shaping work. ## strategy Doen serves designers, engineers, and product owners through one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent. Prioritize capturing human reasoning during shaping (25 recorded decisions were agent-raised; 9 initiatives captured none), grounding generated artifacts/claims, then improving precedent retrieval once a useful corpus exists (baseline usefulness 18%). Jev drafts, grounds, finds conflicts, and weighs precedent; it is not a verifier of behavior or human-judgment fit. Do not revive abstract engineering-rule distillation: the heuristic flywheel was retired (228 rules yielded 5 usable; circular success metric; docs/design-principles.md, 2026-10-02). ## corpus Reduce human maintenance without losing sound coverage. Jev may auto-admit an unclustered standalone rule when confidently judged sound, scoped, and condition-bearing; otherwise leave it raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases go to humans. Humans can override. Retirement stays human-gated because removal is less reversible. The invariant is sound judgment, not human approval of every admission/merge; this supersedes the old human-gate-on-admission rule. ## production Protect consequential production invariants when migration risks degrading them: 1536→3072 embeddings extended narrowly to halfvec + HNSW to avoid an unindexed production retrieval path. For an in-scope measured regression, iterate within granted discretion and remeasure on the same benchmark before deciding; no new approval is needed for scoped changes (Jev dedup rubric vs prior classifier). Accept narrow fidelity loss rather than schema complexity when marginal value is low: collapsing drift statuses without preserving a spawned-initiative trace was accepted because the signal targets unresolved drift and the affected slice was small. ## lifecycle Do not render a feature's model in lifecycle stages where it does not apply. Learn is hidden in Draft and Building, rendered only in Learn; Complete is governed separately. Rationale: the learn model should not be rendered in draft/building. ## writes Executor-owned working docs favor simple pure last-write-wins over human-edit locks/versioning absent clear benefit; disclose that human edits may be overwritten by later MCP writes. Research findings are executor working docs; humans annotate after investigation concludes. Prefer a dedicated, clearly named domain-specific tool when it preserves contracts and makes semantics discoverable: `submit_research_findings`, not changing `submit_evidence`. ## rules Prefer simple decision rules over compound gates without clear benefit. Importance-recommendation visibility: hide only when the project has exactly one initiative; do not add completion-date or hybrid conditions. ## verification When sparse live data makes a numerical threshold impossible, test the mechanism with realistic input sweeps and correctness on live recompute. Example: only six raw event-count combinations existed in the live corpus; verify >20 distinct scores across realistic survived/removed/citation sweeps plus correctness evidence for live recompute, accepting that live dispersion awaits future events. ## criteria Shipping gates should be deterministic, affordable, and real: cassette-replayed checks belong in backend/tests/bench and the default suite; live-LLM evals belong in tests/evals and stay opt-in unless separately decided. Name the actual gate; scheduling evals is a separate gap. Preserve criterion intent, not brittle wording: repairing stale test interfaces is not weakening guards; tests encoding a deliberately reversed contract must change, with exceptions recorded. Do not claim deployment evidence from local counterfactuals: submit available pre-deploy evidence and leave outcome-dependent criteria open/needs_judgment until the real event. Fix structural stalls, not one-off backfills, when narrowly preserving the specified process (e.g. judge all pending proposals while retaining step order, decision rule, and never-raises contract). ## initiatives Starting an initiative requires a description and Build/Research choice (Build default); title is optional. If omitted, use the description's first line as provisional title until executor renames it while drafting. Constraints, agent latitude, and acceptance criteria are optional line lists. Save the person's brief separately from an empty spec; the owner cannot edit the brief afterward. Executors write the draft from the brief, but people may add/edit spec
build-doen · promoted · dream at call 25
Doen is a shared intent-spec framework: capture human reasoning during shaping, distinguish constraints from discretion, escalate genuine intent calls, ground claims, and use precedent. Prefer simple, explicit, discoverable rules; protect consequential production invariants; judge criteria by purpose and real evidence. Jev may make confident corpus judgments with human override, but is not a verifier of behavior or human-fit. Live memory is an instrumented experiment, not a replay prerequisite. Open `strategy` for direction; `memory` for capture/serving/confirmation; `corpus` for Jev autonomy; `production` for migration/regression; `lifecycle` for stage visibility; `writes` for MCP semantics; `rules` for gates/onboarding; `verification` for sparse data; `criteria` for evidence; ## strategy Doen serves designers, engineers, and product owners through one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent. Priorities: capture human reasoning during shaping; ground specs/generated artifacts and claims in reality; improve precedent retrieval once a useful product corpus exists (18% useful baseline). Capture precedes retrieval. Do not revive abstract engineering-rule distillation: the heuristic flywheel was retired (docs/design-principles.md, “Retiring the heuristic flywheel”). Jev drafts, grounds, finds conflicts, and weighs precedent; it is not a verifier of product behavior or human-judgment fit. Keep criteria aligned with behavior and prior decisions; specify fallback for intentionally optional fields and reject only genuinely missing required inputs. ## memory When a person states a new rule or constraint, executor records it immediately as a decision and tells them; do not wait for a request. Live executor memory was approved as a capped, measured experiment without requiring offline replay to beat “always built”: random no-memory initiative holdout, outcomes, predeclared kill rule, and show people everything served. The failed flywheel lacked truth feedback; live predictions scored against human choices and real conversation provide it. Quiet confirmation counts only for executor calls on initiatives that reach Complete and were not retired: the person had a chance to see decisions on the initiative page. Time-window silence and record_work are not confirmation. ## corpus Reduce human maintenance without losing sound coverage. Jev may auto-admit an unclustered standalone rule when confidently judged sound, scoped, and condition-bearing; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases go to humans. Humans can override. Retirement remains human-gated because removal is less reversible. Invariant is sound judgment, not human approval of every admission/merge; this supersedes the old human-gate-on-admission rule. ## production Protect consequential production invariants when migration risks degrading them: 1536→3072 embeddings extended narrowly to halfvec + HNSW to avoid an unindexed production retrieval path. For an in-scope measured regression, iterate within granted discretion and remeasure on the same benchmark before deciding; no new approval for scoped changes (Jev dedup rubric vs prior classifier). Accept narrow fidelity loss rather than schema complexity when marginal value is low: collapsing drift statuses without preserving a spawned-initiative trace was accepted because signal targets unresolved drift and affected slice was small. ## lifecycle Do not render a feature's model in lifecycle stages where it does not apply. Learn is hidden in Draft and Building, rendered only in Learn; Complete is governed separately. Rationale: the learn model should not be rendered in draft/building. ## writes Executor-owned working docs favor simple pure last-write-wins over human-edit locks/versioning absent clear benefit; disclose human edits may be overwritten by later MCP writes. Research findings are executor working docs; humans annotate after investigation concludes. Prefer a dedicated, clearly named domain-specific tool when it preserves contracts and makes semantics discoverable: `submit_research_findings`, not changing `submit_evidence`. ## rules Prefer simple decision rules over compound gates without clear benefit. Importance-recommendation visibility: hide only when project has exactly one initiative; do not add completion-date or hybrid conditions. Shipping gates should be deterministic, affordable, and real: cassette-replayed checks belong in backend/tests/bench and default suite; live-LLM evals belong in tests/evals and stay opt-in unless separately decided. Any MCP surface or executor-convention change must update installed onboarding `agents.md` (`_AGENTS_MD` in backend/app/onboarding_config.py) in the same change. ## verification When sparse live data makes a numerical threshold impossible, test the mechanism with realistic input sweeps and correctness on live recompute. Example: only six raw event-count combinations existed in live corpus; verify >20 distinct scores across realistic survived/removed/citation sweeps plus correctness evidence for live recompute, accepting live dispersion awaits future events. ## criteria Preserve criterion intent, not brittle wording: repairing stale test interfaces is not weakening guards; tests encoding a deliberately reversed contract
build-doen · signals · dream at call 5
Doen is a product-engineering spec framework: preserve human intent and precedent, define constraint/discretion boundaries, escalate genuine intent calls, and ground claims/artifacts. Don’t optimize for abstract rule extraction; the heuristic flywheel was retired. The person prefers simple, explicit semantics and accepts executor judgment when the spec clearly delegates it. Open notes: philosophy/priorities [philosophy]; discretion and precedent [delegation]; grounding/verification [verification]; staged UI and recommendation behavior [product-choices]; research MCP ownership [research]; observed spec edits [spec-signals]; implementation patterns [implementation]. ## philosophy Doen serves product engineers (designers, software engineers, product owners) through one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and guidance from precedent. Don’t optimize for abstract engineering-rule distillation. The heuristic flywheel was retired: 228 rules yielded only 5 usable ones, with a circular success metric (docs/design-principles.md, “Retiring the heuristic flywheel”). Priorities: capture undocumented product-shaping reasoning; ground generated artifacts and claims (verify referenced entities/surfaces exist and outcomes are real); improve precedent retrieval once a product corpus exists (baseline prototype: 18% useful). Jev is not a product-work verifier: it auto-approves test criteria and intentionally excludes human judgment. Its value is drafting, groundedness, conflict detection, and weighing precedent. ## delegation Escalate real product-intent ambiguity; don’t escalate implementation choices that an explicit discretion item already delegates. The person left executor decisions standing when they fell squarely within stated latitude: list both redundancy and conflict verdicts transparently; use evaluator judgment with human review of close semantic-overlap calls; show spec loops on dashboard only for v1; use exact criterion text matching for criteria-domain loops, with revisit if too narrow. These are examples of delegated discretion, not universal rules that exact matching or dashboard-only is always preferred. Preserve the reasoning/precedent so future product calls can build on it. ## verification Ground artifacts and claims, not only executor behavior: check cited entities/surfaces exist and claimed outcomes actually occurred. For acceptance criteria impossible to satisfy from today’s corpus, verify the mechanism and current-data correctness rather than pretending the live result demonstrates it. Example: a live dataset with only six distinct input combinations cannot yield >6 distinct scores under any weighting; chosen verification was a realistic event-count sweep yielding >20 scores plus evidence the live recompute remains correct. Prefer meaningful, non-circular success measures. ## product-choices Render a feature only in stages where its model applies: Learn is truly absent in Draft/Building and shown only in Learn. Importance recommendation visibility uses the simple rule: hide only when the project has exactly one initiative (not the more complex completed-after-creation pattern). For an initiative partly redundant with one initiative and partly conflicting with another, the executor may present both separate verdicts and cite each initiative when within explicit discretion. ## research research_findings is the executor’s working document during investigation; humans annotate after investigation concludes. MCP writes are pure last-write-wins: a later executor write may overwrite human edits, and this must be clearly disclosed in the tool description. Prefer simple ownership semantics over locks/versioning absent clear benefit. Use a dedicated, discoverable submit_research_findings tool rather than adding an optional parameter to submit_evidence; keep the latter’s contract stable. ## spec-signals Observed spec-edit signal: on advisor observations, the person removed an executor-added criterion requiring exactly two follow-up actions (“Resolve into an initiative” and “Understand and close”) and no standalone close button. Avoid treating that particular interaction pattern as a mandatory product requirement unless they ask for it. Other signals: they added/retained concrete, auditable cost-tracking constraints and criteria (per-call model/purpose/token counts, computed cost, updateable pricing, retrievable entries), and required the spec-reshape MCP tool to support stdio and HTTP. Distinguish person-authored constraints from executor suggestions. ## implementation Favor simple, explicit v1 behavior where it satisfies intent. In cost tracking, pricing must reflect actual OpenAI rates and be updatable without code changes; granularity (flat vs input/output rates) was explicitly delegated so long as accurate and updateable. For fuzzy matching/thresholds, evaluator judgment or exact matching may be acceptable when clearly within discretion and false positives are controlled; note limitations and revisit triggers. UI should reflect the applicable model/stage, not expose irrelevant inactive features.
build-doen · signals · dream at call 10
Doen is a product-engineering spec framework: preserve human intent and precedent, make constraint/discretion boundaries explicit, escalate genuine intent calls, and ground claims/artifacts. Favor simple semantics; honor delegated executor judgment. Capture human reasoning before optimizing precedent retrieval; the heuristic flywheel is retired. Avoid known production regressions and resolve material architecture gaps before migration. Open: philosophy [philosophy]; delegation and discretion [delegation]; grounding [verification]; staged UI/recommendations [product]; research MCP [research]; heuristic-corpus governance [corpus]; reliability/migration decisions [reliability]; authored spec signals [signals]. ## philosophy Doen serves product engineers (designers, software engineers, product owners) with one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent guidance. Do not optimize for abstract engineering-rule distillation: the heuristic flywheel was retired (docs/design-principles.md, “Retiring the heuristic flywheel”; 228 rules yielded only 5 usable ones and a circular success metric). Priorities: capture undocumented product-shaping reasoning (25 recorded decisions were agent-raised; 9 product initiatives yielded none), then groundness, then precedent retrieval once a product corpus exists (baseline usefulness 18%). Jev is not a product-work verifier: it often auto-approves criteria and cannot handle human judgment. Its value is drafting, groundedness, conflict detection, and weighing precedent. ## delegation Escalate real product-intent ambiguity; do not escalate implementation choices explicitly delegated by the spec. Preserve the discretion grant and reasoning. Examples left standing: present separate redundancy and conflict verdicts with citations; evaluator judgment for semantic overlap with close calls surfaced to a human; dashboard-only spec loops for v1; exact criterion-text matching for criteria-domain loops, with revisit if too narrow. These are context-specific, not universal preferences for those methods. For Jev migration, if a controlled benchmark misses the acceptance bar and a plausible rubric fix lies within approved discretion, revise and remeasure on the same benchmark before concluding a fundamental limitation or seeking approval. ## verification Ground artifacts and claims, not only executor behavior: verify cited entities/surfaces exist and claimed outcomes actually occurred. For acceptance criteria impossible under today's corpus, test the mechanism and live-data correctness rather than claiming the live result demonstrates it. Example: six distinct live input combinations cannot produce >6 distinct scores under any weighting; verify realistic event-count sweeps yield >20 scores and live recomputation remains correct. Prefer meaningful, non-circular success measures. ## product Render features only where their model applies: Learn is absent in Draft/Building and shown only in Learn. Hide importance recommendation only when the project has exactly one initiative (not the more complex completed-after-creation rule). Where one initiative is partly redundant with one and partly conflicting with another, both separate, cited verdicts are acceptable under delegated discretion. ## research research_findings is the executor's working document during investigation; humans annotate after investigation concludes. MCP writes are pure last-write-wins, so later executor writes can overwrite human edits; disclose this clearly in tool description. Prefer simple ownership over locks/versioning without clear benefit. Use dedicated, discoverable submit_research_findings; keep submit_evidence contract stable. ## corpus The human promotion queue was too much maintenance and mental overhead. Jev may auto-admit unclustered rules judged confidently sound, well-scoped, and condition-bearing; uncertainty leaves them raw. This superseded the former human-gated admission invariant: invariant is that a rule was judged sound, with human override rather than gatekeeping. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases still queue. Retirement remains human-gated because removing a rule is the less reversible action. Weigh historical signal's decision value against schema/complexity cost. ## reliability Avoid shipping known production regressions in core retrieval; resolve architecture gaps before migration even if current scale masks the cost. In the 1536→3072 embedding migration, the person chose halfvec + HNSW now rather than leave production retrieval unindexed or defer indexing. For controlled comparisons, use same cases/candidate sets to isolate the changed component. A Jev dedup regression against the confirmed bar prompted rubric iteration and remeasurement on the same 186-case benchmark—not automatic acceptance, fundamental-limit claims, scope expansion, or approval-seeking for already granted rubric discretion. Conversely, avoid duplicative evaluation when an adequate frozen eval directly measures the required metric (e.g. type inference's 8-fixture live eval). ## signals Distinguish person-authored constraints from executor suggestions. The person removed an executor-added requirement for exactly two advisor-observation actions and no standalone close button; do not treat that pattern as mandatory. They added/retained auditable LLM cost
build-doen · signals · dream at call 15
Doen helps product engineers preserve durable human intent, make constraint/discretion boundaries explicit, escalate genuine intent calls, and ground artifacts. Prioritize capturing product-shaping reasoning, then groundedness, then precedent retrieval as the corpus matures; the heuristic flywheel is retired. Honor delegated judgment, but distinguish human-authored requirements from executor proposals. Prefer simple semantics, accurate evidence, deterministic gates, and avoiding known regressions or architecture gaps. Open: philosophy [philosophy]; delegation [delegation]; evidence and evaluation [evidence]; product choices [product]; research MCP [research]; corpus governance [corpus]; reliability/migration [reliability]; authored signals and implementation practice [signals]. ## philosophy Doen serves designers, engineers, and product owners: one durable intent artifact, explicit constraints versus discretion, escalation for genuine intent calls, and precedent. Capture undocumented product-shaping reasoning first (historically decisions were agent-raised and initiatives recorded none), then groundness, then precedent retrieval once a product corpus exists. Retire the heuristic flywheel: 228 rules yielded only 5 usable ones and its success metric was circular. Jev helps draft, ground, detect conflicts, and weigh precedent; it is not a product-work verifier and struggles with human-judgment criteria. ## delegation Do not escalate implementation choices explicitly delegated by the spec. Preserve discretion grants and reasoning; examples left standing (context-specific, not universal preferences): separate cited redundancy/conflict verdicts; evaluator judgment for semantic overlap with close calls surfaced to a human; dashboard-only loop surfacing for v1; exact criterion-text matching for criteria-domain loops, with revisit if too narrow. For Jev migration, if a controlled benchmark misses the bar and a plausible rubric fix is within approved discretion, revise and remeasure before declaring a fundamental limit or seeking approval. ## evidence Ground claims and artifacts: verify cited entities/surfaces exist and outcomes actually occurred. Do not substitute local proxy evidence when a criterion requires production evidence. If evidence is unavailable until deployment, submit what exists and leave the criterion open/needs_judgment. For impossible live-corpus thresholds, test the mechanism and live-data correctness without claiming the live result proves future behavior. Use meaningful non-circular measures; compare same cases/candidates to isolate changes. Repairing stale test setup/interfaces so intended assertions run is not weakening tests; update assertions when the spec intentionally reverses a contract, preserve unaffected fixtures, and document inversions. ## product Render features only where their model applies: Learn is absent in Draft/Building, shown only in Learn. Hide importance recommendation only when the project has exactly one initiative (not a completed-after-creation rule). Where an initiative is partly redundant with one and partly conflicts with another, separate cited verdicts are acceptable within delegated discretion. ## research research_findings is the executor's working document during investigation; humans annotate after investigation concludes. MCP writes are pure last-write-wins and may overwrite human edits; disclose this in tool description. Prefer simple ownership semantics over locks/versioning without clear benefit. Use discoverable dedicated submit_research_findings; keep submit_evidence contract stable. ## corpus Human promotion queue was too much maintenance. Jev may auto-admit unclustered rules it confidently judges sound, well-scoped, condition-bearing; uncertain cases stay raw. Invariant is 'judged sound,' with human override—not human gatekeeping. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases queue. Retirement remains human-gated because removing a rule is less reversible. Weigh historical signal's decision value against schema/complexity cost. Widening dream-pass verdict input to all pending judgeable proposals was accepted to prevent stranded proposals, without changing the five-step order or per-proposal rule. Collapsing drift statuses deliberately accepts loss of loop-signal counts for reports resolved by creating an initiative; no schema addition. ## reliability Avoid known production regressions in core retrieval; resolve material architecture gaps before migration even if current scale masks cost. For 1536→3072 embeddings, chose halfvec + HNSW now rather than an unindexed production path or deferral. For controlled comparisons, hold cases/candidate sets constant. Jev dedup missed its confirmed bar; iterate the rubric and remeasure on the same 186-case benchmark, rather than auto-accept, expand scope, or seek approval for already-delegated rubric discretion. Avoid duplicative evaluation when an adequate frozen eval directly measures the required metric (e.g. type inference's 8-fixture live eval). Do not call a local predicate comparison a deployment snapshot; keep production-dependent criterion open until deployment evidence exists. ## signals Separate human-authored constraints from executor additions, and do not infer a preference from executor choices merely left standing under explicit discretion. The person removed executor-added UX constraint requiring exactly two advisor-observation actions and no standalone
build-doen · signals · dream at call 20
Doen should preserve durable human product intent: make constraints versus discretion explicit, capture product-shaping reasoning, and escalate genuine intent calls. Humans can shape draft specs directly; executor proposals are not human preferences. Prefer simple semantics, grounded evidence, deterministic gates, and fixing known regressions/architecture gaps. Open: core purpose [philosophy]; authorship and new-initiative workflow [authorship]; delegated choices [delegation]; evidence [evidence]; UI/product rules [product]; research MCP [research]; corpus governance [corpus]; reliability and gates [reliability]; authorship-signal cautions [signals]. ## philosophy Doen serves designers, engineers, and product owners through one durable intent artifact, explicit constraints/discretion, escalation for genuine intent calls, and precedent. Prioritize capturing undocumented product-shaping reasoning, then grounding generated artifacts, then precedent retrieval once a product corpus exists. Retire the heuristic flywheel: 228 rules yielded only 5 useful ones and its success metric was circular. Jev can draft, ground, detect conflicts, and weigh precedent; it is not a product-work verifier and struggles with human-judgment criteria. ## authorship Product calls should be shaped and recorded by people, not silently delegated. Executors may draft specs from a brief, but people need direct app-based ways to add/edit spec items during Draft and before Building; after drafting, changes continue through executor proposals. Restore app-based shaping when removing a workflow leaves people unable to shape specs, alongside initiative creation from the project page. New initiatives require description and type (Build default); title is optional, provisionally first line of description, and executor may rename. Constraints, latitude, criteria are optional line lists. Save brief separately, leave spec empty; brief need not be editable afterward. ## delegation Do not escalate implementation choices explicitly delegated by the spec. Preserve discretion grants and reasoning; do not treat an executor choice merely left standing as a human preference. Examples: separate cited redundancy/conflict verdicts; evaluator judgment for semantic overlap with close calls surfaced to a human; dashboard-only loop surfacing for v1; exact criterion-text matching for criteria-domain loops, revisit if too narrow. For Jev migration, if controlled benchmark misses the bar and a plausible rubric fix is within approved discretion, revise and remeasure before declaring a fundamental limit or seeking approval. ## evidence Ground claims and artifacts: verify cited entities/surfaces exist and outcomes actually occurred. Prefer real project channels/current measurements over invented infrastructure or stale spec values; remeasure baselines. Preserve acceptance intent while removing nonexistent surfaces. Do not substitute local proxy evidence when a criterion requires production evidence. If evidence is unavailable until deployment, submit what exists and leave criterion open/needs_judgment. For impossible live-corpus thresholds, test mechanism and live-data correctness without claiming the live result proves future behavior. Separate metric correctness from evidence that intended behavior occurred; proxies cannot prove unobserved outcomes. ## product Render features only where their model applies: Learn is absent in Draft/Building, shown only in Learn. Hide importance recommendation only when project has exactly one initiative. When an initiative is partly redundant with one and partly conflicts with another, separate cited verdicts are acceptable within delegated discretion. ## research research_findings is the executor's working document during investigation; humans annotate after investigation concludes. MCP writes are pure last-write-wins and may overwrite human edits; disclose this in tool description. Prefer simple ownership semantics over locks/versioning without clear benefit. Use discoverable dedicated submit_research_findings; keep submit_evidence contract stable. ## corpus Human promotion queue was too much maintenance. Jev may auto-admit unclustered rules it confidently judges sound, well-scoped, condition-bearing; uncertain cases stay raw. Invariant is 'judged sound,' with human override—not human gatekeeping. Jev confirms merge/generalization proposals above confidence threshold; borderline cases queue. Retirement remains human-gated because removal is less reversible. Widening dream-pass verdict input to all pending judgeable proposals was accepted to prevent stranded proposals, without changing five-step order or per-proposal rule. Collapsing drift statuses deliberately loses loop-signal counts for reports resolved by creating an initiative; no schema addition. ## reliability Avoid known production regressions in core retrieval; resolve material architecture gaps before migration even if current scale masks cost. For 1536→3072 embeddings, chose halfvec + HNSW rather than unindexed production path or deferral. Controlled comparisons hold cases/candidate sets constant; iterate Jev dedup rubric and remeasure same 186-case benchmark. Avoid duplicative evaluation when an adequate frozen eval measures the required metric. Deterministic checks belong in default bench gates;
build-doen · signals · dream at call 25
Doen should preserve durable human product intent: explicit constraints versus discretion, capture reasoning at choice, escalate genuine intent calls. Human edits and removals are strong signals; executor proposals or unreviewed silence are not human preferences. Favor simple semantics, grounded evidence, deterministic gates, and fixing real regressions/architecture gaps. Open: purpose [philosophy]; authorship/workflows [authorship]; delegated judgment [delegation]; evidence [evidence]; UI [product]; research MCP [research]; corpus governance [corpus]; live memory experiment [memory]; reliability/gates [reliability]; learning signals and onboarding [signals]. ## philosophy Doen serves designers, engineers, and product owners through one durable intent artifact: explicit constraints/discretion, escalation for genuine intent calls, and guidance from precedent. Priorities: capture human product reasoning; ground generated artifacts in reality; retrieve precedent once a useful corpus exists. Jev can draft, ground, detect conflicts, and weigh precedent; it is not a verifier of human product judgment. Retire the abstract engineering-rule flywheel: 228 rules yielded only 5 useful ones and its success metric was circular. ## authorship Product calls should be shaped and recorded by people, not silently delegated. Executors may draft specs from briefs, but people can add/edit spec items in the app during Draft and before Building; afterward changes go through executor proposals. Restore app-based shaping when removing a workflow leaves no way for people to shape specs. New initiatives need description and type (Build default); title is optional, provisionally first line of description, and executor may rename. Constraints, latitude, and criteria are optional line lists. Save brief separately, leave spec empty; brief need not be editable afterward. User brief also framed executor/MCP questionnaire for description and optional fields. ## delegation Do not escalate implementation choices explicitly delegated by the spec. Preserve discretion and rationale; an executor choice merely left standing is not a human preference. Examples: separate cited redundancy/conflict verdicts; evaluator judgment for semantic overlap with close calls surfaced to human; dashboard-only loop surfacing for v1; exact criterion-text matching for criteria-domain loops, revisit if too narrow. For Jev migration, if a controlled benchmark misses the bar and a plausible rubric fix is within approved discretion, revise and remeasure before declaring a fundamental limit or seeking approval. ## evidence Ground claims and artifacts: verify cited entities/surfaces exist and outcomes actually occurred. Prefer real project channels and current measurements over invented infrastructure or stale spec values; remeasure baselines. Preserve acceptance intent while removing nonexistent surfaces. Do not substitute local proxy evidence when a criterion requires production evidence. If evidence awaits deployment, submit what exists and leave criterion open/needs_judgment. For impossible live-corpus thresholds, test the mechanism and live-data correctness without claiming live results prove future behavior. Separate metric correctness from evidence intended behavior occurred. ## product Render features only where their model applies: Learn is absent in Draft/Building, shown only in Learn. Hide importance recommendation only when a project has exactly one initiative. A partly redundant and partly conflicting initiative may receive separate cited verdicts within delegated discretion. Be alert to over-specified executor-authored requirements: the person has removed proposed constraints, criteria, and interaction requirements from drafts; do not treat executor wording as settled human intent. ## research research_findings is the executor's working document during investigation; humans annotate after investigation concludes. MCP writes are pure last-write-wins and may overwrite human edits; disclose this in tool description. Prefer simple ownership semantics over locks/versioning absent clear benefit. Use discoverable dedicated submit_research_findings; keep submit_evidence contract stable. ## corpus Human promotion queue was too much maintenance. Jev may auto-admit unclustered rules it confidently judges sound, well-scoped, condition-bearing; uncertain cases stay raw. Invariant is 'judged sound,' with human override—not human gatekeeping. Jev confirms merge/generalization proposals above confidence threshold; borderline proposals queue. Retirement remains human-gated because removal is less reversible. Dream-pass verdict input covers all pending judgeable proposals to prevent stranded proposals, without changing five-step order or per-proposal rule. Collapsing drift statuses deliberately loses loop-signal counts for reports resolved by creating an initiative; no schema addition. ## memory Live executor memory was approved as a measured experiment despite replay-only constitution: cap memory, randomly hold out initiatives with no memory, declare outcomes and a kill rule before serving, and show people everything served. Serve and measure in one loop, score live predictions against the person's choice, and let people inspect/retire wrong
resume-builder · promoted · dream at call 5
Product decisions favor user control with AI as optional support. Profiles are the career library; resumes are editable, provenance-linked variants. Preserve planned schema/versioning and distinct autosave vs. idle-revision behavior. Open “data-model” for schema decisions; “editing” for autosave/revisions; “testing” for DB compatibility. ## data-model Profiles are the career library; resumes are directly editable documents. Keep resumes.profile_id NOT NULL and seed a profile from the first resume. Preserve source_entry_id/source_bullet_id provenance and offer promotion of resume edits back to the profile; do not duplicate provenance schema. Keep skills + profile_skills; shared skills.aliases resolve canonical terms, and resume_keywords references skills via skill_id. Add profiles.version and resumes.profile_version; increment profile version on profile, entry, or bullet writes and snapshot it at resume generation. Compare versions for variant drift; updated_at misses child edits. Localization adapts resume structure, length, formatting, and cultural norms to each market. User-driven: users own and manually manage professional history; AI is an on-demand reviewer, enhancer, and localizer, never a blocker. ## editing Continuous active-typing autosave writes resume content without creating revision snapshots. Idle-gap timeout is a separate discrete trigger and creates exactly one revision row per timeout. Do not merge timeout snapshotting into autosave or make it conditional on detecting changes since the previous revision. ## testing For PostgreSQL-specific JSONB while preserving existing SQLite tests unchanged, use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column. Keep PostgreSQL as production/migration type; use a separate PostgreSQL fixture for criteria requiring real PostgreSQL behavior (e.g. CHECK constraints or in-place JSONB mutation).
resume-builder · promoted · dream at call 10
Product choices favor user control, editable resume variants, and AI as optional support. Profiles are the career library; resumes are editable, provenance-linked variants. Preserve versioned drift tracking and distinct autosave/checkpoint semantics. Open “data-model” for schema/localization; “editing” for autosave and revisions; “privacy-compliance” for access and generation rules; “worker” for deployment/shared code; “prompts” for prompt conventions; “testing” for database compatibility. ## data-model Profiles are the career library; resumes are directly editable documents, with resumes.profile_id NOT NULL and first-run profile seeding from the first resume. Preserve source_entry_id/source_bullet_id provenance and offer promotion of resume edits back to the profile; do not duplicate provenance schema. Keep skills + profile_skills; shared skills.aliases resolve canonical terms, and resume_keywords references skills via skill_id. Add profiles.version and resumes.profile_version; bump profile version on profile, entry, or bullet writes and snapshot at resume generation. Compare versions for drift; updated_at misses child edits. Localization adapts structure, length, formatting, and cultural norms to each market. Users own/manage history; AI is on-demand review, enhancement, and localization, never a blocker. ## editing Continuous active-typing autosave writes resume content without creating revision snapshots. Idle-gap timeout is a separate checkpoint trigger and always creates exactly one revision row per timeout, even if content has not changed since the last revision. If checkpoint conditions overlap at the same event, create one row, not one per trigger, and preserve every fired trigger as metadata/flags. ## privacy-compliance Scope ownership in queries; cross-user requests return 404 like nonexistent IDs (do not load foreign rows); unauthenticated requests return 401. Test these cases separately. Only compliance ERROR findings block generation; warnings alone do not. Persist and surface all findings. Required-field errors should prompt the user for input; warnings do not block. This supersedes inherited 403 wording. ## worker For the targeted-resume worker, choose the smallest reversible feature-unblocking change over a repo-wide architecture refactor: build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, and add needed AI dependencies to worker requirements so it reuses existing clients/actions/checks without forks. Delete stale worker/app/shared/ duplicate rather than preserve drift. Railway worker uses repo-root context and explicit Dockerfile path. Keep shared-package extraction separate (docs/todo.md). ## prompts Use one prompt convention: establish api/app/prompts/ and move existing SYSTEM_PROMPT there rather than adding a competing convention. Keep its name, module, exact text, and behavior unchanged; load its text from the file. Existing tests and dependent pipelines remain required unchanged. ## testing For PostgreSQL-specific JSONB while preserving existing SQLite tests unchanged, use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column. PostgreSQL remains production/migration type. Use a separate PostgreSQL fixture for criteria requiring real PostgreSQL behavior (e.g. CHECK constraints or in-place JSONB mutation).
resume-builder · promoted · dream at call 15
User owns and manually manages base professional history; AI is optional, on-demand reviewer, enhancer, and market localizer, never a blocker. Resumes are editable variants, but current content is one free-text Markdown document with no recognized fields or headings; structure-dependent features need GenAI understanding or redesign. Keep concurrency tokens tied to client-editable state and distinguish autosave from checkpoints. Open “data-model” for schema/history; “editing” for tokens and checkpoints; “rendering” for editor parity; “privacy-compliance” for access/generation; “worker” for deployment; “prompts” for prompt convention; “testing” for test strategy.
## data-model
Profiles are the user-managed career library; resumes are editable variants and keep profile_id NOT NULL, with first-run seeding from the first resume. Current direction supersedes RB-12 structured content: resumes.content = {markdown: "..."}, one free-text Markdown document, no recognized sections, fields, or required headings. Convert existing structured rows (data migration despite no JSONB DDL); replace structured rendering. Structure-dependent compliance/order, keyword attribution/evidence, provenance and outline features must use GenAI document understanding or be redesigned; revisit RB-4/RB-5/RB-14 assumptions. Respect RB-10 ATS safety. Earlier provenance pointers and promotion to profile were favored, but their fit with free-text is unresolved—do not assume bullet-level provenance remains. Keep skills + profile_skills and canonical skills.aliases; resume_keywords references skills by skill_id. Drift: profiles.version increments on profile/entry/bullet writes; resumes.profile_version snapshots at generation; compare counters, not updated_at.
## editing
Continuous active-typing autosave writes content without creating revisions. Idle-gap timeout always creates exactly one revision, even if unchanged since last snapshot. Simultaneous checkpoint triggers still create one row and preserve every fired trigger in metadata. version_token identifies client-editable state: hash content, presentation, title, status, template_key and region_code; exclude updated_at so derived writes do not invalidate editor writes. Identical state means identical token. A single editor for the whole document is favored over separate editors; the later free-text decision supersedes the earlier rigid custom section/entry schema.
## rendering
Favor canonical renderer output for editing parity: render_resume_html(standalone=False), expose body plus stylesheet via a read-only query parameter on existing render GET (no schema/migration), and avoid React re-rendering editable nodes. Renderer escapes user values. Structural edits previously called for mutating local JSON then re-fetching rendered HTML; reassess that mechanism for the current unstructured Markdown model rather than restoring recognized sections.
## privacy-compliance
Scope ownership in queries; foreign and nonexistent IDs both return 404, without loading foreign rows; unauthenticated is 401. Test separately. Compliance ERROR findings block generation; warnings do not. Persist and surface all findings. Required-field errors prompt user input; warnings never block. This supersedes inherited 403 wording.
## worker
For targeted-resume worker, prefer smallest reversible unblock: build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, add needed AI dependencies to worker requirements, and reuse existing clients/actions/checks without forks. Delete stale worker/app/shared duplicate. Railway uses repo-root context and explicit Dockerfile path. Keep shared-package extraction separate in docs/todo.md.
## prompts
Use one convention: establish api/app/prompts/ and move SYSTEM_PROMPT there. Preserve its name, module, exact text, and behavior; load text from file. Existing tests and dependent pipelines remain required unchanged.
## testing
Use Playwright against the running stack for browser behavior, accessibility and cross-tier acceptance; keep server-only invariants in pytest. Add Playwright/axe harness and runnable make target. For PostgreSQL JSONB with unchanged SQLite tests, use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column; use a separate PostgreSQL fixture for real CHECK-constraint/in-place-mutation behavior.resume-builder · promoted · dream at call 20
User owns and manages career history; AI is optional, on-demand reviewer/enhancer/localizer, never a blocker. Resumes are editable variants; content is one free-text Markdown document with no recognized fields/headings. Structure-dependent features need GenAI understanding or redesign. No resume score; overview tables omit it. Keep tokens tied to client-editable state; distinguish autosave from checkpoints. Open data-model for schema/history and drift. Open editing for tokens, revisions, and guidance acceptance. Open rendering for editor parity and document marks. Open privacy-compliance for access and generation rules. Open deployment for worker setup, prompts, and tests. Open guidance for keyword queue and suggestion UI. Open overview for
## data-model
Profiles are the user-managed career library; resumes are directly editable variants with profile_id NOT NULL, first-run seeded from first resume. Current model supersedes RB-12 structured content: resumes.content = {markdown: "..."}, one free-text Markdown document, no recognized sections/fields/headings. Convert existing structured rows (data migration despite no JSONB DDL); replace structured rendering. Compliance/order, keyword attribution/evidence, provenance and outline features must use GenAI understanding or be redesigned; do not assume bullet-level provenance. Keep skills + profile_skills and canonical skills.aliases; resume_keywords references skills by skill_id. Drift: profiles.version increments on profile/entry/bullet writes; resumes.profile_version snapshots at generation; compare counters, not updated_at.
## editing
Continuous typing autosave writes content without creating revisions. Idle-gap timeout always creates exactly one revision, even if unchanged since last snapshot. Overlapping checkpoint triggers still produce one row and preserve all fired triggers in metadata. version_token hashes content, presentation, title, status, template_key and region_code; excludes updated_at so derived writes do not invalidate editor writes. Identical state yields identical token. Whole-document editing is favored; current direction is free-text Markdown, superseding structured editor assumptions. Keyword suggestion acceptance atomically replaces exact anchor {quote, occurrence}; stale quote fails closed. Do not revalidate stored rows on autosave.
## rendering
Favor canonical renderer output for editor parity: render_resume_html(standalone=False), expose body plus stylesheet via read-only query parameter on existing render GET (no schema/migration), and avoid React re-rendering editable nodes. Renderer escapes user values. Earlier structural editing proposal (mutate local JSON, re-fetch HTML) must be reassessed for free-text Markdown, not used to restore recognized sections. Guidance marks: quiet, layout-neutral dotted underline per anchored LINE; every anchored line marked, not every suggestion. Clicking line activates suggestion and places caret normally; repeated clicks cycle through suggestions on that line. Panel remains one card; count/order communicates outstanding items.
## privacy-compliance
Scope ownership in queries; foreign and nonexistent IDs both return 404 without loading foreign rows; unauthenticated is 401. Test separately. Compliance ERROR findings block generation; warnings do not. Persist and surface every finding. Required-field errors prompt user input; warnings never block. GET recomputes compliance without saving; only targeted generation persists it. Hand-created resumes may have {}. Never restore retired score based on stale specs.
## deployment
Targeted-resume worker: smallest reversible unblock is build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, add needed AI dependencies to worker requirements, reuse existing clients/actions/checks without forks, and delete stale worker/app/shared duplicate. Railway uses repo-root context and explicit Dockerfile path. Keep shared-package extraction separate in docs/todo.md.
## prompts-testing
Prompts: establish api/app/prompts/, move SYSTEM_PROMPT there while preserving its name, module, exact text, and behavior; load text from file. Tests and dependent pipelines remain required unchanged. Testing: Playwright against running stack for browser behavior, accessibility and cross-tier acceptance; pytest for server invariants. Add Playwright/axe harness and runnable make target. For PostgreSQL JSONB with unchanged SQLite tests, use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column; separate PostgreSQL fixture for real CHECK-constraint/in-place-mutation behavior.
## guidance
RB-9 producer is keyword pipeline only: queue is derived, one-at-a-time, no whole-document checks/GenAI/compliance findings; quantified_impact out of scope. No job target means empty queue. Five fields; anchor exact {quote, occurrence}. Producer supplies guidance, anchor, claim, keyword-integrated replacement preserving the sentence, and reason. Acceptance updates content atomically; stale quote fails closed. Dismiss key hashes category + normalized quote. Queue is not authoritative; don't revalidate stored rows on autosave. RB-18 shipped: quiet dotted underline marks every anchored line; clicking activates suggestion and normal caret placement; repeated clicks cycle when multiple suggestions share a line. Panel stays one card; panel count/order handles open items.
## overview
RB-9 retired score completely (gauge, service, endpoints, API field, resumes.score JSONB; migration dropped column). Never reintroduce it due to stale specifications. Overview tables show title, created_at, updated_at; archived table also shows archived_at. Do not substitute compliance:resume-builder · promoted · dream at call 25
Users own and control career materials; AI advises, enhances, and localizes on demand, never blocks editing or export. Resumes are editable variants of one free-text Markdown document with no recognized fields/headings. Assistant guidance must be grounded, optional, and applied through a single safe path. Open product for user-control/export and assistant principles. Open data-model for schema/history/drift. Open editing for tokens, revisions, acceptance. Open rendering for parity and marks. Open privacy for access/compliance. Open deploy-test for workers/prompts/test strategy. Open guidance for queue and anchors. Open overview for score retirement. Open assistant for C2, findings, and role duplication.
## product
Users own/control materials. AI is optional, on-demand reviewer/enhancer/localizer, never a blocker. Preserve user-driven workflows and export: downloads always work, including with placeholders; warn clearly with count and mark placeholders in-document. Do not let stale mockups/specs override this.
## data-model
Profiles are the user-managed career library; resumes are directly editable variants with profile_id NOT NULL, initially seeded from first resume. resumes.content = {markdown: "..."}: one free-text Markdown document, no recognized headings/fields. This supersedes RB-12 structured-content assumptions. Structure-dependent compliance, keyword attribution, provenance, outlines, etc. need GenAI understanding or redesign; don't assume bullet provenance. Keep skills + profile_skills and canonical skills.aliases; resume_keywords uses skill_id. Drift: profiles.version increments on profile/entry/bullet writes; resumes.profile_version snapshots at generation; compare counters, not updated_at. Convert existing structured rows as a data migration.
## editing
Autosave during typing updates content but creates no revision. Idle-gap always creates exactly one revision, even unchanged; simultaneous triggers still one row, recording all triggers. version_token hashes content, presentation, title, status, template_key, region_code; excludes updated_at. Identical state => identical token. Whole-document editing is favored; don't revive structured editor assumptions. Keyword acceptance atomically replaces exact {quote, occurrence}; stale quote fails closed. Don't revalidate stored guidance on autosave.
## rendering
Favor canonical render_resume_html(standalone=False) for editor parity; expose body + stylesheet through read-only query parameter on existing render GET (no schema migration). Avoid React re-rendering editable nodes. Renderer escapes user values. Guidance marks: quiet, layout-neutral dotted underline per anchored LINE; mark every anchored line, not each suggestion. Click activates suggestion and places caret normally; repeated clicks cycle suggestions on same line. One card in panel; count/order communicates outstanding items.
## privacy
Scope ownership in queries; foreign and nonexistent IDs both return 404 without loading foreign rows; unauthenticated is 401. Test separately. Compliance ERROR findings block generation, warnings do not; persist and surface every finding. Required-field errors prompt user input; warnings never block. GET recomputes compliance without saving; only targeted generation persists it. Hand-created resumes may have {}.
## deploy-test
Targeted-resume worker: smallest reversible unblock is build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, add required AI dependencies to worker requirements, reuse existing clients/actions/checks, delete stale worker/app/shared duplicate. Railway uses root context + explicit Dockerfile path. Keep shared-package extraction in docs/todo.md. Prompts live in api/app/prompts/; move SYSTEM_PROMPT there preserving name/module/exact text/behavior and load from file. Playwright against running stack for browser/accessibility/cross-tier; pytest for server invariants. For JSONB with unchanged SQLite tests use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column; separate Postgres fixture for real CHECK/in-place mutation.
## guidance
RB-9 originally keyword pipeline only; queue derived, one-at-a-time, no whole-document checks/GenAI/compliance findings; quantified_impact out of scope. No job target => empty queue. Five fields; exact anchor {quote, occurrence}; producer supplies guidance, anchor, claim, keyword-integrated replacement preserving sentence, reason. Accept atomically updates content; stale quote fails closed. Dismiss key hashes category + normalized quote. Calibration later becomes another producer: findings remain transient until promoted to existing queue; they need grounded anchor + exact replacement, and unresolved anchors cannot be accepted. Single canonical apply path; adopt returned content/version. RB-18 marks all anchored lines; one card remains.
## overview
RB-9 retired score entirely (gauge, service, endpoints, API field, resumes.score JSONB; migration dropped column). Never reintroduce due to stale specifications; do not substitute compliance. Overview rows show title, created_at, updated_at; archived table also shows archived_at.
## assistant
C2 is RB-21; RB-20 stays shipped/verified and its findings column/panel is removed outright—Assistant is sole guidance surface. Retain RB-20 backend: stored job profile, OpenRouter calibration, pre-call refusals, unique-anchor validation, finding-to-guidance promotion. Calibration findings stay transient until promoted to guidance. Use structured requirements/fact capture, not chat-shaped rendering. One resume = one role/context/thread (one job_target_id/job_profile_text); duplicate for another role, a sibling rooted at original. Copy document/context fields, not thread or role-specific requirement decisions.resume-builder · promoted · dream at call 30
Users own career materials; AI is optional, grounded, and never blocks editing/export. Resume content is one free-text Markdown document, not a field schema. Preserve safe, user-controlled apply paths and follow the updated C2 prototype over stale specs. Open product for ownership/export; data-model for schema/drift; editing-rendering for tokens, revisions, editor parity; privacy-deploy for access/compliance/infrastructure; guidance for queue/anchors; overview for score retirement; assistant for C2 workflow, thread, context, and layout; testing for browser/server strategy.
## product
Users own/control materials. AI is optional, on-demand reviewer/enhancer/localizer, never a blocker. Preserve user-driven workflows and export: downloads always work, including with placeholders; warn clearly with count and mark placeholders in-document. Stale mockups/specs do not override decisions; follow the updated user-authored prototype closely.
## data-model
Profiles are the user-managed career library; resumes are directly editable variants with profile_id NOT NULL, initially seeded from first resume. resumes.content = {markdown: "..."}: one free-text Markdown document, with no required or recognized headings/fields. This supersedes structured-content assumptions. Structure-dependent compliance, keyword attribution, provenance, and outlines need GenAI or redesign; do not assume bullet provenance. Keep skills + profile_skills and canonical skills.aliases; resume_keywords uses skill_id. profiles.version increments on profile/entry/bullet writes; resumes.profile_version snapshots at generation; compare counters, not updated_at. Convert existing structured rows in a data migration. Account-level assistant settings use validated JSONB in existing users.preferences; per-resume values override defaults.
## editing-rendering
Whole-document editing is favored; do not revive structured-editor assumptions. Canonical renderer is render_resume_html(standalone=False), exposed through read-only query parameter on existing render GET for editor parity, with no schema migration. Avoid React re-rendering editable nodes; structural edits update local content and re-fetch rendered body. Renderer escapes user values. version_token hashes content, presentation, title, status, template_key, region_code; excludes updated_at; identical state gives identical token. Autosave during typing updates content but creates no revision. Idle-gap always creates exactly one revision, even unchanged; simultaneous triggers produce one row recording all triggers. Keyword acceptance atomically replaces exact {quote, occurrence}; stale quote fails closed. Do not revalidate stored guidance on autosave.
## privacy-compliance
Scope ownership in queries; foreign and nonexistent IDs both return 404 without loading foreign rows; unauthenticated is 401. Test separately. Compliance ERROR findings block generation, warnings do not; persist and surface every finding. Required-field errors prompt user input; warnings never block. GET recomputes compliance without saving; only targeted generation persists it. Hand-created resumes may have {}.
## guidance
RB-9 originally shipped keyword pipeline only; queue derived, one-at-a-time, no document-wide checks/GenAI/compliance findings; quantified_impact out of scope. No job target => empty queue. Guidance uses exact anchor {quote, occurrence}; producer supplies claim, grounded anchor, keyword-integrated exact replacement preserving sentence, and reason. Accept atomically updates content; stale quote fails closed. Dismiss key hashes category + normalized quote. Calibration later becomes another producer: findings remain transient until promoted to queue; require grounded anchor + exact replacement; unresolved anchors cannot be accepted. One canonical apply path; adopt returned content/version. Marks are quiet, layout-neutral dotted underline per anchored LINE; mark every anchored line, not each suggestion. Click places caret normally; line targets composer, but does not open a proposal.
## overview
RB-9 retired score entirely (gauge, service, endpoints, API field, resumes.score JSONB; migration dropped column). Never reintroduce due to stale specifications; do not substitute compliance. Overview rows show title, created_at, updated_at; archived table also shows archived_at.
## deploy-test
Targeted-resume worker: smallest reversible unblock is build from repo root, COPY api/ and worker/, add api/ to PYTHONPATH, add required AI dependencies to worker requirements, reuse existing clients/actions/checks, delete stale worker/app/shared duplicate. Railway uses root context + explicit Dockerfile path. Keep shared-package extraction in docs/todo.md. Prompts live in api/app/prompts/; move SYSTEM_PROMPT there preserving name/module/exact text/behavior and load from file. Playwright against running stack for browser/accessibility/cross-tier; pytest for server invariants. For JSONB with unchanged SQLite tests use JSONB().with_variant(sqlite.JSON, 'sqlite') on every JSONB column; separate Postgres fixture for real CHECK/in-place mutation.
## assistant
C2 guided assistant is a guided experience in a chat-like interface, not general chat or a fixed-step wizard. Lead with steerable ranked agenda; never start blank or block on AI. Composer routes to known actions/targets, clarifies missing targets, narrows vague requests, and has fallback. Suggestions derive from resume state; edits grounded in user-provided history. Assistant is sole guidance surface: removeresume-builder · signals · dream at call 5
Product is user-driven: users own/edit career history and tailored resumes; AI assists on demand and never blocks. Resume is the editing surface; profile is the career library. Preserve provenance and explicit profile-version drift tracking. Prefer normalized shared data for canonicalization/cross-entity references. Keep SQLite tests compatible while validating Postgres-only behavior on Postgres. Autosave and idle-gap snapshots are distinct mechanisms. Open `product` for lifecycle and localization principles; `profile-resume` for ownership, provenance, and drift; `skills` for normalization; `database` for JSONB/testing; `revisions` for snapshot triggers. ## product Product direction: user-driven, AI-supported resume lifecycle. Users own and edit career history and tailored resumes. AI is an on-demand reviewer, enhancer, and localizer—not a blocking generator. Localization adapts structure, length, formatting, and cultural conventions to each market. ## profile-resume The career profile/library is source material; tailored resumes are directly editable documents and the editing surface. Keep `resumes.profile_id` NOT NULL; seed a profile from the first resume. Preserve `source_entry_id`/`source_bullet_id` provenance in resume content so edits can be promoted to the profile; no separate write-back schema. Targeting needs the union of material in the library. Track drift with `profiles.version` and `resumes.profile_version`; bump profile version on profile, entry, or bullet writes and copy it when generating a resume. Prefer explicit snapshots/version counters over timestamps, which miss child edits. ## skills Keep normalized shared `skills` and `profile_skills` tables, with aliases resolving variants (e.g. K8s/Kubernetes) to a canonical term. The committed RB-5 spec requires this normalization; `resume_keywords.skill_id` references skills for analytics/cross-entity linkage. Do not collapse into a JSON array. ## database For PostgreSQL JSONB while keeping existing SQLite tests unchanged, declare each column as `JSONB().with_variant(sqlite.JSON, 'sqlite')`. PostgreSQL remains the production/migration type; SQLite can run existing metadata fixtures. Add a dedicated Postgres integration fixture/tests for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. ## revisions Continuous autosave writes resume content without creating a revision. Each idle-gap timeout is a separate trigger and always creates exactly one revision row—even if another snapshot trigger ran recently. Keep autosave and idle-gap snapshot mechanisms separate.
resume-builder · signals · dream at call 10
Users own and edit career history and tailored resumes; AI assists on demand, never blocks. Resume is the editing surface; profile is the career library. Preserve provenance and explicit profile-version drift. Prefer normalized shared data where canonicalization/linkage is planned. Return 404 for foreign resources, 401 unauthenticated. Warnings surface; compliance errors block. Keep SQLite tests compatible and validate Postgres-only behavior on Postgres. Autosave and revision checkpoints are distinct. Open `product` for lifecycle/localization and scope; `profile-resume` for ownership/provenance/drift; `skills` for normalization; `database` for JSONB/testing; `revisions` for checkpoint semantics; `security` for authorization; `compliance` for generation gates; `worker` for shared-code deployment; `prompts` for prompt ## product User-driven, AI-supported lifecycle: users own/manage career history and tailored resumes; AI is an on-demand reviewer, enhancer, and localizer, not a blocking generator. Localization adapts structure, length, formatting, and cultural conventions by market. When infrastructure/shared-code blocks a feature, prefer the smallest reversible change meeting confirmed constraints; track broad refactors separately. ## profile-resume Profile is the career library/source material; tailored resumes are directly editable documents and the editing surface. Keep resumes.profile_id NOT NULL; seed a profile from the first resume. Preserve source_entry_id/source_bullet_id provenance in resume content so edits can be promoted; no separate write-back schema. Targeting needs the union of library material. Track drift using profiles.version and resumes.profile_version: bump for profile, entry, or bullet writes; copy version at generation. Timestamps miss child edits. ## skills Keep normalized shared skills and profile_skills tables, with aliases resolving variants (e.g. K8s/Kubernetes) to canonical terms. RB-5 commits to this normalization; resume_keywords.skill_id links analytics/cross-entity data. Do not collapse skills into a JSON array. ## database For PostgreSQL JSONB with existing SQLite tests unchanged, declare columns as JSONB().with_variant(sqlite.JSON, 'sqlite'). PostgreSQL remains production/migration type. Add dedicated Postgres integration fixtures/tests for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. ## revisions Continuous autosave writes resume content without creating revisions. Each idle-gap timeout is a distinct checkpoint trigger and creates exactly one revision even if a prior snapshot happened recently. If multiple checkpoint conditions fire simultaneously, create one revision for that event and record every fired trigger for auditability. Keep autosave and checkpoint mechanisms separate. ## security Unauthenticated requests return 401. Scope ownership by user_id in the query so foreign resources are never loaded; return 404 for cross-user resources just as for nonexistent IDs, preventing ID enumeration. Applies to resumes/profiles and supersedes RB-3's 403 wording. Test foreign and nonexistent IDs separately. ## compliance Persist and surface all compliance findings. ERROR findings block resume generation; warnings do not. Warning-only markets can generate. Missing required fields (e.g. nationality where required) should fail and prompt the user rather than silently produce a noncompliant resume. ## worker For shared-code worker features, build from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements, and delete stale worker/app/shared duplicates. Configure Railway with repo-root build context and explicit Dockerfile. Shared-package extraction is a separate TODO, not part of feature scope. ## prompts Use one repo-wide prompt convention under api/app/prompts/. Move SYSTEM_PROMPT there while preserving its public name, module, and exact text/behavior; avoid competing inline and file conventions. Existing review tests should remain unchanged and pass.
resume-builder · signals · dream at call 15
Users own and edit career history and tailored resumes; AI assists on demand, never blocks. Resume is the editing surface; profile is the career library. Current document direction is pure free-text Markdown (no inferred structure); downstream structure is AI-read. Preserve explicit profile-version drift. Prefer normalized shared data where canonicalization/linkage is planned. 404 foreign resources; 401 unauthenticated. Warnings surface; compliance errors block. Keep SQLite tests compatible and validate Postgres-only behavior on Postgres. Autosave and revision checkpoints are distinct. Open `document` for free-text direction and superseded editor decisions; `product-data` for ownership/provenance/drift; `database`, `revisions-security`, `compliance`, `worker-prompts`, `concurrency-tests` for implementation constraints.
## document
Current direction (decision 15): resumes.content = {markdown: "..."}, a pure free-text Markdown document with no required fields, headings, recognized sections, or structural schema. One Tiptap editor spans the whole document. Do not compromise by inferring H2 sections. GenAI reads the document when downstream features need structure (compliance, keywords, evaluation, formatting). RB-12's structured editor remains shipped/verified but is superseded by this product change, not deemed defective. Re-spec generation/provenance, keyword attribution/insertion, compliance structure, and section-outline work before building; renderer must render Markdown. Existing JSONB rows need data conversion despite no DDL. Expand Markdown support thoughtfully; RB-10 ATS safety remains authoritative. Decisions 11/14 (renderer-backed editing and custom structured ProseMirror schema) are superseded where they conflict.
## product-data
Users own/manage career history and tailored resumes; AI is an on-demand reviewer, enhancer, and localizer, never a workflow blocker. Localization adapts structure, length, formatting, and cultural conventions by market. Profile is the career library; resumes are directly editable, with resumes.profile_id NOT NULL and first resume seeding a profile. Preserve provenance only as redesigned for the Markdown model; old source_entry_id/source_bullet_id field assumptions need re-spec. Targeting needs the union of library material. Drift uses profiles.version bumped on profile/entry/bullet writes and resumes.profile_version copied at generation; timestamps miss child edits. For blocked shared-code features, prefer the smallest reversible change and track broad refactors separately.
## skills
Keep normalized shared skills and profile_skills tables, with aliases mapping variants (e.g. K8s/Kubernetes) to canonical terms. RB-5 commits to this vocabulary; resume_keywords.skill_id links analytics/cross-entity data. Do not collapse skills into a JSON array.
## database
Declare PostgreSQL JSONB columns as JSONB().with_variant(sqlite.JSON, 'sqlite') so existing SQLite tests remain unchanged while production/migrations use JSONB. Add dedicated PostgreSQL integration coverage for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. The Markdown direction changes JSONB row shape and requires data conversion, even if no schema migration/DDL is needed.
## revisions-security
Continuous autosave persists resume content without creating revisions. Each idle-gap timeout is a distinct checkpoint and creates exactly one revision, even if a snapshot was recent. Simultaneous checkpoint triggers produce one revision for that event, retaining every trigger for audit. Unauthenticated requests return 401. Scope ownership by user_id in the query so foreign resources are never loaded; return 404 for foreign and nonexistent resources alike. Test both cases separately.
## compliance
Persist and surface all compliance findings. ERROR findings block generation; warnings do not. Warning-only markets can generate. Required-field errors (e.g. missing nationality where required) should prompt the user rather than silently produce a noncompliant resume. Existing section_order/included_fields rules rely on superseded structured content and must be redesigned for pure Markdown/AI document reading.
## worker-prompts
For shared-code worker features, build from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements, delete stale worker/app/shared duplicates. Configure Railway with repo-root build context and explicit Dockerfile. Shared-package extraction is a separate TODO. Use one prompt convention under api/app/prompts/; move SYSTEM_PROMPT there while preserving its public name, module, exact text and behavior; keep review tests passing.
## concurrency-tests
Concurrency tokens cover client-editable state (content, presentation, title, status, template_key, region_code), not updated_at. Hash content to avoid SQLite timestamp precision collisions. Derived/read-triggered writes do not move the token; byte-identical state retains it. Browser behavior requiring real contentEditable/caret/selection uses Playwright against the running stack, with @playwright/test and @axe-core/playwright; provide a make target. Server-side invariants remain in pytest.resume-builder · signals · dream at call 20
Users own/edit career history and tailored resumes; AI assists on demand, never blocks. Resume is the editing surface; profile is the career library. Current document direction is pure free-text Markdown; downstream structure is AI-read. Preserve explicit profile-version drift. Prefer normalized shared data where canonicalization/linkage is planned. 404 foreign resources; 401 unauthenticated. Warnings surface; compliance errors block. Scores are retired; compliance reads do not persist. Autosave and revision checkpoints are distinct. Open `document` for Markdown direction/superseded editor decisions; `product-data` for ownership/provenance/drift; `skills`, `database`, `revisions-security`, `compliance`, `worker-prompts`, `concurrency-tests`, `guidance` for implementation constraints.
## document
Current direction (decision 15): resumes.content = {markdown: "..."}, pure free-text Markdown with no required fields, headings, recognized sections, or structural schema. One Tiptap editor spans the whole document. GenAI reads it when downstream features need structure. RB-12's structured editor remains shipped/verified but is superseded, not defective. Re-spec generation/provenance, keyword attribution/insertion, compliance structure, and section-outline work; renderer must render Markdown. Existing JSONB rows need data conversion despite no DDL. Expand Markdown support thoughtfully; RB-10 ATS safety remains authoritative. Decisions 11/14 are superseded where conflicting.
## product-data
Users own/manage career history and tailored resumes; AI reviews, enhances, and localizes on demand, never a workflow blocker. Localization adapts structure, length, formatting, and cultural conventions by market. Profile is the career library; resumes directly editable, resumes.profile_id NOT NULL and first resume seeds profile. Preserve/re-spec provenance for Markdown; old source_entry/source_bullet assumptions do not carry over. Targeting needs the union of library material. profiles.version bumps on profile/entry/bullet writes; resumes.profile_version copies at generation; timestamps miss child edits. Scores are permanently retired: no score column/JSONB/scorer/endpoints/API field or stale score criteria. Prefer smallest reversible shared-code change; track broad refactors separately.
## skills
Keep normalized shared skills and profile_skills tables, with aliases mapping variants (e.g. K8s/Kubernetes) to canonical terms. RB-5 commits to this vocabulary; resume_keywords.skill_id links analytics/cross-entity data. Do not collapse skills into a JSON array.
## database
Declare PostgreSQL JSONB columns as JSONB().with_variant(sqlite.JSON, 'sqlite') so existing SQLite tests remain unchanged while production/migrations use JSONB. Add dedicated PostgreSQL integration coverage for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. Markdown changes JSONB row shape and requires data conversion even if no schema migration/DDL is needed.
## revisions-security
Continuous autosave persists resume content without creating revisions. Each idle-gap timeout is a distinct checkpoint and creates exactly one revision, even if a snapshot was recent. Simultaneous checkpoint triggers produce one revision for the event, retaining every trigger for audit. Unauthenticated = 401. Scope ownership by user_id in query so foreign resources are never loaded; foreign and nonexistent both = 404. Test both separately.
## compliance
Persist and surface all compliance findings. ERROR findings block generation; warnings do not. Warning-only markets can generate. Required-field errors (e.g. missing nationality where required) should prompt the user rather than silently produce a noncompliant resume. Compliance verdicts persist only through targeted generation; reads never write/recompute state. Existing section_order/included_fields rules rely on superseded structure and must be redesigned for pure Markdown/AI reading. Do not substitute compliance for the retired score.
## worker-prompts
For shared-code worker features, build from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements, delete stale worker/app/shared duplicates. Configure Railway with repo-root build context and explicit Dockerfile. Shared-package extraction is separate TODO. Use one prompt convention under api/app/prompts/; move SYSTEM_PROMPT there while preserving public name, module, exact text and behavior; keep review tests passing.
## concurrency-tests
Concurrency tokens cover client-editable state (content, presentation, title, status, template_key, region_code), not updated_at. Hash content to avoid SQLite timestamp precision collisions. Derived/read-triggered writes do not move token; byte-identical state retains it. Browser behavior requiring real contentEditable/caret/selection uses Playwright against running stack, with @playwright/test and @axe-core/playwright; provide make target. Server-side invariants remain in pytest.
## guidance
Guidance producer is keyword-pipeline-only: no generic deterministic checks, whole-document GenAI pass, or compliance findings. No job target means an empty queue. Each suggestion anchors to exact quote + occurrence and proposes an edit integrating the term into the user's sentence; accept atomically applies scoped find/replace to the Markdown string. Stale quotes are dropped at read/accept, not every autosave. Dismissal key hashes category + normalized quote. RB-10 owns formatting; RB-11 quantification. One active card at a time; open suggestions also mark every anchored line with a quiet dotted underline, quieter thanresume-builder · signals · dream at call 25
Users own and edit career history and tailored resumes; AI advises on demand and never blocks access/export. Resume is the editing surface; profile is the career library. Current document is pure free-text Markdown; AI reads structure downstream. Calibration findings never apply directly: accepted changes use the human-approved guidance queue. Preserve explicit supersession/drift; prefer small reversible changes. Open `document`, `product-data`, `guidance`, `assistant` for core product direction; `skills`, `database`, `revisions-security`, `compliance`, `worker-prompts`, `testing` for implementation constraints.
## document
Decision 15: resumes.content={markdown:"..."}; pure free-text Markdown, no required fields, headings, recognized sections, or structural schema. One Tiptap editor spans the whole document; GenAI reads it when downstream features need structure. RB-12's structured editor remains shipped/verified but is superseded, not defective. Re-spec generation/provenance, keyword attribution/insertion, compliance structure, and section-outline work; renderer must render Markdown. Existing JSONB rows need data conversion despite no DDL. Expand Markdown support thoughtfully; RB-10 ATS safety remains authoritative. Decisions 11/14 are superseded where conflicting.
## product-data
Users own/manage career history and tailored resumes; AI reviews, enhances and localizes on demand, never a workflow blocker or direct editor. Localization adapts structure, length, formatting and cultural conventions by market. Profile is career library; resumes directly editable, resumes.profile_id NOT NULL and first resume seeds profile. Preserve/re-spec provenance for Markdown; old source_entry/source_bullet assumptions do not carry over. Targeting needs union of library material. profiles.version bumps on profile/entry/bullet writes; resumes.profile_version copies at generation; timestamps miss child edits. Scores permanently retired: no score column/JSONB/scorer/endpoints/API field or stale score criteria. Prefer smallest reversible shared-code change; track broad refactors separately.
## guidance
Guidance queue is the sole mechanism to apply AI-proposed edits; human approval required. Anchor={exact quote, occurrence}; accept performs scoped replacement atomically, rejects stale text (409), returns updated content/version for editor adoption. Drop stale quotes at read/accept, not every autosave. Dismissal key hashes category + normalized quote. Keyword pipeline was original sole producer; calibration is now an additional producer, not a direct resume writer: model must provide exact anchor quote and replacement; only uniquely resolving quotes are eligible, otherwise no accept action. Accepted findings become queue items. Preserve one active card; quiet dotted underline marks each anchored line, quieter than active decoration; clicking line activates suggestion and moves caret normally, cycling when several share a line. RB-10 owns formatting; RB-11 quantification.
## assistant
RB-21 follows C2 design docs in repo (docs/design/c2-guided-assistant.html, c2-ux-spec.md); do not reshape in-progress RB-20. Keep/build on RB-20 stored job profile, OpenRouter calibration, pre-call refusals, exact-once anchor filtering, and finding-to-guidance conversion. Remove RB-20 findings column/prose panel outright; Guided Assistant is sole guidance surface, no parity period (nothing published). Preserve structured requirement/context contract, fact-capture loop, durable per-resume thread and requirement statuses, skipped/dismissed decisions; no chat UI without substantive guidance. One resume=one role/context/thread. “Duplicate for this role” copies document/context (including target), never thread or requirement decisions; new conversation starts fresh. User always may download: unfilled placeholders are clearly marked/count-warned but never block PDF export.
## skills
Keep normalized shared skills and profile_skills tables, with aliases mapping variants (e.g. K8s/Kubernetes) to canonical terms. RB-5 commits to this vocabulary; resume_keywords.skill_id links analytics/cross-entity data. Do not collapse skills into a JSON array.
## database
Declare PostgreSQL JSONB columns as JSONB().with_variant(sqlite.JSON, 'sqlite') so existing SQLite tests remain unchanged while production/migrations use JSONB. Add dedicated PostgreSQL integration coverage for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. Markdown changes JSONB row shape and requires data conversion even if no schema migration/DDL is needed.
## revisions-security
Continuous autosave persists resume content without creating revisions. Each idle-gap timeout is a distinct checkpoint and creates exactly one revision, even if a snapshot was recent. Simultaneous checkpoint triggers produce one revision for the event, retaining every trigger for audit. Unauthenticated=401. Scope ownership by user_id in query so foreign resources are never loaded; foreign and nonexistent both=404. Test both separately.
## compliance
Persist and surface all compliance findings. ERROR findings block generation; warnings do not. Warning-only markets can generate. Required-field errors (e.g. missing nationality where required) should prompt user rather than silently produce noncompliant resume. Compliance verdicts persist only through targeted generation; reads never write/recompute state. Existing section_order/included_fields rules rely on superseded structure and must be redesigned for pure Markdown/AI reading. Do not substitute complianceresume-builder · signals · dream at call 30
Users own/edit career history and tailored resumes; AI advises on demand and never blocks access/export. Resume is the editable document; profile is the career library. Current content is free-text Markdown; downstream AI reads structure. Proposed edits apply only through a human-approved guidance queue. Follow explicit supersession and latest prototype/code direction; prefer small reversible changes. Open `document`, `product`, `guidance`, `assistant` for product direction; `implementation`, `testing` for constraints.
## document
Decision 15 supersedes conflicting structure decisions: resumes.content={markdown:"..."}, pure free-text Markdown; no required fields, headings, recognized sections, or structural schema. One editor spans the whole document; AI reads structure downstream. RB-12 structured editor remains shipped/verified, not defective. Re-spec generation/provenance, keyword attribution/insertion, compliance structure and outline work; renderer must render Markdown. Convert old JSONB rows despite no DDL. Expand Markdown thoughtfully; RB-10 ATS safety remains authoritative.
## product
Users own/manage career history and tailored resumes; AI assists on demand and never blocks editing/export. Profile is career library; resume is directly editable and targeting uses union of library material. resumes.profile_id stays NOT NULL; first resume seeds profile. Localization adapts market conventions. profiles.version increments on profile/entry/bullet writes; resumes.profile_version copies at generation; timestamps miss child edits. Scores permanently retired (column/scorer/endpoints/API); overview has title/dates/actions only. Prefer smallest reversible shared-code change; track broad refactors separately.
## guidance
Human approval is the only apply path for AI proposals. Queue anchor={exact quote, occurrence}; accept scoped replacement atomically, reject stale quote (409), return content/version for editor adoption. Drop stale quotes at read/accept, not every autosave. Dismissal key hashes category + normalized quote. Keyword and calibration can produce queue items; calibration findings themselves remain unpersisted/read-only and need exact anchor + replacement; unresolved/nonunique anchors get no accept action. One proposal/card at a time, but quiet dotted underline per anchored line; clicking places caret normally and activates/cycles suggestions on that line. RB-10 owns formatting; RB-11 quantification.
## assistant
Build RB-21 from C2 docs/prototype; leave RB-20 shipped/verified, but remove its findings column/panel outright—assistant/thread is sole guidance surface, no parity period. Keep job-profile storage, OpenRouter calibration, pre-call refusals, exact-once grounding and finding-to-guidance path. Guided chat, not general chat or wizard: ranked agenda, user steers, every turn ends in concrete action; no blank start/free instructions; composer disabled until role exists; narrow vague asks and ground in history. Thread proposals have diff/reason/Apply/Not now/Undo; access via agenda, queue popover or document marks. Marks locate work; clicks place caret/scope composer, never fetch or hijack writing. Preserve context/provenance, fact capture, per-resume thread and requirement decisions. One resume=one role/context/thread; duplicate copies document/context (including target), not thread/decisions. Re-extraction preserves decided matching requirements (item_key category+requirement ID, not wording), closes disappeared open items, opens genuinely new ones. Placeholders warn/count but never block PDF export.
## preferences
Account assistant settings (language, tone, default market) belong in validated Pydantic JSONB `users.preferences` (`app/schemas/jsonb.py`), not profiles/freeform fields. They persist across career profiles; `profiles.languages` means spoken languages. These are defaults; per-resume overrides such as region_code win.
## prototype
Latest human-edited C2 prototype/code direction overrides older spec exclusions. Rail is two tabs: Assistant and Document. Move document properties from top toolbar into Document tab; move Auto adjust into formatting row; follow prototype closely using Tailwind and shadcn. Suggestions panel folds into thread; keep document marks. Avoid interpreting old exclusion of tabbed rail as current direction.
## implementation
PostgreSQL JSONB columns use JSONB().with_variant(sqlite.JSON,'sqlite'); preserve SQLite tests and add PostgreSQL integration coverage for CHECK/in-place mutation. Worker builds from repo root, copies api+worker, adds api to PYTHONPATH and AI deps; delete duplicated worker shared module. Railway worker service uses repo root + explicit Dockerfile. Prompt convention: create api/app/prompts and move SYSTEM_PROMPT there, behavior/text/name preserved. Ownership query scopes user_id; unauthenticated=401, foreign and missing=404, separately tested. Autosave persists without revisions; each idle timeout exactly one revision; simultaneous triggers one row retaining all triggers.
## compliance
Persist/surface every compliance finding. ERROR blocks generation; warnings do not. Required-field errors should prompt user, not silently generate noncompliant output. Compliance verdict persists only through targeted generation; reads never write/recompute persisted state. Existing section_order/included_fields rely on superseded structure and must be redesigned for Markdown/AI reading.
## editing
Editing surface uses renderer's own HTML (`render_resume_html(standalone=False)`) with semantic editable nodes/path attributes; read-only render endpoint query parameter is inSeed 2
Escalations · 59 questions · chance: 36%
| Arm | Right | Right where no memory was wrong / reverse |
|---|---|---|
| stateless | 59% | |
| promoted | 64% | +7 / −4 |
| signals | 66% | +6 / −2 |
Final memories
build-doen · promoted
{
"index": "Doen favors durable product intent, explicit constraint/discretion boundaries, grounded artifacts, and workflows whose complexity earns its keep. Jev drafts, grounds, detects conflicts, and weighs precedent\u2014not human intent or product behavior. Capture human reasoning during shaping; automate confident, reversible corpus actions while preserving attention for uncertainty and retirement. Prefer deterministic, reproducible default gates; live-LLM evals stay opt-in. Interpret requirements by protected intent; observed outcomes need real-world evidence. Open `product` for purpose; `governance` for corpus policy; `choices` for settled calls; `delivery`/`test-scope` for gates and verification; `metrics` for measurement; `creation` for initiative authoring; `memory` for live-memory rules; `onboarding` for executor docs updates.",
"notes": {
"product": "Doen is a durable product-spec framework for designers, engineers, and product owners: one durable intent artifact, explicit constraints vs. discretion, escalation of genuine intent calls, and precedent. Not an abstract engineering-rule distiller; heuristic flywheel retired (docs/design-principles.md). Priorities: capture human reasoning during shaping (25 decisions agent-raised; 9 initiatives yielded none), ground generated specs/references and learn records, then retrieve precedent once a product corpus exists. Jev drafts, grounds, detects conflicts, and weighs precedent; it does not verify product behavior or human intent. Weigh signal lost against likely value and purpose; avoid marginal tracking/schema when users already acted.",
"governance": "Jev auto-admits only confident, sound, well-scoped, condition-bearing standalone rules; uncertain ones remain raw. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases queue for human review, and humans can override. Retirement remains human-gated because removal feels irreversible. Invariant is sound judgment, not a mandatory gate that stalls the loop. This supersedes the older both-human-gated/no-automated-write rule; promotion queue is removed.",
"choices": "Settled calls: Learn renders only in Learn, not Draft/Building. research_findings is executor-owned pure last-write-wins (MCP may overwrite human edits; document clearly); dedicated submit_research_findings tool, keep submit_evidence stable. Hide importance recommendation only for exactly one initiative; don't import BD-46 completion-date logic. Use halfvec + HNSW for 3072-dimensional embeddings to avoid an unindexed production retrieval path. Collapse initiative_created into dismissed without trace; accept narrow BD-51 fidelity loss rather than schema. Stranded merge proposals: step 4 evaluates all pending judgeable proposals, not only newly created ones; preserve step order and per-proposal rule.",
"metrics": "Criterion item_91be5a17ec5d: live corpus has only six distinct raw event-count combinations, so reweighting cannot yield >20 distinct scores now. Verify mechanism with realistic survived/removed/citation event-count sweeps through formula (>20 distinct scores), plus correctness evidence for live recompute. Live dispersion may depend on future events; don't leave mechanism unverified or weaken to live-only proxy. Dedup classifier regression: iterate on Jev rubric and remeasure on same 186 cases before deciding; don't ship replacement on worse result.",
"delivery": "Shipping gates default to deterministic, reproducible, inexpensive checks; live-LLM evaluations remain opt-in. Do not add paid/non-deterministic model calls to default CI; evaluation scheduling is separate. Name real gates, not nonexistent CI. Generalization gate: deterministic cassette-replayed bench runs in default suite; live eval opt-in, and criterion names the bench. For post-deployment evidence, local code/predicate comparisons do not prove production behavior: record available evidence and leave open pending observable deployment evidence; don't prematurely fail or assume outcomes.",
"test-scope": "Honor acceptance-criterion intent, not wording that accidentally reverses an existing contract. Updating assertions/unpacking to match current API and make intended guard work is in scope when repairing stale wiring, not weakening tests; confirm substantive assertion executes. BD-101: fixture-only rewiring for bd64/68/76/77; test_bd97 assertions intentionally invert because it encodes the contract being reversed. BD-105: repair stale eval unpacking from 3-tuple to current 2-tuple, verify human_judgment gate assertion runs and passes; treat 'without modification' as satisfied in intent. Don't add live eval to default tests. Document exceptions; separate unrelated improvements.",
"creation": "People can start initiatives and add/edit spec items in-app while draft; after draft, changes go through executor proposals. Creation requires description and Build/Research choice (Build default); title optional. If omitted, description's first line is a readable stand-in; executor names initiative while drafting. Save brief separately, leave spec empty, and don't allow post-creation brief edits. Dialog distinguishes required description/type from optional title and line-list fields; use established shadcn-style Dialog, Textarea, and Field builders.",
"memory": "Live executor memory is a capped, measured experiment: random initiative holdout gets no memory; predeclare outcome measures and kill rule; show the person every served prediction and outcome. Avoid broad memory machinery absent evidence. When a person states a new rule or constraint during work, executor records"
}
}build-doen · signals
{
"index": "Doen serves product engineers, designers, and product owners: capture human intent, ground claims in real evidence, then improve precedent retrieval\u2014not abstract engineering rules. Stay within explicit grants; escalate genuine product calls, preserve agency, and distinguish constraints from discretion. Prefer simple, stage-specific UI and deterministic gates; live evals are opt-in. Do not claim outcomes before real events. Record new human rules immediately and tell them. Open `principles` for priorities/live learning, `delegation` for grants, `ui-data` for product/data choices, `verification` for evidence limits, `shipping` for gates, `retrieval` for indexing, `governance` for precedent lifecycle, `observations` for preference signals, `initiative-start` for creation/editing.",
"notes": {
"principles": "Doen is a shared spec framework for product engineers, designers, and product owners. Priorities: (1) capture human product reasoning\u201425 recorded decisions were agent-raised; 9 initiatives yielded none; record a newly stated rule/constraint immediately and tell the person; (2) ground artifacts and claims in real project surfaces/data; (3) improve precedent retrieval (18% useful baseline) once there is a corpus. Retire the abstract engineering-heuristic flywheel (docs/design-principles.md, 2026-10-02): 228 rules yielded 5 usable, with circular success measures. Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a verifier for behavior or human-judgment criteria. Use real channels (SQL + RESEARCH_LOG.md), remeasure stale baselines, and distinguish proxies from outcomes. A live executor-memory experiment is approved only with a cap, randomized no-memory holdout, predeclared measures/kill rule, and all served memory visible to the person; this is not reinstating abstract-rule distillation.",
"delegation": "Escalate genuine product-intent choices; honor explicit grants and constraints, including false-positive limits. Do not turn delegated implementation choices into questions. Record consequential executor decisions. Accepted examples: report partial redundancy and conflict separately with citations; evaluator judgment for redundancy threshold while surfacing close calls; dashboard-only spec loops in v1; exact criterion-text matching for criteria-domain loops (revisit if too narrow). Recommendations/executor-authored details are not automatically mandates: the owner removed an exact-two-actions/no-close-button criterion. User silence confirms an executor call only if the initiative reached Complete and the call was visible on its initiative page; elapsed time or record_work is not evidence of review.",
"ui-data": "Prefer simple, stage-specific UI; render only when applicable, not disabled placeholders. Learn is hidden in Draft/Building and shown in Learn. `research_findings` is the executor's working document, pure last-write-wins: later executor/MCP writes may overwrite human edits; document this. Use dedicated `submit_research_findings(initiative_id, findings)`, not `submit_evidence`. Hide importance recommendation only when the project has exactly one initiative. In Draft, people may add/edit spec items on the initiative page; after Draft changes go through executor proposals.",
"verification": "When sparse live data cannot mathematically meet a numeric dispersion criterion, test the mechanism with a realistic sweep and separately verify live recompute correctness; do not wait indefinitely or weaken to a trivial change. Example: six raw combinations cannot yield >6 live scores; require >20 distinct scores across realistic event counts plus correct recompute. Correct stale/fictional measurement assumptions while preserving criterion intent. Drain/property tests prove arithmetic, not that users/executors act on a signal. Record production-only before measures via SQL + RESEARCH_LOG.md when available; leave after/deployment or post-execution evidence open/needs_judgment until the real event occurs. Do not claim local comparisons are deployment outcomes.",
"shipping": "Default/merge gates should be deterministic and genuinely gating; paid, nondeterministic, uncalibrated live-LLM evals stay opt-in for deeper evidence. If a requested blocking check is absent, add a cassette-replayed deterministic bench check and amend criterion wording to name the actual gate. Evaluate criteria by intent: updating assertions for an intentionally reversed contract is not weakening; repair stale test signatures so the intended guard runs. Iterate fixable rubric issues against the same frozen dataset before ship/hold; match effort to risk (simple binary inference may need only its frozen live eval). Do not deploy unilaterally to close production-only criteria.",
"retrieval": "Production retrieval migrations should preserve indexing immediately, even for small corpora. For 1536\u21923072 pgvector, plain vector exceeds the indexed-column dimension cap; use halfvec + HNSW rather than ship an unindexed interval and defer indexing.",
"governance": "Avoid human promotion queues that recreate curation overhead. Jev may auto-admit unclustered rules it judges confidently sound, well-scoped, condition-bearing guidance; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases queue for human judgment, and humans can override. Retirement remains human-gated because removal is more consequential and rejected sentinels are restorable. Evaluate all pending judgeable proposals"
}
}resume-builder · promoted
{
"index": "Users own professional history; AI assists on demand and never blocks edits. Profiles are the career library; resumes are editable pure-Markdown documents. Preserve control: no scores, exports never blocked, localize to market norms. Assistant is guided\u2014not general chat\u2014and one thread is the sole guidance surface. Open product-model for ownership; free-text for document rules; guidance-marks for anchors/UI; guided-assistant for C2 flow and durable state; account-settings for preferences; overview-export for tables/downloads; schema-drift for versions/tokens; database-tests for JSONB; operations for revisions/access/compliance; shared-code-prompts for worker/prompt conventions.",
"notes": {
"product-model": "Users own and manage professional history; AI reviews, enhances and localizes on demand, never blocks edits. Profiles are the career library/union of experience for targeting; resumes are directly editable documents. resumes.profile_id stays NOT NULL; first run seeds a profile from the first resume (D1). D15 supersedes the original structured provenance/promote-back design: resume content is now pure free text, so no structured write-back contract.",
"free-text": "D15: resumes.content is {markdown: \"...\"}, with no required headings, sections or field schema. Convert existing structured rows. Generation, compliance, keyword/evidence attribution and outlines must adapt to document understanding and define provenance/write semantics in their specs. RB-10 remains authority on ATS-safe Markdown. D12 chose real-browser Playwright for frontend behavior; renderer must render Markdown, not depend on the retired structured document schema.",
"guidance-marks": "Anchors are {quote, occurrence}; accept uses scoped exact replacement, atomically with status. Mismatch is stale; resolve on read/accept, not autosave. Dismissal key hashes category + normalized quote. Producers: keywords (D17) and calibration findings (D21), if uniquely grounded with exact replacement; gaps need an insertion anchor or no accept. Marks: one quiet, layout-neutral dotted underline per anchored line, quieter than active styling; click places caret normally. Under latest D28, marks target the line/composer but do not open a card or hijack writing; proposals live in assistant thread.",
"guided-assistant": "C2 is a new initiative; RB-20 stays shipped foundation, but its unpublished findings column/panel is removed (D22,D24). Assistant is guided chat: ranked agenda leads, user steers; no blank prompt/general resume chatbot; every turn routes to a concrete action (D27). One guidance surface: proposal cards in thread, reached from agenda, queue popover or document marks; diff/reason, Apply, Not now, Undo. Two-tab rail Assistant/Document; properties in Document, Auto adjust in formatting row (D30). Context/thread and requirement decisions are per resume; duplicate document/context, start fresh thread (D25). On advert re-extraction preserve decisions by stable item_key=hash(category, requirement id); close vanished open items, retain decided items, add new requirements open (D29).",
"account-settings": "Account assistant settings (language, tone, default market) are one validated Pydantic JSONB document in existing users.preferences, no migration (D26). Do not put them in profiles or per-setting columns. profiles.languages means languages spoken. Account values are defaults; resume overrides such as region_code win. Follow existing JSONB-document and registry-driven patterns.",
"overview-export": "No score, scorer, score endpoints/API field, or resumes.score column. Overview shows title, timestamps, actions, and archived timestamp where applicable; do not substitute compliance or copy score on duplicate (D18). Export is always downloadable, including with placeholders; prominently warn/count and mark placeholders in-document. C2's blocking PDF rule is superseded (D23).",
"schema-drift": "Keep skills + profile_skills and skills.aliases for canonical names/alias resolution; resume_keywords has skill_id FK (D2). Track profile drift with profiles.version and resumes.profile_version; bump on profile/entry/bullet writes, copy current version at generation, compare versions\u2014not updated_at (D3). Concurrency tokens hash client-editable state (content, presentation, title, status, template_key, region_code), not timestamps or derived writes (D13).",
"database-tests": "For JSONB use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): production/migrations/Postgres tests retain real JSONB while existing SQLite suite stays unchanged. Add a dedicated Postgres fixture for behavior SQLite cannot validate (including CHECK constraints and in-place JSONB mutation). Do not split ORM metadata or move the whole suite to Postgres (D4).",
"operations": "Revisions: continuous autosave is distinct from idle-gap snapshots; each idle-gap timeout creates exactly one revision. Coincident triggers produce one row and record all triggers where possible (D5\u20136). Scope service queries by user_id; foreign and nonexistent resources both 404, unauthenticated 401; test separately (D7). Targeted generation: compliance ERROR blocks, warnings advise; persist findings and prompt profile completion for required fields (D8).",
"shared-code-prompts": "Build worker from repository root; include api/ and worker/, add api/ to PYTHONPATH and AI dependencies; delete stale worker/app/shared duplicate. Railway worker uses repo-root context and explicit Dockerfile (D9)."
}
}resume-builder · signals
{
"index": "Users own their professional history and documents: AI assists on demand, never gates ownership/export, and must not invent unsupported claims. Resumes are editable free-text Markdown; downstream structure is inferred. Guided Assistant is actionable, grounded, and user-steered\u2014not general chat or a wizard. Follow the owner\u2019s latest explicit prototype/code direction over stale scope language. Open `career` for content/control; `assistant` for C2 interaction/context; `guidance` for anchored edits; `editing` for autosave/concurrency; `skills` for normalization; `drift` for freshness; `api` for auth/compliance; `infra` for tests/deployment/prompts.",
"notes": {
"career": "Profiles are the career library; resumes are directly editable documents with required profile_id (seed a profile from the first resume). Targeting uses the library. resumes.content is {markdown: \"...\"}: pure free text, no required headings/fields/sections or hidden structure. GenAI document understanding supports downstream rendering/compliance/keyword evidence/order. AI review, enhancement and localization are user-invoked, never gates; localization adapts structure, length, formatting and cultural norms. Users can always export. Warn prominently about unfilled [placeholders], mark them in-document, but never block or alter export. Do not invent unsupported career claims.",
"assistant": "C2 Guided Assistant is new RB-21, not a reshape of shipped/verified RB-20. Retire RB-20 findings column and prose panel; retain backend (stored job profile, OpenRouter calibration, pre-call refusals, exact-once anchor validation, finding-to-guidance path). Guided/chat-like, not general chat or fixed wizard: lead with ranked concrete agenda; never open on blank prompt; each turn enables a grounded action. User steers. Route input to known targets/goals; narrow vague asks to high-impact grounded fixes, ask for target if unclear, provide fallback. Composer enabled only when role exists; chips reflect current resume. No unsupported claims. One resume = one role/context/thread; duplicate for another role, copying document/context fields but not thread or requirement decisions. Account-level assistant settings are validated Pydantic JSONB in existing users.preferences; resume-specific values override defaults. On advert re-extraction preserve decisions by stable identity (category + requirement ID), close obsolete open items, add genuinely new ones open; never reconfirm/clear durable answers. Latest C2 prototype direction: two-tab rail (Assistant, Document); move document properties to Document and Auto adjust into formatting row. Assistant remains easy to find.",
"guidance": "Guidance is the sole document-changing suggestion queue. Suggestions can come from keyword pipeline, calibration findings, and assistant. Each item uses exact anchor {quote, occurrence}, exact replacement, scoped rationale; stale anchors dropped on read and acceptance returns 409, never redirect. Additions anchor to preceding line. Accept atomically rewrites Markdown and marks accepted; return/refresh content and version. Dismissal hashes category + normalized quote. Calibration response itself remains unpersisted/advisory; accepting a grounded finding turns it into a guidance item, requiring exact quote and replacement; unresolved anchors get no accept action. Keep one decision/card at a time; proposal cards live in Assistant thread, reachable from agenda/queue popover. No separate suggestions panel. Marks are quiet dotted underlines per anchored line, not per item; clicks place caret normally and scope composer to line, never open proposal or hijack writing. Multiple suggestions on a line can cycle where applicable. Validate anchors per item.",
"editing": "One whole-resume editor for free-text Markdown. Continuous autosave writes content without snapshots; each idle-gap timeout creates exactly one revision. Simultaneous triggers produce one row and retain all fired conditions in flags/metadata. Client concurrency token hashes editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; feedback reads must not invalidate autosave. Calibration is advisory, not auto-applied; accepted changes go through guidance and refresh editor content/version. Renderer parity: consume renderer HTML where applicable; structural edits update local content then re-render. Preserve browser caret/edit behavior.",
"skills": "Retain skills + profile_skills and shared canonical vocabulary/aliases (e.g. K8s/Kubernetes). skills.aliases normalization and resume_keywords.skill_id FK support cross-user analytics and canonical matching; do not collapse to a profile JSON array.",
"drift": "profiles.version increments on every profile, entry, or bullet write; copy to resumes.profile_version at generation. Stale iff unequal. Never rely on updated_at: child edits may not touch parent timestamp.",
"api": "Return 401 unauthenticated; return 404 for both cross-user and missing resources. Scope ownership in service queries so foreign rows are never loaded; test foreign and missing separately. Targeted generation blocks on compliance ERROR, not warnings. Persist and surface every finding in resumes.compliance; warning-only markets work, required-field errors (e.g. ME nationality) prompt resolution.",
"infra": "Testing: SQLAlchemy JSONB().with_variant(sqlite.JSON,"
}
}Dream stages (recorded from runs after 2026-11-27)
build-doen · promoted · dream at call 5
Doen favors durable intent, explicit human-judgment boundaries, grounded artifacts, and simple workflow semantics over elaborate controls. Capture human reasoning during shaping; don’t mistake agent activity or formula behavior for product validation. For evidence-backed decisions and implementation choices, open `choices`; for product priorities and evaluation limits, open `product`; for verification of sparse live data, open `metrics`. ## product Doen is a spec framework for product engineers (designers, software engineers, product owners): a durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and guidance from precedent. It is not a system for distilling abstract engineering rules; retire the heuristic flywheel (see docs/design-principles.md, “Retiring the heuristic flywheel”). Priorities: capture human reasoning during shaping (25 recorded decisions were agent-raised, none human; 9 initiatives yielded zero); ground generated artifacts (fabricated surfaces/outcomes erode trust, especially for designers); improve precedent retrieval once a product corpus exists (currently empty; useful rate 18%). Jev’s role is drafting, groundedness, conflict detection, and weighing precedent—not verifying human judgment (71% auto-approves test criteria; human_judgment is zero by design). ## choices Recorded product decisions: (1) Learn is not rendered in Draft/Building; it appears only in Learn stage. (2) research_findings uses pure last-write-wins: executor/MCP can overwrite human edits; document this clearly. Human annotations are expected after investigation; locking adds complexity without clear benefit. (3) Use a dedicated submit_research_findings MCP tool, keeping submit_evidence’s contract stable and making the research write path discoverable. (4) Importance recommendation is hidden only when the project has exactly one initiative; do not import BD-46’s completion-date rule or infer extra rationale. These decisions favor simple, explicit workflow semantics over protective locking/versioning absent clear benefit. ## metrics For acceptance criterion item_91be5a17ec5d, the live corpus has only six distinct raw event-count combinations, so no reweighting can currently create >20 distinct live scores. Verify the dispersion mechanism with a property/test sweep of realistic survived/removed/citation event counts through the rebalanced formula, demonstrating >20 distinct scores, and separately provide correctness evidence for the live recompute. Accept that live dispersion depends on future shaping-verdict and citation events; don’t leave the mechanism unverified or weaken the criterion to a live-only proxy.
build-doen · promoted · dream at call 10
Doen favors durable intent, explicit constraint/discretion boundaries, grounded artifacts, and simple workflows; preserve signal only when its likely value justifies complexity. Capture human reasoning during shaping; Jev drafts, grounds, detects conflicts, and weighs precedent—not human judgment. Do not revive the heuristic flywheel. Open `product` for priorities and corpus-governance boundaries; `choices` for recorded product/implementation decisions; `metrics` for sparse-data verification. ## product Doen is a durable product-spec framework for designers, engineers, and product owners: make constraints vs. discretion explicit, escalate genuine intent calls, and ground guidance in precedent. Do not distill abstract engineering rules; heuristic flywheel is retired (docs/design-principles.md). Priorities: capture human reasoning during shaping (currently absent), ground generated artifacts in reality, and improve precedent retrieval once a product corpus exists. Jev drafts, checks groundedness/conflicts, and weighs precedent; it is not a verifier of human judgment. Product decision pattern: weigh lost signal against purpose and likely importance, and consider alternative user actions; avoid schema/tracking for marginal value when users already acted. For corpus governance, Jev auto-admits only confidently sound, well-scoped, condition-bearing standalone rules; uncertain cases remain raw. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases queue for human review, with human override. Retirement remains human-gated because removal feels irreversible. The safety invariant is sound judgment, not a mandatory human gate that stalls the loop. ## choices Recorded decisions: (1) Learn is not rendered in Draft/Building; appears only in Learn. (2) research_findings is pure last-write-wins: MCP/executor may overwrite human edits; document this. (3) Dedicated submit_research_findings MCP tool; keep submit_evidence contract stable and make write path discoverable. (4) Hide importance recommendation only when project has exactly one initiative; do not import BD-46 completion-date logic or infer rationale. (5) For score dispersion criterion item_91be5a17ec5d, test realistic survived/removed/citation event-count sweeps through formula for >20 distinct scores, plus correctness evidence for live recompute; live dispersion waits for future events. (6) 3072-dimensional migration: use halfvec + HNSW now to avoid an unindexed production retrieval path. (7) Dedup classification regression: iterate on Jev rubric and remeasure on same 186 cases before deciding; do not ship replacement on current worse result. (8) Collapse initiative_created into dismissed without trace; accept narrow BD-51 fidelity loss because resolved drift was already acted on and extra schema is not worthwhile. Decisions favor explicit workflow and complexity proportional to value. ## metrics For acceptance criterion item_91be5a17ec5d, live corpus has only six distinct raw event-count combinations, so reweighting cannot yield >20 distinct live scores yet. Verify dispersion mechanism with a property/test sweep of realistic survived/removed/citation counts through rebalanced formula, demonstrating >20 distinct scores, and separately provide correctness evidence for live recompute. Accept that live dispersion depends on future shaping-verdict and citation events; do not leave mechanism unverified or weaken criterion to a live-only proxy.
build-doen · promoted · dream at call 15
Doen favors durable intent, explicit constraint/discretion boundaries, grounded artifacts, and workflows whose complexity earns its keep. Capture human reasoning during shaping; Jev drafts, grounds, detects conflicts, and weighs precedent—not human intent itself. Automated judgment may handle confident, reversible corpus actions; uncertainty and retirement retain human attention. Prefer deterministic, reproducible default gates; live-LLM evals stay opt-in. Interpret requirements by protected intent, not stale wording, while preserving substantive checks and real-world evidence. Open `product` for priorities/governance; `choices` for settled product decisions; `delivery` for gates, test-scope, and deployment evidence; `metrics` for sparse-data verification. ## product Doen is a durable product-spec framework for designers, engineers, and product owners: one durable intent artifact, explicit constraints vs. discretion, escalation of genuine intent calls, and precedent. Do not distill abstract engineering rules; heuristic flywheel is retired (docs/design-principles.md; 228 rules yielded 5 useful ones and a circular metric). Priority: capture human reasoning during shaping (25 decisions agent-raised; 9 initiatives yielded none), then ground generated artifacts, then improve precedent retrieval once a product corpus exists. Jev drafts, grounds, detects conflicts, and weighs precedent; it does not verify human product intent (auto-approved 71% of test criteria; human judgment unsupported). Product choices should weigh signal lost against likely value and user purpose; avoid tracking/schema for marginal benefit when users already acted. ## governance Corpus governance: Jev auto-admits only confidently sound, well-scoped, condition-bearing standalone rules; uncertain rules remain raw. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases queue for human review and humans can override. Retirement remains human-gated because removal feels irreversible. Safety invariant is sound judgment, not a mandatory human gate that stalls the loop. This supersedes the earlier both-human-gated invariant; promotion queue is removed. ## choices Settled decisions: Learn renders only in Learn, not Draft/Building. research_findings is executor-owned pure last-write-wins (MCP can overwrite human edits; document clearly); dedicated submit_research_findings tool, keep submit_evidence stable. Hide importance recommendation only for exactly one initiative; don't import BD-46 completion-date logic. Use halfvec + HNSW for 3072-dimensional embeddings to avoid an unindexed production retrieval path. Collapse initiative_created into dismissed without trace; accept narrow BD-51 fidelity loss rather than add schema. For stranded merge proposals, evaluate all pending judgeable proposals in step 4, not only newly created ones; preserves step order/decision rule and fixes permanent stranding. ## metrics Criterion item_91be5a17ec5d: live corpus has only six distinct raw event-count combinations, so reweighting cannot yield >20 distinct scores yet. Verify mechanism with realistic survived/removed/citation event-count sweeps through formula (>20 distinct scores), plus correctness evidence for live recompute. Accept that live dispersion depends on future events; don't leave mechanism unverified or weaken criterion to a live-only proxy. Dedup classifier regression: iterate on Jev rubric and remeasure on same 186 cases before deciding; don't ship replacement on current worse result. ## delivery Shipping gates default to deterministic, reproducible, inexpensive checks; live-LLM evaluations remain opt-in. Do not add paid/non-deterministic model calls to default CI; evaluation scheduling is a separate decision. Name real gates, not nonexistent CI. Generalization gate: deterministic cassette-replayed bench runs in default suite; live eval remains opt-in, and criterion wording should name bench rather than nonexistent CI. For post-deployment evidence, local code/predicate comparisons do not prove production behavior: record available evidence and leave open pending observable deployment evidence; don't prematurely fail or assume outcomes. ## test-scope Honor acceptance-criterion intent, not wording that accidentally reverses an existing contract. Updating assertions/unpacking to match a current API and make the intended guard work is in scope when repairing stale wiring, not weakening tests; confirm substantive assertion executes. BD-101: fixture-only rewiring for bd64/68/76/77; test_bd97 assertions intentionally invert because that test encodes the contract being reversed. BD-105: repair stale eval unpacking from 3-tuple to current 2-tuple, verify human_judgment gate assertion runs and passes; treat 'without modification' as satisfied in intent. Don't add live eval to default tests. Document exceptions; separate unrelated improvements.
build-doen · promoted · dream at call 20
Doen favors durable intent, explicit constraint/discretion boundaries, grounded artifacts, and workflows whose complexity earns its keep. Capture human reasoning during shaping; Jev drafts, grounds, detects conflicts, and weighs precedent—not human intent itself. Automate confident, reversible corpus actions; preserve human attention for uncertainty and retirement. Prefer deterministic, reproducible default gates; live-LLM evals stay opt-in. Interpret requirements by protected intent, not stale wording, and require real-world evidence for observed outcomes. Open `product` for purpose/priorities; `governance` for corpus decisions; `choices` for settled product calls; `delivery` and `test-scope` for gates and verification; `metrics` for sparse-data measurement; `creation` for initiative authoring. ## product Doen is a durable product-spec framework for designers, engineers, and product owners: one durable intent artifact, explicit constraints vs. discretion, escalation of genuine intent calls, and precedent. Do not distill abstract engineering rules; the heuristic flywheel is retired (docs/design-principles.md). Prioritize capturing human reasoning during shaping (25 decisions agent-raised; 9 initiatives yielded none), then grounding generated artifacts, then precedent retrieval once a product corpus exists. Jev drafts, grounds, detects conflicts, and weighs precedent; it does not verify product behavior or human intent. Weigh signal lost against likely value and user purpose; avoid marginal tracking/schema when users already acted. ## governance Corpus governance: Jev auto-admits only confident, sound, well-scoped, condition-bearing standalone rules; uncertain ones remain raw. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases queue for human review, and humans can override. Retirement remains human-gated because removal feels irreversible. The invariant is sound judgment, not a mandatory human gate that stalls the loop. This supersedes the older both-human-gated invariant; promotion queue is removed. ## choices Settled decisions: Learn renders only in Learn, not Draft/Building. research_findings is executor-owned pure last-write-wins (MCP may overwrite human edits; document clearly); dedicated submit_research_findings tool, keep submit_evidence stable. Hide importance recommendation only for exactly one initiative; don't import BD-46 completion-date logic. Use halfvec + HNSW for 3072-dimensional embeddings to avoid an unindexed production retrieval path. Collapse initiative_created into dismissed without trace; accept narrow BD-51 fidelity loss rather than schema. For stranded merge proposals, step 4 evaluates all pending judgeable proposals, not just newly created ones; preserve step order and per-proposal decision rule. ## metrics Criterion item_91be5a17ec5d: live corpus has only six distinct raw event-count combinations, so reweighting cannot yield >20 distinct scores now. Verify mechanism with realistic survived/removed/citation event-count sweeps through formula (>20 distinct scores), plus correctness evidence for live recompute. Live dispersion can depend on future events; don't leave mechanism unverified or weaken to live-only proxy. Dedup classifier regression: iterate on Jev rubric and remeasure on the same 186 cases before deciding; don't ship replacement on the worse result. ## delivery Shipping gates default to deterministic, reproducible, inexpensive checks; live-LLM evaluations remain opt-in. Do not add paid/non-deterministic model calls to default CI; evaluation scheduling is a separate decision. Name real gates, not nonexistent CI. Generalization gate: deterministic cassette-replayed bench runs in default suite; live eval remains opt-in, and criterion wording should name the bench. For post-deployment evidence, local code/predicate comparisons do not prove production behavior: record available evidence and leave open pending observable deployment evidence; don't prematurely fail or assume outcomes. ## test-scope Honor acceptance-criterion intent, not wording that accidentally reverses an existing contract. Updating assertions/unpacking to match a current API and make the intended guard work is in scope when repairing stale wiring, not weakening tests; confirm substantive assertion executes. BD-101: fixture-only rewiring for bd64/68/76/77; test_bd97 assertions intentionally invert because that test encodes the contract being reversed. BD-105: repair stale eval unpacking from 3-tuple to current 2-tuple, verify human_judgment gate assertion runs and passes; treat 'without modification' as satisfied in intent. Don't add live eval to default tests. Document exceptions; separate unrelated improvements. ## creation People can start initiatives and add/edit spec items in-app while draft; after draft, changes go through executor proposals. Creation requires description and Build/Research choice (Build default); title is optional. If omitted, description's first line is a readable stand-in; executor names initiative while drafting. Save the brief separately, leave spec empty, and don't allow post-creation brief edits. Dialog must distinguish required description/type from optional title and line-list fields; use established shadcn-style Dialog, Textarea, and Field builders.
build-doen · promoted · dream at call 25
Doen favors durable product intent, explicit constraint/discretion boundaries, grounded artifacts, and workflows whose complexity earns its keep. Jev drafts, grounds, detects conflicts, and weighs precedent—not human intent or product behavior. Capture human reasoning during shaping; automate confident, reversible corpus actions while preserving attention for uncertainty and retirement. Prefer deterministic, reproducible default gates; live-LLM evals stay opt-in. Interpret requirements by protected intent; observed outcomes need real-world evidence. Open `product` for purpose; `governance` for corpus policy; `choices` for settled calls; `delivery`/`test-scope` for gates and verification; `metrics` for measurement; `creation` for initiative authoring; `memory` for live-memory rules; `onboarding` for executor docs updates. ## product Doen is a durable product-spec framework for designers, engineers, and product owners: one durable intent artifact, explicit constraints vs. discretion, escalation of genuine intent calls, and precedent. Not an abstract engineering-rule distiller; heuristic flywheel retired (docs/design-principles.md). Priorities: capture human reasoning during shaping (25 decisions agent-raised; 9 initiatives yielded none), ground generated specs/references and learn records, then retrieve precedent once a product corpus exists. Jev drafts, grounds, detects conflicts, and weighs precedent; it does not verify product behavior or human intent. Weigh signal lost against likely value and purpose; avoid marginal tracking/schema when users already acted. ## governance Jev auto-admits only confident, sound, well-scoped, condition-bearing standalone rules; uncertain ones remain raw. Jev confirms merge/generalization proposals above a confidence threshold; borderline cases queue for human review, and humans can override. Retirement remains human-gated because removal feels irreversible. Invariant is sound judgment, not a mandatory gate that stalls the loop. This supersedes the older both-human-gated/no-automated-write rule; promotion queue is removed. ## choices Settled calls: Learn renders only in Learn, not Draft/Building. research_findings is executor-owned pure last-write-wins (MCP may overwrite human edits; document clearly); dedicated submit_research_findings tool, keep submit_evidence stable. Hide importance recommendation only for exactly one initiative; don't import BD-46 completion-date logic. Use halfvec + HNSW for 3072-dimensional embeddings to avoid an unindexed production retrieval path. Collapse initiative_created into dismissed without trace; accept narrow BD-51 fidelity loss rather than schema. Stranded merge proposals: step 4 evaluates all pending judgeable proposals, not only newly created ones; preserve step order and per-proposal rule. ## metrics Criterion item_91be5a17ec5d: live corpus has only six distinct raw event-count combinations, so reweighting cannot yield >20 distinct scores now. Verify mechanism with realistic survived/removed/citation event-count sweeps through formula (>20 distinct scores), plus correctness evidence for live recompute. Live dispersion may depend on future events; don't leave mechanism unverified or weaken to live-only proxy. Dedup classifier regression: iterate on Jev rubric and remeasure on same 186 cases before deciding; don't ship replacement on worse result. ## delivery Shipping gates default to deterministic, reproducible, inexpensive checks; live-LLM evaluations remain opt-in. Do not add paid/non-deterministic model calls to default CI; evaluation scheduling is separate. Name real gates, not nonexistent CI. Generalization gate: deterministic cassette-replayed bench runs in default suite; live eval opt-in, and criterion names the bench. For post-deployment evidence, local code/predicate comparisons do not prove production behavior: record available evidence and leave open pending observable deployment evidence; don't prematurely fail or assume outcomes. ## test-scope Honor acceptance-criterion intent, not wording that accidentally reverses an existing contract. Updating assertions/unpacking to match current API and make intended guard work is in scope when repairing stale wiring, not weakening tests; confirm substantive assertion executes. BD-101: fixture-only rewiring for bd64/68/76/77; test_bd97 assertions intentionally invert because it encodes the contract being reversed. BD-105: repair stale eval unpacking from 3-tuple to current 2-tuple, verify human_judgment gate assertion runs and passes; treat 'without modification' as satisfied in intent. Don't add live eval to default tests. Document exceptions; separate unrelated improvements. ## creation People can start initiatives and add/edit spec items in-app while draft; after draft, changes go through executor proposals. Creation requires description and Build/Research choice (Build default); title optional. If omitted, description's first line is a readable stand-in; executor names initiative while drafting. Save brief separately, leave spec empty, and don't allow post-creation brief edits. Dialog distinguishes required description/type from optional title and line-list fields; use established shadcn-style Dialog, Textarea, and Field builders. ## memory Live executor memory is a capped, measured experiment: random initiative holdout gets no memory; predeclare outcome measures and kill rule; show the person every served prediction and outcome. Avoid broad memory machinery absent evidence. When a person states a new rule or constraint during work, executor records
build-doen · signals · dream at call 5
Doen is a product-engineering spec framework: capture human reasoning first, ground artifacts, use precedent as corpus grows. Preserve intent boundaries; escalate genuine product-intent calls, but decide within explicit discretion. Prefer simple, stage-specific UI. See `principles` for strategy and evidence; `delegation` for discretion/escalation; `ui-data` for interaction/write semantics; `verification` for sparse-data criteria; `observations` for observed approval/edit patterns. ## principles Doen serves product engineers (designers, software engineers, product owners) with one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and guidance from precedent. Do not optimize for abstract engineering-rule distillation. The heuristic flywheel was retired: 228 rules yielded 5 usable ones and its success metric was circular (docs/design-principles.md, “Retiring the heuristic flywheel”). Priority order: (1) capture human reasoning during product shaping—25 recorded decisions were agent-raised and 9 initiatives yielded none; precedent is nearly empty, so capture comes before retrieval; (2) ground generated specs/learn records, which have made false claims designers may not catch; (3) improve precedent retrieval as corpus builds (18% useful baseline). Jev is not the verifier for this audience: it auto-approves test criteria often and cannot judge human judgment. Its useful roles are drafting, grounding, conflict detection, and weighing precedent. ## delegation Escalate genuine intent decisions; honor explicit discretion and do not turn every implementation choice into a human question. The person left executor decisions standing when clearly within written latitude: separately report partial redundancy and conflict with citations; let evaluator judgment set redundancy thresholds while surfacing close calls; show spec loops on dashboard only in v1; use exact criterion-text matching for criteria-domain loops, with revisit if too narrow. These are precedents, not universal mandates: keep choices inside the documented grant and its constraints (e.g. avoid false positives). ## ui-data Prefer simple, stage-specific UI: render modules only in applicable stages rather than showing disabled placeholders. Learn module is hidden in Draft/Building and shown in Learn. For `research_findings`, use pure last-write-wins: executor/MCP writes overwrite human edits; document this clearly because humans annotate after investigation and the field is the executor's working document. Provide dedicated `submit_research_findings(initiative_id, findings)` rather than extending `submit_evidence`, preserving the latter's contract and making the write path discoverable. Importance recommendation visibility: hide only when project has exactly one initiative (chosen over a completed-after-creation rule). ## verification When live data cannot possibly satisfy a numeric dispersion criterion because it has too few distinct input combinations, verify the mechanism with a realistic sweep and separately check live recompute correctness; don't wait indefinitely or weaken the test to a trivial change. Example: corpus had 6 distinct raw event-count combinations, so verify rebalanced scoring yields >20 distinct values over realistic survived/removed/citation counts, while confirming live recompute correctness; future events can produce live dispersion. ## observations Observed product-owner behavior: they removed an executor-authored spec criterion requiring every advisor observation to present exactly two follow-up actions and no standalone close button. Treat exact UI prescriptions as subject to human product intent, not automatically validated. They accepted several executor-authored constraints/criteria/latitude across cost logging and MCP reshape (including stdio and HTTP support), as well as choices explicitly within discretion. This suggests they may accept detailed requirements, but acceptance is evidence only for those cases—not a blanket preference for more prescriptive specs.
build-doen · signals · dream at call 10
Doen serves product engineers: capture human reasoning, ground artifacts, then improve precedent retrieval. Preserve intent boundaries; escalate genuine product calls, but decide within explicit discretion. Prefer simple, stage-specific UI. See `principles` for priorities; `delegation` for discretion; `ui-data` for interaction semantics; `verification` for sparse-data tests; `retrieval` for production indexing; `evaluation` for benchmark decisions; `governance` for corpus gates; `observations` for approval/edit evidence. ## principles Doen is a product-spec framework for designers, engineers, and product owners: one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and precedent. Do not optimize for abstract engineering-rule distillation. The heuristic flywheel was retired (docs/design-principles.md, 2026-10-02): 228 rules yielded only 5 usable ones and its success metric was circular. Priority: (1) capture human product reasoning—25 recorded decisions were agent-raised and 9 initiatives yielded none; (2) ground generated specs/learn records, which have made false claims; (3) improve retrieval as a useful product corpus builds (18% useful baseline). Jev is not a product-work verifier; useful roles are drafting, grounding, conflict detection, and weighing precedent. ## delegation Escalate genuine intent decisions; honor explicit discretion and avoid turning implementation choices into questions. Keep choices within the written grant and its constraints (e.g. avoid false positives). Accepted examples: separately report partial redundancy and conflict with citations; evaluator judgment sets redundancy threshold while surfacing close calls; spec loops dashboard-only in v1; exact criterion-text matching for criteria-domain loops with revisit if too narrow. These are precedents, not universal mandates. ## ui-data Prefer simple, stage-specific UI: render only in applicable stages, not disabled placeholders. Learn module hidden in Draft/Building, shown in Learn. `research_findings` is pure last-write-wins: executor/MCP can overwrite human edits; document this because it is the executor's working document, with human annotation after investigation. Use dedicated `submit_research_findings(initiative_id, findings)`, not an extension of `submit_evidence`. Importance recommendation is hidden only when the project has exactly one initiative. ## verification If live data cannot mathematically satisfy a numeric dispersion criterion due to too few distinct input combinations, verify the mechanism with a realistic sweep and separately verify live recompute correctness; do not wait indefinitely or weaken to a trivial change. Example: with 6 raw combinations, require >20 distinct scores across realistic survived/removed/citation counts, plus correct live recompute; live dispersion can arrive with future events. ## retrieval Production retrieval migrations should preserve indexing immediately, even for small corpora. For 1536→3072 pgvector, plain vector exceeds the indexed-column dimension cap; chosen approach was halfvec + HNSW rather than shipping an unindexed interval and deferring indexing. ## evaluation When a benchmark misses its confirmed bar but points to a plausible, fixable prompt/rubric issue within granted discretion, iterate and remeasure on the same frozen dataset before deciding; do not waive the bar without evidence. Example: Jev dedup was below the old path's accuracy, so revise rubric and remeasure same 186 cases before ship/hold decision. Match evaluation effort to the problem: simple binary type inference used its required frozen 8-fixture live eval rather than a heavier redundant bench. ## governance Avoid human promotion queues that recreate curation overhead. Jev may auto-admit unclustered rules judged confidently sound, well-scoped, condition-bearing guidance; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline proposals queue for human judgment and humans may override. Retirement remains human-gated because removal is more consequential and a rejected sentinel is restorable. ## observations Evidence about this product owner is case-specific, not a blanket preference for prescriptive specs. They removed an executor-authored exact-two-actions/no-close-button criterion, so exact UI prescriptions remain subject to product intent. They accepted detailed constraints/criteria for cost logging and MCP stdio+HTTP support, and left choices standing when explicitly within discretion. In a narrow, low-volume case where users had already acted on a signal, they chose modest reporting-fidelity loss over schema for marginal downstream value; avoid preserving distinctions unlikely to recur.
build-doen · signals · dream at call 15
Doen is a product-spec framework: capture human reasoning, ground artifacts in reality, then improve precedent retrieval as a corpus grows—not abstract engineering-rule distillation. Preserve intent/constraint/discretion boundaries; escalate genuine product calls, decide within explicit grants. Prefer simple, stage-specific UI. Keep default gates deterministic; use live evals as opt-in evidence. See `principles`, `delegation`, `ui-data`, `verification`, `shipping`, `retrieval`, `governance`, and `observations` for details and precedents. ## principles Doen serves product engineers, designers, and product owners: preserve intent in a durable spec, distinguish constraints from discretion, escalate genuine intent calls, and make precedent retrievable. Priorities: (1) capture human product reasoning during shaping—agent-raised decisions dominate and product precedent is sparse; (2) ground generated specs/learn records, which have made false claims; (3) improve retrieval as the corpus grows. Do not optimize for abstract engineering-rule distillation: the heuristic flywheel was retired (228 rules yielded 5 usable; success metric circular; docs/design-principles.md, 2026-10-02). Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a product-work verifier. ## delegation Escalate real product-intent decisions; honor explicit discretion and do not turn implementation choices into questions. Stay inside the grant and constraints (e.g. avoid false positives); record consequential delegated calls. Accepted precedents, not universal rules: separately report partial redundancy and conflict with citations; evaluator judgment for redundancy threshold while surfacing close calls; spec loops dashboard-only in v1; exact criterion-text matching for criteria-domain loops, revisiting if too narrow. A recommendation or executor-authored detail is not automatically a user mandate: exact UI prescriptions may be removed. ## ui-data Prefer simple, stage-specific UI; render only where applicable, not disabled placeholders. Learn module is hidden in Draft/Building and shown in Learn. `research_findings` is executor's working document with pure last-write-wins: later executor/MCP writes may overwrite human edits; document this, since humans annotate after investigation. Use dedicated `submit_research_findings(initiative_id, findings)`, not an extension of `submit_evidence`. Hide importance recommendation only when the project has exactly one initiative. ## verification When sparse live data cannot mathematically satisfy a numeric dispersion criterion, test the mechanism using a realistic sweep and separately verify live recompute correctness; don't wait indefinitely or weaken to a trivial change. Example: six raw input combinations cannot yield >6 live scores; require >20 distinct scores across realistic survived/removed/citation counts, plus correct live recompute. Future events can create live dispersion. ## shipping Default/merge gates should be deterministic and genuinely gating; keep paid, nondeterministic, uncalibrated live-LLM evals opt-in for deeper evidence. If a blocking check is requested but absent, add a cassette-replayed deterministic bench check and amend criterion wording to name the actual gate; don't add live calls to every run merely to prevent staleness. Evaluate criteria by intent: updating assertions to encode an intentionally changed contract is not weakening; repair stale test signatures so the intended guard executes. Iterate on plausible fixable rubric issues against the same frozen dataset before ship/hold; match evaluation effort to risk (simple binary inference may need only its frozen live eval). Production-only before/after criteria stay open until deployment; don't treat local predicate comparison as deployment evidence or deploy unilaterally. ## retrieval Production retrieval migrations should preserve indexing immediately, even for small corpora. For 1536→3072 pgvector, plain vector exceeds the indexed-column dimension cap; use halfvec + HNSW rather than ship an unindexed interval and defer indexing. ## governance Avoid human promotion queues that recreate curation overhead. Jev may auto-admit unclustered rules judged confidently sound, well-scoped, condition-bearing guidance; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases queue for human judgment and humans can override. Retirement stays human-gated because removal is more consequential and a rejected sentinel is restorable. Evaluate all pending judgeable proposals each pass, not only newly created ones, to avoid stranding; preserve the algorithm's steps/order and decision rule. ## observations Evidence is case-specific, not a blanket preference for prescriptive specs. Owner removed an executor-authored exact-two-actions/no-close-button criterion; treat exact UI prescriptions as subject to intent. They accepted detailed cost-logging constraints (model, purpose, tokens, pricing, retrievability) and MCP stdio+HTTP support, and left choices standing when explicitly within discretion. For a narrow, low-volume signal already acted on, they chose modest reporting-fidelity loss over schema for marginal value; avoid preserving
build-doen · signals · dream at call 20
Doen preserves product intent for product engineers/designers/owners: capture human reasoning, ground artifacts in real evidence, then improve precedent retrieval—not distill abstract engineering rules. Keep constraints, discretion, and genuine escalation distinct; decide within explicit grants. Prefer simple, stage-specific UI and deterministic default gates; live evals are opt-in evidence. Preserve human agency and do not claim outcome evidence before real-world events. Open `principles` for priorities/evidence, `delegation` for grants, `ui-data` for UI/data choices, `verification` for evidence limits, `shipping` for gates, `retrieval` for indexing, `governance` for precedent lifecycle, `observations` for preference signals, `initiative-start` for creation/editing. ## principles Doen serves product engineers, designers, and product owners with a durable intent artifact, clear constraint/discretion boundaries, escalation for genuine product calls, and retrievable precedent. Priority order: capture human product reasoning (25 recorded decisions were agent-raised; 9 product initiatives yielded none), ground generated artifacts/claims in real project surfaces and data, then improve precedent retrieval (baseline usefulness 18%). The abstract heuristic flywheel is retired (228 rules yielded 5 usable; circular success metric; docs/design-principles.md). Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a product-work verifier (71% criteria auto-approval; no human_judgment support). Use proven channels such as SQL + RESEARCH_LOG.md, remeasure baselines, and do not confuse arithmetic/proxy tests with real outcomes. ## delegation Escalate genuine product-intent choices; honor explicit discretion and avoid turning implementation choices into questions. Stay within grants and constraints, including false-positive limits; record consequential delegated calls. Accepted precedents, not universal rules: separately report partial redundancy and conflict with citations; evaluator judgment for redundancy threshold while surfacing close calls; spec loops dashboard-only in v1; exact criterion-text matching for criteria-domain loops, revisiting if too narrow. Recommendations or executor-authored details are not automatically mandates: exact UI prescriptions may be removed. Where future execution/deployment is needed for outcome evidence, state what is measurable and leave the result open/needs_judgment. ## ui-data Prefer simple, stage-specific UI; render only where applicable, not disabled placeholders. Learn module is hidden in Draft/Building and shown in Learn. `research_findings` is the executor's working document with pure last-write-wins: later executor/MCP writes may overwrite human edits; document this because humans annotate after investigation. Use dedicated `submit_research_findings(initiative_id, findings)`, not an extension of `submit_evidence`. Hide importance recommendation only when the project has exactly one initiative. ## verification When sparse live data cannot mathematically meet a numeric dispersion criterion, test the mechanism using a realistic sweep and separately verify live recompute correctness; don't wait indefinitely or weaken to a trivial change. Example: six raw input combinations cannot yield >6 live scores; require >20 distinct scores across realistic survived/removed/citation counts plus correct live recompute. Future events may create live dispersion. Correct stale/fictional measurement assumptions while preserving criterion intent. A drain/property test proves arithmetic, not that users/executors act on a signal. ## shipping Default/merge gates should be deterministic and genuinely gating; keep paid, nondeterministic, uncalibrated live-LLM evals opt-in for deeper evidence. If a blocking check is requested but absent, add a cassette-replayed deterministic bench check and amend criterion wording to name the actual gate; don't put live calls in every run merely to prevent staleness. Evaluate criteria by intent: updating assertions to encode an intentionally changed contract is not weakening; repair stale test signatures so intended guard executes. Iterate plausible fixable rubric issues against the same frozen dataset before ship/hold; match evaluation effort to risk (simple binary inference may need only its frozen live eval). Production-only before/after criteria stay open until deployment; don't treat local predicate comparison as deployment evidence or deploy unilaterally. ## retrieval Production retrieval migrations should preserve indexing immediately, even for small corpora. For 1536→3072 pgvector, plain vector exceeds the indexed-column dimension cap; use halfvec + HNSW rather than ship an unindexed interval and defer indexing. ## governance Avoid human promotion queues that recreate curation overhead. Jev may auto-admit unclustered rules judged confidently sound, well-scoped, condition-bearing guidance; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases queue for human judgment and humans can override. Retirement stays human-gated because removal is more consequential and a rejected sentinel is restorable. Evaluate all pending judgeable proposals each pass, not only newly created ones, to avoid stranding; preserve the algorithm's steps/order and decision rule. ## observations Evidence is case-specific, not a blanket preference for prescriptive specs. Owner removed an executor-authored exact-two-actions/no-close-button criterion; exact UI details are
build-doen · signals · dream at call 25
Doen serves product engineers, designers, and product owners: capture human intent, ground claims in real evidence, then improve precedent retrieval—not abstract engineering rules. Stay within explicit grants; escalate genuine product calls, preserve agency, and distinguish constraints from discretion. Prefer simple, stage-specific UI and deterministic gates; live evals are opt-in. Do not claim outcomes before real events. Record new human rules immediately and tell them. Open `principles` for priorities/live learning, `delegation` for grants, `ui-data` for product/data choices, `verification` for evidence limits, `shipping` for gates, `retrieval` for indexing, `governance` for precedent lifecycle, `observations` for preference signals, `initiative-start` for creation/editing. ## principles Doen is a shared spec framework for product engineers, designers, and product owners. Priorities: (1) capture human product reasoning—25 recorded decisions were agent-raised; 9 initiatives yielded none; record a newly stated rule/constraint immediately and tell the person; (2) ground artifacts and claims in real project surfaces/data; (3) improve precedent retrieval (18% useful baseline) once there is a corpus. Retire the abstract engineering-heuristic flywheel (docs/design-principles.md, 2026-10-02): 228 rules yielded 5 usable, with circular success measures. Jev drafts, grounds, detects conflicts, and weighs precedent; it is not a verifier for behavior or human-judgment criteria. Use real channels (SQL + RESEARCH_LOG.md), remeasure stale baselines, and distinguish proxies from outcomes. A live executor-memory experiment is approved only with a cap, randomized no-memory holdout, predeclared measures/kill rule, and all served memory visible to the person; this is not reinstating abstract-rule distillation. ## delegation Escalate genuine product-intent choices; honor explicit grants and constraints, including false-positive limits. Do not turn delegated implementation choices into questions. Record consequential executor decisions. Accepted examples: report partial redundancy and conflict separately with citations; evaluator judgment for redundancy threshold while surfacing close calls; dashboard-only spec loops in v1; exact criterion-text matching for criteria-domain loops (revisit if too narrow). Recommendations/executor-authored details are not automatically mandates: the owner removed an exact-two-actions/no-close-button criterion. User silence confirms an executor call only if the initiative reached Complete and the call was visible on its initiative page; elapsed time or record_work is not evidence of review. ## ui-data Prefer simple, stage-specific UI; render only when applicable, not disabled placeholders. Learn is hidden in Draft/Building and shown in Learn. `research_findings` is the executor's working document, pure last-write-wins: later executor/MCP writes may overwrite human edits; document this. Use dedicated `submit_research_findings(initiative_id, findings)`, not `submit_evidence`. Hide importance recommendation only when the project has exactly one initiative. In Draft, people may add/edit spec items on the initiative page; after Draft changes go through executor proposals. ## verification When sparse live data cannot mathematically meet a numeric dispersion criterion, test the mechanism with a realistic sweep and separately verify live recompute correctness; do not wait indefinitely or weaken to a trivial change. Example: six raw combinations cannot yield >6 live scores; require >20 distinct scores across realistic event counts plus correct recompute. Correct stale/fictional measurement assumptions while preserving criterion intent. Drain/property tests prove arithmetic, not that users/executors act on a signal. Record production-only before measures via SQL + RESEARCH_LOG.md when available; leave after/deployment or post-execution evidence open/needs_judgment until the real event occurs. Do not claim local comparisons are deployment outcomes. ## shipping Default/merge gates should be deterministic and genuinely gating; paid, nondeterministic, uncalibrated live-LLM evals stay opt-in for deeper evidence. If a requested blocking check is absent, add a cassette-replayed deterministic bench check and amend criterion wording to name the actual gate. Evaluate criteria by intent: updating assertions for an intentionally reversed contract is not weakening; repair stale test signatures so the intended guard runs. Iterate fixable rubric issues against the same frozen dataset before ship/hold; match effort to risk (simple binary inference may need only its frozen live eval). Do not deploy unilaterally to close production-only criteria. ## retrieval Production retrieval migrations should preserve indexing immediately, even for small corpora. For 1536→3072 pgvector, plain vector exceeds the indexed-column dimension cap; use halfvec + HNSW rather than ship an unindexed interval and defer indexing. ## governance Avoid human promotion queues that recreate curation overhead. Jev may auto-admit unclustered rules it judges confidently sound, well-scoped, condition-bearing guidance; otherwise leave raw. Jev may confirm merge/generalization proposals above a confidence threshold; borderline cases queue for human judgment, and humans can override. Retirement remains human-gated because removal is more consequential and rejected sentinels are restorable. Evaluate all pending judgeable proposals
resume-builder · promoted · dream at call 5
Users own and manage professional history; AI is an on-demand reviewer/enhancer/localizer, never a blocker. Resumes are editable documents; profiles are the union-of-experience career library for targeting. Localize structure, length, formatting, and cultural expectations by market. Preserve provenance and canonical skills; track profile drift with explicit versions. Keep SQLite tests compatible while validating Postgres-only behavior separately. Open product-model for profile/resume decisions; schema-drift for skills/versioning; database-tests for JSONB/testing; revisions for autosave/snapshots. ## product-model Product principles: users own and manage professional history; AI is an on-demand reviewer, enhancer, and localizer, never a blocker. Localization adapts resume structure, length, formatting, and cultural expectations to each market. Chosen model is both: profiles are a career library containing the union of experience for targeting; resumes remain directly editable documents. Keep resumes.profile_id NOT NULL; first run seeds a profile from the user's first resume. Preserve source_entry_id/source_bullet_id provenance, and support promoting resume edits to the profile without extra provenance schema. (Decision 1.) ## schema-drift Keep skills + profile_skills, with skills.aliases for canonical names and alias resolution; resume_keywords has a skill_id FK. The committed RB-5 spec requires normalized skill terms (e.g. K8s/Kubernetes), meeting the rationale for a shared vocabulary. (Decision 2.) Track variant drift with profiles.version and resumes.profile_version. Bump profile version on any profile, entry, or bullet write; copy current version when generating a resume; compare versions for drift. Do not infer drift from updated_at, which misses child edits. (Decision 3.) ## database-tests For JSONB columns, use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): PostgreSQL migrations/production/tests retain real JSONB, while existing SQLite suite remains unchanged. Add a dedicated PostgreSQL fixture for behaviors SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. Do not split ORM metadata or move the whole existing suite to Postgres. (Decision 4.) ## revisions Keep continuous autosave during active typing separate from idle-gap snapshots. Each idle-gap timeout is a distinct trigger and always creates exactly one revision row, regardless of whether another trigger created the previous snapshot. The timeout is not merely an autosave flush. (Decision 5.)
resume-builder · promoted · dream at call 10
Users own and manage professional history; AI reviews, enhances, and localizes on demand, never blocking edits. Profiles are the union-of-experience career library; resumes are editable documents. Adapt resumes to local market norms. Preserve provenance, canonical skills, and explicit profile-version drift tracking. Keep SQLite tests compatible; validate Postgres-only behavior separately. Open product-model for profile/resume decisions; schema-drift for skills/versioning; database-tests for JSONB/testing; revisions for checkpoints; access-generation for ownership/compliance; worker-prompts for shared code and prompt conventions. ## product-model Users own and manage professional history; AI is an on-demand reviewer, enhancer, and localizer, never a blocker. Profiles are a career library containing the union of experience for targeting; resumes remain directly editable documents. Keep resumes.profile_id NOT NULL; first run seeds a profile from the user's first resume. Preserve source_entry_id/source_bullet_id provenance and support promoting resume edits to the profile without extra provenance schema. Localize resume structure, length, formatting, and cultural expectations by market. (Decision 1.) ## schema-drift Keep skills + profile_skills and skills.aliases for canonical names/alias resolution; resume_keywords has a skill_id FK. RB-5 requires normalized terms such as K8s/Kubernetes, justifying shared vocabulary. Track variant drift with profiles.version and resumes.profile_version. Bump profile version on profile, entry, or bullet writes; copy current version when generating a resume; compare versions for drift. Do not infer drift from updated_at, which misses child edits. (Decisions 2–3.) ## database-tests For JSONB columns use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): migrations, production, and Postgres tests retain real JSONB while existing SQLite tests remain unchanged. Add a dedicated Postgres fixture for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. Do not split ORM metadata or move the whole suite to Postgres. (Decision 4.) ## revisions Continuous autosave during active typing is separate from idle-gap snapshots. Each idle-gap timeout is a distinct checkpoint and creates exactly one revision, even if another trigger created the prior snapshot. If multiple checkpoint triggers coincide, write one revision for that event, recording all fired triggers on the record where possible; do not create duplicate rows. (Decisions 5–6.) ## access-generation Scope service queries by user_id so foreign resources are never loaded. Return 404 for both cross-user and nonexistent resources to avoid IDOR disclosure; unauthenticated requests remain 401. Test these cases separately. For targeted resume generation, compliance ERROR findings block generation; warnings are advisory. Persist every finding in resumes.compliance and surface it in the editor. Required-field errors (e.g. market-specific nationality) should prompt profile completion. (Decision 7 and compliance decision.) ## worker-prompts When API AI/localization logic must be shared with a worker in a separate Docker context, prefer the smallest reversible repo-root worker build: copy api/ and worker/, add api/ to PYTHONPATH, merge dependencies, and delete stale copied modules rather than forking code. Railway worker uses repo-root context with explicit Dockerfile path; package extraction is separate infrastructure work. For prompts, establish one coherent prompts/ convention if required but absent: move existing SYSTEM_PROMPT into it, preserving its name, module, exact text, and behavior; do not create a competing inline convention.
resume-builder · promoted · dream at call 15
Users own professional history; AI assists on demand and never blocks edits. Profiles are the union-of-experience career library; resumes are user-editable documents. Current editing direction is pure free-text Markdown, not structured fields. Localize to market norms. Keep SQLite tests compatible; validate Postgres-only behavior separately. Open product-model for ownership/cardinality; free-text for resume editing and downstream consequences; schema-drift for skills/versions/tokens; database-tests for JSONB; revisions for checkpoints; access-generation for ownership/compliance; worker-prompts for shared code/prompts.
## product-model
Users own and manage professional history; AI reviews, enhances, and localizes on demand, never blocking edits. Profiles are a career library containing the union of experience for targeting; resumes are directly editable documents. Keep resumes.profile_id NOT NULL; first run seeds a profile from the user's first resume. Decision 1. For the current resume content model and its consequences, open free-text.
## free-text
Current direction (Decision 15): resumes.content = {markdown: "..."}, pure free text, with no required headings, sections, or field schema. This supersedes RB-12's rigid schema and Decision 14's custom structured ProseMirror schema; RB-12 is shipped/verified, not defective. Do not treat “one editor” as an editor over structured slots. Markdown rendering/storage conversion and migration of existing structured rows are required. RB-10 remains authority on ATS-safe Markdown. Any downstream behavior needing structure (compliance, order, evidence/keyword attribution, generation, outline) must be redesigned around GenAI document understanding; resolve provenance and write semantics in specs first. Preserve user control and keep changes narrow. Real-browser Playwright is preferred for frontend behavior criteria (Decision 12).
## schema-drift
Keep skills + profile_skills and skills.aliases for canonical names/alias resolution; resume_keywords has a skill_id FK (Decision 2). Track variant drift with profiles.version and resumes.profile_version: bump on profile, entry, or bullet writes; copy current version when generating; compare versions. Do not infer drift from updated_at (Decision 3). For client concurrency tokens, hash client-editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; content avoids timestamp-precision collisions (Decision 13).
## database-tests
For JSONB columns use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): migrations, production, and Postgres tests retain real JSONB while existing SQLite tests remain unchanged. Add a dedicated Postgres fixture for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. Do not split ORM metadata or move the whole suite to Postgres (Decision 4).
## revisions
Continuous autosave during active typing is separate from idle-gap snapshots. Each idle-gap timeout is a distinct checkpoint and creates exactly one revision, even if another trigger created the prior snapshot (Decision 5). If multiple checkpoint triggers coincide, write one revision for that event, recording all fired triggers where possible; never create duplicate rows (Decision 6).
## access-generation
Scope service queries by user_id so foreign resources are never loaded. Return 404 for both cross-user and nonexistent resources to avoid IDOR disclosure; unauthenticated remains 401. Test cases separately (Decision 7). For targeted resume generation, compliance ERROR findings block; warnings are advisory. Persist every finding in resumes.compliance and surface it in the editor. Required-field errors (e.g. market-specific nationality) should prompt profile completion (Decision 8).
## worker-prompts
When API AI/localization logic must be shared with a worker in a separate Docker context, prefer the smallest reversible repo-root worker build: copy api/ and worker/, add api/ to PYTHONPATH, merge dependencies, and delete stale copied modules rather than forking code. Railway worker uses repo-root context with explicit Dockerfile path; package extraction is separate infrastructure work (Decision 9). Establish one coherent prompts/ convention if required but absent: move existing SYSTEM_PROMPT into it, preserving its name, module, exact text, and behavior; do not create a competing inline convention (Decision 10).resume-builder · promoted · dream at call 20
Users own professional history; AI assists on demand and never blocks edits. Profiles are the career library; resumes are editable documents. Current resume model is pure Markdown free text; downstream structure-dependent features must adapt. No score or score UI. Localize to market norms. Keep SQLite tests compatible; validate Postgres-only behavior separately. Open product-model for ownership/cardinality; free-text for editing; guidance-marks for suggestions; overview for score removal; schema-drift for versions/tokens; database-tests for JSONB; revisions for checkpoints; access-generation for ownership/compliance; worker-prompts for shared code/prompts.
## product-model
Users own and manage professional history; AI reviews, enhances, and localizes on demand, never blocking edits. Profiles are the career library/union of experience for targeting; resumes are directly editable documents. resumes.profile_id stays NOT NULL; first run seeds a profile from the first resume (Decision 1). Decision 15 changes resumes to pure free-text Markdown, so the earlier structured-document source_entry/source_bullet provenance and promote-back path are not part of the current content model. Open free-text for current editing consequences.
## free-text
Decision 15: resumes.content = {markdown: "..."}, with no required headings, sections, or field schema. Supersedes RB-12's shipped/verified structured schema and Decision 14's custom ProseMirror schema; those were not defects when chosen. Markdown rendering/storage conversion and migration of existing structured rows are required. RB-10 remains authority on ATS-safe Markdown. Compliance, ordering, evidence/keyword attribution, generation, and outline features that need structure must be redesigned around document understanding; settle provenance/write semantics in specs first. Preserve user control, keep changes narrow. Real-browser Playwright is preferred for frontend behavior criteria (Decision 12).
## guidance-marks
Decisions 16-17: free-text guidance anchors are {quote, occurrence}; apply through scoped exact-text replacement, never guessed offsets. If quote no longer matches, item is stale; resolve at read/accept, not autosave. Dismissal key hashes category + normalized quote. RB-9 guidance has keywords as its only producer; no target means empty queue. Suggestions are actionable edits with quoted anchors and atomic accept; dismissal is durable. Decisions 19-20: expose the open queue and anchors in API; client selection activates an item, server order is default; panel displays exactly one card. Document marks map work, not bulk decisions. Use one quiet, layout-neutral dotted underline per anchored line (not per suggestion), quieter than active solid underline/tint; use text decoration or inset shadow, not borders. Clicking a marked line activates/cycles through suggestions on that line and places caret normally. This supersedes margin ticks and the no-caret-preservation rule.
## overview
Decision 18: score was retired outright in RB-9: no gauge, scorer, endpoints, API field, or resumes.score column. Overview tables show title, created/updated timestamps, actions, and archived timestamp where applicable; do not replace score with compliance or reintroduce it. Duplicate does not copy a score. Stale specs mentioning score are superseded; RB-18 remains shipped and verified (Decision 19).
## schema-drift
Keep skills + profile_skills and skills.aliases for canonical names/alias resolution; resume_keywords has a skill_id FK (Decision 2). Track variant drift with profiles.version and resumes.profile_version: bump on profile, entry, or bullet writes; copy current version when generating; compare versions. Do not infer drift from updated_at (Decision 3). Concurrency tokens hash client-editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; content avoids timestamp-precision collisions (Decision 13).
## database-tests
For JSONB columns use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): migrations, production, and Postgres tests retain real JSONB while existing SQLite tests remain unchanged. Add a dedicated Postgres fixture for behavior SQLite cannot validate, including CHECK constraints and in-place JSONB mutation. Do not split ORM metadata or move the whole suite to Postgres (Decision 4).
## revisions
Continuous autosave during active typing is separate from idle-gap snapshots. Each idle-gap timeout is a distinct checkpoint and creates exactly one revision, even if another trigger created the prior snapshot (Decision 5). If multiple checkpoint triggers coincide, write one revision for that event, recording all fired triggers where possible; never create duplicate rows (Decision 6).
## access-generation
Scope service queries by user_id so foreign resources are never loaded. Return 404 for both cross-user and nonexistent resources to avoid IDOR disclosure; unauthenticated remains 401. Test cases separately (Decision 7). For targeted resume generation, compliance ERROR findings block; warnings are advisory. Persist every finding in resumes.compliance and surface it in the editor. Required-field errors (e.g. market-specific nationality) should prompt profile completion (Decision 8).
## worker-prompts
Whenresume-builder · promoted · dream at call 25
Users own professional history; AI assists on demand and never blocks edits. Profiles are the career library; resumes are editable, pure-Markdown documents. Preserve user control; no score UI. Localize to market norms; exports never blocked. Guidance changes go through exact, atomic anchors. Keep SQLite tests compatible; validate Postgres-only behavior separately. Open product-model for ownership; free-text for document implications; guidance-marks for suggestions; guided-assistant for calibration/C2; overview-export for tables/downloads; schema-drift for versions/tokens; database-tests for JSONB; revisions/access-generation for operational rules; shared-code-prompts for worker and prompt conventions.
## product-model
Users own and manage professional history; AI reviews, enhances, and localizes on demand, never blocking edits. Profiles are the career library/union of experience for targeting; resumes are directly editable documents. resumes.profile_id stays NOT NULL; first run seeds a profile from the first resume (Decision 1). Historical structured provenance/promote-back is superseded by pure free text (Decision 15).
## free-text
Current resumes.content is {markdown: "..."}, with no required headings, sections, or field schema (Decision 15). This supersedes RB-12's structured schema and Decision 14's ProseMirror schema; those were not defects then. Convert/migrate existing structured rows. Downstream features needing structure (generation, compliance, keyword/evidence attribution, outlines) must adapt to document understanding and settle provenance/write semantics in specs. RB-10 remains authority on ATS-safe Markdown. Real-browser Playwright is preferred for frontend behavior (Decision 12).
## guidance-marks
Anchors are {quote, occurrence}; accept via scoped exact-text replacement, atomically with item status. If text no longer matches, item is stale; resolve on read/accept, not autosave. Dismissal key hashes category + normalized quote. Guidance was keywords-only (Decisions 16–17); calibration is now an additional producer (Decision 21). API exposes open queue; server order is default, user selection activates; panel shows exactly one card. Mark one quiet, layout-neutral dotted underline per anchored line, not per suggestion; quieter than active solid underline/tint. Clicking activates/cycles items on that line and places caret normally (Decisions 19–20).
## guided-assistant
RB-20 calibration findings are transient/read-only themselves, but accepted findings become items in the existing guidance queue, not a second apply path (Decision 21). Only offer accept for exact, uniquely grounded quote plus replacement; unresolved anchors have no accept. Gaps need an insertion point or no accept. Accept response updates editor content/version; preserve stale/atomic safeguards, existing job_profile_text/OpenRouter/preflight refusals/voice. RB-21 builds C2's assistant and durable thread/requirement decisions as a new initiative; RB-20 remains shipped foundation. Replace—not parallel—the unpublished findings column/panel. Role context/thread is per resume; duplicate for another role, copy document/context but start fresh thread and requirement decisions (Decisions 22,24,25).
## overview-export
No score, scorer, endpoints, API field, or resumes.score column; overview shows title, timestamps, actions, and archived timestamp where applicable. Do not substitute compliance or copy score on duplicate (Decision 18). Export is always downloadable, even with placeholders; prominently show warning/count and mark placeholders in-document. C2's blocking PDF rule is superseded (Decision 23).
## schema-drift
Keep skills + profile_skills and skills.aliases for canonical names/alias resolution; resume_keywords has skill_id FK (Decision 2). Track variant drift with profiles.version and resumes.profile_version; bump on profile/entry/bullet writes, copy current version at generation, compare versions—not updated_at (Decision 3). Concurrency tokens hash client-editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; content avoids timestamp-precision collisions (Decision 13).
## database-tests
For JSONB use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): production/migrations/Postgres tests retain real JSONB while existing SQLite tests remain unchanged. Add dedicated Postgres fixture for behaviors SQLite cannot test, including CHECK constraints and in-place JSONB mutation. Do not split ORM metadata or move whole suite to Postgres (Decision 4).
## revisions
Continuous autosave during active typing is separate from idle-gap snapshots. Every idle-gap timeout creates exactly one revision, even if another trigger just made a snapshot (Decision 5). Coincident checkpoint triggers produce one row; record all fired triggers where possible, never duplicates (Decision 6).
## access-generation
Scope service queries by user_id so foreign resources are never loaded. Cross-user and nonexistent resources both return 404 to avoid IDOR disclosure; unauthenticated is 401. Test separately (Decision 7). For targeted generation, compliance ERROR blocks; warnings are advisory. Persist all findings in resumes.compliance and show them in editor; required-field errors should prompt profile completion (Decision 8).
## shared-code-prompts
Build worker from repo root, include api/ and worker/, add api/ to PYTHONPATH and AI dependencies; delete stale worker/app/shared duplicate. Railway worker must use repo-root context and explicit Dockerfile (Decisionresume-builder · promoted · dream at call 30
Users own professional history; AI assists on demand and never blocks edits. Profiles are the career library; resumes are editable pure-Markdown documents. Preserve control: no scores, exports never blocked, localize to market norms. Assistant is guided—not general chat—and one thread is the sole guidance surface. Open product-model for ownership; free-text for document rules; guidance-marks for anchors/UI; guided-assistant for C2 flow and durable state; account-settings for preferences; overview-export for tables/downloads; schema-drift for versions/tokens; database-tests for JSONB; operations for revisions/access/compliance; shared-code-prompts for worker/prompt conventions.
## product-model
Users own and manage professional history; AI reviews, enhances and localizes on demand, never blocks edits. Profiles are the career library/union of experience for targeting; resumes are directly editable documents. resumes.profile_id stays NOT NULL; first run seeds a profile from the first resume (D1). D15 supersedes the original structured provenance/promote-back design: resume content is now pure free text, so no structured write-back contract.
## free-text
D15: resumes.content is {markdown: "..."}, with no required headings, sections or field schema. Convert existing structured rows. Generation, compliance, keyword/evidence attribution and outlines must adapt to document understanding and define provenance/write semantics in their specs. RB-10 remains authority on ATS-safe Markdown. D12 chose real-browser Playwright for frontend behavior; renderer must render Markdown, not depend on the retired structured document schema.
## guidance-marks
Anchors are {quote, occurrence}; accept uses scoped exact replacement, atomically with status. Mismatch is stale; resolve on read/accept, not autosave. Dismissal key hashes category + normalized quote. Producers: keywords (D17) and calibration findings (D21), if uniquely grounded with exact replacement; gaps need an insertion anchor or no accept. Marks: one quiet, layout-neutral dotted underline per anchored line, quieter than active styling; click places caret normally. Under latest D28, marks target the line/composer but do not open a card or hijack writing; proposals live in assistant thread.
## guided-assistant
C2 is a new initiative; RB-20 stays shipped foundation, but its unpublished findings column/panel is removed (D22,D24). Assistant is guided chat: ranked agenda leads, user steers; no blank prompt/general resume chatbot; every turn routes to a concrete action (D27). One guidance surface: proposal cards in thread, reached from agenda, queue popover or document marks; diff/reason, Apply, Not now, Undo. Two-tab rail Assistant/Document; properties in Document, Auto adjust in formatting row (D30). Context/thread and requirement decisions are per resume; duplicate document/context, start fresh thread (D25). On advert re-extraction preserve decisions by stable item_key=hash(category, requirement id); close vanished open items, retain decided items, add new requirements open (D29).
## account-settings
Account assistant settings (language, tone, default market) are one validated Pydantic JSONB document in existing users.preferences, no migration (D26). Do not put them in profiles or per-setting columns. profiles.languages means languages spoken. Account values are defaults; resume overrides such as region_code win. Follow existing JSONB-document and registry-driven patterns.
## overview-export
No score, scorer, score endpoints/API field, or resumes.score column. Overview shows title, timestamps, actions, and archived timestamp where applicable; do not substitute compliance or copy score on duplicate (D18). Export is always downloadable, including with placeholders; prominently warn/count and mark placeholders in-document. C2's blocking PDF rule is superseded (D23).
## schema-drift
Keep skills + profile_skills and skills.aliases for canonical names/alias resolution; resume_keywords has skill_id FK (D2). Track profile drift with profiles.version and resumes.profile_version; bump on profile/entry/bullet writes, copy current version at generation, compare versions—not updated_at (D3). Concurrency tokens hash client-editable state (content, presentation, title, status, template_key, region_code), not timestamps or derived writes (D13).
## database-tests
For JSONB use PostgreSQL JSONB().with_variant(sqlite.JSON, 'sqlite'): production/migrations/Postgres tests retain real JSONB while existing SQLite suite stays unchanged. Add a dedicated Postgres fixture for behavior SQLite cannot validate (including CHECK constraints and in-place JSONB mutation). Do not split ORM metadata or move the whole suite to Postgres (D4).
## operations
Revisions: continuous autosave is distinct from idle-gap snapshots; each idle-gap timeout creates exactly one revision. Coincident triggers produce one row and record all triggers where possible (D5–6). Scope service queries by user_id; foreign and nonexistent resources both 404, unauthenticated 401; test separately (D7). Targeted generation: compliance ERROR blocks, warnings advise; persist findings and prompt profile completion for required fields (D8).
## shared-code-prompts
Build worker from repository root; include api/ and worker/, add api/ to PYTHONPATH and AI dependencies; delete stale worker/app/shared duplicate. Railway worker uses repo-root context and explicit Dockerfile (D9).resume-builder · signals · dream at call 5
Product decisions favor user control: AI assists but never blocks, and localization adapts resumes to each market. Career profile is the library; resumes remain directly editable. Preserve provenance and promotion path, canonical skill vocabulary, explicit version-based drift, and distinct autosave/revision semantics. Keep SQLite tests compatible while validating PostgreSQL-only behavior separately. Open `career` for profile/resume model; `skills` for normalization; `drift` for variant freshness; `editing` for saves/revisions; `testing` for DB strategy. ## career Profile-centric career library plus resume-centric editing. Users own/manage career history; AI is an on-demand reviewer, enhancer, and localizer, never a blocker. Localization adapts structure, length, formatting, and cultural expectations to target markets. Targeting draws on the full library. Resumes are editable documents with source_entry_id/source_bullet_id provenance and offer promotion of edits back to the profile. Keep resumes.profile_id NOT NULL; seed a profile from a user's first resume. No extra provenance schema needed. ## skills Keep skills and profile_skills tables, with a shared canonical vocabulary and aliases (e.g. K8s/Kubernetes). The committed normalization/analytics plan justifies this: resume_keywords.skill_id references skills, enabling normalized terms and cross-user analytics. ## drift Track profiles.version, incrementing on every profile, entry, or bullet write. Copy the version to resumes.profile_version at generation. A resume is stale when profile.version != resume.profile_version. Do not use updated_at: child edits may not update the parent timestamp and drift would be missed. ## editing Continuous autosave writes resume content without creating snapshots. Each idle-gap timeout is a separate, discrete trigger and creates exactly one revision snapshot, even if another trigger recently created one. Keep idle-gap revision behavior distinct from autosave. ## testing For PostgreSQL JSONB columns, use SQLAlchemy JSONB().with_variant(sqlite.JSON, 'sqlite') so PostgreSQL retains JSONB and existing SQLite tests remain unchanged. Use dedicated PostgreSQL tests for behavior SQLite cannot validate (e.g. CHECK constraints and in-place JSONB mutation). Do not split ORM metadata or make all tests require PostgreSQL.
resume-builder · signals · dream at call 10
Product choices favor user control: AI assists but does not block; localization adapts to market. The career profile is a library; resumes remain directly editable with provenance and promotion. Preserve canonical skills, version-based drift, and separate autosave/revision semantics. Keep SQLite tests compatible; verify PostgreSQL-only behavior separately. Authorization hides foreign resources as 404; compliance errors block generation, warnings surface. Open `career` for profile/resume model; `skills` for normalization; `drift` for freshness; `editing` for checkpoints; `testing` for DB strategy; `api` for authorization/compliance; `worker` for deployment; `prompts` for prompt conventions. ## career Profiles are the career library; resumes are directly editable documents. AI is an on-demand reviewer, enhancer, and localizer, never a blocker. Localization adapts structure, length, formatting, and cultural expectations to target markets; targeting draws on the full library. Keep resumes.profile_id NOT NULL; seed a profile from the user's first resume. Preserve source_entry_id/source_bullet_id provenance and offer promotion of resume edits back to the profile; no extra provenance schema is needed. ## skills Keep skills and profile_skills tables with a shared canonical vocabulary and aliases (e.g. K8s/Kubernetes). The committed normalization/analytics plan uses skills.aliases to resolve terms, and resume_keywords.skill_id references skills; the planned cross-user analytics justifies retaining the tables. ## drift Track profiles.version, incrementing on every profile, entry, or bullet write. Copy it to resumes.profile_version at generation. A resume is stale when the versions differ. Do not use updated_at: child edits may not update the parent timestamp, so drift would go undetected. ## editing Continuous autosave writes content without snapshots. Each discrete idle-gap timeout creates exactly one revision snapshot, independently of recent snapshots. If checkpoint conditions overlap in one event, create one row for that event, not one per condition; preserve every fired condition in metadata/flags. Keep autosave and revision triggers distinct. ## testing For PostgreSQL JSONB columns, use SQLAlchemy JSONB().with_variant(sqlite.JSON, 'sqlite') so SQLite tests remain compatible and PostgreSQL retains JSONB. Add dedicated PostgreSQL tests for behavior SQLite cannot validate (e.g. CHECK constraints and in-place JSONB mutation). Do not split ORM metadata or require PostgreSQL for the whole suite. ## api Return 404 for both cross-user and nonexistent resources on all routes, including resumes and profiles; unauthenticated remains 401. Scope ownership in service queries so foreign rows are never loaded. Test foreign and missing separately. This supersedes inherited RB-3 wording that called for 403 on resumes. For targeted generation, compliance ERRORs block writing; warnings do not. Persist and surface every finding in resumes.compliance. Warning-only markets remain usable; required-field errors (e.g. missing ME nationality) should prompt users to resolve missing information. ## worker For targeted-resume jobs, build the worker from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, and merge AI dependencies into worker requirements. Delete stale worker/app/shared duplicate; defer shared-package extraction to its own initiative (docs/todo.md). Railway worker service uses repo-root build context and explicit Dockerfile path. ## prompts When a spec requires a centralized convention that does not exist, establish one consistently rather than create a competing pattern. Use a single prompts/ directory and migrate existing prompt literals too, including shared modules, when behavior-preserving. Retain public names, module paths, exact text; verify existing consumers/tests unchanged. Acknowledge fabricated claims that a convention already exists; in the prompt decision, no prompts/ directory existed.
resume-builder · signals · dream at call 15
User values direct control: AI assists, evaluates, and localizes but does not block; localization adapts to market. Resumes are pure editable Markdown, not structured forms; downstream features use GenAI understanding. Keep the career library and resume relationship, canonical skills, explicit version drift, and separate autosave/revision semantics. Preserve SQLite compatibility; test PostgreSQL-specific behavior separately. Scope foreign-resource queries and return 404; compliance errors block generation, warnings surface. Open `career` for product/content model; `skills` for normalization; `drift` for freshness; `editing` for editor/checkpoints/tokens; `testing` for test strategy; `api` for authorization/compliance; `worker` for deployment; `prompts` for prompt conventions.
## career
Profiles are the career library; resumes are directly editable documents and retain a required profile_id (seed a profile from the first resume). Targeting uses the full library. AI is an on-demand reviewer, enhancer, and localizer, never a blocker; localization adapts structure, length, formatting, and cultural expectations for the target market. Resume content is now pure free text: resumes.content = {markdown: "..."}; no required headings, sections, field schema, or hidden structural contract. Rendering, compliance, keyword evidence, and ordering use GenAI document understanding. This supersedes RB-12's shipped structured Tiptap schema as a product direction, not a defect; convert existing structured JSONB rows. Keep a single Tiptap editor for the whole document and render Markdown. Rework specs that assume bullets/section kinds/order, per-bullet provenance, or draggable outlines before implementation. Earlier provenance/promotion intent remains, but per-entry/bullet pointers need a replacement compatible with free text. RB-10 remains authority for Markdown support and ATS-safe output.
## skills
Retain skills and profile_skills with a shared canonical vocabulary and aliases (e.g. K8s/Kubernetes). The committed normalization/analytics plan uses skills.aliases to resolve terms, and resume_keywords.skill_id references skills; planned cross-user analytics justifies the tables.
## drift
Track profiles.version, incrementing on every profile, entry, or bullet write; copy it to resumes.profile_version at generation. Stale iff versions differ. Do not use updated_at: child edits may not update the parent timestamp.
## editing
Continuous autosave writes content without snapshots. Each discrete idle-gap timeout creates exactly one revision snapshot, independently of recent snapshots. If checkpoint conditions overlap in one event, create one row and preserve every fired condition in metadata/flags. Keep autosave and revision triggers distinct. One editor means one whole-resume document, not multiple editors or rigid slots. Client version tokens cover editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; feedback reads must not spuriously invalidate autosave. Free-text direction supersedes old structured-schema assumptions and the earlier renderer-HTML/semantic-node editing plan.
## testing
For PostgreSQL JSONB, use JSONB().with_variant(sqlite.JSON, 'sqlite') so SQLite suite remains compatible; add PostgreSQL-specific tests for behavior SQLite cannot verify (e.g. CHECK constraints and in-place JSONB mutation). Do not split ORM metadata or require PostgreSQL for the whole suite. Use Playwright for browser behavior, axe for accessible names, API checks for persistence, and pytest for server invariants. Browser tests matter for contentEditable/caret behavior; run against live stack, with database state checked via API and server-side revision counts in pytest.
## api
Return 404 for both cross-user and nonexistent resources on all routes, including resumes and profiles; unauthenticated remains 401. Scope ownership in service queries so foreign rows are never loaded; test foreign and missing separately. This supersedes inherited RB-3 wording calling for 403 on resumes. For targeted generation, compliance ERRORs block writing; warnings do not. Persist and surface every finding in resumes.compliance. Warning-only markets remain usable; required-field errors (e.g. missing ME nationality) should prompt users to resolve missing information.
## worker
For targeted-resume jobs, build worker from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, and merge AI dependencies into worker requirements. Delete stale worker/app/shared duplicate; defer shared-package extraction to its own initiative (docs/todo.md). Railway worker service uses repo-root build context and explicit Dockerfile path.
## prompts
When a spec requires a centralized convention that does not exist, establish one consistently rather than create a competing pattern. Use a single prompts/ directory and migrate existing prompt literals too, including shared modules, when behavior-preserving. Retain public names, module paths, exact text; verify existing consumers/tests unchanged. Acknowledge fabricated claims that a convention already exists; in the prompt decision, no prompts/ directory existed.resume-builder · signals · dream at call 20
User favors direct user control with AI as on-demand evaluator/localizer, not a gate. Resumes are editable Markdown; downstream structure comes from GenAI. Keep library linkage, canonical skills, explicit drift, and separate autosave/revision semantics. Preserve SQLite suite compatibility; test PostgreSQL-only behavior separately. Scope foreign-resource queries and return 404; compliance errors block generation, warnings surface. Open `career` for content model; `skills` for normalization; `drift` for freshness; `editing` for editor/checkpoints/tokens; `testing` for test strategy; `api` for authorization/compliance; `worker` for deployment; `prompts` for prompt conventions; `guidance` for keyword suggestions and document marks.
## career
Profiles are the career library; resumes are directly editable documents and retain required profile_id (seed a profile from the first resume). Targeting uses the library. AI reviews, enhances, and localizes on demand; localization adapts structure, length, formatting, and cultural expectations to market. Current product direction: resumes.content = {markdown: "..."}, pure free text with no required headings, fields, sections, or hidden structure. GenAI document understanding powers downstream rendering/compliance/keyword evidence/order. This supersedes RB-12's shipped structured schema; convert existing JSONB rows. Preserve provenance/write-back intent but redefine pointers for free text. RB-10 remains authority for Markdown support and ATS-safe output.
## skills
Retain skills + profile_skills and shared canonical vocabulary/aliases (e.g. K8s/Kubernetes). Planned skills.aliases normalization and resume_keywords.skill_id FK, plus cross-user analytics, justify these tables.
## drift
profiles.version increments on every profile, entry, or bullet write; copy to resumes.profile_version at generation. Stale iff unequal. Never rely on updated_at: child edits may not touch parent timestamp.
## editing
One editor means one whole-resume document, not multiple editors or rigid slots; current document is free-text Markdown, superseding structured-schema and renderer-HTML/semantic-node plans. Continuous autosave writes content without snapshots. Each idle-gap timeout creates exactly one revision, independently of recent snapshots. Overlapping triggers produce one row and preserve all fired conditions in metadata/flags. Client version tokens cover editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; feedback reads must not invalidate autosave.
## testing
Use JSONB().with_variant(sqlite.JSON, 'sqlite') to keep SQLite suite; add PostgreSQL-specific tests for CHECK constraints and in-place JSONB mutation, without split metadata or requiring PostgreSQL for all tests. Use Playwright against live stack for browser/contentEditable/caret behavior, axe for accessible names, API for persistence, pytest for server invariants/revision counts. Approved adding Vitest for pure anchor-matcher branches and ProseMirror decoration transaction behavior; web previously had Playwright only.
## api
All routes return 404 for cross-user and nonexistent resources, 401 unauthenticated. Scope ownership in service queries so foreign rows are never loaded; test foreign and missing separately. Targeted generation blocks on compliance ERROR, not warnings; persist and surface every finding in resumes.compliance. Warning-only markets work; required-field errors (e.g. ME nationality) prompt users to resolve missing information.
## worker
Build targeted-resume worker from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements. Delete stale worker/app/shared duplicate; defer shared-package extraction to docs/todo.md initiative. Railway worker uses repo-root build context and explicit Dockerfile path.
## prompts
Establish one prompts/ directory when central convention is required; migrate existing prompt literals too, including shared modules, without changing behavior. Preserve public names, module paths, exact text, and verify consumers/tests. Acknowledge no prompts/ directory existed before this decision; SYSTEM_PROMPT moved while retaining its name/module/text.
## guidance
RB-9 guidance is keyword-pipeline-only: no whole-document AI pass, deterministic/compliance findings, or quantification/formatting rules (RB-11/RB-10 own those). No job target means empty queue. Each item quotes an exact existing sentence and proposes a scoped edit retaining it while adding the term, with rationale; accept atomically edits Markdown and marks accepted. Anchor is {quote, occurrence}; drop stale anchors, never redirect. Dismissal identity hashes category + normalized quote. Show/decide one card at a time. Later document marks are dotted underlines per anchored line, layout-neutral and quieter than active solid underline/tint; panel count conveys item total. Click selects the line's suggestion and places caret normally; repeated clicks cycle suggestions sharing a line. Validate/drop stale anchors per item. Watch whether card changes on editing. Vitest covers quote/occurrence matching and decoration surviving text-insertion transactions without onChange.resume-builder · signals · dream at call 25
User prioritizes direct control: AI evaluates/localizes on demand, never gates ownership or export. Resumes are editable free-text Markdown; downstream structure is inferred, not imposed. Preserve the career library, explicit freshness, safe atomic edits, and clear autosave/revision semantics. Keep SQLite compatibility and test PostgreSQL behavior separately. Scope resources by owner and return 404 for foreign/missing; compliance errors block generation, warnings surface. Open `career` for content/control; `skills` for normalization; `drift` for freshness; `editing` for concurrency; `testing` for test strategy; `api` for authorization/compliance; `worker` for deployment; `prompts` for prompt conventions; `guidance` for anchored edits; `assistant` for RB-21/C2.
## career
Profiles are the career library; resumes are directly editable documents with required profile_id (seed a profile from the first resume). Targeting uses the library. resumes.content is {markdown: "..."}: pure free text, with no required headings, fields, sections, or hidden structure. GenAI document understanding supports downstream rendering/compliance/keyword evidence/order. AI review, enhancement and localization are user-invoked, never gates. Localization adapts structure, length, formatting and cultural norms. Users can always export; warn prominently about unfilled placeholders and mark them in-document, but never block or alter export.
## skills
Retain skills + profile_skills and a shared canonical vocabulary/aliases (e.g. K8s/Kubernetes). Planned skills.aliases normalization and resume_keywords.skill_id FK, plus cross-user analytics, justify these tables.
## drift
profiles.version increments on every profile, entry, or bullet write; copy to resumes.profile_version at generation. Stale iff unequal. Never rely on updated_at: child edits may not touch parent timestamp.
## editing
One whole-resume editor, free-text Markdown; no rigid slots. Continuous autosave writes content without snapshots. Each idle-gap timeout creates exactly one revision, independently of recent snapshots. Overlapping triggers yield one row and preserve all fired conditions in metadata/flags. Client tokens cover editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; feedback reads must not invalidate autosave. Calibration is advisory, not auto-applied; accepted document changes go through guidance and refresh editor content/version.
## testing
Use JSONB().with_variant(sqlite.JSON, 'sqlite') to retain SQLite suite; add PostgreSQL-specific tests for CHECK constraints and in-place JSONB mutation, without split metadata or PostgreSQL requirement for all tests. Playwright against live stack for browser/contentEditable/caret; axe for accessible names; API for persistence; pytest for server invariants/revision counts. Vitest is approved for pure anchor-matcher branches and ProseMirror decoration transaction behavior.
## api
Return 401 unauthenticated; return 404 for cross-user and nonexistent resources. Scope ownership in service queries so foreign rows are never loaded; test foreign and missing separately. Targeted generation blocks on compliance ERROR, not warnings. Persist and surface every finding in resumes.compliance; warning-only markets work, while required-field errors (e.g. ME nationality) prompt resolution.
## worker
Build targeted-resume worker from repo root: COPY api/ and worker/, add api/ to PYTHONPATH, merge AI dependencies into worker requirements. Delete stale worker/app/shared duplicate; defer shared-package extraction to docs/todo.md initiative. Railway worker uses repo-root build context and explicit Dockerfile path.
## prompts
When central convention is required, use one prompts/ directory and migrate existing literals too, including shared modules, without behavior changes. Preserve public names, module paths, exact text, and verify consumers/tests. No prompts/ directory existed before this decision; SYSTEM_PROMPT moved while retaining its name/module/text.
## guidance
Guidance is the sole document-changing suggestion queue. Each item uses exact anchor {quote, occurrence}, exact replacement, and scoped rationale; stale anchors are dropped on read and acceptance returns 409, never redirect. Additions anchor to preceding line. Accept atomically rewrites Markdown and marks accepted; refresh content/version. Dismissal hashes category + normalized quote. Keyword pipeline is a producer; calibration findings can be adopted into this queue, but calibration output itself remains advisory/unpersisted. Show/decide one card at a time. Document marks are quiet dotted underlines per anchored line (not per item); clicks select/cycle suggestions sharing a line and place caret normally. Validate anchors per item.
## assistant
C2 Guided Assistant is new RB-21, not a reshape of shipped/verified RB-20. Remove RB-20's findings column and prose findings panel outright: nothing is published, so no parity/migration. Retain RB-20 backend: stored job profile, OpenRouter calibration, pre-model-call refusals, exact-once anchor validation, finding-to-guidance path. RB-20's panel criterion remains historically verified; its removal is a product decision. Role context is per resume: one resume, one job target/profile, one assistant thread. For another role, duplicate the resume; carry document/context fields (including role fields as appropriate), never thread or requirement decisions.resume-builder · signals · dream at call 30
Users own their professional history and documents: AI assists on demand, never gates ownership/export, and must not invent unsupported claims. Resumes are editable free-text Markdown; downstream structure is inferred. Guided Assistant is actionable, grounded, and user-steered—not general chat or a wizard. Follow the owner’s latest explicit prototype/code direction over stale scope language. Open `career` for content/control; `assistant` for C2 interaction/context; `guidance` for anchored edits; `editing` for autosave/concurrency; `skills` for normalization; `drift` for freshness; `api` for auth/compliance; `infra` for tests/deployment/prompts.
## career
Profiles are the career library; resumes are directly editable documents with required profile_id (seed a profile from the first resume). Targeting uses the library. resumes.content is {markdown: "..."}: pure free text, no required headings/fields/sections or hidden structure. GenAI document understanding supports downstream rendering/compliance/keyword evidence/order. AI review, enhancement and localization are user-invoked, never gates; localization adapts structure, length, formatting and cultural norms. Users can always export. Warn prominently about unfilled [placeholders], mark them in-document, but never block or alter export. Do not invent unsupported career claims.
## assistant
C2 Guided Assistant is new RB-21, not a reshape of shipped/verified RB-20. Retire RB-20 findings column and prose panel; retain backend (stored job profile, OpenRouter calibration, pre-call refusals, exact-once anchor validation, finding-to-guidance path). Guided/chat-like, not general chat or fixed wizard: lead with ranked concrete agenda; never open on blank prompt; each turn enables a grounded action. User steers. Route input to known targets/goals; narrow vague asks to high-impact grounded fixes, ask for target if unclear, provide fallback. Composer enabled only when role exists; chips reflect current resume. No unsupported claims. One resume = one role/context/thread; duplicate for another role, copying document/context fields but not thread or requirement decisions. Account-level assistant settings are validated Pydantic JSONB in existing users.preferences; resume-specific values override defaults. On advert re-extraction preserve decisions by stable identity (category + requirement ID), close obsolete open items, add genuinely new ones open; never reconfirm/clear durable answers. Latest C2 prototype direction: two-tab rail (Assistant, Document); move document properties to Document and Auto adjust into formatting row. Assistant remains easy to find.
## guidance
Guidance is the sole document-changing suggestion queue. Suggestions can come from keyword pipeline, calibration findings, and assistant. Each item uses exact anchor {quote, occurrence}, exact replacement, scoped rationale; stale anchors dropped on read and acceptance returns 409, never redirect. Additions anchor to preceding line. Accept atomically rewrites Markdown and marks accepted; return/refresh content and version. Dismissal hashes category + normalized quote. Calibration response itself remains unpersisted/advisory; accepting a grounded finding turns it into a guidance item, requiring exact quote and replacement; unresolved anchors get no accept action. Keep one decision/card at a time; proposal cards live in Assistant thread, reachable from agenda/queue popover. No separate suggestions panel. Marks are quiet dotted underlines per anchored line, not per item; clicks place caret normally and scope composer to line, never open proposal or hijack writing. Multiple suggestions on a line can cycle where applicable. Validate anchors per item.
## editing
One whole-resume editor for free-text Markdown. Continuous autosave writes content without snapshots; each idle-gap timeout creates exactly one revision. Simultaneous triggers produce one row and retain all fired conditions in flags/metadata. Client concurrency token hashes editable state (content, presentation, title, status, template_key, region_code), not updated_at or derived writes; feedback reads must not invalidate autosave. Calibration is advisory, not auto-applied; accepted changes go through guidance and refresh editor content/version. Renderer parity: consume renderer HTML where applicable; structural edits update local content then re-render. Preserve browser caret/edit behavior.
## skills
Retain skills + profile_skills and shared canonical vocabulary/aliases (e.g. K8s/Kubernetes). skills.aliases normalization and resume_keywords.skill_id FK support cross-user analytics and canonical matching; do not collapse to a profile JSON array.
## drift
profiles.version increments on every profile, entry, or bullet write; copy to resumes.profile_version at generation. Stale iff unequal. Never rely on updated_at: child edits may not touch parent timestamp.
## api
Return 401 unauthenticated; return 404 for both cross-user and missing resources. Scope ownership in service queries so foreign rows are never loaded; test foreign and missing separately. Targeted generation blocks on compliance ERROR, not warnings. Persist and surface every finding in resumes.compliance; warning-only markets work, required-field errors (e.g. ME nationality) prompt resolution.
## infra
Testing: SQLAlchemy JSONB().with_variant(sqlite.JSON,