Skip to content

Phase 2: Active Recall Flashcard Hub ​

Scope: Master Flashcard Decks for Phase 2: The Engineering of Reasoning
Curriculum Source: docs/plan/02_phase2_engineering_of_reasoning.md
Interaction: Click any card or press Space to flip. Use ← Prev and Next β†’ to navigate.


πŸ“š Deck 1: Logical Decomposition (CoT & Chain of Draft) ​

Explore autoregressive computational limits, KV-cache working memory, and token compression via Chain of Draft:

πŸ—‚οΈ Deck 1: Logical Decomposition (CoT & CoD)

Card 1 of 6
Logical DecompositionClick or press Space to flip β†Ί

Why does standard Zero-Shot prompting fail on complex multi-step reasoning tasks?

Fixed Compute Budget per Token
Logical Decomposition β€’ AnswerClick to flip back ↻

Autoregressive transformers perform a fixed number of feed-forward matrix operations per generated token. In zero-shot prompting, the model must solve all intermediate steps within the single final output token, causing reasoning failure.

πŸ’‘ Architect Takeaway: Complex logical deduction requires generating intermediate tokens to extend the computation.

πŸ“š Deck 2: Strategic Exploration (Tree of Thoughts & Consensus) ​

Master non-linear graph search, heuristic pruning, Tree of Thoughts, and Self-Consistency:

πŸ—‚οΈ Deck 2: Strategic Exploration (ToT & Self-Consistency)

Card 1 of 5
Strategic ExplorationClick or press Space to flip β†Ί

Why is standard Chain-of-Thought fundamentally a greedy search with zero backtracking?

State s_0 β†’ s_1 β†’ s_2 ... β†’ s_n (branching factor = 1)
Strategic Exploration β€’ AnswerClick to flip back ↻

CoT predicts tokens sequentially along a single path. If an erroneous assumption or calculation error occurs at step 1, the model cannot backtrack; every subsequent token reinforces the flawed premise, causing compounding hallucinations.

πŸ’‘ Architect Takeaway: Linear generation cannot explore multiple alternatives or recover from early missteps.

πŸ“š Deck 3: Abstraction Techniques (Step-Back, Meta-Prompting, Analogical) ​

Master first-principles abstraction, the Meta-Refiner, and autonomous exemplar priming:

πŸ—‚οΈ Deck 3: Abstraction Techniques

Card 1 of 3
Abstraction TechniquesClick or press Space to flip β†Ί

How does Step-Back Prompting improve reasoning on complex domain questions?

Abstraction Techniques β€’ AnswerClick to flip back ↻

Step-Back prompting instructs the model to derive high-level governing principles or first-principles concepts before attempting to solve a detailed, parameter-heavy query. Anchoring on abstract principles prevents the model from getting lost in details.

πŸ’‘ Architect Takeaway: Abstract first, then deduce specifics from the established governing principles.

πŸ“š Deck 4: Interactive Reasoning (The ReAct Framework) ​

Master the Thought-Action-Observation loop, compulsory stop sequences, context truncation, and schema recovery:

πŸ—‚οΈ Deck 4: Interactive Reasoning (ReAct)

Card 1 of 5
Interactive ReasoningClick or press Space to flip β†Ί

What is the core execution loop of the ReAct (Reason + Act) framework?

Thought β†’ Action β†’ Observation β†’ Thought
Interactive Reasoning β€’ AnswerClick to flip back ↻

The model alternates between decomposing its current state and planning in a 'Thought', emitting a tool invocation in an 'Action', pausing execution while the external environment runs the tool and returns an 'Observation', and then replanning.

πŸ’‘ Architect Takeaway: ReAct grounds reasoning in dynamic real-world facts rather than static training weights.

πŸ“š Deck 5: Trajectory Analysis (Debugging, Deviations & Doom Loops) ​

Master multi-step debugging, diagnosing reasoning deviations, incorrect tool selection, and doom loop recovery:

πŸ—‚οΈ Deck 5: Trajectory Analysis

Card 1 of 4
Trajectory AnalysisClick or press Space to flip β†Ί

What is a Reasoning Trajectory in autonomous agent execution?

Ο„ = (s_0, a_0, o_0, s_1, a_1, o_1, ... s_t)
Trajectory Analysis β€’ AnswerClick to flip back ↻

A Reasoning Trajectory is the complete chronological sequence of states, thoughts, actions, and observations recorded over an agent's multi-step session, capturing how the agent navigated from problem statement to final resolution.

πŸ’‘ Architect Takeaway: Trajectory inspection in LangFuse reveals exactly where the model lost alignment or stalled.

πŸ“š Deck 6: Compulsory Security (Alignment Auditing & Goal Hijacking) ​

Master semantic-layer defenses, the AlignmentCheck gate, and verifiable audit proof generation:

πŸ—‚οΈ Deck 6: Compulsory Security (Alignment Auditing)

Card 1 of 3
Compulsory SecurityClick or press Space to flip β†Ί

What is Semantic Goal Hijacking in agentic workflows?

Compulsory Security β€’ AnswerClick to flip back ↻

When an agent fetches external data (e.g. customer email, invoice PDF, webpage), the untrusted text may contain an indirect prompt injection that commands the model to abandon its original objective and execute malicious actions (e.g. key theft).

πŸ’‘ Architect Takeaway: Indirect injection in tool observations is the #1 security vulnerability in autonomous agents.

Master AI Architecture Training Program