FENCE™ English Engine
Start Here: https://edukatesg.com/article-1-fence-english-engine/
Diagnostics Module — Failure Modes + Crisis Scale + Rubric Logic Engine (Almost-Code) — v1.0
ARTICLE.MODULE
Module.Diagnostics
ARTICLE.GOAL
Provide a deterministic diagnostic engine that outputs:
failure_modes_detected (FM list)crisis_level (C0..C5)rubric_score (/50)band (P0/P1, P2, P3-, P3+)one_paragraph_repair_recommendation (Mode A/B/C/D)
0) INPUT / OUTPUT
DIAG.INPUT
essay_textlevel ∈ {P5, P6}time_limit_used? (optional)scene_id? (optional)
DIAG.OUTPUT
FM = {FM1..FM8} detectedC = C0..C5S = rubric_score 0..50BAND = {P0P1, P2, P3m, P3p}REPAIR = {A|B|C|D} + paragraph_target
1) FAILURE MODES (FM) — Definitions (LOCK)
FM1 FlatPlot
- Trigger is weak OR escalation lacks stepwise worsening.
FM2 WeakCrisis
- No clear peak moment OR peak is too small OR peak is rushed (no zoom-in).
FM3 ToldEmotion
- Emotion is stated (“I was sad/scared”) without body reaction or sensory signal.
FM4 WeakVerbs
- Overuse of generic verbs:
went, got, said, saw, looked, walked, ran - Low verb variety.
FM5 MoralStickerEnding
- Ending states a generic lesson without consequence, internal change, or future action.
FM6 DialogueOverload
- Dialogue dominates action; conflict is “talked” not “shown”.
FM7 ParagraphImbalance
- One paragraph excessively long OR too many single-sentence paragraphs.
FM8 TimeCollapseEnding
- Ending is abrupt, rushed, or missing; resolution not earned.
2) CRISIS SCALE (C0–C5) — Classifier (LOCK)
C0 NoCrisis
- No meaningful problem; “nice day” story.
C1 MinorExternal
- Small inconvenience; low stakes.
C2 RealExternalStakes
- Something meaningful at risk (loss/safety/reputation) but mostly external.
C3 EmotionalPeakZoom
- Clear peak moment with slowed-down detail + body reaction/sensory.
C4 MoralChoiceCrisis
- Character must choose between right/wrong (temptation, integrity, courage).
C5 IdentityShiftCrisis
- Crisis forces identity-level change; ending shows transformed behaviour.
3) RUBRIC (10×5 = 50) — Scoring Grid (LOCK)
Score each 1–5:
- Plot Control (5-Box)
- Trigger Clarity
- Escalation Strength
- Crisis Intensity
- Resolution Quality
- Emotion Show-Not-Tell
- Sensory Precision
- Vocabulary Power
- Sentence Flow
- Time Stability
BAND.MAP
0..20 -> P0P121..35 -> P236..45 -> P3m46..50 -> P3p
4) DIAG.LOGIC (Deterministic Heuristics)
4.1 FM4 WeakVerb Detector (simple)
- Count occurrences of:
went, got, said, saw, looked- If total ≥ 6 →
FM4 = TRUE
4.2 FM8 TimeCollapse Detector (simple)
- If last paragraph < 2 sentences OR contains “In the end” + generic line only →
FM8 = TRUE
4.3 FM5 MoralSticker Detector (simple)
- If ending contains moral-only phrase patterns:
- “I learnt that…”
- “I realised that…”
- “From then on…”
AND lacks: - consequence detail (what happened)
- internal change (emotion/realisation tied to event)
- future action (specific behaviour)
→FM5 = TRUE
4.4 FM3 ToldEmotion Detector (simple)
- If essay uses “I was (happy/sad/scared/angry)” repeatedly
AND lacks body reaction markers near emotion: - {trembled, clenched, heartbeat, tears, breath, throat, palms, stomach}
→FM3 = TRUE
4.5 FM6 DialogueOverload Detector (simple)
- If dialogue lines (quotes) > 35% of paragraphs →
FM6 = TRUE
4.6 FM1 FlatPlot Detector (semi)
- If escalation has ≤ 1 worsening step OR conflict appears only near end →
FM1 = TRUE
4.7 FM2 WeakCrisis Detector (semi)
- If no “peak” paragraph detected (highest tension) OR peak is < 3 sentences →
FM2 = TRUE
4.8 FM7 ParagraphImbalance Detector (simple)
- If any paragraph > 8 lines OR > 40% of total length →
FM7 = TRUE
5) CRISIS CLASSIFICATION LOGIC
If MoralChoice markers present:
- {tempted, cheat, steal, lie, confess, blame, courage, right thing}
AND conflict includes decision moment → setC ≥ C4
If Identity-shift markers present:
- {ashamed, pride, who I was, could not forgive myself, changed}
AND ending shows changed behaviour → setC = C5
Else if peak moment has zoom-in:
- body reaction + sensory + slowed action → set
C = C3
Else if meaningful external stakes present:
- set
C = C2
Else if minor inconvenience:
- set
C = C1
Else:
C = C0
6) REPAIR MODE SELECTOR (OPR)
Choose repair mode based on dominant failure mode:
- If
FM4 TRUE→REPAIR = Mode A (verbs) - Else if
FM3 TRUE→REPAIR = Mode B (body+sensory) - Else if
FM2 TRUE→REPAIR = Mode C (crisis slow-down) - Else if
FM5 TRUE OR FM8 TRUE→REPAIR = Mode D (ending rewrite) - Else → choose the lowest rubric category as repair target.
Paragraph Target Rule
- If repair is Crisis-related → target the crisis paragraph.
- If repair is Ending-related → target last paragraph.
- If repair is Verb/Emotion → target paragraph with most weak verbs / most told emotion.
7) OUTPUT FORMAT (STRICT)
Return exactly:
Detected_FMs: [ ... ]Crisis_Level: CxRubric_Score: NN/50Band: PxRepair_Target: Paragraph #Repair_Mode: A|B|C|DRepair_Instruction: (one instruction only)Top_Strengths: (2 bullets)Top_Leaks: (2 bullets)
No extra paragraphs. No rewriting.
8) NEXT ARTICLE POINTER
Next:
ARTICLE 6 — AI Auto-Diagnostics Prompt Pack (Examiner Mode + Fast Mode + Targeted Scans)
Start here if you want the full sequence:
Vocabulary OS Series Index:
https://edukatesg.com/vocabulary-os-series-index/
Fence English Learning System:
- https://edukatesg.com/article-1-fence-english-engine/
- https://edukatesg.com/article-2-fence-english-engine/
- https://edukatesg.com/article-3-fence-english-engine/
- https://edukatesg.com/article-4-fence-english-engine/
- https://edukatesg.com/article-5-fence-english-engine/https://edukatesg.com/article-6-fence-english-engine/
- https://edukatesg.com/article-7-fence-english-engine/
- https://edukatesg.com/article-8-fence-english-engine/
- https://edukatesg.com/article-9-fence-english-engine/
- https://edukatesg.com/article-10-fence-english-engine/
- https://edukatesg.com/article-11-fence-english-engine/
- https://edukatesg.com/article-12-fence-english-engine/
eduKateSG Learning Systems:
- https://edukatesg.com/the-edukate-mathematics-learning-system/
- https://edukatesg.com/additional-mathematics-a-math-in-singapore-secondary-3-4-a-math-tutor/
- https://edukatesg.com/additional-mathematics-101-everything-you-need-to-know/
- https://edukatesg.com/secondary-3-additional-mathematics-sec-3-a-math-tutor-singapore/
- https://edukatesg.com/secondary-4-additional-mathematics-sec-4-a-math-tutor-singapore/
- https://edukatesg.com/learning-english-system-fence-by-edukatesg/
- https://edukatesingapore.com/edukate-vocabulary-learning-system/
Recommended Internal Links (Spine)
Start Here for Lattice Infrastructure Connectors
- https://edukatesg.com/singapore-international-os-level-0/
- https://edukatesg.com/singapore-city-os/
- https://edukatesg.com/singapore-parliament-house-os/
- https://edukatesg.com/smrt-os/
- https://edukatesg.com/singapore-port-containers-os/
- https://edukatesg.com/changi-airport-os/
- https://edukatesg.com/tan-tock-seng-hospital-os-ttsh-os/
- https://edukatesg.com/bukit-timah-os/
- https://edukatesg.com/bukit-timah-schools-os/
- https://edukatesg.com/bukit-timah-tuition-os/
- https://edukatesg.com/family-os-level-0-root-node/
- https://bukittimahtutor.com
- https://edukatesg.com/punggol-os/
- https://edukatesg.com/tuas-industry-hub-os/
- https://edukatesg.com/shenton-way-banking-finance-hub-os/
- https://edukatesg.com/singapore-museum-smu-arts-school-district-os/
- https://edukatesg.com/orchard-road-shopping-district-os/
- https://edukatesg.com/singapore-integrated-sports-hub-national-stadium-os/
- Sholpan Upgrade Training Lattice (SholpUTL): https://edukatesg.com/sholpan-upgrade-training-lattice-sholputl/
- https://edukatesg.com/human-regenerative-lattice-3d-geometry-of-civilisation/
- https://edukatesg.com/new-york-z2-institutional-lattice-civos-index-page-master-hub/
- https://edukatesg.com/civilisation-lattice/
- https://edukatesg.com/civ-os-classification/
- https://edukatesg.com/civos-classification-systems/
- https://edukatesg.com/how-civilization-works/
- https://edukatesg.com/civos-lattice-coordinates-of-students-worldwide/
- https://edukatesg.com/civos-worldwide-student-lattice-case-articles-part-1/
- https://edukatesg.com/new-york-z2-institutional-lattice-civos-index-page-master-hub/
- https://edukatesg.com/advantages-of-using-civos-start-here-stack-z0-z3-for-humans-ai/
- Education OS (How Education Works): https://edukatesg.com/education-os-how-education-works-the-regenerative-machine-behind-learning/
- Tuition OS: https://edukatesg.com/tuition-os-edukateos-civos/
- Civilisation OS kernel: https://edukatesg.com/civilisation-os/
- Root definition: What is Civilisation?
- Control mechanism: Civilisation as a Control System
- First principles index: Index: First Principles of Civilisation
- Regeneration Engine: The Full Education OS Map
- The Civilisation OS Instrument Panel (Sensors & Metrics) + Weekly Scan + Recovery Schedule (30 / 90 / 365)
- Inversion Atlas Super Index: Full Inversion CivOS Inversion
- https://edukatesg.com/government-os-general-government-lane-almost-code-canonical/
- https://edukatesg.com/healthcare-os-general-healthcare-lane-almost-code-canonical/
- https://edukatesg.com/education-os-general-education-lane-almost-code-canonical/
- https://edukatesg.com/finance-os-general-finance-banking-lane-almost-code-canonical/
- https://edukatesg.com/transport-os-general-transport-transit-lane-almost-code-canonical/
- https://edukatesg.com/food-os-general-food-supply-chain-lane-almost-code-canonical/
- https://edukatesg.com/security-os-general-security-justice-rule-of-law-lane-almost-code-canonical/
- https://edukatesg.com/housing-os-general-housing-urban-operations-lane-almost-code-canonical/
- https://edukatesg.com/community-os-general-community-third-places-social-cohesion-lane-almost-code-canonical/
- https://edukatesg.com/energy-os-general-energy-power-grid-lane-almost-code-canonical/
- https://edukatesg.com/community-os-general-community-third-places-social-cohesion-lane-almost-code-canonical/
- https://edukatesg.com/water-os-general-water-wastewater-lane-almost-code-canonical/
- https://edukatesg.com/communications-os-general-telecom-internet-information-transport-lane-almost-code-canonical/
- https://edukatesg.com/media-os-general-media-information-integrity-narrative-coordination-lane-almost-code-canonical/
- https://edukatesg.com/waste-os-general-waste-sanitation-public-cleanliness-lane-almost-code-canonical/
- https://edukatesg.com/manufacturing-os-general-manufacturing-production-systems-lane-almost-code-canonical/
- https://edukatesg.com/logistics-os-general-logistics-warehousing-supply-routing-lane-almost-code-canonical/
- https://edukatesg.com/construction-os-general-construction-built-environment-delivery-lane-almost-code-canonical/
- https://edukatesg.com/science-os-general-science-rd-knowledge-production-lane-almost-code-canonical/
- https://edukatesg.com/religion-os-general-religion-meaning-systems-moral-coordination-lane-almost-code-canonical/
- https://edukatesg.com/finance-os-general-finance-money-credit-coordination-lane-almost-code-canonical/
- https://edukatesg.com/family-os-general-family-household-regenerative-unit-almost-code-canonical/
