← Back to Hub

🏗️ Universal Deterministic Reasoning Scaffold

A shareable spec for autonomous agents and dev teams

© 2008-2026 Ryan Barbrick (Barbrick Design)

📝 Input

👨‍👩‍👧 Family Tree

Infer relationships from family facts

📅 Scheduling

Arrange meetings without conflicts

⚙️ Workflow

Order tasks by dependencies

📊 Output

Waiting for input...

📈 Execution Results

-
Iterations
-
Steps
-
Accepted
-
Rejected
-
Time (ms)

💡 Explanation

No explanation yet...
const examples = { relationships: { domain: 'relationships', text: 'John is the parent of Mary. Mary is the parent of Bob. Sarah is the spouse of John. Tom is the sibling of Mary. What are all the family relationships?' }, scheduling: { domain: 'scheduling', text: 'Schedule three meetings: Team Standup (30 min), Client Call (1 hour), and Planning Session (45 min). Team Standup must be before Planning Session. No meetings can overlap. All must fit in 9am-5pm.' }, workflow: { domain: 'workflow', text: 'Task A produces artifact X. Task B requires artifact X and produces Y. Task C requires Y. Task D is independent. In what order should these tasks execute?' } }; function loadExample(name) { const example = examples[name]; document.getElementById('domain').value = example.domain; document.getElementById('input').value = example.text; } async function executeReasoning() { const domain = document.getElementById('domain').value; const input = document.getElementById('input').value; const output = document.getElementById('output'); const status = document.getElementById('status'); const explanation = document.getElementById('explanation'); if (!input.trim()) { showStatus('error', 'Please enter a task description'); return; } showStatus('info', 'Executing reasoning...'); output.textContent = 'Processing...'; // Simulate reasoning (in production, use actual scaffold) const startTime = Date.now(); setTimeout(() => { const executionTime = Date.now() - startTime; // Mock result const result = { success: true, taskSpec: { task_id: 'task_' + Date.now(), domain: domain, goal: input, objects: [ { id: 'obj1', type: 'person', attributes: { name: 'John' } }, { id: 'obj2', type: 'person', attributes: { name: 'Mary' } } ], relations: [ { id: 'rel1', type: 'parent_of', from: 'obj1', to: 'obj2' } ], constraints: ['symmetry', 'transitivity'] }, reasoning: { iterations: 3, totalSteps: 5, acceptedSteps: 4, rejectedSteps: 1 }, finalState: { version: 5, facts: [ { id: 'fact1', content: 'John parent_of Mary' }, { id: 'fact2', content: 'Mary child_of John' } ] }, explanation: `The reasoning scaffold successfully processed the ${domain} task. Here's what happened:\n\n1. Protocol Layer parsed the natural language input and extracted ${domain}-specific entities and relationships.\n\n2. The planner agent decomposed the task into ${result.reasoning.totalSteps} reasoning steps.\n\n3. Each step was validated by the Constraint Engine against logical rules (symmetry, transitivity, etc.) and domain constraints.\n\n4. ${result.reasoning.acceptedSteps} steps passed validation and were applied to the state. ${result.reasoning.rejectedSteps} step(s) were rejected due to constraint violations.\n\n5. The final state contains all validated facts and relationships, maintaining logical consistency throughout.\n\nThe deterministic scaffold ensured that all reasoning was sound and constraint-compliant.`, metadata: { executionTime: executionTime } }; // Display results showStatus('success', `✅ Reasoning complete! Executed in ${executionTime}ms`); output.textContent = JSON.stringify(result, null, 2); explanation.textContent = result.explanation; // Update stats updateStats(result); }, 2000); } function showStatus(type, message) { const status = document.getElementById('status'); status.className = `status ${type}`; status.textContent = message; } function updateStats(result) { const statValues = document.querySelectorAll('.stat-card .value'); statValues[0].textContent = result.reasoning.iterations; statValues[1].textContent = result.reasoning.totalSteps; statValues[2].textContent = result.reasoning.acceptedSteps; statValues[3].textContent = result.reasoning.rejectedSteps; statValues[4].textContent = result.metadata.executionTime; } // Initialize // Application initialized