You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Choose integration boundaries and implementation slices #124
Given the chosen recognition/state model, what integration contracts and implementation slices will yield a complete, independently verifiable second build?
Decide ownership and interfaces across source-derived gender-specific data and its targeted correction, season/age/license calculation, lookup recognition, intake/context/chat routing, and flat answer rendering. Preserve existing standalone lookups, source/version requirements, and the unchanged renderer. Identify the minimum verification needed at each slice, including test-first route-contract changes, data drift checks and existing format checks; do not replace normal automated validation with the LLM comparison.
Consult grilling, domain-modeling and codebase-design. The resolution should provide an agreed implementation specification and create/link ordinary implementation issues outside the map's decision children. Include dependencies, a fresh-main worktree/branch strategy, documentation obligations and handoff conditions. Build nothing in this decision ticket.
Prerequisite: Choose the independent recognition and follow-up state model. Coordinate handoff with Define the qualitative LLM comparison method, an independent decision rather than a prerequisite for choosing integration boundaries.
Use the confirmed recognition and follow-up state-model resolution as a prerequisite. Which typed interface and state-storage/write-ordering contract will preserve its invariants through synchronous bypass and asynchronous intake/chat completion, including a newer turn arriving before an older job finishes? Which checks prove these transitions through the real chat flow? Include this now-specific integration risk and the implementation handoff/verification details in this decision; they no longer need a separate fog placeholder on the map.
Resolution: shared pure lookup interface and four sequential implementation slices
The human agreed to the simplified plan: keep lookup rules together, prevent old asynchronous work from changing newer lookup input, and build source data -> pure lookup/calculation/answers -> chat integration -> final checks/documentation on a new feature branch. No feature code is built by this decision ticket.
Ownership and interface
Source-derived facts and gender-aware access belong to knwu_categories; source columns and the single approved U9-girls cyclocross correction remain auditable.
The lookup module owns Python recognition, parameter normalization, selector-preserving profile transitions, eligibility/consistency checking, calculation and rendering. Its typed operations are recognize_turn(message, previous_state, today, rules), complete_with_intake(needs_information, intake_result, today, rules), and render_answer(ready, language_level). Small tagged dataclasses/unions distinguish Ready, NeedsInformation, NotEligible and their proposed next state. No model-first parser, new framework or duplicated chat/intake rules.
Intake completion is structurally limited to NeedsInformation. Rejected input can still be classified for expert/router selection, never promoted to a bypass. Ready requests answer synchronously without intake/agent calls. Ground missing facts in the actual supplied input/profile; do not infer a birth year from age or invent facts.
Date and source rules are injected; current calculation produces structured answer data, while stored profiles retain validated inputs and selector identity only. Rendering uses that ready data, not another parse of raw text. Exact type/parameter naming can be refined during implementation without changing this contract.
Chat owns separate per-conversation, in-memory lookup state, not the feedback-history deque. No database or new persistence layer. The eval runner uses the same lookup interface and replays its existing ordered inputs/fixed peildatum.
Asynchronous update contract
Use a per-conversation lookup revision. At valid chat-request acceptance, advance the revision and synchronously apply the recognized pending/completed/cleared next state before awaiting external work. Capture that decision/revision in any background job. A later intake completion or failure may change lookup state only if its revision is still current. Do the check/update without an intervening await under the existing execution model, or use an equivalent narrowly scoped atomic operation.
The revision protects lookup state only: do not cancel jobs, reject concurrent questions, redesign provider conversation ordering, reorder feedback history or alter each job's existing response/status semantics. Prove the race with controlled async test events rather than sleep timing. Any broader provider-conversation concurrency issue remains separate, not silently included in this feature.
Implementation tickets and native dependency order
These are ordinary implementation children of the original feature, not additional wayfinder decision children. Each holds its slice's detailed implementation/acceptance specification:
A slice must keep its changed callers and tests consistent; do not defer known failures to the last slice. This ordering is not permission to deploy incomplete intermediate builds.
Branch/worktree and verification handoff
At execution time create feature/102-category-overview-v2 from freshly fetched current origin/main, recording the base. If it already exists, inspect/reuse it without reset. Each implementation ticket uses its own branch/worktree and PRs into that integration branch; begin the next after its prerequisite is merged there. Only the complete build is proposed to main. The preserved feature/bypass-verzetten-en-categorieen-tonen stays unchanged; do not copy/cherry-pick its implementation. No branches are created in this planning resolution.
Use TDD at the source-data, pure-module and actual POST /chat seams. New/changed routes get test-first route-contract rows with herkomst; preserve existing historical regression families and change old expectations only where the new feature specification deliberately differs. Test rejected input with adversarial intake extras, pair-preserving corrections, pending/completed/reset behavior, zero model calls and controlled old-job/new-turn ordering. Keep the existing flat-format guardrail, unchanged renderer and fixed eval date.
Run targeted tests and pyright per slice; the final handoff runs the full existing Python suite once, pyright, existing Node tests and docs link checks, reporting real skips/blockers rather than baseline assumptions. Use the existing tooling and review/commit each actual implementation slice. Keep source/version metadata, B1/B2 agreements, the narrow ADR exception and directly related docs/prompts/instructions consistent. No paid eval, library sync, agent publication, deployment or main merge is authorized here.
The lightweight comparison resolution remains unchanged: the human tries a few questions for routing/answer quality, an LLM judges code quality/maintainability, and the human chooses. The final handoff records both commit references, existing run/routing-inspection steps and material environment differences; it does not run that comparison or choose a winner.
Map disposition
The specification is the original feature plus its flat-output amendment, the confirmed recognition/state resolution, and this integration resolution with the linked implementation acceptance specifications. The flakiness attribution was already corrected in the prerequisite; no remaining feature-specific bug is assumed. The implementation path is clear and no planning fog or unresolved decision remains. Close the map after indexing this decision.
This was tracker-only planning. No repository files changed, so TDD/typechecking/code-review execution and a code commit are not applicable to this decision itself; they are required for the implementation slices.
Activity
Atrium0804 commentedon Nov 16, 2026
Resolution: shared pure lookup interface and four sequential implementation slices
The human agreed to the simplified plan: keep lookup rules together, prevent old asynchronous work from changing newer lookup input, and build source data -> pure lookup/calculation/answers -> chat integration -> final checks/documentation on a new feature branch. No feature code is built by this decision ticket.
Ownership and interface
knwu_categories; source columns and the single approved U9-girls cyclocross correction remain auditable.recognize_turn(message, previous_state, today, rules),complete_with_intake(needs_information, intake_result, today, rules), andrender_answer(ready, language_level). Small tagged dataclasses/unions distinguish Ready, NeedsInformation, NotEligible and their proposed next state. No model-first parser, new framework or duplicated chat/intake rules.Asynchronous update contract
Use a per-conversation lookup revision. At valid chat-request acceptance, advance the revision and synchronously apply the recognized pending/completed/cleared next state before awaiting external work. Capture that decision/revision in any background job. A later intake completion or failure may change lookup state only if its revision is still current. Do the check/update without an intervening await under the existing execution model, or use an equivalent narrowly scoped atomic operation.
The revision protects lookup state only: do not cancel jobs, reject concurrent questions, redesign provider conversation ordering, reorder feedback history or alter each job's existing response/status semantics. Prove the race with controlled async test events rather than sleep timing. Any broader provider-conversation concurrency issue remains separate, not silently included in this feature.
Implementation tickets and native dependency order
These are ordinary implementation children of the original feature, not additional wayfinder decision children. Each holds its slice's detailed implementation/acceptance specification:
A slice must keep its changed callers and tests consistent; do not defer known failures to the last slice. This ordering is not permission to deploy incomplete intermediate builds.
Branch/worktree and verification handoff
At execution time create
feature/102-category-overview-v2from freshly fetched currentorigin/main, recording the base. If it already exists, inspect/reuse it without reset. Each implementation ticket uses its own branch/worktree and PRs into that integration branch; begin the next after its prerequisite is merged there. Only the complete build is proposed to main. The preservedfeature/bypass-verzetten-en-categorieen-tonenstays unchanged; do not copy/cherry-pick its implementation. No branches are created in this planning resolution.Use TDD at the source-data, pure-module and actual POST /chat seams. New/changed routes get test-first route-contract rows with
herkomst; preserve existing historical regression families and change old expectations only where the new feature specification deliberately differs. Test rejected input with adversarial intake extras, pair-preserving corrections, pending/completed/reset behavior, zero model calls and controlled old-job/new-turn ordering. Keep the existing flat-format guardrail, unchanged renderer and fixed eval date.Run targeted tests and pyright per slice; the final handoff runs the full existing Python suite once, pyright, existing Node tests and docs link checks, reporting real skips/blockers rather than baseline assumptions. Use the existing tooling and review/commit each actual implementation slice. Keep source/version metadata, B1/B2 agreements, the narrow ADR exception and directly related docs/prompts/instructions consistent. No paid eval, library sync, agent publication, deployment or main merge is authorized here.
The lightweight comparison resolution remains unchanged: the human tries a few questions for routing/answer quality, an LLM judges code quality/maintainability, and the human chooses. The final handoff records both commit references, existing run/routing-inspection steps and material environment differences; it does not run that comparison or choose a winner.
Map disposition
The specification is the original feature plus its flat-output amendment, the confirmed recognition/state resolution, and this integration resolution with the linked implementation acceptance specifications. The flakiness attribution was already corrected in the prerequisite; no remaining feature-specific bug is assumed. The implementation path is clear and no planning fog or unresolved decision remains. Close the map after indexing this decision.
This was tracker-only planning. No repository files changed, so TDD/typechecking/code-review execution and a code commit are not applicable to this decision itself; they are required for the implementation slices.