« Back to History
view.php
|
20260723_000646.php
Initial Domain Snapshot
Copy Code
<?php require_once __DIR__ . '/../partials/header.php'; /* NOTE: Abhi data hard-coded hai. Later DB se aayega. */ $module = [ 'name' => 'Module Management', 'status' => 'Stable', 'importance' => 'Very High', 'last_updated' => '2025-12-25', 'real_world_meaning' => 'Yeh module define karta hai ki project ko modules me kaise socha, likha aur maintain kiya jaata hai.', 'purpose_does' => [ 'Project ko logical modules me divide karta hai', 'Har module ki boundary define karta hai', 'Documentation ka fixed format enforce karta hai', ], 'purpose_never' => [ 'Code implementation nahi karta', 'Business logic invent nahi karta', 'UI / design decisions nahi leta', ], 'data_layer' => [ 'tables' => [ 'modules', 'module_notes', 'module_rules', 'module_ai_instructions' ], 'source_of_truth' => 'Module documentation itself', 'write_rules' => 'Rules sirf Decision Log ke through change ho sakte hain' ], 'fixed_rules' => [ 'Har module ka ek hi canonical page hoga', 'Har module same predefined format follow karega', 'Module purpose bina Decision Log ke change nahi hoga', 'Module boundaries cross karna forbidden hai', ], 'flexible_rules' => [ 'Extra notes section add ki ja sakti hai', 'Examples add ho sakte hain', ], 'pain_points' => [ '“Small change” bol kar core logic tod diya jaata hai', 'Modules ka overlap ho jaata hai', 'AI se bina boundary ke kaam karwa liya jaata hai', ], 'ai_allowed' => [ 'Is module ke rules follow karo', 'Format change mat karo', 'Decision log ke bina rule update mat karo', ], 'ai_forbidden' => [ 'Bas thoda adjust kar do', 'Logic simplify kar do', 'Refactor for cleanliness', ], ]; ?> <h1><?= htmlspecialchars($module['name']) ?></h1> <p class="meta"> <strong>Status:</strong> <?= $module['status'] ?> | <strong>Importance:</strong> <?= $module['importance'] ?> | <strong>Last Updated:</strong> <?= $module['last_updated'] ?> </p> <section class="card"> <h2>Real-World Meaning</h2> <p><?= htmlspecialchars($module['real_world_meaning']) ?></p> </section> <section class="card"> <h2>What This Module DOES</h2> <ul> <?php foreach ($module['purpose_does'] as $i): ?> <li><?= htmlspecialchars($i) ?></li> <?php endforeach; ?> </ul> <h2>What This Module NEVER Does</h2> <ul> <?php foreach ($module['purpose_never'] as $i): ?> <li><?= htmlspecialchars($i) ?></li> <?php endforeach; ?> </ul> </section> <section class="card"> <h2>Data Layer</h2> <p><strong>Tables:</strong></p> <ul> <?php foreach ($module['data_layer']['tables'] as $t): ?> <li><?= htmlspecialchars($t) ?></li> <?php endforeach; ?> </ul> <p><strong>Source of Truth:</strong> <?= htmlspecialchars($module['data_layer']['source_of_truth']) ?></p> <p><strong>Write Rules:</strong> <?= htmlspecialchars($module['data_layer']['write_rules']) ?></p> </section> <section class="card highlight"> <h2>Fixed Rules (DO NOT CHANGE)</h2> <ul> <?php foreach ($module['fixed_rules'] as $r): ?> <li><?= htmlspecialchars($r) ?></li> <?php endforeach; ?> </ul> </section> <section class="card"> <h2>Flexible Rules</h2> <ul> <?php foreach ($module['flexible_rules'] as $r): ?> <li><?= htmlspecialchars($r) ?></li> <?php endforeach; ?> </ul> </section> <section class="card"> <h2>Known Pain Points</h2> <ul> <?php foreach ($module['pain_points'] as $p): ?> <li><?= htmlspecialchars($p) ?></li> <?php endforeach; ?> </ul> </section> <section class="card"> <h2>AI Instruction Block</h2> <h3>Allowed</h3> <ul> <?php foreach ($module['ai_allowed'] as $a): ?> <li><?= htmlspecialchars($a) ?></li> <?php endforeach; ?> </ul> <h3>Strictly Forbidden</h3> <ul> <?php foreach ($module['ai_forbidden'] as $f): ?> <li><?= htmlspecialchars($f) ?></li> <?php endforeach; ?> </ul> </section> <?php require_once __DIR__ . '/../partials/footer.php';