Exploration describes the data and asks what it cannot tell - #571
Open
WaylandYang wants to merge 2 commits into
Open
Exploration describes the data and asks what it cannot tell#571WaylandYang wants to merge 2 commits into
WaylandYang wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: WaylandYang <wayland0916@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: WaylandYang <wayland0916@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #570. Stacked on #567 (it changes
explore_mappings, which #503 already rewrote there); retarget todevonce #567 lands.Chat without conventions answers 2 of 18 questions on the wide corpus; with six conventions written as prose it answers 14 (#520). The conventions had nowhere to live. This gives them a home and lets exploration write the half it can.
What changes
knowledge_basesgains three columns (migration0047):data_descriptionanddata_questions, written by exploration every run;data_conventions, written by a person throughPATCH /kbs/{id}and never touched by exploration. Two writers, two paths (kbs::set_data_descriptionvskbs::update); mixing them in one field would let the next run overwrite the answers.ask.mjs/mappings.mjs --conventionswrite the truth file’sconventionsthrough the PATCH.Measured (wide corpus, fresh bases, #570 base)
What exploration wrote for
dwd_ord_dtl, unprompted: grain (“one row is one line item within an order”), the keys, “money amounts … are in cents”, every status and channel code, six time axes, “amt_total is pre-discount, amt_pay is paid amount”, “price_old … no longer written after 2023 migration”. And eight questions, six of which are the truth file’s conventions verbatim in spirit: whichord_stcount, whichpay_stcount, isis_testexcluded,amt_payoramt_totalfor revenue, are refunds already subtracted.Two things the table says. The description alone moves nothing — the model already gets grain and units from the schema document; what it lacked was never structure. Conventions move exploration for the first time: 0 to 3 definitions covered, and the five wrong proposals now all carry
ord_st IN (2,3,4) AND is_test != 1and differ from the truth by a column choice (amt_totalforamt_pay) or a filter variant (ord_stwhere money usespay_st) — the same ambiguity the prose experiment found, now visible in proposals instead of answers. Six general rules in the prompt are worth 11; the prose page that also spelled out 18 definitions was worth 14; structured definitions 17. The order of work follows.Verified
parse_description(fenced JSON, blank questions dropped, empty description refused).Does not touch
Mappings.tsx(#552). Toucheschat.rsin the prompt-assembly block only (#548 rewrites the loop; the injection is twelve lines before the semantic-layer block).🤖 Generated with Claude Code