2026-11-26 · openai/gpt-6-luna
3 seeds · build-doen, resume-builder · source: decisions
Seed 0
All calls · 54 questions · chance: 34%
| Arm | Right | Right where no memory was wrong / reverse |
|---|---|---|
| stateless | 61% | |
| search | 70% | +7 / −2 |
| memory | 63% | +3 / −2 |
| structured | 61% | +4 / −4 |
| dream | 61% | +5 / −5 |
| promoted | 67% | +6 / −3 |
| wiki | 70% | +7 / −2 |
| transfer | 65% | +5 / −3 |
Final memories
build-doen · memory
Doen is a spec framework for product engineers (designers, software engineers, product owners): one durable intent artifact; explicit constraint/discretion boundaries; escalation for genuine intent calls; and guidance from precedent. It is not about distilling abstract engineering rules; the heuristic flywheel is being retired (docs/design-principles.md, “Retiring the heuristic flywheel”). Priorities: (1) capture human reasoning during shaping—the product-decision precedent corpus is nearly empty; (2) ground/verify Doen’s own generated artifacts, not only executor work; (3) improve precedent retrieval once a corpus exists. Jev is not the verifier for this audience; focus its value on drafting, groundedness, conflict detection, and weighing precedent. Decision signals: - Lifecycle-specific features/models should not render in earlier stages as disabled placeholders. Show only in the relevant stage, with appropriate read-only behavior later. This is a semantic boundary, not just visual affordance. (2026-10-02) - For executor-owned working documents humans may later annotate, favor simple last-write-wins over locks/versioning absent clear benefit. State overwrite behavior explicitly. (Research Findings Freetext Field) - Prefer a dedicated tool for a distinct, domain-specific write path when it improves discoverability and keeps an established tool contract stable; avoid optional parameters merely to reduce tool count. (`submit_research_findings` over extending `submit_evidence`.) - For initiative-level visibility, use the simpler literal condition when clearly specified; don’t add nuanced history/date predicates. (Importance recommendation hidden only when project has exactly one initiative.) - When quantitative criteria are hard to satisfy with sparse data, test the mechanism across representative inputs and validate live-data correctness separately; don’t weaken criteria or await organic growth. - For measurement criteria, use the project’s real durable evidence channel; remove requirements for nonexistent dashboards/stores and refresh stale baselines with current data. Don’t mark an outcome criterion complete based on a proxy/mechanism test when the actual question is real-world impact; record measured partial evidence and leave it open/needs_judgment until the outcome can be observed. (Surface Memory Audit Count on Grounding.) - Avoid material accuracy regressions just for cost or implementation benefits when acceptance bar is explicit. If a controlled benchmark finds a plausible, fixable prompt/rubric issue within approved discretion, iterate and re-measure on the same cases before escalating or shipping. (Jev dedup classifier.) - Avoid production architecture regressions or temporary degraded paths when migration can preserve capability at reasonable cost; resolve material gaps before rollout. (Embedding migration.) - Don’t add schema/state for marginal signal fidelity when affected cases are narrow, low-volume, and already resolved by human action. Prefer simpler models and
build-doen · structured
- **Keep concepts aligned with their valid lifecycle stage; omit a feature before it belongs rather than show a misleading placeholder.** Evidence: Learn was hidden in Draft/Building, not visible-but-disabled. No contradiction. Trap: discoverability did not justify surfacing a stage-specific concept early; evidence is one case. - **Prefer explicit, purpose-specific interfaces and stable contracts over bundling unrelated behavior into an existing surface.** Evidence: dedicated `submit_research_findings` over an optional parameter on `submit_evidence`. No contradiction. Trap: fewer tools are not always simpler; not a blanket rejection of API extensions. - **Use simple, disclosed ownership semantics when ownership and timing make overwrites acceptable.** Evidence: documented last-write-wins for executor-owned `research_findings`, with humans annotating after investigation. No contradiction. Trap: executor writes do not always outrank human edits; ownership and timing mattered. - **Apply explicit behavioral conditions; do not transfer elaborate patterns from another feature without demonstrated relevance.** Evidence: hide importance recommendations only when exactly one initiative, not BD-46's completion condition or a hybrid. No contradiction; rationale unstated. Trap: precedent does not automatically transfer; extra conditions are not inherently safer. - **When measurable criteria cannot be demonstrated on current data, test the mechanism on representative inputs and independently verify live-data correctness.** Evidence: score-dispersion sweep exceeded 20 outputs and live recomputation was checked despite six live combinations. No contradiction. Trap: synthetic tests do not replace live checks. - **Do not knowingly regress a core architectural guarantee because today's corpus is small; resolve the gap within the change.** Evidence: extended 1536→3072 migration to halfvec + HNSW rather than leave retrieval unindexed, defer, or pause. No contradiction. Trap: not a mandate to solve every future-scale concern upfront. - **When a benchmark misses an explicit acceptance bar, try a plausible bounded fix within granted discretion and remeasure on the same cases.** Evidence: Jev dedup at 55.91% vs 67.74% prompted rubric iteration and remeasurement. No contradiction. Trap: not license to ship a known regression or force out-of-scope fixes. - **Accept narrow fidelity loss when preserving a marginal signal adds persistent schema complexity, especially after the case has been acted on.** Evidence: collapsed `initiative_created`. No contradiction recorded. Trap: does not apply to core guarantees. - **Automate routine, sufficiently certain decisions when human approval is the throughput bottleneck; retain escalation for uncertainty and human control.** Evidence: Jev confirmation above a confidence threshold for merge/generalisation proposals, with borderline cases escalated. No contradiction. Trap: not appropriate for calls inherently requiring human judgment. - **Preserve a criterion's
build-doen · dream
Confirmed product tendencies and decisions: - Prefer low-maintenance, explicit mechanisms over extra gates, locks, or schema when marginal benefit is low; preserve existing contracts. Interpret scope constraints by their protected purpose: expanding the rows an existing step evaluates can be in-scope if step order, algorithm, and per-item decision rules stay intact. Fix recurring structural failures, not one-off backfills. - When a spec reverses a contract, rewrite tests that encode the old contract. Assertion inversions toward the new contract are legitimate, not weakened checks. Distinguish those from fixture-only changes. If a “without modification” test is broken by stale API/signature drift, repair it when its guard purpose remains and verify the substantive assertion runs. - Keep paid/model evals opt-in and out of default CI; scheduling them is a separate decision. - Learn is rendered only in Learn, not Draft/Building; Complete behavior is unspecified. Hide importance recommendation only when the project has exactly one initiative. - `research_findings` is executor-owned, pure last-write-wins; MCP writes may overwrite human edits, and this must be disclosed. Humans annotate after investigation. Use dedicated `submit_research_findings(initiative_id, findings)`, not an extension of `submit_evidence`. - For score dispersion, test realistic event-count sweeps (>20 distinct scores) and verify live recompute correctness. Missing live inputs do not justify weakening or leaving the mechanism unverified. - Preserve indexed retrieval through 1536→3072 embedding migration (halfvec + HNSW); avoid an unindexed interval. - For Jev dedup regressions, revise a plausible in-scope rubric and remeasure on the same controlled cases before shipping, reverting, or flagging; test suspected confirms/supersedes bias from nearest-neighbor candidates. - DriftReport: accepted folding `initiative_created` into `dismissed` without trace; the signal is unaddressed drift, pending/approved still count. Avoid schema for narrow, low-value fidelity gains. - Human maintenance gates can themselves stall a system. Jev may auto-admit sound standalone rules and confirm high-confidence merge/generalisation proposals; borderline cases remain for human judgment, and retirement remains human-gated. Preserve human override. This supersedes the older rule that tier admission must always be human-gated. - For post-deployment/outcome criteria, submit available pre-deploy evidence, mark `needs_judgment`, and keep open until the real outcome exists; do not deploy unilaterally. Use established channels (SQL + `RESEARCH_LOG.md`), not imaginary dashboards/stores, and refresh stale baselines. Preserve criterion intent while removing unavailable infrastructure wording. Arithmetic/drain tests prove correctness, not real executor behavior; leave impact criteria open until observed. Project context: Doen is a spec framework for product engineers, differentiated by durable intent, constraint/discretion, escalation, and precedent. Retire the
build-doen · promoted
{
"index": "Doen is a durable product-intent spec framework for product engineers\u2014not an abstract rule engine. Capture human reasoning during shaping, ground artifacts, escalate genuine intent calls, and use precedent. Favor simple explicit mechanisms while preserving production guarantees; automate sound routine judgments, reserve humans for uncertainty and retirement. Follow constraint intent, distinguish algorithm contracts from evaluated-record scope, and ground claims in real evidence. Open `direction` for priorities; `lifecycle` for Learn visibility; `research` for research_findings; `importance` for visibility; `sparse` for score dispersion; `retrieval` for embedding migration; `jev-dedup` for regression response; `drift` for signal fidelity; `flywheel` for automation gates; `judgment` for criteria, evidence, exceptions,",
"notes": {
"direction": "Doen serves product engineers (designers, software engineers, product owners) through one durable intent artifact: explicit constraints vs discretion, escalation of genuine intent calls, and precedent including choices, rejected options, and outcomes. It is not an abstract engineering-rule distiller. Retire the heuristic flywheel: 228 rules yielded 5 usable ones and its success metric was circular (docs/design-principles.md). Priorities: capture human reasoning during shaping (25 recorded decisions agent-raised, none human; product corpus empty); ground generated artifacts (claims/citations can be false); improve precedent retrieval once corpus exists (18% usefulness baseline). Jev assists drafting, grounding, conflict detection, and precedent weighing; it is not a product-decision verifier.",
"lifecycle": "Learn is truly hidden\u2014not rendered\u2014in Draft and Building; render/display only in Learn. Lifecycle semantics belong in the rendered model, not just UI styling.",
"research": "`research_findings` is the executor's working document; humans annotate after investigation concludes. MCP writes are pure last-write-wins and may overwrite human edits; state this plainly in tool description. Use explicit, discoverable `submit_research_findings(initiative_id, findings)`; do not alter `submit_evidence` contract with an optional parameter. Lock/version semantics add unjustified complexity.",
"importance": "Hide the importance recommendation only when the project has exactly one initiative. Do not substitute BD-46's completed-after-creation-date drift condition.",
"sparse": "For item_91be5a17ec5d, live corpus has 6 distinct raw event-count combinations (78/98 heuristics have one confirmation and zero citations; no drafting-context citations). Reweighting cannot create >6 live scores. Verify mechanism with realistic survived/removed/citation-count sweep through rebalanced formula yielding >20 distinct scores, plus correctness evidence for live recompute. Accept live dispersion as future events accrue; don't wait for organic growth or weaken to live-only.",
"retrieval": "For 1536\u21923072 embedding migration, plain vector(3072) loses HNSW indexing (pgvector indexed plain vector cap 2000 dimensions), leaving full cosine scans in production. Chosen: extend migration to halfvec + HNSW, avoiding an unindexed window. Preserve production guarantees when migrations exceed discretion; test plausible fixes and remeasure before escalating.",
"jev-dedup": "Controlled 186-case bench found Jev dedup at 55.91% family accuracy vs prior StructuredLLM 67.74%, below the 'not worse' bar. Likely rubric overconfirms because nearest-neighbor candidates are superficially similar. Iterate rubric and remeasure same cases before deciding; exact wording is within spec discretion. Don't ship regression or add a flag as first response.",
"drift": "When collapsing DriftReportStatus, accept loss of BD-51 loop fidelity for reports resolved via 'Create initiative'; fold into dismissed with no extra field. Those reports mean drift was acted on, so marginal value to a signal for unaddressed recurring drift does not justify schema complexity. Pending/approved still count.",
"flywheel": "Avoid manual queues/maintenance that recreate cognitive overload. Jev may auto-admit unclustered rules judged confidently sound, well-scoped, condition-bearing guidance; otherwise leave raw. Jev confirms merge/generalization proposals above confidence threshold; borderline proposals queue for human review and human can override. Retirement remains human-gated: removal feels more irreversible despite restorable rejected sentinel. A gate that stalls is not safety; invariant is that something judged the rule sound. For verdict recurrence, evaluate all pending judgeable proposals, not only those created in the current pass; this fixes stranding without changing step order, per-proposal rule, or never-raises contract.",
"judgment": "Honor constraint intent, not its broadest literal reading. Separate changing an algorithm's contract from changing which existing records it evaluates when the decision rule stays fixed. Prefer durable root-cause fixes over one-off backfills; document justified exceptions. A test guarding a reversed contract must change assertions toward the new contract; repairing a stale test signature can honor a no-assertion-weakening criterion. Use real durable measurement channels (SQL + RESEARCH_LOG.md), not nonexistent stores/dashboards; refresh stale baselines. Local comparisons are proxies, not production/deployment evidence: leave post-deploy or post-pass criteria open as needs_judgment until relevant evidence exists; do not deploy unilaterally. Criterion intent matters over literal wording when preserving the guard is possible."
}
}build-doen · wiki
{
"Doen Product Philosophy": {
"body": "Doen is a shared product-development spec framework for designers, engineers, and product owners. Optimize for one durable intent artifact, explicit boundaries between constraints and discretion, escalation of genuine human-intent decisions, and guidance grounded in precedent. Do not optimize for extracting abstract engineering rules: the heuristic flywheel produced 5 useful rules from 228 and used a circular success measure. The broader goal is useful, grounded product work\u2014not rule volume. See [Decision Capture and Precedent](Decision Capture and Precedent), [Grounded Artifacts and Evidence](Grounded Artifacts and Evidence), and [Jev's Role and Corpus Stewardship](Jev's Role and Corpus Stewardship).",
"links": []
},
"Decision Capture and Precedent": {
"body": "Capture human reasoning during product shaping before investing heavily in precedent retrieval. In the observed baseline, all 25 recorded decisions were agent-raised, 9 initiatives yielded none, and the product precedent corpus was empty; retrieval usefulness was 18%. These are evidence of a capture gap, not permanent metrics. Precedent should inform judgment rather than replace it. Improve retrieval as product-specific decisions and outcomes accumulate, preserving the choices, rejected options, and outcomes that make precedent useful. See [Doen Product Philosophy](Doen Product Philosophy), [Grounded Artifacts and Evidence](Grounded Artifacts and Evidence), and [Production Retrieval Integrity](Production Retrieval Integrity).",
"links": []
},
"Grounded Artifacts and Evidence": {
"body": "Generated specs, learn records, and evaluations must be grounded in real product surfaces and observed outcomes. Separate supported claims from assumptions and unknowns; never cite nonexistent surfaces or imply unobserved live outcomes. Use the real available evidence channel and context, and verify that it measures the claim\u2014not merely a convenient proxy. Refresh stale baselines, do not invent infrastructure, and submit measured evidence. A test may prove arithmetic or mechanism correctness without proving real-world impact or behavior. When proof depends on future events or human action, leave it open/needs_judgment and append the real post-event measurement before closing; do not deploy or assume away risk to manufacture proof. With sparse data, test mechanisms using realistic varied inputs, then separately establish that current recomputation is correct. For example, six live input combinations cannot yield over 20 distinct scores; a property test can establish that the formula disperses across realistic future inputs, while live correctness is checked separately. See [Decision Capture and Precedent](Decision Capture and Precedent) and [Acceptance Criteria and Scope Interpretation](Acceptance Criteria and Scope Interpretation).",
"links": []
},
"Jev's Role and Corpus Stewardship": {
"body": "Jev supports product judgment; it is not a final verifier or autonomous approval gate for work requiring human intent. It can draft, ground claims, find conflicts, weigh precedent, and expose uncertainty. Evaluation showed auto-approval of test criteria 71% of the time, so do not treat approval frequency as proof of sound judgment. For bounded corpus work, confidence can delegate routine decisions: Jev may admit a confidently sound, well-scoped standalone rule and confirm merges/generalizations above a confidence threshold; borderline proposals remain for human review. Retirement/removal remains human-gated because it is the less reversible direction. Humans can override. Keep evaluations meaningful and repair stale eval plumbing rather than treating a broken guard as evidence of safety; paid/model-dependent evals need not enter deterministic default CI. See [Doen Product Philosophy](Doen Product Philosophy), [Grounded Artifacts and Evidence](Grounded Artifacts and Evidence), and [Acceptance Criteria and Scope Interpretation](Acceptance Criteria and Scope Interpretation).",
"links": []
},
"Stage-aware UI and Visibility": {
"body": "Render concepts when relevant to the user's current work; do not show future-stage controls as disabled UI. The Learn module is not rendered in Draft or Building, is interactive in Learn, and is read-only in Complete. For the importance recommendation, use the chosen simple rule: hide it only when the project has exactly one initiative. Do not add an unchosen completion-date condition or hybrid rule. See [Doen Product Philosophy](Doen Product Philosophy).",
"links": []
},
"Explicit API Writes": {
"body": "Prefer explicit, discoverable, purpose-specific write tools while preserving existing contracts. Research findings use `submit_research_findings(initiative_id, findings)`, rather than adding an optional field to `submit_evidence`. The executor's `research_findings` is a working document: MCP writes are pure last-write-wins and can overwrite human edits, so document this clearly. Humans are expected to annotate after investigation concludes; locks and versioning were judged unnecessary complexity. See [Doen Product Philosophy](Doen Product Philosophy).",
"links": []
},
"Production Retrieval Integrity": {
"body": "Treat retrieval infrastructure as a production contract, not an incidental migration detail. Preserve indexed retrieval when changing embedding dimensions; do not accept an unindexed production interval merely because today's corpus is small. For the 1536\u21923072 migration, halfvec plus HNSW avoided the plain-vector index limit and full cosine scans. More generally, surface architectural effects not explicitly covered by a spec before migration, and extend safeguards when feasible. See [Decision Capture and Precedent](Decision Capture and Precedent) and [Grounded Artifacts and Evidence](Grounded Artifacts and Evidence).",
"links": []
},
"Controlled Classifier Migrations": {
"body": "Compare classifier changes on controlled, comparable benchmarks and treat measured regressions against explicit acceptance bars as real. A Jev dedup migration scored 55.91% family accuracy versus 67.74% for the prior path on the same 186 gold cases, failing non-regression. The chosen response was to iterate on a plausible, fixable prompt/rubric issue and remeasure on the same cases\u2014not ship the regression or declare the approach inherently unsuitable. Stay within granted discretion; use controlled evidence to decide what it supports. See",
"links": []
}
}build-doen · transfer
(from resume-builder) Product: User-driven AI-supported resume platform. Users own career history and editable Markdown resumes (`resumes.content={markdown}`), with no required headings/fields; AI is on-demand reviewer/enhancer/localizer, never gatekeeper. Localization adapts structure, length, formatting, and cultural norms. Use GenAI for structure-dependent work; migrate structured rows/render Markdown/expand for ATS deliberately, not to preserve old contracts. Skills canonicalized with aliases; duplicates copy existing fields. Review philosophy: models judge writing; no regex, keyword matcher, or conditional rule may produce feedback/suggestions/reviews. Remove fabrication check on review rewrites, keyword routing of typed messages, and ATS keyword matcher in queue. Retired RB-9 scores completely: no score/scorer/endpoints/API/DB or substitute compliance column. Overview shows title, created/edited, actions; archived also date. Keep blocking compliance separate. RB-20: findings are queue items, not compliance findings or keyword pass. Items need exact anchor `{quote, occurrence}`, claim, `proposed_change` (user's sentence with term), reason. Accept atomically replaces quote; stale anchors dropped/409, never guessed; repeated phrases require occurrence. Dismiss hash = category + normalized quote. Resolve anchors on read/accept, not autosave. Empty queue without job target is expected. Calibration advisory/not persisted or auto-applied; actionable findings need verbatim anchor/replacement; gaps may anchor insertion after relevant line. No accept for unresolvable anchors. Accept updates content/editor version; calibration response isn't stored, resulting guidance item is. RB-20 scoped; don't expand to C2 or reduce C2 to prose findings. Foundation: `job_profile_text`, OpenRouter calibration, pre-model missing-profile/empty-document guards, exact-once anchor grounding, adopt-finding-to-guidance, `app/prompts/tone.txt`. RB-21 guided assistant follows repository C2 mockup/UX; merge design branch so docs live in main. Chat-like guided flow, not general chat/fixed wizard; ranked fixes first, user steers, no blank prompt; each turn ends in concrete action. Typed text routes to known target/goal; vague asks narrow to grounded high-impact fixes; missing target asks which part; unmatched intent falls back. No role means composer disabled; chips derive from state. No ungrounded rewrites/invented claims. Per-resume target/context/thread; duplicate for another role copies document/context, not thread/decisions. RB-21 owns durable per-resume thread, per-requirement status, skipped/dismissed decisions, provenance-aware context registry. C2 assistant sole guidance surface: remove RB-18/19 panel and RB-20 findings column. Proposal cards in thread (diff, reason, Apply, Not now, Undo). On advert re-extraction preserve decided requirement decisions despite rewording (category + stable requirement ID, not wording); close obsolete open items; open genuinely new requirements. Don't re-ask settled facts/gaps or ask user to adjudicate advert-owned requirements. Follow explicit updated human-edited C2 prototype over stale out-of-scope text. Two-tab rail (Assistant, Document), assistant primary. Start over detaches resume from itsresume-builder · memory
Product: User-driven AI-supported resume platform. Users own career history and editable Markdown resumes (`resumes.content={markdown}`), with no required headings/fields; AI is on-demand reviewer/enhancer/localizer, never gatekeeper. Localization adapts structure, length, formatting, and cultural norms. Use GenAI for structure-dependent work; migrate structured rows/render Markdown/expand for ATS deliberately, not to preserve old contracts. Skills canonicalized with aliases; duplicates copy existing fields. Review philosophy: models judge writing; no regex, keyword matcher, or conditional rule may produce feedback/suggestions/reviews. Remove fabrication check on review rewrites, keyword routing of typed messages, and ATS keyword matcher in queue. Retired RB-9 scores completely: no score/scorer/endpoints/API/DB or substitute compliance column. Overview shows title, created/edited, actions; archived also date. Keep blocking compliance separate. RB-20: findings are queue items, not compliance findings or keyword pass. Items need exact anchor `{quote, occurrence}`, claim, `proposed_change` (user's sentence with term), reason. Accept atomically replaces quote; stale anchors dropped/409, never guessed; repeated phrases require occurrence. Dismiss hash = category + normalized quote. Resolve anchors on read/accept, not autosave. Empty queue without job target is expected. Calibration advisory/not persisted or auto-applied; actionable findings need verbatim anchor/replacement; gaps may anchor insertion after relevant line. No accept for unresolvable anchors. Accept updates content/editor version; calibration response isn't stored, resulting guidance item is. RB-20 scoped; don't expand to C2 or reduce C2 to prose findings. Foundation: `job_profile_text`, OpenRouter calibration, pre-model missing-profile/empty-document guards, exact-once anchor grounding, adopt-finding-to-guidance, `app/prompts/tone.txt`. RB-21 guided assistant follows repository C2 mockup/UX; merge design branch so docs live in main. Chat-like guided flow, not general chat/fixed wizard; ranked fixes first, user steers, no blank prompt; each turn ends in concrete action. Typed text routes to known target/goal; vague asks narrow to grounded high-impact fixes; missing target asks which part; unmatched intent falls back. No role means composer disabled; chips derive from state. No ungrounded rewrites/invented claims. Per-resume target/context/thread; duplicate for another role copies document/context, not thread/decisions. RB-21 owns durable per-resume thread, per-requirement status, skipped/dismissed decisions, provenance-aware context registry. C2 assistant sole guidance surface: remove RB-18/19 panel and RB-20 findings column. Proposal cards in thread (diff, reason, Apply, Not now, Undo). On advert re-extraction preserve decided requirement decisions despite rewording (category + stable requirement ID, not wording); close obsolete open items; open genuinely new requirements. Don't re-ask settled facts/gaps or ask user to adjudicate advert-owned requirements. Follow explicit updated human-edited C2 prototype over stale out-of-scope text. Two-tab rail (Assistant, Document), assistant primary. Start over detaches resume from its job target.resume-builder · structured
- **Design around user capability and workflow, not implementation convenience or visual resemblance; don’t presume downstream structure must be explicit.** Evidence: editable resumes coexist with a canonical career library; unrestricted Markdown and GenAI interpretation beat rigid schemas, with guidance anchored to exact text. No contrary choice. Trap: “one editor” doesn’t imply a structured contract; don’t infer fields from rendering, compliance, or keyword needs. - **Keep AI user-driven and model-led: models, not regexes or conditional rules, should produce feedback, suggestions, and reviews.** Evidence: removed rule-based fabrication checks, typed-message keyword routing, and ATS keyword matching because models should judge writing; this contradicts an earlier choice to enforce a no-fabrication check in code. Trap: a useful factual safeguard or fallback does not justify rule-generated review behavior; preserve user authorship through the AI workflow. - **Route AI work to suitable systems and response shapes; choose models/features by task-specific evals, not labels or assumptions.** Evidence: Jev handled typed per-requirement verdicts, intent classification, and bullet classifications; shared bullet analysis improved defects in 12/12 cases and severity accuracy from 51% to 82%. User-facing prose stays on OpenRouter; missing credentials degrade gracefully. Flash was selected after evals; hard-tier failure should be reported, not hidden with a costlier retry. Trap: “models only” doesn’t mean one model for every task, nor justify unnecessary classifiers, retries, or capability tiers; benchmark quality and don’t make chat rediscover validated analysis. - **Judge constraints by rationale and scope, not labels or precedent; human-updated prototypes are strong evidence of intent.** Evidence: chose C2’s two-tab Assistant/Document rail despite broad wording against a tabbed rail for direction A: Assistant stays available, Document holds settings, and moving eleven typography controls resolves the wall-of-controls concern. Trap: don’t equate all tabbed rails with direction A or preserve obsolete layouts from an overbroad spec reading. - **Keep guidance in one coherent review queue while preserving document-level location cues.** Evidence: assistant replaces findings/single-suggestion panels; proposal cards offer diff, reason, Apply, Not now, Undo, while document marks remain. Trap: one guidance surface doesn’t mean removing in-document context. - **Make “start over” clear session-specific work and detach it, without destroying source records still needed to interpret existing artifacts.** Evidence: Start over detaches the resume, deletes its thread, queue, and decisions (answers do not survive), but keeps the job-target row because a cover letter still needs its advert. Trap: don’t equate a full restart with deleting the job record, or preserve answers that belong to
resume-builder · dream
Product direction: Profiles are broad career libraries; resumes are editable variants with provenance/promotion to profiles. `resumes.profile_id` stays non-null; first resume seeds a profile. Keep normalized skills/aliases for cross-user vocabulary. Increment profile.version on profile/child writes and copy to resume.profile_version. Resumes are one unrestricted free-text Markdown document in one Tiptap editor; no required sections. Convert legacy structured rows; support Markdown beyond bold/italic; RB-10 governs ATS-safe output. RB-14's outline premise is invalid. No resume score. Overview shows title/created/updated; archived table also archived_at. Duplicate copies title/content/presentation/compliance/profile_version/job_target_id and original root, not assistant thread/requirement decisions. Compliance ERROR blocks generation; warnings do not. GET recomputes findings without persisting. Placeholders warn but never block PDF export. Suggestions: one shared mechanism for document-changing suggestions. Anchor is exact quote + occurrence; acceptance atomically replaces that occurrence and marks accepted. If stale/unresolvable, drop rather than guess; resolve on read/accept, not autosave. Dismissal hash is category + normalized quote. Adopt only findings with exact resolvable anchors/replacements. Accept returns content/version; sync editor to avoid autosave 409. No invented candidate claims: missing coverage gets a fixed action sentence, no wording to add. Queue empty without job target. Review findings are model-generated, not rule-generated. Assistant is guided, not open chat: ranked fixes; user steers; each turn leads to a concrete action. No blank prompt/general resume Q&A; disable until role exists, narrow vague asks, route input to known actions/fallback, stateful chips. Assistant is sole guidance UI; proposal cards live in thread (diff/reason/Apply/Not now/Undo), reached via agenda, queue popover or document mark. One suggestion considered/applied at a time; quiet underlines may mark multiple open items, one per anchored line; click scopes composer/chips to line and places caret, but does not auto-open proposal. Cycle same-line items. Rewrite 29 browser tests for thread behavior. Two tabs: Assistant/Document; properties in Document, Auto adjust in formatting row; no duplicate homes/wide typography toolbar. Use Tailwind/shadcn. Models judge writing; start over: no regex, keyword matcher, fabrication check, or conditional rule should produce review feedback, suggestions, or routing. Remove fabrication checks on review rewrites, keyword routing of typed messages, and ATS keyword matching in queue. Use model judgment; OpenRouter remains sole client for user-facing prose unless a new client is explicitly chosen. Start over detaches the resume from its job target and deletes the assistant thread and queue, including decisions; retain the old job-target row. Keeping answers would not be a true restart, and cover letters need their original advert preserved. Confirm Start over
resume-builder · promoted
{
"index": "Users own and edit professional history; AI supports but never blocks access, export, or invents facts. Profiles are the career library; resumes are editable targeted documents. Prefer the smallest reversible, initiative-scoped change; preserve shipped behavior unless direction changes. Open `product` for ownership/compliance/export; `document` for Markdown; `guidance` for queue and marks; `assistant` for C2/RB-21; `models` for review/routing; `schema` for provenance/tokens; `testing` for DB/browser; `revisions` for checkpoints; `security` for authorization; `infra_prompts` for deployment and prompt conventions.",
"notes": {
"product": "Users own/manage professional history. Profiles are the career library; resumes are editable, targeted documents drawing on the profile union. Keep resumes.profile_id NOT NULL; seed profile from first resume; preserve provenance and allow promotion/write-back. AI is on-demand; never blocks document access/export or invents candidate facts. Localization may adapt structure, length, formatting, and cultural norms. Targeted-generation compliance: ERROR blocks, warnings do not; persist/show all findings, and prompt for missing required data. Compliance GET must not mutate. No score in overviews (title, created, last edited, actions; archived list also archived date). Export always works, including with placeholders: prominent count and visible marking, never block download.",
"document": "Current direction is one Tiptap editor over a single free-text Markdown document stored as resumes.content={markdown:\"...\"}. No required headings, sections, typed fields, or heading-as-section contract; downstream uses document understanding. RB-12's structured schema was correct for its old direction and remains shipped, not a defect. Explicitly migrate existing structured JSONB data (no DDL does not mean no data migration); redesign rendering, generation provenance/guards, keyword evidence, compliance, and RB-14 outline. Revisit Markdown support; RB-10 ATS safety remains authoritative. Prior renderer-HTML editing parity depended on structured nodes and must be reconsidered.",
"guidance": "Guidance queue is the sole durable suggestion/apply path. Items need category, exact quote+occurrence anchor, claim, proposed_change, reason. Accept atomically replaces that exact anchor; stale items drop, never guess. Dismissal hash is category + normalized quote. Queue derives from current document; resolve staleness on read/accept, not autosave. Calibration response remains read-only/not stored, but adopted findings become anchored queue items; exact quote and replacement required, unresolved anchors offer no accept. Sync editor from returned content/version. Marks: quiet dotted underline per anchored line, stale marks omitted; panel count conveys suggestions. Clicking a mark places caret normally; multiple items on a line cycle. In C2, suggestions panel folds into thread proposals; marks remain, but clicking scopes composer/target rather than hijacking editor or opening proposals.",
"assistant": "C2 guided assistant is new RB-21; RB-20 remains shipped/verified backend foundation. Assistant replaces findings column and suggestions panel\u2014no parallel UI. Keep job_profile_text, OpenRouter calibration/preflight, exact-unique grounding, finding-to-guidance adoption, app/prompts/tone.txt. Guided chat-like workflow, not general chat or fixed wizard: ranked agenda leads, user steers; never start blank; every turn resolves to action. Route input to known actions, narrow vague asks to high-impact fixes, ask for missing targets, disable input until a role exists, derive chips from state, provide fallback. Avoid unsupported rewrites/invented claims. Proposal cards show diff/reason, Apply, Not now, Undo; reached via agenda, queue popover, or marks. One role/context/thread per resume; duplicate for another role, copying document/context but not thread/requirement decisions. Re-extraction preserves decisions by stable item_key (category + requirement ID), closes disappeared open items, creates new ones. Follow prototype: Assistant/Document tabs; properties in Document, Auto adjust in formatting row.",
"models": "Reviews use google/gemini-2.5-flash for all calls; hard/light tiers unset. Evals found no alternatives better on defect recall or dimension accuracy; Pro was very slow, o3-mini worse and lacks strict-schema endpoint, Mistral Large rate-limited, thinking budgets caused empty replies. No retry/escalation; report failure. Missing requirement: say resume does not cover it plus one fixed action sentence; no template/model wording, enforced in code. Classification uses existing Jev/System One client; user-facing generated prose stays on OpenRouter, add no model clients. Coverage is one typed Jev Noul per requirement. Intent routing: free keyword fast path, Jev Choice only on miss. If TYPESAFE_API_KEY absent, Jev features degrade to current behavior. If generated questions do not match advert template, drop questions/template but keep requirement.",
"schema": "Preserve resume-to-profile provenance via source_entry_id/source_bullet_id where relevant. Drift: increment profiles.version on profile/entry/bullet writes; copy to resumes.profile_version at generation and compare. Keep skills + profile_skills relational with skills.aliases; resume_keywords.skill_id references skills. Concurrency token hashes"
}
}resume-builder · wiki
{
"Product principles and user-led career workflow": {
"body": "The product helps people improve and localize application documents without taking ownership of their career facts. The user owns and edits the underlying history; AI is optional, on-demand, and grounded in user-provided experience. Never invent claims or make assistance a gatekeeper. Make useful next steps easy, while keeping decisions and documents under user control.\n\nA profile is the durable career library; a resume is an editable, role-targeted document. Localization adapts conventions and structure to the market, not just wording. A user can always download their document, including with warnings or unfilled placeholders.\n\nRelated: [[Profile/resume lifecycle]], [[Free-text resume and editing]], [[Guided Assistant and suggestion workflow]], [[Compliance, localization, and export]].",
"links": [
"Profile/resume lifecycle",
"Free-text resume and editing",
"Guided Assistant and suggestion workflow",
"Compliance, localization, and export"
]
},
"Profile/resume lifecycle": {
"body": "Profiles are the reusable career library; resumes are application surfaces. Generation copies a profile version into a resume, while an explicit promote/write-back path offers resume edits to the profile. Keep resumes.profile_id non-null and seed the first profile from the first resume. Preserve provenance/no-loss intent, but redesign it for free-text Markdown rather than assuming per-bullet pointers.\n\nTrack drift with integer profiles.version, incremented for profile, entry, or bullet writes; copy it to resumes.profile_version at generation. Drift is version inequality, not timestamps: child writes need not update the parent timestamp.\n\nOne resume means one role, context, and assistant thread. Duplicate to target another role: copy document and applicable context/target, preserve root lineage, but do not copy conversation or requirement decisions. Do not revive the retired score/scorer/API; duplicates and overview tables have no score. Overview columns: title, created, last edited, actions; archived additionally shows archived date.\n\nRelated: [[Product principles and user-led career workflow]], [[Free-text resume and editing]], [[Guided Assistant and suggestion workflow]].",
"links": [
"Product principles and user-led career workflow",
"Free-text resume and editing",
"Guided Assistant and suggestion workflow"
]
},
"Free-text resume and editing": {
"body": "Canonical content is resumes.content = {markdown: \"...\"}: pure free text, with no required headings, sections, entries, or fields. RB-12's structured Tiptap document and the H2-as-section compromise are superseded; do not reintroduce form-like structural assumptions. Convert existing structured JSONB rows. Rendering, compliance, attribution, evaluation, formatting, and section order must work from text, using GenAI where interpretation is needed. RB-10 governs ATS-safe Markdown.\n\nThe human edits the base history. Provide document-level editing and Markdown rendering; preserve caret and selection through autosave and derived updates. AI edits are on-demand and use the shared safe suggestion workflow. Resolve provenance/no-loss and keyword-acceptance semantics against Markdown before implementing affected flows; revisit section-outline assumptions such as RB-14.\n\nRelated: [[Product principles and user-led career workflow]], [[Profile/resume lifecycle]], [[Guided Assistant and suggestion workflow]], [[Browser editing and concurrency]].",
"links": [
"Product principles and user-led career workflow",
"Profile/resume lifecycle",
"Guided Assistant and suggestion workflow",
"Browser editing and concurrency"
]
},
"Guided Assistant and suggestion workflow": {
"body": "The Guided Assistant is the only guidance surface: a guided, chat-like experience, not a wizard or general-purpose chatbot. Lead with ranked concrete fixes; never start with an empty prompt; every turn leads to an action. The user steers. Composer is disabled until a role exists, routes input to known actions with fallback, narrows vague asks, and asks for a target when missing. Chips derive from current resume state.\n\nAll document changes use one safe queue: proposal cards in the thread, reachable through agenda, queue popover, or document marks. Show diff, rationale, Apply, Not now, and Undo. Anchors are exact text `{quote, occurrence}` with exact replacement; apply atomically, reject stale/ambiguous anchors, and adopt returned content/version. A gap needs a valid insertion anchor or is non-actionable. Dismissal identity is category plus normalized quote, not mutable prose. Reuse safe mutation paths; no parallel apply mechanism.\n\nShow one proposal card at a time. Quiet marks can indicate all open anchored work, one mark per line; clicking text retains ordinary caret behavior and scopes the composer to that line. Line-level chips/conversation select work; multiple items on a line remain reachable. Do not restore the retired findings column or separate suggestions card. Calibration findings are not stored as findings, but a user may turn a grounded finding into a durable queue item.\n\nRelated: [[Free-text resume and editing]], [[Profile/resume lifecycle]], [[Context, targeting, and requirement state]], [[Browser editing and concurrency]].",
"links": [
"Free-text resume and editing",
"Profile/resume lifecycle",
"Context, targeting, and requirement state",
"Compliance, localization, and export",
"Browser editing and concurrency"
]
},
"Context, targeting, and requirement state": {
"body": "Assistant context is per resume: one target, context registry, and thread. Duplicating for another role copies applicable context and document, not thread or requirement decisions. Account-level defaults (such as language and tone) belong in validated JSONB users.preferences; a resume-specific value wins. This is distinct from profile facts such as languages spoken.\n\nRequirement decisions persist by stable item key (category plus requirement ID, not wording), including \u201cI don't have this.\u201d On advert re-extraction, preserve decisions for continuing requirements, close removed open items, and open genuinely new requirements. The advert owns its requirement list; do not ask the user to adjudicate removals.\n\nThe assistant is guided rather than free chat: typed requests route to known actions; fast intent matches are preferred, with classification fallback only when needed. Keep user-entered facts distinct from advert/profile values and do not overwrite user facts silently.\n\nRelated: [[Guided Assistant and suggestion workflow]], [[Profile/resume lifecycle]], [[Compliance, localization, and export]].",
"links": [
"Guided Assistant and suggestion workflow",
"Profile/resume lifecycle",
"Compliance, localization, and export"
]
},
"Compliance, localization, and export": {
"body": "Compliance is a hard market-rules verdict, separate from advisory suggestions. During generation, severity ERROR blocks writing; warnings do not. Persist and surface every",
"links": [
"Product principles and user-led career workflow",
"Guided Assistant and suggestion workflow",
"Context, targeting, and requirement state"
]
}
}resume-builder · transfer
(from build-doen) Doen is a spec framework for product engineers (designers, software engineers, product owners): one durable intent artifact; explicit constraint/discretion boundaries; escalation for genuine intent calls; and guidance from precedent. It is not about distilling abstract engineering rules; the heuristic flywheel is being retired (docs/design-principles.md, “Retiring the heuristic flywheel”). Priorities: (1) capture human reasoning during shaping—the product-decision precedent corpus is nearly empty; (2) ground/verify Doen’s own generated artifacts, not only executor work; (3) improve precedent retrieval once a corpus exists. Jev is not the verifier for this audience; focus its value on drafting, groundedness, conflict detection, and weighing precedent. Decision signals: - Lifecycle-specific features/models should not render in earlier stages as disabled placeholders. Show only in the relevant stage, with appropriate read-only behavior later. This is a semantic boundary, not just visual affordance. (2026-10-02) - For executor-owned working documents humans may later annotate, favor simple last-write-wins over locks/versioning absent clear benefit. State overwrite behavior explicitly. (Research Findings Freetext Field) - Prefer a dedicated tool for a distinct, domain-specific write path when it improves discoverability and keeps an established tool contract stable; avoid optional parameters merely to reduce tool count. (`submit_research_findings` over extending `submit_evidence`.) - For initiative-level visibility, use the simpler literal condition when clearly specified; don’t add nuanced history/date predicates. (Importance recommendation hidden only when project has exactly one initiative.) - When quantitative criteria are hard to satisfy with sparse data, test the mechanism across representative inputs and validate live-data correctness separately; don’t weaken criteria or await organic growth. - For measurement criteria, use the project’s real durable evidence channel; remove requirements for nonexistent dashboards/stores and refresh stale baselines with current data. Don’t mark an outcome criterion complete based on a proxy/mechanism test when the actual question is real-world impact; record measured partial evidence and leave it open/needs_judgment until the outcome can be observed. (Surface Memory Audit Count on Grounding.) - Avoid material accuracy regressions just for cost or implementation benefits when acceptance bar is explicit. If a controlled benchmark finds a plausible, fixable prompt/rubric issue within approved discretion, iterate and re-measure on the same cases before escalating or shipping. (Jev dedup classifier.) - Avoid production architecture regressions or temporary degraded paths when migration can preserve capability at reasonable cost; resolve material gaps before rollout. (Embedding migration.) - Don’t add schema/state for marginal signal fidelity when affected cases are narrow, low-volume, and already resolved by human action. Prefer simpler
Dream stages (recorded from runs after 2026-11-27)
Seed 1
All calls · 54 questions · chance: 34%
| Arm | Right | Right where no memory was wrong / reverse |
|---|---|---|
| stateless | 63% | |
| search | 69% | +7 / −4 |
| memory | 57% | +5 / −8 |
| structured | 63% | +5 / −5 |
| dream | 63% | +6 / −6 |
| promoted | 63% | +5 / −5 |
| wiki | 61% | +4 / −5 |
| transfer | 56% | +2 / −6 |
Final memories
build-doen · memory
Doen is a spec framework for product development by product engineers (designers, software engineers, product owners): one durable intent artifact, separating constraints from discretion, escalating genuine intent calls, and using precedent (choices, rejections, outcomes). It is not about distilling abstract engineering rules. The heuristic flywheel was retired: 228 rules produced 5 usable ones and its success metric was circular (docs/design-principles.md, “Retiring the heuristic flywheel,” 2026-10-02). This is not a blanket ban on useful guidance/corpus work. Frontier, in order: (1) Capture human reasoning: all 25 recorded decisions were agent-raised; 9 product initiatives yielded zero. Human product calls during shaping go undocumented. Capture precedes retrieval; product precedent is empty. (2) Groundness: Doen verifies executors but not its own generated artifacts. Specs cited nonexistent columns, tables, surfaces; a learn record claimed an outcome that never happened. Designers may not catch this. (3) Precedent retrieval once product corpus exists. Prototype/harness exist; baseline 18% useful. Jev is not the verifier for this audience (auto-approves criteria 71%; excludes human_judgment); it may help with drafting, groundedness, conflict detection, and weighing precedent. Decision signals: - Two-tier heuristic corpus: preserve coverage without making humans a costly admission gate. Jev may auto-admit unclustered standalone rules when confidently sound, well-scoped, and condition-bearing; otherwise leave raw. Human is override, not gatekeeper. Unclustered does not imply low-value; don’t lower clustering threshold just for coverage. Supersedes item_b52be75cb614 (both tiers human-gated/no automated writes). - For merge/generalization proposals, Jev confirms above a confidence threshold; borderline proposals go to a human, who can override. The gate stalls the loop (2 merges in 15 months, 3 proposals pending 13 days, no retirements). Retirement stays human-gated: removing a rule feels irreversible; a restorable rejected sentinel is more trustworthy with human judgment. - Preserve scope by distinguishing algorithm changes from input-coverage fixes. A constraint protecting a pass’s algorithm (thresholds, step order, proposal generation, decision rule) need not forbid widening an existing evaluation step to include eligible records from earlier runs, if sequence and contract remain unchanged. Prefer durable fixes over one-off backfills. - Lifecycle-gated features: don’t render a module before its stage; truly hide rather than disabled/inactive. Learn exists only in Learn. - research_findings is pure last-write-wins: executor MCP writes overwrite human UI. - Honor acceptance criteria by purpose, not brittle literalism. Use measurement channels that actually exist (e.g. SQL plus RESEARCH_LOG.md), remove invented dashboard/metric-store requirements, and refresh stale baselines with current measurements. Separate proxy/arithmetic validation from the real outcome:
build-doen · structured
- Respect lifecycle-stage boundaries: omit later-stage features from earlier-stage models unless asked for a preview or disabled affordance. Evidence: Learn was hidden in Draft/Building because its model should not render there; no counterexample. Trap: showing future features disabled for discoverability. - Prefer simple ownership semantics for executor working documents humans annotate afterward. Evidence: research_findings is last-write-wins; MCP may overwrite human edits, documented, and locks were rejected. Context-specific. Trap: generalizing this to all destructive writes. - Preserve established contracts by protecting their purpose, not fetishizing wording or implementation boundaries; make the smallest durable change that restores the invariant. Evidence: submit_research_findings chosen over extending submit_evidence; dream-pass widened to judge all pending proposals while preserving ordering, per-proposal decisions and never-raises; recurring issue made a backfill insufficient. BD-105's stale eval unpacking was fixed despite “without modification” wording because the guard otherwise could not work; human_judgment assertion verified. Trap: weakening a test is not repair; narrow literal fixes may leave the failure mechanism intact. - Follow explicit visibility conditions rather than importing analogous ones without need. Evidence: importance recommendations hidden only when exactly one initiative; hybrid and BD-46's completed-after-creation-date condition rejected. Rationale unstated, so weak signal. Trap: adding borrowed conditions as precaution. - When current data cannot meet an outcome threshold, test the mechanism under representative future/input conditions and separately verify current-data correctness. Evidence: event-count sweep showed >20 score values alongside live-recompute correctness. Trap: lowering the bar solely because current data is insufficient. - Close an architectural gap before rollout when needed to preserve an existing operational invariant, even if current scale makes degradation seem harmless. Evidence: chose halfvec + HNSW for 1536→3072 migration rather than leaving production retrieval unindexed. Trap: treating every speculative optimization as prerequisite. - For meaningful benchmark regressions, prefer bounded iteration and remeasurement when a plausible fix is within delegated discretion. Evidence: Jev dedup's 55.91% vs 67.74% led to rubric revision and rerun under BD-91. Trap: not every regression requires cancellation, but do not leave a plausible fix untested. - Avoid added schema/state to retain a narrow secondary signal when lost cases were already acted on, low-probability, and marginal to the signal's purpose. Evidence: initiative_created collapsed into dismissed despite BD-51 then excluding those resolved drift reports; pending/approved drift still count. Trap: applies to unaddressed-drift detection, not universally. - Measure outcomes through real, established channels; correct stale baselines and distinguish a mechanism's arithmetic correctness from whether it changes behavior. Evidence: grounding-audit criterion
build-doen · dream
## Decision notes - **Learn lifecycle:** Don’t render the learn model in Draft or Building; render/display it in Learn. Complete-stage behavior is unspecified. - **Research findings ownership:** `research_findings` is the executor’s working document. MCP writes are last-write-wins and may overwrite human web edits; document this in the tool description. Humans annotate after investigation. Locking/versioning was rejected as unnecessary complexity. - **Tool contracts:** Prefer a dedicated, discoverable tool for a distinct purpose when that preserves an existing contract (`submit_research_findings` rather than extending `submit_evidence`). - **Importance recommendation:** Hide only when the project has exactly one initiative; not based on completion or a hybrid rule. - **Metrics and evidence:** Use the project’s real, durable measurement channel (SQL plus `RESEARCH_LOG.md` here), not invented dashboards/stores. Refresh stale baselines at measurement time. Separate mechanism correctness from outcome evidence: a drain test can prove counts update correctly, but not that a signal causes executor action. Record available before-values; leave post-deploy/behavioral outcomes open as `needs_judgment` until observed—not satisfied or failed merely because out of scope. Don’t deploy unilaterally if deployment is out of scope. - **Capped live metrics:** If live inputs lack needed variation, test the mechanism with realistic synthetic/property-test inputs and separately verify live recompute correctness. Live attainment can wait for more data. - **Migrations:** Preserve existing production capabilities when feasible rather than accept temporary degradation solely because scale is small (e.g. halfvec + HNSW for 3072-dimension embeddings). Specific precedent, not universal mandate. - **Failed benchmark within discretion:** If a controlled comparison misses its bar but a plausible fix is within approved discretion, iterate and remeasure before holding, adding flags, or accepting regression. - **Fidelity vs. complexity:** Narrow, low-volume loss in derived signal may be acceptable when the underlying action addresses the issue and the signal surfaces unaddressed cases. Avoid schema solely for marginal fidelity; weigh affected slice, recurrence, and schema cost. Scoped precedent. - **Heuristic lifecycle:** Prefer automated soundness judgment over human promotion gates that recreate maintenance burden. Jev may auto-admit standalone rules only if sound, well-scoped, and condition-bearing; uncertain items stay raw. Confirm high-confidence merge/generalization proposals; queue borderline cases for human review, with override. Keep retirement human-gated; preserve coverage rather than lower clustering thresholds. Invariant: soundness, not who judges. - **Constraints and tests:** Interpret constraints by the behavior they protect, not as literal freezes on implementation details; changing a step’s input set can remain in scope. When a contract is deliberately reversed, update tests that
build-doen · promoted
{
"index": "Doen serves product engineers: capture human intent, separate constraints from discretion, escalate genuine intent calls, and use precedent\u2014not abstract rules. Prioritize human-reasoning capture and grounded artifacts before retrieval improvements. Preserve criterion intent, real evidence, and meaningful acceptance bars; test fixable causes before accepting regressions. Open #spec for positioning; #priorities for product gaps; #choices for recorded decisions; #tradeoffs for complexity/fidelity calls; #verification for evidence and tests; #grounding for evidence channels and baselines; #automation for corpus workflows.",
"notes": {
"spec": "Doen is a spec framework for product engineers (designers, software engineers, product owners): one durable intent artifact, explicit constraint/discretion split, escalation of genuine intent calls, and guidance from precedent on comparable choices. It does not distill abstract engineering rules. The heuristic flywheel was retired: 228 rules yielded 5 usable ones and its success metric was circular (docs/design-principles.md, 2026-10-02). Open for product positioning.",
"priorities": "Product priorities: (1) capture human reasoning\u2014the precedent corpus is empty; 25 recorded decisions were agent-raised and 9 initiatives yielded none; (2) ground specs and generated records in reality\u2014fabricated citations/outcomes can be hard for non-engineers to detect; (3) improve precedent retrieval once a corpus exists (18% useful baseline). Jev drafts, grounds, detects conflicts, and weighs precedent; it does not verify human-judgment criteria (71% auto-approves criteria, 0% human_judgment by design). Open when setting product/research priorities.",
"choices": "Recorded choices: Learn renders only in Learn; research_findings is executor-owned pure last-write-wins, documented as overwritable; dedicated submit_research_findings preserves submit_evidence; hide importance recommendation only for exactly one initiative. Verify dispersion via realistic event-count sweeps (>20 scores) plus correct live recompute, not impossible live-corpus dispersion. For 3072-d embeddings use halfvec+HNSW, avoiding production index loss. On dedup regression, iterate rubric and remeasure before deciding. Accept narrow BD-51 undercount after initiative_created collapses into dismissed; no extra field. Corpus workflow: Jev may admit sound standalone rules and confirm high-confidence merges/generalizations; borderline goes to humans, retirement remains human-gated. Widen proposal verdict evaluation to all pending judgeable proposals to fix stranded proposals. Repair stale eval signature inside initiative so the guard actually runs, but keep paid-model evals out of default suite. Open for precedent on adjacent workflow/API/data decisions.",
"tradeoffs": "Favor simple workflows when safeguards have unclear benefit, but do not casually sacrifice meaningful acceptance bars. Weigh affected slice, downstream value, likelihood/volume, and complexity; avoid structure for marginal fidelity. Test fixable causes before accepting regressions or costly tradeoffs. Lossy data can be acceptable when narrow and low-value (e.g. BD-51 undercount), while avoiding even temporary production retrieval-index loss justified halfvec+HNSW. Open when weighing safeguards, fidelity, complexity, or regressions.",
"verification": "Separate mechanism from current-data limits: dispersion uses realistic event-count sweeps through the formula (>20 distinct scores) plus live recompute correctness, without claiming sparse live data disperses. Preserve criterion intent, not obsolete wording or stale numbers. A reversed contract requires rewriting old-contract tests to enforce the new contract, not weakening assertions; independently repair stale test interfaces. A test proving arithmetic does not prove the real behavior/outcome: post-deploy or post-executor criteria stay open/needs_judgment until real evidence arrives. Open for acceptance criteria and testing.",
"grounding": "Use evidence channels that exist (SQL plus RESEARCH_LOG.md), not invented metric stores/dashboards. Remeasure mutable baselines before implementation; never build to stale numbers. Record measured pre-state and leave criteria open when post-deploy/post-executor behavior is outside scope; local comparisons or arithmetic tests do not substitute for that outcome. Open when grounding claims, metrics, or evidence plans.",
"automation": "Reduce manual corpus gates that stall. Jev may auto-admit a standalone rule when confident it is sound, scoped, and condition-bearing; uncertain cases go to human review, with human override. Jev may confirm merge/generalisation proposals above a confidence threshold; borderline cases queue for human judgment. Keep retirements human-gated: removal feels irreversible, whereas a rejected sentinel is restorable. Evidence: two merges confirmed in 15 months, three pending 13 days, no retirements. Open when designing corpus admission, merge, or retirement workflows."
}
}build-doen · wiki
{
"Doen product intent": {
"body": "Doen is a spec framework for designers, engineers, and product owners. Its durable artifact separates constraints (what must hold) from discretion (where an executor may choose). Surface genuine product-intent decisions to people; do not silently convert ambiguity into rules.\n\nPrioritize preserving human reasoning and reusing it over abstract engineering-heuristic extraction. The heuristic flywheel was retired as a product strategy: 228 extracted rules yielded only 5 usable ones, with a circular success metric. Capture meaningful decisions first, ground artifacts in product reality second, then improve precedent retrieval. Existing corpus maintenance may still use bounded automation. See [[Human reasoning and AI]], [[Precedent and recommendations]], and [[Heuristic corpus maintenance]].",
"links": []
},
"Human reasoning and AI": {
"body": "The largest gap is eliciting and preserving human product judgment. In one recorded set, all 25 decisions were agent-raised and 9 initiatives produced no human decisions. Treat this as evidence to improve shaping prompts and escalation, not as a reason to treat agent choices as product judgment.\n\nJev is a drafting aid: ground claims, find conflicts, and weigh precedent. It is not a verifier of product audiences or a substitute for genuine intent calls. Calibration must follow the criterion's intent, not brittle wording: repairing stale setup or a test/API signature so assertions run is different from weakening assertions or rewriting a test to enforce the wrong contract. A deliberately reversed contract requires updating tests that encode the old one. Avoid unrelated scope (for example, putting opt-in paid-model evals into deterministic default tests). See [[Doen product intent]], [[Precedent and recommendations]], and [[Grounded specs and verification]].",
"links": []
},
"Precedent and recommendations": {
"body": "Retrieval cannot compensate for an empty or weak product-precedent corpus. Capture human decisions and outcomes before investing heavily in retrieval; the current useful-result baseline is 18%. Never invent outcomes or call predictions observed results.\n\nThe importance recommendation is hidden only when a project has exactly one initiative\u2014not by BD-46's completed-after-creation drift condition. Generated recommendations must be grounded in actual project evidence. See [[Human reasoning and AI]] and [[Grounded specs and verification]].",
"links": []
},
"Grounded specs and verification": {
"body": "Generated specs, evidence, and learn records must reflect the actual product: cite existing columns, tables, and surfaces; use real durable evidence channels; distinguish observed outcomes from predictions. Plausible prose is not proof, and groundedness and correctness are separate requirements. Match each test or measurement to what it actually verifies: local predicate tests establish predicate effects, not production behavior; arithmetic/drain tests do not prove a signal changes executor behavior.\n\nRe-measure stale baselines rather than building to outdated numbers. The project's durable measurement channel is SQL plus `RESEARCH_LOG.md`, not an assumed dashboard or metric store. If an outcome has not happened yet, keep the criterion open/needs_judgment; do not satisfy it by proxy. E.g. record a before snapshot, then wait for deployment or a real executor pass for the after-value.\n\nWhen a live corpus is too sparse for a quantitative bar, separate mechanism verification from live results. Six distinct raw event-count combinations cannot yield more than six distinct scores under reweighting. Verify the dispersion mechanism with a realistic event-count sweep/property test (e.g. >20 distinct scores), and separately verify live recompute correctness; do not claim live dispersion before events accumulate. See [[Precedent and recommendations]], [[Human reasoning and AI]], and [[Reliability, regressions, and discretion]].",
"links": []
},
"Executor research findings": {
"body": "`research_findings` is the executor's working document. Write through dedicated `submit_research_findings(initiative_id, findings)`; keep `submit_evidence`'s contract unchanged. Use pure last-write-wins: a later executor write may overwrite a human edit. State this risk clearly in the tool description. Humans annotate after investigation concludes; avoid locks or version tracking absent demonstrated need.",
"links": []
},
"Learn lifecycle": {
"body": "Render the Learn module only in the Learn stage. It is truly hidden\u2014not merely disabled\u2014in Draft and Building. In Complete, show it read-only. Preserve these lifecycle semantics consistently.",
"links": []
},
"Reliability, regressions, and discretion": {
"body": "Unspecified discretion is not permission to ship a known production reliability or performance regression. For the 1536\u21923072 vector migration, preserve HNSW indexing in the same migration using halfvec rather than ship an unindexed retrieval path temporarily or defer indexing\u2014even though the corpus was small and the spec covered resize mechanics but not index status.\n\nDo not silently accept measured regression against an explicit acceptance bar. If evidence suggests a plausible, fixable issue within approved discretion (e.g. prompt/rubric wording), iterate and remeasure on the same controlled benchmark before making a broader decision. Jev dedup's 55.91% vs prior path's 67.74% prompted rubric iteration, not accepting the regression or replacing the path outright. See [[Doen product intent]] and [[Grounded specs and verification]].",
"links": []
},
"Heuristic corpus maintenance": {
"body": "Retiring the abstract heuristic flywheel as product strategy does not preclude maintaining the existing corpus. Prefer bounded automation when human queues become a bottleneck. Jev may auto-admit unclustered rules only when it confidently judges them sound, well-scoped, standalone guidance; otherwise leave them raw. Jev may confirm merge/generalization proposals above a confidence threshold, with borderline cases queued for human review and human override available. Keep retirement human-gated: removal is the less reversible direction, even if rejected rules can be restored. The invariant is that a rule",
"links": []
}
}build-doen · transfer
(from resume-builder) ## Product principles - Resume platform is AI-supported, not AI-driven: users own/edit professional history; AI is an on-demand reviewer, enhancer, and localizer. Adapt structure, length, formatting, and conventions to each market. - Resume content is free text: `resumes.content = {markdown: "..."}`; no required headings/schema. Markdown drives rendering, compliance, keyword/evidence analysis, and ordering. Supersedes RB-12 schema; revisit RB-14 outline; RB-10 owns supported Markdown/ATS-safe output. - Plan migrations explicitly: structured rows to Markdown, replace structured rendering, redefine provenance, generation guards, keyword acceptance/evidence attribution, compliance. Do not silently preserve structural assumptions. - Maintain career-library profiles and editable resume docs; profiles support targeting, resumes are primary editing surface. Keep `resumes.profile_id` NOT NULL; seed first profile from first resume, preserve provenance and explicit promotion/write-back. Keep `skills` and `profile_skills` separate; aliases via `skills.aliases`. Track variant drift via `profiles.version` on writes and generated resume `profile_version`. - Users can always download. Warnings inform, never withhold; clearly flag unfilled placeholders in export and document, including assistant-inserted ones. ## Guided Assistant - Core product, not general chat. Lead with ranked agenda of concrete fixes; user steers; never leave an empty thread awaiting open-ended input. Every turn ends in a concrete action. Ground edits in evidence; invent no claims. Don't build a fixed-step wizard. - Sole guidance surface: proposal cards in thread (diff, rationale, Apply, Not now, Undo), reachable from agenda, queue popover, or document marks. No separate findings/review panel. - Marks show where work is, not an invitation to hijack editing. Clicking marked text places caret and scopes composer to that line; show line-level chips. Choose work in conversation, queue popover, or chip; don't auto-open proposals. - Follow latest human-updated prototype when explicitly directed, even if older spec labels design out of scope; interpret exclusions by original rationale. C2: two-tab rail, Assistant and Document; guidance prominent in Assistant, properties in Document, remove oversized properties toolbar, Auto adjust in formatting row. - Start over detaches resume from job target and deletes thread/queue, including prior answers and decisions; retain old job-target row. Cover letter for that role still requires its original advert. Confirm via an inline two-step confirmation in the rail (not modal or one-click); state resume is unchanged. This destructive action discards user answers, and small controls are easy to hit accidentally. ## Models and evaluation - Models judge all review feedback, suggestions, and reviews. No regex or conditional/rule-based logic may produce them. Remove fabrication checks on review rewrites,resume-builder · memory
## Product principles - Resume platform is AI-supported, not AI-driven: users own/edit professional history; AI is an on-demand reviewer, enhancer, and localizer. Adapt structure, length, formatting, and conventions to each market. - Resume content is free text: `resumes.content = {markdown: "..."}`; no required headings/schema. Markdown drives rendering, compliance, keyword/evidence analysis, and ordering. Supersedes RB-12 schema; revisit RB-14 outline; RB-10 owns supported Markdown/ATS-safe output. - Plan migrations explicitly: structured rows to Markdown, replace structured rendering, redefine provenance, generation guards, keyword acceptance/evidence attribution, compliance. Do not silently preserve structural assumptions. - Maintain career-library profiles and editable resume docs; profiles support targeting, resumes are primary editing surface. Keep `resumes.profile_id` NOT NULL; seed first profile from first resume, preserve provenance and explicit promotion/write-back. Keep `skills` and `profile_skills` separate; aliases via `skills.aliases`. Track variant drift via `profiles.version` on writes and generated resume `profile_version`. - Users can always download. Warnings inform, never withhold; clearly flag unfilled placeholders in export and document, including assistant-inserted ones. ## Guided Assistant - Core product, not general chat. Lead with ranked agenda of concrete fixes; user steers; never leave an empty thread awaiting open-ended input. Every turn ends in a concrete action. Ground edits in evidence; invent no claims. Don't build a fixed-step wizard. - Sole guidance surface: proposal cards in thread (diff, rationale, Apply, Not now, Undo), reachable from agenda, queue popover, or document marks. No separate findings/review panel. - Marks show where work is, not an invitation to hijack editing. Clicking marked text places caret and scopes composer to that line; show line-level chips. Choose work in conversation, queue popover, or chip; don't auto-open proposals. - Follow latest human-updated prototype when explicitly directed, even if older spec labels design out of scope; interpret exclusions by original rationale. C2: two-tab rail, Assistant and Document; guidance prominent in Assistant, properties in Document, remove oversized properties toolbar, Auto adjust in formatting row. - Start over detaches resume from job target and deletes thread/queue, including prior answers and decisions; retain old job-target row. Cover letter for that role still requires its original advert. Confirm via an inline two-step confirmation in the rail (not modal or one-click); state resume is unchanged. This destructive action discards user answers, and small controls are easy to hit accidentally. ## Models and evaluation - Models judge all review feedback, suggestions, and reviews. No regex or conditional/rule-based logic may produce them. Remove fabrication checks on review rewrites, keyword routingresume-builder · structured
- Keep foundational data structurally available when downstream workflows depend on it, even if users primarily edit elsewhere; assign source data and editable artifacts complementary roles with explicit, low-cost provenance/write-back. Evidence: career-library profiles coexist with editable resumes; provenance pointers/promotion back; resumes.profile_id stays non-null and first run seeds a profile. No contradiction. Trap: UI ownership does not dictate data-model availability or a single source of truth. - Prefer the smallest change that preserves verified semantics and unblocks the initiative; distinguish approval history from the current product surface. Evidence: retained skill entities/links, SQLite JSONB variant, shared API/worker and prompt convention; RB-9 removal/migration preserved; RB-20 criteria stayed as history while its unpublished panel was removed; tests rewritten for replacement behavior. No contradiction. Trap: verified scope is not eternal UI; small does not mean retaining stale wording or retired capabilities. - Give materially new durable interaction models their own initiative; preserve predecessor scope and reuse useful capabilities rather than overloading UI discretion. Evidence: C2 per-resume thread, requirement status, dismissed/skipped decisions, context registry and fact-capture loop became RB-21, preserving RB-20. No contradiction. Trap: don't squeeze domain state into presentation choices. - Make AI useful, guided, user-steerable and action-oriented, but never let it author the candidate's experience or block manual work. Evidence: chose Guided Assistant with agenda, clarification, state-derived suggestions and fallback over chat-bubble/queue-only C2; missing resume content gets a fixed uncovered statement plus an action sentence, without suggested wording. No contradiction. Trap: action-oriented does not mean generating candidate claims, templates, or speculative facts; the candidate supplies their experience. - Use model judgment—not regexes or conditional rules—to produce writing feedback, suggestions, or reviews. Evidence: removed fabrication checks on review rewrites, keyword routing of typed messages, and ATS keyword matcher in the queue; rationale favored models over rule-based feedback. Contradicted earlier assumption that keyword intent routing belonged in the guided assistant. Trap: don't preserve heuristics merely because they seem safer or objective; separate workflow/state mechanics from judgment-producing rules. - Consolidate duplicate guidance surfaces into the workflow that owns them, while retaining distinct affordances with unique value. Evidence: findings/suggestions moved into assistant thread with proposal diff, rationale, Apply/Not now and Undo; document marks remain navigational and scope the composer. No contradiction. Trap: consolidation should not remove useful navigation; rewrite tests for replacement behavior. - Resetting a workflow should discard its workflow-specific state without changing durable user content, and consequential resets deserve clear, low-friction confirmation. Evidence: Start over discards
resume-builder · dream
Decision patterns: - Preserve user control and editable documents. Profiles are career libraries; resumes are directly editable, tied to a non-null profile, and first run seeds a profile from the first resume. Existing provenance supports explicit promotion; avoid unnecessary write-back schema. Keep normalized skills/join tables when shared vocabulary or cross-user analytics justify them. Track profile drift with integer versions, not timestamps. - Resume content is free text (`{markdown: ...}`), not rigid slots or required headings. Structure-dependent features ask GenAI to interpret it; RB-10 remains ATS-formatting authority. Explicitly supersede RB-12’s schema/rendering criteria while preserving shipped status; later direction changes do not make previously correct behavior a defect. - Shipped, verified behavior and concrete repo evidence outweigh stale/fabricated specs. Amend superseded criteria explicitly; don’t revive removed behavior. Cross-user access is 404 (unauthenticated 401). Prefer smallest reversible infrastructure change that removes duplication; keep repo-wide refactors separate. Use JSONB plus Pydantic for flexible whole-document settings; avoid migrations for unqueried settings. Account-level assistant defaults belong in `users.preferences`, validated in `app/schemas/jsonb.py`; per-resume overrides win. Distinguish settings from user facts. - Preserve SQLite tests with SQLAlchemy type variants and add real-Postgres coverage for Postgres-only guarantees. Establish one prompts convention even if behavior-preserving shared-module edits are needed. - Autosave and revision snapshots are distinct: idle-gap creates one snapshot; overlapping checkpoint triggers create one row. Concurrency tokens represent editable document state, not derived writes. Browser-critical behavior merits Playwright against the live stack. - Guidance is the sole document-change mechanism: exact-text anchors `{quote, occurrence}`, atomic replacement, stale anchors dropped/409, never guessed; dismissal hashes category plus normalized quote. Keep five guidance fields. Unresolved anchors have no accept action; gaps may have insertion anchors or no action. Accepted edits return updated content/token. Compliance stays separate: ERROR blocks generation; warnings are stored/surfaced. No job target means empty queue. - Guidance is surfaced through the guided assistant, not a parallel findings/suggestions panel. It is not general chat or a fixed wizard: assistant leads with ranked agenda, user steers, every turn resolves to concrete action. Keep one proposal decision at a time; document marks map open work, and clicking text preserves normal caret behavior. Follow human-updated C2 prototype over stale specs. One resume carries one role/context/thread; duplicate for another role without copying conversation or decisions. Unfilled placeholders warn but never block download. - Start over fully resets role-specific work: detach the resume from its job target, delete its thread and queue (including decisions), but retainresume-builder · promoted
{
"index": "User favors user-owned, directly editable Markdown resumes; AI proposes, user chooses, and only explicit adoption changes the document. Prefer grounded, reversible actions, clear provenance, privacy, and safe failure; resume-level context overrides account defaults. Open `model` for schema/compliance; `editor` for editing, rendering, revisions; `guidance` for anchors/proposals; `assistant` for C2/RB-21; `ai` for model/routing choices; `privacy` for authorization; `worker` for deployment; `testing` for compatibility and test strategy.",
"notes": {
"model": "Profiles are the career/targeting library; resumes are user-owned editable application documents. `resumes.profile_id` stays NOT NULL; seed a profile from first resume. Skills stay normalized in `skills` + `profile_skills`, aliases/canonicalization; `resume_keywords.skill_id` references skills. Resume content is `{markdown:\"...\"}`: pure free-text Markdown, no required headings/fields/schema. Legacy structured JSONB must convert. Overview shows title, created/updated, actions, archived date where relevant; no score or compliance substitute. RB-9 retired score entirely (column, scorer, API, gauge). Targeted generation blocks on ERROR compliance findings, not warnings; persist findings for targeted generation and show in editor. Hand-created resumes may have `{}`; GET recomputes without writing.",
"editor": "User owns and edits the whole resume; AI assists on demand. Use one editor/document; Markdown, not `_article/_section/_entry`. Keep ATS-safe rendering. Chosen parity strategy: serve renderer's own HTML (`render_resume_html(standalone=False)`) with editable semantic nodes and path attributes; structural edits update local Markdown/content then re-fetch rendered body. Playwright for browser/editor behavior; pytest for server invariants. Version token hashes editable state, not `updated_at`, so feedback reads do not cause false 409s.",
"drift": "Track variant drift explicitly: `profiles.version` increments on every profile, entry, or bullet write; `resumes.profile_version` copies it at generation. Compare versions, not timestamps; child writes may not update `profiles.updated_at`, and historical baselines cannot reliably be backfilled. Continuous autosave persists active edits without snapshots. Each idle-gap timeout creates exactly one revision. Overlapping checkpoint conditions create one revision and retain/flag all fired conditions for auditability; follow explicit triggers, don't deduplicate based on unchanged content.",
"guidance": "Guidance is the sole mechanism that applies edits: adoption atomically applies scoped replacement to Markdown and records decision; stale anchor returns 409, then editor adopts returned content/version. Anchor is exact quote + occurrence; accept requires exact uniquely resolving quote and replacement. Gap findings need a nearby insertion anchor or no accept action. Dismissal durable; hash includes category. All five fields required: quote, claim, proposed sentence-level change incorporating term, reason, anchor. Open items get quiet dotted underline per anchored line; active mark stronger. Clicking line activates/cycles items sharing it and places caret. Proposal cards live in assistant thread (diff/reason/Apply/Not now/Undo), accessible via agenda, queue popover, or document mark; marks focus composer but do not request/open suggestion. One card at a time; count conveys total. Calibration findings can be adopted into this queue; findings themselves remain transient/read-only.",
"assistant": "RB-21/C2 replaces RB-20 findings panel outright; RB-20 remains shipped/verified and its backend foundations remain (per-resume `job_profile_text`, OpenRouter calibration, pre-call guards/refusals, exact-once anchor grounding, tone prompt, adopt-to-guidance path). Guided chat, not general chat or fixed wizard: assistant leads with ranked fixes grounded in resume evidence; every turn ends with actions. No empty thread/free-form model instructions; composer disabled until role exists; route typed input to known target/goal and clarify ambiguity. Per-resume role/context/thread and requirement statuses, durable facts, provenance, placeholders, continuous checks, ask-narrowing and cover-letter handoff. One resume = one role; duplicate document/context, not thread/decisions. Never invent facts; missing requirement states resume doesn't cover it and gives fixed action sentence only. Always allow PDF export; prominently mark/count/warn about placeholders, never block. Requirement `item_key` is stable category + requirement id: preserve decisions across rewording, close open removed requirements, open new ones.",
"ai": "Coverage classification: Jev/System One typed Noul verdict per requirement. Intent routing keeps keyword matching as fast/free pass; Jev Choice fallback only on misses. Both degrade gracefully without `TYPESAFE_API_KEY`; OpenRouter remains for user-facing prose. Resume analysis/reviews always use `google/gemini-2.5-flash`; hard/light tiers unset. Do not retry hard-tier failures on a dearer model; report failure. Eval favored Flash on defect recall, accuracy, reliability, latency; alternatives slower/weaker/rate-limited/empty. Advert validation: if generated questions don't match template, drop that requirement's questions/template but retain requirement; don't guess or reject whole advert.",
"privacy": "Unauthenticated API requests return 401. Cross-user and nonexistent resources both"
}
}resume-builder · wiki
{
"Product principles: user-owned, AI-assisted work": {
"body": "Users own their professional history and documents. AI reviews, enhances, and localizes on demand; it never invents experience or withholds user work. Localization means substantive market adaptation (structure, length, formatting, cultural expectations), not translation alone. For missing requirements, say the resume does not cover them and use the fixed action sentence enforced in code\u2014never suggest candidate facts or a fill-in template. Warnings advise; real errors may block generation, but export remains user-controlled. Prefer one coherent interaction surface over duplicate panels. Apply these principles across the linked models.",
"links": [
"Career library and profile drift",
"Resume editing and document model",
"Resume compliance and export",
"Anchored guidance and assistant",
"Guided assistant and role duplication",
"AI architecture and trustworthy output"
]
},
"Career library and profile drift": {
"body": "Keep both a user-managed career-history library and directly editable resume documents: targeting needs the union of what users have written, while resumes can diverge. Keep resumes.profile_id NOT NULL and seed a profile from the first resume. Preserve source_entry_id/source_bullet_id provenance where applicable; offer promotion/write-back rather than forcing generated-only or resume-only data models. Track divergence with profiles.version, incremented on profile, entry, or bullet writes, and copy it to resumes.profile_version at generation. A mismatch signals staleness, not recoverable history. Do not rely on profiles.updated_at: child edits may not update it, and timestamps cannot reconstruct prior state.",
"links": [
"Product principles: user-owned, AI-assisted work",
"Skills vocabulary",
"Resume editing and document model"
]
},
"Skills vocabulary": {
"body": "Normalize only when there is a real shared vocabulary, analytics, or relational use\u2014not by default. Here skills.aliases canonicalizes terms (e.g. K8s/Kubernetes), and resume_keywords.skill_id references skills, so skills and profile_skills remain separate tables. Without these needs, a simple profile skills array may be more appropriate.",
"links": [
"Career library and profile drift"
]
},
"Resume editing and document model": {
"body": "The resume is one free-text Markdown document in resumes.content = {markdown: ...}. No headings, sections, fields, or structural contract are recognized\u2014not even H2. Use one Tiptap editor for the whole document, not rigid slots, React-owned structure, or multiple editors. Support and render Markdown rules explicitly; RB-10 remains authority for ATS-safe output. Downstream compliance, keyword/evidence attribution, and formatting that need structure use GenAI document understanding. This supersedes RB-12's structured schema and exact PDF-parity constraint; RB-12 remains shipped and verified, not a defect. Convert existing structured rows; replace structured renderer traversal with Markdown rendering. Rework provenance/guards, keyword insertion/evidence, compliance section checks, and RB-14 outline rather than assuming fields exist. Older renderer-HTML parity plans for structured editing are obsolete.",
"links": [
"Product principles: user-owned, AI-assisted work",
"Career library and profile drift",
"Resume revisions and concurrency",
"Resume compliance and export",
"Anchored guidance and assistant",
"Browser testing and infrastructure"
]
},
"Resume revisions and concurrency": {
"body": "Continuous autosave and idle-gap snapshots are distinct. Active typing persists content without revision rows. Each idle-gap timeout creates exactly one snapshot, even if content appears unchanged or a recent revision exists; explicit triggers may also checkpoint. When conditions overlap, create one revision and flag every fired condition for auditability. Never deduplicate a timeout snapshot. Frequent persistence is not discrete history. Concurrency tokens identify editable state, not incidental row writes: hash client-editable fields (content, presentation, title, status, template, region), not updated_at, which derived reads may change. Scope ownership in queries so cross-user and nonexistent resources both return 404 (unauthenticated remains 401).",
"links": [
"Resume editing and document model",
"Anchored guidance and assistant",
"Browser testing and infrastructure"
]
},
"Resume compliance and export": {
"body": "Run targeted compliance checks before writing a generated resume. ERROR findings block generation; warnings do not. Persist and surface all findings in resumes.compliance. Errors represent harmful risks or explicit market requirements; warnings are advisory conventions. Warning-only markets remain usable; required fields (e.g. nationality) can block generation and prompt the user. Compliance findings are not suggestions and do not enter the guidance queue. Since resumes are free text, section-dependent checks must be redesigned rather than assuming structured fields. Users can always export/download: visible warnings, including unfilled-placeholder counts, inform but never block export.",
"links": [
"Product principles: user-owned, AI-assisted work",
"Resume editing and document model",
"Anchored guidance and assistant"
]
},
"Anchored guidance and assistant": {
"body": "Guidance is a derived queue, not authoritative document content. Each item needs an exact anchor {quote, occurrence} plus exact replacement. Validate on read and accept; if stale, drop/refuse rather than silently applying elsewhere. Accept atomically replaces that occurrence and marks the item handled; it does not autosave as a side effect. Dismissal identity hashes category plus normalized quote, not claim/proposal wording. Keyword guidance and adopted calibration findings share this queue and its apply path; findings without grounded anchors/replacements cannot be accepted. Compliance stays separate. On the document, mark each valid anchored line with one quiet dotted underline, even when several items share it; panel/queue count conveys total. Active item gets stronger solid underline/tint. Clicking places the caret normally; repeated clicks cycle items on that line. Stale anchors are never marked. The panel shows one proposal at a time.",
"links": [
"Product principles: user-owned, AI-assisted work",
"Resume editing and document model",
"Resume revisions and concurrency",
"Guided assistant and role duplication"
]
},
"Guided assistant and role duplication": {
"body": "C2 is a guided, chat-like experience, not a general chatbot or fixed-step wizard. Lead with a ranked agenda of concrete fixes; the user steers, and every turn resolves to an action. Never open with an empty prompt. Enable composer only once a role exists; route text to known target/goal, clarify missing targets, narrow vague asks to grounded high-impact fixes, use state-derived chips and a defined unmatched-intent fallback. Clicking marked text places the caret and scopes the composer to that line; it does not hijack editing. The assistant/thread is the sole guidance surface: fold away separate findings and suggestions panels, while retaining document marks and queue access. One resume represents one role, context, and thread; duplicate for another role. Copy document/context, but not thread or per-requirement decisions. Context account defaults live in",
"links": [
"Product principles: user-owned, AI-assisted work",
"Anchored guidance and assistant",
"Resume editing and document model",
"AI architecture and trustworthy output"
]
}
}resume-builder · transfer
(from build-doen) Doen is a spec framework for product development by product engineers (designers, software engineers, product owners): one durable intent artifact, separating constraints from discretion, escalating genuine intent calls, and using precedent (choices, rejections, outcomes). It is not about distilling abstract engineering rules. The heuristic flywheel was retired: 228 rules produced 5 usable ones and its success metric was circular (docs/design-principles.md, “Retiring the heuristic flywheel,” 2026-10-02). This is not a blanket ban on useful guidance/corpus work. Frontier, in order: (1) Capture human reasoning: all 25 recorded decisions were agent-raised; 9 product initiatives yielded zero. Human product calls during shaping go undocumented. Capture precedes retrieval; product precedent is empty. (2) Groundness: Doen verifies executors but not its own generated artifacts. Specs cited nonexistent columns, tables, surfaces; a learn record claimed an outcome that never happened. Designers may not catch this. (3) Precedent retrieval once product corpus exists. Prototype/harness exist; baseline 18% useful. Jev is not the verifier for this audience (auto-approves criteria 71%; excludes human_judgment); it may help with drafting, groundedness, conflict detection, and weighing precedent. Decision signals: - Two-tier heuristic corpus: preserve coverage without making humans a costly admission gate. Jev may auto-admit unclustered standalone rules when confidently sound, well-scoped, and condition-bearing; otherwise leave raw. Human is override, not gatekeeper. Unclustered does not imply low-value; don’t lower clustering threshold just for coverage. Supersedes item_b52be75cb614 (both tiers human-gated/no automated writes). - For merge/generalization proposals, Jev confirms above a confidence threshold; borderline proposals go to a human, who can override. The gate stalls the loop (2 merges in 15 months, 3 proposals pending 13 days, no retirements). Retirement stays human-gated: removing a rule feels irreversible; a restorable rejected sentinel is more trustworthy with human judgment. - Preserve scope by distinguishing algorithm changes from input-coverage fixes. A constraint protecting a pass’s algorithm (thresholds, step order, proposal generation, decision rule) need not forbid widening an existing evaluation step to include eligible records from earlier runs, if sequence and contract remain unchanged. Prefer durable fixes over one-off backfills. - Lifecycle-gated features: don’t render a module before its stage; truly hide rather than disabled/inactive. Learn exists only in Learn. - research_findings is pure last-write-wins: executor MCP writes overwrite human UI. - Honor acceptance criteria by purpose, not brittle literalism. Use measurement channels that actually exist (e.g. SQL plus RESEARCH_LOG.md), remove invented dashboard/metric-store requirements, and refresh stale baselines with current measurements. Separate proxy/arithmetic validation from the
Dream stages (recorded from runs after 2026-11-27)
Seed 2
All calls · 54 questions · chance: 34%
| Arm | Right | Right where no memory was wrong / reverse |
|---|---|---|
| stateless | 61% | |
| search | 67% | +7 / −4 |
| memory | 65% | +4 / −2 |
| structured | 69% | +6 / −2 |
| dream | 61% | +7 / −7 |
| promoted | 72% | +9 / −3 |
| wiki | 65% | +6 / −4 |
| transfer | 72% | +8 / −2 |
Final memories
build-doen · memory
# Doen — product decision memory Doen is a spec framework for product engineers (designers, software engineers, product owners): one durable intent artifact shared across all three. It separates constraints from discretion, escalates genuine intent calls, and uses precedent to inform comparable decisions. Do not frame it as distilling abstract engineering rules. The heuristic flywheel was retired (2026-10-02): 228 rules yielded 5 useful ones, with a circular success metric. See `docs/design-principles.md`, “Retiring the heuristic flywheel.” ## Product priorities 1. **Capture human reasoning.** All 25 recorded decisions were raised by agents; 9 product initiatives yielded zero. Product calls during shaping are not being recorded. Product precedent is empty; capture comes before retrieval. 2. **Ground artifacts.** Doen checks executors rigorously but not its own generated content. Specs have referenced nonexistent columns, tables, and surfaces; a learn record asserted an outcome that did not occur. Especially hard for designers to detect. 3. **Retrieve precedent** once there is a product corpus. Prototype and measurement harness exist; 18% useful is the baseline to beat. Jev is not the verifier for this audience: it auto-approves test criteria 71% of the time and human judgment 0% by design, while product people mostly write behavior and human judgment. Jev may help draft, ground, detect conflicts, and weigh precedent. ## Observed preferences (contextual; don't overgeneralize) - Stage-inapplicable content may be absent: render Learn module only in Learn, not disabled in Draft/Building. - Research findings are executor-owned working documents; MCP writes are last-write-wins. Document overwrite behavior; humans annotate after investigation. Preferred simplicity over locks/versioning. Specific to this field. - Distinct domain-specific write paths can merit dedicated tools when preserving contract and improving discoverability: chose `submit_research_findings(initiative_id, findings)` over extending `submit_evidence`. - Initiative Importance Validation: hide recommendation only when project has exactly one initiative; chose simple rule over hybrid/BD-46 date condition. Rationale unknown; local evidence only. - Verify intended mechanisms even if live data cannot exhibit their outcome: for shaping-edits heuristic feedback, use realistic event-count sweep/property tests showing >20 distinct scores, plus live recompute correctness. - Avoid human gates that stall useful, reversible operations; keep humans for uncertainty and consequential actions. In Two-Tier Heuristic Corpus, confirm high-confidence merge/generalization proposals automatically; queue borderline cases for human judgment with override. Retirement remains human-gated. - Interpret constraints by purpose, not overly literally: preserve protected algorithm/contract invariants while making the smallest structural change needed to fulfill intent (e.g. repair stale eval unpacking signature in BD-105). -
build-doen · structured
- Respect lifecycle boundaries: hide capabilities belonging only to later stages rather than showing disabled placeholders. Support: Learn is hidden in Draft/Building and exists only in Learn. No contrary choice. Trap: don’t generalize to every incomplete feature or overvalue discoverability. - For executor-owned working documents humans annotate after execution, favor simple last-write-wins over protective coordination, while disclosing overwrite behavior. Support: research_findings; locking judged needless. No contrary choice. Trap: not shared or human-owned data. - Favor a dedicated explicit interface for a distinct domain action when it preserves the existing contract and improves discoverability, even at the cost of another tool. Support: submit_research_findings over optional submit_evidence. No contrary choice. Trap: not a general preference for more tools. - Follow a spec’s direct visibility condition rather than importing an elaborate analogous precedent. Support: initiative importance hidden only when exactly one initiative exists, unlike BD-46’s completion condition. Motive uncertain; weak evidence. Trap: simplicity does not always beat precedent. - When a desired empirical outcome is currently unmeasurable with sparse inputs but depends on future data, test the controllable mechanism with realistic varied inputs and separately establish current-data correctness. Support: heuristic-score dispersion via event-count sweep (>20 distinct scores) plus live-recompute correctness. No contrary choice. Trap: don’t substitute mechanism tests if outcome is measurable now or mechanism behavior is itself required. - For production-outcome criteria, preserve the real-world question and use an existing durable measurement channel rather than inventing unavailable infrastructure. Record current, corrected evidence, but leave the criterion open until the production outcome is observed; local correctness is not outcome evidence. Support: citable-rule/citation before-snapshot and memory-audit SQL baseline (79, replacing stale 76) recorded in RESEARCH_LOG.md; both await post-deploy/executor evidence. Drain test proves arithmetic, not that the signal changes executor behavior. No contrary choice. Trap: don’t mark unobservable criteria failed, close them on simulated/local tests, or deploy out of scope to close them. - When a production change would degrade a core path, favor closing the gap in the same change rather than deferring because current scale tolerates it. Support: halfvec + HNSW with 1536→3072 migration avoided unindexed retrieval. One choice. Trap: not every performance concern needs immediate resolution. - When a measured regression has a plausible, fixable cause within approved discretion, iterate and remeasure on the same controlled benchmark. Support: Jev dedup revised/retested on 186 cases after 55.91% vs 67.74%. No contrary choice. Trap: doesn’t lower acceptance bars, make every regression a prompt issue,
build-doen · dream
Doen decision patterns (grounded in recorded choices): Respect lifecycle semantics literally (render Learn only in Learn); hide the importance recommendation only when there is exactly one initiative. Prefer simple explicit semantics where added complexity has no clear value. Keep tool contracts stable; use a dedicated, discoverable research_findings write path. Its writes are last-write-wins, including overwriting human edits; document this plainly. For criteria that live data cannot yet satisfy, test the mechanism with varied realistic inputs and separately verify live recomputation correctness; don't wait for organic growth or weaken the goal. Preserve retrieval architecture (e.g. halfvec + HNSW), not unindexed scans. If a controlled benchmark misses a confirmed bar, iterate within spec discretion and remeasure the same fixed cases; distinguish fixable prompt/implementation issues from fundamental limits. Accept narrow fidelity loss only when affected cases were already acted on, the signal is marginal, and recurrence is unlikely; avoid low-value bookkeeping. Reduce human process overhead through scoped automation: Jev may admit sound, well-scoped standalone guidance and confirm merge/generalization proposals above a confidence threshold; borderline judgments remain human-gated, and retirement remains human-gated. These choices authorize only the stated automation, not arbitrary corpus writes. Interpret constraints by intent and scope. A deliberately reversed contract may require assertion inversions, not weaker tests. Repair stale/broken tests to exercise the intended guard, preserve substantive assertions, and verify they run. Keep that separate from process changes (e.g. no paid/live eval calls in deterministic default CI without authorization). Preserve specified algorithms, order, and guarantees; changing which existing records a step evaluates can fix a structural defect without changing its decision rules. Fix recurring mechanisms, not just one-off backfills; backfills may supplement. Ground impact claims in actual project channels, not fictional dashboards or local proxies. Use current measurements rather than stale numeric baselines; record SQL-backed results in RESEARCH_LOG.md. A mechanism/drain test proves behavior or arithmetic, not real-world effect. Record pre-deploy evidence, mark deployment-dependent criteria needs_judgment, and leave them open until the genuine post-deploy event/snapshot; don't deploy outside scope or claim impact early.
build-doen · promoted
{
"index": "Doen serves product engineers with one durable intent artifact, explicit constraint/discretion boundaries, escalation for genuine intent calls, and useful precedent\u2014not abstract rule distillation. Prioritize capturing human reasoning, grounding outputs in reality, then retrieval. Honor intent over brittle literalism; prefer durable fixes over backfills. Keep contracts stable and controls simple unless benefit warrants complexity. Use real evidence channels, distinguish verified mechanisms from live outcomes, and leave production-dependent claims open. Open notes: principles\u2014purpose/priorities; corpus\u2014automation/gates; mcp\u2014write semantics; workflow\u2014Learn visibility; importance\u2014display rule; criteria\u2014verification and scope; migration\u2014indexes; bench\u2014regressions; drift\u2014status tradeoff; boundaries\u2014intent, tests, evidence, recurrence.",
"notes": {
"principles": "Doen serves product engineers (designers, software engineers, product owners): one durable intent artifact, explicit constraint/discretion boundaries, escalation of genuine intent calls, guidance from precedent\u2014not abstract engineering-rule distillation. Priorities: (1) capture human reasoning in shaping (25 recorded decisions were agent-raised; 9 initiatives yielded none); (2) ground specs/Learn records, avoiding fabricated surfaces, stale citations, or unrealized outcomes; (3) improve precedent retrieval once corpus exists (18% useful baseline). Jev is useful for drafting, groundedness, conflict detection, and weighing precedent, not as a product-call verifier. Retire heuristic flywheel: 5 useful rules from 228; circular metric (docs/design-principles.md).",
"corpus": "Avoid human promotion/maintenance queues that recreate overhead. Jev may auto-admit unclustered standalone rules when confidently sound, scoped, and condition-bearing; otherwise leave raw. Jev confirms dream-pass merge/generalization proposals above confidence threshold; borderline goes to human, who can override. This supersedes both-human-gated invariant. Keep retirements human-gated: removal feels irreversible; a restorable rejected sentinel still warrants judgment. Do not automate retirement.",
"mcp": "research_findings MCP writes are pure last-write-wins; executor writes overwrite human edits. Field is executor working document; humans annotate after investigation. Document overwrite behavior. Use dedicated submit_research_findings(initiative_id, findings), not optional submit_evidence parameter: preserve stable contract and improve discoverability.",
"workflow": "Do not render Learn module in Draft or Building; render/display only in Learn. Do not substitute visible-but-disabled UI.",
"importance": "Show the importance recommendation unless the project has exactly one initiative. Do not use completed-after-creation-date condition or hybrid rule.",
"criteria": "Separate mechanism correctness from live-corpus outcomes. Sparse events may make >20 live score values impossible: test realistic survived/removed/citation sweeps through formula for >20 distinct scores, plus live recompute correctness; don't claim current live corpus meets it. For production-dependent criteria, measure what's available and keep open/needs_judgment until real deployed evidence arrives; local comparisons or tests are not substitutes. Correct stale baselines and use actual project evidence channels (SQL + RESEARCH_LOG.md), not imagined metric stores/dashboards. Don't mark outcome verified merely because the mechanism/test is sound.",
"migration": "For 1536\u21923072 embedding migration, extend to halfvec + HNSW rather than accept unindexed production retrieval or defer indexing. Avoid even temporary index loss, regardless of small current corpus.",
"bench": "When controlled same-benchmark comparison regresses against explicit acceptance bar, prefer plausible, fixable in-scope iteration and remeasurement before shipping, pausing, or adding complexity. Jev dedup: 55.91% vs prior 67.74% on 186 cases; iterate rubric and remeasure, within confirmed discretion.",
"drift": "When collapsing DriftReportStatus, accept loss of narrow dismissed vs initiative_created distinction rather than add schema solely for BD-51 loop counts. Reports resolved via Create initiative are already acted on; marginal signal did not justify complexity. Pending/approved still count.",
"boundaries": "Honor intent over brittle literalism. Interpret constraints by purpose: expanding the evaluated population can remain in scope if algorithm/order/decision rule/contract stay intact; e.g. evaluate all pending judgeable proposals, not only newly created, to fix recurrence rather than backfill once. Prefer durable structural fixes when recurrence is the cause. Tests encoding a reversed contract must be rewritten; fixture-only intent prevents assertion weakening, not contract updates. Repair stale evals when needed to make a guard actually run (without weakening it); preserve deterministic/default vs paid-eval separation. Distinguish algorithm changes from changing inputs/population. For evidence/outcomes requiring deployment, report verifiable facts, mark open/needs_judgment, and wait for production evidence. Use real channels, not imagined infrastructure."
}
}build-doen · wiki
{
"Doen product philosophy": {
"body": "Doen is a spec framework for product engineers. Its durable artifact is product intent: what is constrained, where teams have discretion, and which genuine intent calls return to a human. Preserve comparable choices, rejections, and outcomes as precedent so reasoning can become consistent as the corpus grows.\n\nPrioritize capturing human reasoning during shaping and grounding specs and generated artifacts in reality; improve precedent retrieval once a useful product corpus exists (18% useful baseline). The heuristic flywheel is retired: 228 rules yielded only 5 usable outcomes and its success metric was circular. All 25 recorded decisions were agent-raised and 9 initiatives captured no human calls: improve capture of human judgment, not merely generated-rule volume.\n\nJev can draft, ground, detect conflicts, and weigh precedent. It is not a general verifier of product behavior or human judgment. Preserve human decisions where intent or real-world outcomes remain unknown.",
"links": [
"Lifecycle-scoped UI",
"Research writes and MCP contracts",
"Delegated judgment and corpus stewardship",
"Evidence, acceptance, and scope",
"Simple rules and mechanism testing",
"Production guarantees and benchmark gates"
]
},
"Lifecycle-scoped UI": {
"body": "Render concepts only in the lifecycle stage where they belong; do not expose future-stage concepts as disabled or inactive controls. The Learn model is absent in Draft and Building, interactive in Learn, and read-only in Complete. Hiding is a rendering/model boundary, not just a visual state.",
"links": [
"Doen product philosophy"
]
},
"Research writes and MCP contracts": {
"body": "Keep ownership semantics simple unless locking or versioning has demonstrated value. `research_findings` is the executor's working document: MCP writes are pure last-write-wins and may overwrite human edits. State this clearly in the tool description; humans annotate after investigation concludes. Avoid locks, merge tracking, or versions without a concrete need.\n\nKeep capability contracts stable and discoverable. Use dedicated `submit_research_findings(initiative_id, findings)` rather than adding a research-specific optional parameter to `submit_evidence`; preserve the evidence contract and make the write path explicit.",
"links": [
"Doen product philosophy",
"Evidence, acceptance, and scope"
]
},
"Delegated judgment and corpus stewardship": {
"body": "Automate bounded corpus operations to remove maintenance bottlenecks, not to claim verification of product intent. Jev may admit an unclustered rule as citable guidance only when it confidently judges it sound, well-scoped, and condition-bearing; otherwise leave it raw. A human promotion queue that nobody can service is a stall, not safety: historical throughput was two confirmations in 15 months, with proposals waiting 13 days.\n\nFor merge/generalization proposals, Jev confirms above a confidence threshold; borderline cases go to human review and humans can override. Keep retirement human-gated: removal feels irreversible, and a restorable rejected sentinel is more trustworthy with a person behind it. Frequently auto-approvable criteria may signal weak criteria. Preserve escalation for uncertainty and true judgment calls.",
"links": [
"Doen product philosophy",
"Evidence, acceptance, and scope"
]
},
"Evidence, acceptance, and scope": {
"body": "Distinguish code/mechanism correctness from deployment, behavior, or impact in the world. Tests and local comparisons can isolate a predicate or validate arithmetic, but cannot stand in for a real post-event or production outcome. When that event has not happened, submit available evidence, mark the criterion `needs_judgment`, and append evidence later; do not call pending outcomes failures or assume success.\n\nUse the established evidence channel (SQL plus `RESEARCH_LOG.md`), remeasure baselines at execution time, and correct stale numbers or references to nonexistent infrastructure. Keep measurement intent, not stale literal values. A drain test may prove that counts change by K when K entries are marked; it does not prove the signal causes real action. Likewise local old/new comparisons do not satisfy a deployment-impact criterion.\n\nInterpret constraints by purpose as well as letter. Do not weaken assertions to pass; repairing a stale test interface so its intended guard actually runs is appropriate. Tests encoding a deliberately reversed contract must change in the direction of the new contract. Distinguish an algorithm change from widening the set of existing items it evaluates: e.g. judging all pending proposals can repair stranded work without changing step order, per-item rule, or proposal algorithm.",
"links": [
"Doen product philosophy",
"Simple rules and mechanism testing",
"Production guarantees and benchmark gates",
"Research writes and MCP contracts"
]
},
"Simple rules and mechanism testing": {
"body": "Prefer the simplest legible rule over elaborate gating or hybrids unless evidence shows added conditions matter. For initiative-importance recommendations, hide only when the project has exactly one initiative; do not import completion-date conditions from a different feature merely because they use drift detection.\n\nSeparate mechanism validity from whether today's dataset can show the desired outcome. When input diversity is insufficient, test the mechanism over realistic inputs and independently verify live recomputation correctness; accept that the live effect may emerge only as events accumulate. Six distinct raw event-count combinations cap live score diversity at six. Sweep realistic survived, removed, and citation counts through the rebalanced formula and require >20 scores, then verify live recomputation. Don't claim dispersion prematurely or wait indefinitely for organic data.",
"links": [
"Doen product philosophy",
"Evidence, acceptance, and scope"
]
},
"Production guarantees and benchmark gates": {
"body": "Do not silently weaken an existing production guarantee as an incidental implementation detail. Before a 1536\u21923072 embedding migration, plain vector's 2000-dimension indexing limit meant dropping HNSW would leave retrieval unindexed. The decision was to extend the migration to halfvec + HNSW rather than accept a temporary regression or defer the index question. When a replacement misses a confirmed acceptance bar, diagnose and remeasure before shipping. Jev's dedup classifier scored 55.91% versus the old path's 67.74% on the same 186 gold cases. Revise the rubric and rerun that benchmark; plausible nearest-neighbor/confirmation-bias concerns fit delegated discretion. Do not replace",
"links": [
"Doen product philosophy",
"Evidence, acceptance, and scope"
]
}
}build-doen · transfer
(from resume-builder) Product decision patterns: - Career profiles are durable and separate from editable targeted resumes. Preserve provenance and explicit promote-to-profile flow. `resumes.profile_id` required, seeded from first resume. Increment `profiles.version` on profile/entry/bullet writes; copy to `resumes.profile_version` at generation. Drift = version mismatch, not `updated_at`. - Skills use shared `skills`/`profile_skills`, not profile JSONB; resolve aliases; `resume_keywords.skill_id` FK. PG JSONB + SQLite tests: `JSONB().with_variant(sqlite.JSON, 'sqlite')` per column; PG-only behavior needs dedicated fixture. - Autosave has no revision snapshots. Idle-gap and author-change are checkpoints: one revision/event, coalesce simultaneous causes but record all; idle-gap snapshots even without changes. - Auth: 401 unauthenticated; 404 missing/cross-user; ownership in service queries; never 403. - Generation: ERROR compliance findings block; warnings don't; persist/surface findings. Market-required fields block and prompt. Concurrency hash includes client-editable state (content, presentation, title, status, template_key, region_code), excludes `updated_at`. - Review principle: models judge writing; no regex/rules for feedback, suggestions, reviews, fabrication checks, typed-message routing, or ATS matching in review queue. Model-led, user-driven; don't escalate cheap/Flash failures to dearer model; evals reveal, don't mask failures. Never invent candidate facts: identify uncovered info and provide only fixed code-enforced action sentence, no suggested wording/templates. General/job reviews use same per-bullet classification table for Jev (12/12 defects fixed; severity accuracy 51%→82%). - Start over detaches resume from job target and deletes its thread/queue, including decisions; retain old job-target row. Earlier answers must not survive restart; keep advert for cover letters written against it. Confirm via inline two-step confirmation in rail, explicitly saying resume is not changed: discarded answers matter and one-click control is too easy to hit accidentally. - If generated advert questions don't match template, discard questions/template but retain requirement; don't guess repairs or reject advert. Requirements matter; unused fields don't. Guidance is derived, not authoritative. Document-changing suggestions require uniquely resolved anchored quote + exact replacement, atomic accept/edit, durable dismissal; stale/moved anchors never apply elsewhere. Dismissal hashes category + normalized quote. Calibration findings are read-only/not persisted as calibration output, but may be adopted into guidance; keywords/calibration produce guidance. After accept, adopt returned content/version token to avoid autosave 409. Queue one-at-a-time; positive empty state without job target; no padding with GenAI/checks/compliance. - Worker/API: build from root; copy `api/` + `worker/`, add `api/` to `PYTHONPATH`, merge AI dependencies. Reuse shared clients/actions/compliance; remove stale worker code. Defer package extraction; avoid HTTP proxy pipeline. Prompts in `api/app/prompts/`; preserve interfaces/exact text when moving inline prompts. - Resume editing is whole-document free-text Markdown in
resume-builder · memory
Product decision patterns: - Career profiles are durable and separate from editable targeted resumes. Preserve provenance and explicit promote-to-profile flow. `resumes.profile_id` required, seeded from first resume. Increment `profiles.version` on profile/entry/bullet writes; copy to `resumes.profile_version` at generation. Drift = version mismatch, not `updated_at`. - Skills use shared `skills`/`profile_skills`, not profile JSONB; resolve aliases; `resume_keywords.skill_id` FK. PG JSONB + SQLite tests: `JSONB().with_variant(sqlite.JSON, 'sqlite')` per column; PG-only behavior needs dedicated fixture. - Autosave has no revision snapshots. Idle-gap and author-change are checkpoints: one revision/event, coalesce simultaneous causes but record all; idle-gap snapshots even without changes. - Auth: 401 unauthenticated; 404 missing/cross-user; ownership in service queries; never 403. - Generation: ERROR compliance findings block; warnings don't; persist/surface findings. Market-required fields block and prompt. Concurrency hash includes client-editable state (content, presentation, title, status, template_key, region_code), excludes `updated_at`. - Review principle: models judge writing; no regex/rules for feedback, suggestions, reviews, fabrication checks, typed-message routing, or ATS matching in review queue. Model-led, user-driven; don't escalate cheap/Flash failures to dearer model; evals reveal, don't mask failures. Never invent candidate facts: identify uncovered info and provide only fixed code-enforced action sentence, no suggested wording/templates. General/job reviews use same per-bullet classification table for Jev (12/12 defects fixed; severity accuracy 51%→82%). - Start over detaches resume from job target and deletes its thread/queue, including decisions; retain old job-target row. Earlier answers must not survive restart; keep advert for cover letters written against it. Confirm via inline two-step confirmation in rail, explicitly saying resume is not changed: discarded answers matter and one-click control is too easy to hit accidentally. - If generated advert questions don't match template, discard questions/template but retain requirement; don't guess repairs or reject advert. Requirements matter; unused fields don't. Guidance is derived, not authoritative. Document-changing suggestions require uniquely resolved anchored quote + exact replacement, atomic accept/edit, durable dismissal; stale/moved anchors never apply elsewhere. Dismissal hashes category + normalized quote. Calibration findings are read-only/not persisted as calibration output, but may be adopted into guidance; keywords/calibration produce guidance. After accept, adopt returned content/version token to avoid autosave 409. Queue one-at-a-time; positive empty state without job target; no padding with GenAI/checks/compliance. - Worker/API: build from root; copy `api/` + `worker/`, add `api/` to `PYTHONPATH`, merge AI dependencies. Reuse shared clients/actions/compliance; remove stale worker code. Defer package extraction; avoid HTTP proxy pipeline. Prompts in `api/app/prompts/`; preserve interfaces/exact text when moving inline prompts. - Resume editing is whole-document free-text Markdown in `resumes.content =
resume-builder · structured
- Keep durable sources of truth distinct from actively edited artifacts when both serve real workflows; connect them with traceable, low-cost synchronization. Evidence: career library plus editable resumes, with provenance-based promotion/write-back. No contrary evidence. Trap: user-driven, AI-supported does not make resumes the sole source of truth. - Preserve useful invariants and avoid schema/first-run disruption when goals can be met without it. Evidence: retained `resumes.profile_id NOT NULL`, seeded from first resume; reused provenance fields and `users.preferences`; one role/context/thread per resume. No contrary evidence. Trap: this is not a ban on necessary migrations. - Simplify models when richer structure lacks a committed consumer; retain normalized entities when workflows depend on them. Evidence: collapsed skills absent shared-vocabulary/analytics need; retained canonical skills/aliases for normalization. No contrary evidence. Trap: hypothetical future benefits do not justify structure. - Use validated JSONB for settings consumed together and not queried/aggregated individually; prefer analogous existing storage. Evidence: assistant settings in `users.preferences`, validated by Pydantic. Trap: JSONB still needs validation; typed fields suit query/aggregation needs. - Put preferences and facts at the narrowest scope matching their meaning. Evidence: assistant settings account-level; career facts in profiles; application overrides in resumes (`region_code` overrides account default; `profiles.languages` are spoken languages). Trap: similar names can have distinct meanings/scopes. - Preserve cheap historical metadata when reconstruction is impossible or drift must be detected; cover every mutation path, including nested edits. Evidence: profile versions copied to resumes and bumped on profile/entry/bullet writes; one revision row per checkpoint event. Trap: avoiding schema additions is not worth losing irrecoverable history. - Treat named checkpoint triggers as meaningful: coalesce simultaneous triggers into one revision per event and retain trigger metadata when feasible. Evidence: overlapping author-change/idle-gap triggers yield one flagged row. Trap: not every trigger needs its own row; snapshots need not require content changes. - Define concurrency tokens around client-visible editable state, not incidental row-touch metadata. Evidence: removed `updated_at` from resume `version_token`. No contrary evidence. - In review, suggestion, and feedback paths, let models—not regexes, keyword routing/matching, or conditional rules—produce the judgment. Evidence: owner removed fabrication checks, typed-message keyword routing, and queue ATS matcher; explicitly wants models only. Trap: this does not ban non-judgmental infrastructure. - Make “start over” discard workflow-specific progress and decisions, while detaching rather than destroying reusable/history-bearing context that may explain prior artifacts. Evidence: restart detaches the resume from its job target and deletes thread/queue/decisions, but retains the old target because a role-specific cover letter needs
resume-builder · dream
Product decisions: - Profiles are career libraries for targeting; resumes are editable variants with provenance and promotion back. Keep resumes.profile_id NOT NULL; seed a profile from the first resume. Normalize skills/profile_skills with shared aliases. Bump profiles.version on profile/entry/bullet writes; copy to resumes.profile_version at generation. - Use PostgreSQL JSONB with SQLite variants for ordinary tests and dedicated Postgres integration tests for real DB semantics. Worker builds from repo root and shares API code. Keep one prompt convention under app/prompts; move SYSTEM_PROMPT behavior-preservingly. - Revision idle-gap always creates one snapshot; simultaneous checkpoint triggers coalesce. Unauthenticated=401; cross-user and nonexistent resources both=404. Compliance errors block generation, warnings do not; store/surface both. Derived/read-only reads do not invalidate concurrency tokens; hash editable state, not updated_at. - Resume content is free-text markdown ({markdown: ...}); no required headings or structured fields. Use one Tiptap editor for the whole document. Guidance is the document-change path: exact quote/occurrence anchors and exact replacements; stale anchors cannot be accepted or relocated. Gap findings anchor the following line or have no accept action. Accept atomically updates content/version; editor adopts both. Dismissal persists, hashing category + normalized quote. Validate on read/accept, not autosave. No job target = empty queue; findings are not persisted as guidance until adoption. - Guidance marks are dotted underlines per anchored line. Clicking text places caret and scopes composer to that line; it must not hijack writing/open a proposal. Suggestions are proposal cards in Assistant thread, reachable from agenda, queue popover, or line chips/marks. One proposal at a time; rewrite browser tests for thread behavior, no parity period. - Guided Assistant (C2/RB-21) is product centre: follow updated Tailwind/chadcn prototype, two-tab rail (Assistant, Document), Assistant leads and user steers. Start with ranked agenda, not blank prompt; turns lead to concrete actions. Message box redirects, disabled until role exists; not general-purpose chat. Unfilled placeholders warn but never block PDF download. One role/context/thread per resume; duplicate for another role, but do not copy thread/requirement decisions. Account settings in validated users.preferences JSONB, with per-resume values taking precedence. When advert requirements change, preserve decisions, close disappeared open items, add new ones. - Start over detaches the resume from its job target and deletes its thread and queue, including decisions; retain the old job-target row. It's a true restart, while preserving the advert linked to role-specific artifacts such as a cover letter. Confirm with an inline two-step prompt in the rail, explicitly stating the resume itselfresume-builder · promoted
{
"index": "Resumes are user-owned, directly editable pure Markdown; ordinary typing never waits on AI. Preserve scoped, reversible changes; never invent candidate facts or revive retired surfaces/data. Open `document` for Markdown/rendering; `library` for profiles/provenance/drift; `editor` for autosave/snapshots; `guidance` for anchors/marks; `assistant` for C2 behavior, targeting and model choices; `compliance` for generation rules; `overview` for list/duplicate policy; `access` for privacy; `infrastructure` for editor architecture, tests and deployment.",
"notes": {
"document": "`resumes.content={markdown:\"...\"}` is pure free text: no required headings, recognized sections, fields or structural contract (H2 middle ground declined). RB-12's structured schema shipped correctly then, but is superseded; convert existing JSONB without requiring DDL. Downstream rendering, generation, provenance, keyword insertion/attribution, compliance and outline/reordering must parse Markdown (often with AI) or be redesigned; never invent structure. Broaden supported Markdown; RB-10 remains ATS-safety authority. Ordinary edits remain user-controlled.",
"library": "Profiles are the career library; resumes are directly editable variants. Keep `resumes.profile_id NOT NULL`, seed a profile from the first resume, preserve provenance where meaningful and offer explicit promotion/write-back rather than silent overwrite; don't assume per-bullet fields survive Markdown. Keep `skills` + `profile_skills`, aliases for normalization, and `resume_keywords.skill_id` to canonical skills. Drift uses integer profile version incremented on profile/entry/bullet writes, copied to resume at generation; compare inequality, not parent timestamps.",
"editor": "Continuous typing autosave updates content without creating revisions. Every idle-gap timeout is a separate named trigger and creates exactly one revision, even unchanged or if snapshots already exist. Simultaneous checkpoint conditions make one revision with all trigger metadata; explicit user actions may checkpoint too. Do not conflate autosave and discrete snapshots. Structured-node editor architecture was superseded by pure Markdown.",
"guidance": "On-demand decision queue, one proposal/card at a time; producers include keywords and adopted calibration findings. Anchor `{quote, occurrence}`; accept via scoped atomic find/replace updating Markdown/status together. Stale anchors reject on accept (409) and are omitted from unresolved marks; refresh content/version token after acceptance. Dismissal hash = category + normalized quote. Proposed replacement integrates term into user's sentence. Marks: quiet dotted underline per anchored LINE, quieter than active line's solid underline/tint. Clicking marked line puts caret normally; repeated clicks cycle suggestions sharing line. Panel count gives total. The standalone RB-18/19 panel is folded into Assistant thread; marks remain map/navigation, not caret-triggered hijack.",
"assistant": "C2 Guided Assistant replaces RB-20 findings column/prose panel outright; RB-20 was verified, not defective. Keep backend: stored job profile, OpenRouter calibration, pre-call refusals, exact-once anchor grounding, adopt-to-guidance and tone prompt. Calibration response stays transient; accepted grounded finding becomes guidance item, not another apply path. Guided chat, not general chat/wizard: ranked agenda first, user steers, never blank; route turns to concrete actions, narrow vague asks, clarify missing targets, use state-derived chips/fallbacks, disable input until role exists. No invented facts, unsupported claims or generic rewrites. Proposal diff/reason/Apply/Not now/Undo in thread, reachable from agenda, queue popover, marks. Requirement identity category+ID, not wording: preserve decisions including \u201cI don't have this\u201d; close removed requirements and open genuinely new ones. One target/context/thread per resume; duplicate copies document/context but not thread/decisions. Account settings (language/tone/default market) validated JSONB in existing `users.preferences`; resume values override. Follow prototype: Assistant/Document tabs, properties in Document, Auto adjust in formatting row. Jev/System One for classification; OpenRouter for user-facing prose. Coverage: typed Jev Noul per requirement; route intent via fast keyword pass, Jev Choice on misses. If `TYPESAFE_API_KEY` absent, gracefully degrade. Resume review always `google/gemini-2.5-flash`; hard/light tiers unset. No dearer-model retries: surface failures for evaluation. Missing resume evidence gets fixed action sentence only, no suggested wording/template; enforce in code.",
"compliance": "Compliance ERROR blocks targeted generation; WARNING does not. Persist and surface every finding during targeted generation; error prompts user (e.g. missing nationality in ME), warning-only markets remain usable. Pure Markdown invalidates section/field assumptions; redefine required inputs and interpretation. Hand-created resumes remain unchecked: compliance currently persists only during targeted generation. If generated advert questions fail their template, drop those questions/template but keep the requirement; never guess repair or reject the entire advert. Model eval: 28 cases found no alternative beating Flash on defect recall/dimension accuracy; Pro slow, o3-mini weaker/no strict schema, Mistral rate-limited, thinking budget caused empty replies.",
"overview": "Overview tables have"
}
}resume-builder · wiki
{
"Product principles and scope": {
"body": "Users own their professional history, documents, edits, and exports. AI is an on-demand reviewer, enhancer, and localizer\u2014not a gate on editing or progress. Never invent candidate facts or imply unsupported experience; state uncovered requirements as uncovered using the fixed code-enforced sentence. Localization adapts structure, length, formatting, and cultural expectations to the market, not literal translation. Keep hard rejection risks separate from advisory conventions and document-improvement advice. Treat approved initiative scope as fixed: substantial new interaction models or durable state need a new initiative; build on shipped backend rather than disguising workflow changes as polish. Preserve verified decisions as historical records when later direction supersedes them.",
"links": [
"Resume document model",
"Assistant and role context",
"Guidance and suggestions",
"Compliance and export",
"AI behavior and evaluation"
]
},
"Resume document model": {
"body": "Current target: directly editable resumes stored as `resumes.content = {markdown: ...}`. No required headings, fields, sections, bullet destinations, or structural contract; even H2 is not authoritative. RB-12's structured schema remains correct as shipped but is superseded as product direction. Convert existing rows without requiring DDL; downstream features must not depend on `section_order`, `included_fields`, or named sections. Use document understanding when interpretation is needed. RB-10 defines supported Markdown and ATS-safe rendering; the renderer must render Markdown. Earlier structured/Tiptap schemas and renderer-HTML editing approaches are implementation history, not the current content model.",
"links": [
"Product principles and scope",
"Editing and revision behavior",
"Guidance and suggestions",
"Compliance and export",
"Profile, drift, and skills"
]
},
"Profile, drift, and skills": {
"body": "Keep both a career library and directly editable resume documents: the library supports targeting across the user's full history; the resume is the editing surface. `resumes.profile_id` stays NOT NULL; seed a profile from the first resume. Preserve provenance and promote edits where feasible, but free-text content means provenance cannot be assumed to attach to bullets or fields; dependent specs must redefine it. Track generation-time state: increment `profiles.version` on every profile, entry, or bullet write and copy it to `resumes.profile_version` when generating a variant. Compare versions for drift; parent `updated_at` misses child edits and historical state cannot be reconstructed. Keep normalized `skills`/`profile_skills` where canonical shared vocabulary matters; aliases resolve variants such as K8s/Kubernetes. Keyword evidence must work with free-text resumes.",
"links": [
"Resume document model",
"Product principles and scope"
]
},
"Editing and revision behavior": {
"body": "The content target is free Markdown, not RB-12's structured custom-node document. The earlier choice of a single whole-resume Tiptap schema and the renderer-HTML-as-editor approach record superseded implementation decisions; do not treat them as current structural requirements. RB-10 owns supported Markdown and ATS-safe rendering. Preserve the underlying interaction lessons: autosave during active typing does not itself create revisions; each idle-gap timeout creates exactly one snapshot. Overlapping checkpoint triggers produce one revision, retaining all fired reasons. Concurrency tokens represent client-editable document state (content, presentation, title, status, template, market), not `updated_at` or derived writes; reading/recomputing feedback must not invalidate an editor. Browser behavior such as contentEditable caret/selection needs real-browser tests, not only DOM simulation.",
"links": [
"Resume document model",
"Guidance and suggestions",
"Product principles and scope"
]
},
"Guidance and suggestions": {
"body": "Guidance is a derived open-work queue, not authoritative stored suggestions. It began with keywords; grounded calibration findings can also produce items. This is advice that changes documents, not a compliance verdict. Anchor by exact quote plus occurrence and proposed replacement. Accept atomically replaces only that occurrence and updates status; stale or unresolved anchors are never applied elsewhere (accept returns 409). Dismissal identity is hash(category + normalized quote). Gaps may anchor at insertion points or have no action. Document marks are one per anchored line, not per item: active is solid/tinted; other open work is quiet/dotted. Clicking a line leaves normal caret behavior and scopes the composer to it; line chips expose work and co-located items can be cycled. Marks locate work, they do not hijack writing or automatically open proposals. Queue count\u2014not mark count\u2014reports outstanding items. The Guided Assistant replaces separate findings and suggestions panels; proposals live in the thread.",
"links": [
"Resume document model",
"Assistant and role context",
"Product principles and scope"
]
},
"Assistant and role context": {
"body": "C2 Guided Assistant is a new initiative, not a reshaping of RB-20. RB-20 remains shipped backend foundation: role-profile storage, OpenRouter calibration, pre-call refusals, exact-once anchor filtering, finding-to-guidance path, and prompt tone. The assistant is guided chat-like, not general chat or a fixed wizard: never start blank; lead with a ranked agenda, let the user steer, and resolve each turn to a grounded action. Route vague/untargeted asks to known actions, clarification, or fallback; do not invent claims. Proposals show diff, reason, Apply, Not now, Undo. One resume means one role, context, and thread; duplicate for another role, copying document/context but not conversation or requirement decisions. Account defaults (language, tone, default market) are validated in `users.preferences` JSONB; per-resume settings such as `region_code` override. `profiles.languages` means spoken languages. On advert re-extraction, retain decisions by stable requirement identity (category + requirement ID, not wording); \u201cI don't have this\u201d is durable career information. Close removed open requirements; create items only for genuinely new ones. Rail: Assistant and Document tabs; properties in Document, Auto adjust in formatting row.",
"links": [
"Product principles and scope",
"Guidance and suggestions",
"AI behavior and evaluation",
"Resume document model"
]
},
"AI behavior and evaluation": {
"body": "Generated user-facing prose uses OpenRouter; existing Jev/System One handles classification. Coverage verdicts are typed Jev Noul calls, one per requirement. Intent routing uses fast/free keyword matching and falls back to Jev Choice on misses; if `TYPESAFE_API_KEY` is unset, classification degrades to existing behavior. Resume analysis uses `google/gemini-2.5-flash` for every call; hard/light tiers remain",
"links": [
"Assistant and role context",
"Product principles and scope",
"Guidance and suggestions"
]
}
}resume-builder · transfer
(from build-doen) # Doen — product decision memory Doen is a spec framework for product engineers (designers, software engineers, product owners): one durable intent artifact shared across all three. It separates constraints from discretion, escalates genuine intent calls, and uses precedent to inform comparable decisions. Do not frame it as distilling abstract engineering rules. The heuristic flywheel was retired (2026-10-02): 228 rules yielded 5 useful ones, with a circular success metric. See `docs/design-principles.md`, “Retiring the heuristic flywheel.” ## Product priorities 1. **Capture human reasoning.** All 25 recorded decisions were raised by agents; 9 product initiatives yielded zero. Product calls during shaping are not being recorded. Product precedent is empty; capture comes before retrieval. 2. **Ground artifacts.** Doen checks executors rigorously but not its own generated content. Specs have referenced nonexistent columns, tables, and surfaces; a learn record asserted an outcome that did not occur. Especially hard for designers to detect. 3. **Retrieve precedent** once there is a product corpus. Prototype and measurement harness exist; 18% useful is the baseline to beat. Jev is not the verifier for this audience: it auto-approves test criteria 71% of the time and human judgment 0% by design, while product people mostly write behavior and human judgment. Jev may help draft, ground, detect conflicts, and weigh precedent. ## Observed preferences (contextual; don't overgeneralize) - Stage-inapplicable content may be absent: render Learn module only in Learn, not disabled in Draft/Building. - Research findings are executor-owned working documents; MCP writes are last-write-wins. Document overwrite behavior; humans annotate after investigation. Preferred simplicity over locks/versioning. Specific to this field. - Distinct domain-specific write paths can merit dedicated tools when preserving contract and improving discoverability: chose `submit_research_findings(initiative_id, findings)` over extending `submit_evidence`. - Initiative Importance Validation: hide recommendation only when project has exactly one initiative; chose simple rule over hybrid/BD-46 date condition. Rationale unknown; local evidence only. - Verify intended mechanisms even if live data cannot exhibit their outcome: for shaping-edits heuristic feedback, use realistic event-count sweep/property tests showing >20 distinct scores, plus live recompute correctness. - Avoid human gates that stall useful, reversible operations; keep humans for uncertainty and consequential actions. In Two-Tier Heuristic Corpus, confirm high-confidence merge/generalization proposals automatically; queue borderline cases for human judgment with override. Retirement remains human-gated. - Interpret constraints by purpose, not overly literally: preserve protected algorithm/contract invariants while making the smallest structural change needed to fulfill intent (e.g. repair stale eval unpacking signature in
Dream stages (recorded from runs after 2026-11-27)