C / prompts

Commit History

general_chat_prompt: strip to vanilla — just case + initial_argument + perfect_answer, no behavior steering
bf30a9b
verified

linxinhua commited on

general_chat_prompt: drop defensive "do not reveal discussion plan / probe / framework" rule since none are provided to the bot
3b27385
verified

linxinhua commited on

B condition: add post-essay general chat. After perfect_answer is shown, msg_input + send_btn become interactive; on_send builds messages from case + initial_argument + perfect_answer (NOT discussion_plan) and calls LLM. Logs each chat turn via SessionLogger.add_turn(manager_verdict=None).
478f607
verified

linxinhua commited on

STEP 1 framework detection: full reasoning-mode diagnosis with refined mixed-drafts rule. STEP 1 replaces keyword indicator lists with (a) identify load-bearing reasoning move, (b) 3 diagnostic questions in order (predicted outcomes / principles regardless of outcomes / character of an actor), (c) topic-vs-load decoupling table, (d) 'remove the lens' verification test. Mixed drafts rule: NOT a hard consequence default. Instead, pick the participant's CORE argument by explicit emphasis markers ('the most important reason' / 'perhaps for me' / 'the thing that is most ethically questionable is X') (highest priority), argumentative weight, then 'remove the lens' decisive test. Consequence is last-resort fallback only. Tested against pilot Kantian argument 5/5 correctly → duty_rights. Other downstream sections (essay, plan, hooks) unchanged.
1ce0e2b
verified

linxinhua commited on

STEP 1 framework detection rewritten from keyword-matching to reasoning-mode diagnosis. Previous prompt used indicator keyword lists ('right to X', 'consent', 'privacy' → duty_rights, etc.), which would misclassify drafts that mention a topic but argue through a different framework. New STEP 1 asks the LLM to (a) identify the load-bearing reasoning move, (b) ask 3 diagnostic questions in order (predicted outcomes / principles regardless of outcomes / character of an actor), (c) apply a topic-vs-load decoupling table, (d) verify via 'remove the lens' test. Mixed drafts hard-default to consequence. Regression tested in socratic_frame (8/8 cases including 1 synthetic privacy+consequence, 4 pilot consequence+privacy, 3 pilot duty_rights+privacy). Other downstream sections (essay generation, discussion plan, hooks) unchanged.
9fda70f
verified

linxinhua commited on

UI parity with socratic/socratic-frame: (1) hide Gradio Chatbot top chrome via show_label=False + CSS for share/clear/delete/trash; (2) strip the '# Case: ...' H1 from the initial chatbot message via display-only CASE_TEXT_DISPLAY; (3) hide the left yellow feedback-hint column (guide-col visible=False) so chatbot expands left, and drop the bottom-row mirror column to keep action buttons aligned under right-col.
2cf117d
verified

linxinhua commited on

UI parity with socratic/socratic-frame: (1) hide Gradio Chatbot top chrome via show_label=False + CSS for share/clear/delete/trash; (2) strip the '# Case: ...' H1 from the initial chatbot message via display-only CASE_TEXT_DISPLAY; (3) hide the left yellow feedback-hint column (guide-col visible=False) so chatbot expands left, and drop the bottom-row mirror column to keep action buttons aligned under right-col.
6774e16
verified

linxinhua commited on

Deploy: perfect_answer prompt simplified to consequence-only (always generates plan; duty-rights / responsibility-character branches removed)
4e5ac21
verified

linxinhua commited on

Deploy: no_ai control bot — chapters TOC + essay logging
ab7ad8b
verified

linxinhua commited on

Deploy: no_ai control bot — chapters TOC + essay logging
ab1c2aa
verified

linxinhua commited on

Deploy: no_ai control bot — chapters TOC + essay logging
fdffc74
verified

linxinhua commited on

Deploy: no_ai control bot — chapters TOC + essay logging
a6ae5fa
verified

linxinhua commited on

Deploy: no_ai control bot — chapters TOC + essay logging
7b656eb
verified

linxinhua commited on