now we work in ✨style ✨

This commit is contained in:
2026-03-04 11:25:05 -06:00
parent f57ac7d6dc
commit aa6eb72a74
5 changed files with 743 additions and 93 deletions

View File

@@ -4,12 +4,16 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}PhysCom{% endblock %}</title>
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='logo.svg') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
</head>
<body>
<nav>
<a href="{{ url_for('entities.entity_list') }}" class="nav-brand">PhysCom</a>
<a href="{{ url_for('index') }}" class="nav-brand">
<img src="{{ url_for('static', filename='logo.svg') }}" alt="">
PhysCom
</a>
<ul>
<li><a href="{{ url_for('entities.entity_list') }}">Entities</a></li>
<li><a href="{{ url_for('domains.domain_list') }}">Domains</a></li>

View File

@@ -0,0 +1,202 @@
{% extends "base.html" %}
{% block title %}PhysCom — Physical Combinatorics{% endblock %}
{% block content %}
<!-- Hero -->
<div class="hero">
<div class="hero-logo">
<img src="{{ url_for('static', filename='logo.svg') }}" alt="">
</div>
<h1 class="hero-title">Physical Combinatorics</h1>
<p class="hero-subtitle">
An innovation discovery engine that explores the combinatorial space of
physical systems &mdash; generating, constraining, scoring, and ranking
entity combinations against real-world physics.
</p>
<div class="hero-actions">
<a href="{{ url_for('pipeline.pipeline_form') }}" class="btn btn-primary">Run Pipeline</a>
<a href="{{ url_for('results.results_index') }}" class="btn">View Results</a>
</div>
</div>
<!-- How It Works -->
<h2 class="section-heading">How It Works</h2>
<p class="section-desc">
PhysCom takes entities from different dimensions, forms their Cartesian product,
then filters and scores every combination through a 5-pass pipeline.
</p>
<div class="pipeline-steps">
<div class="step-card">
<div class="step-number">1</div>
<div class="step-body">
<h3>Constraint Resolution</h3>
<p>
Each entity declares physical dependencies &mdash; what it
<em>requires</em>, <em>provides</em>, or <em>excludes</em>.
Incompatible combinations are blocked before any estimation begins.
</p>
<div class="step-example">
Spaceship requires <code>vacuum_or_thin</code> atmosphere &mdash;
Human Pedalling requires <code>none</code> fuel infrastructure
</div>
</div>
</div>
<div class="step-connector"></div>
<div class="step-card">
<div class="step-number">2</div>
<div class="step-body">
<h3>Physics Estimation</h3>
<p>
Surviving combinations get raw metric estimates &mdash; speed, cost,
safety, range &mdash; via heuristic stubs or an LLM provider that
reasons about the physical properties of each pairing.
</p>
<div class="step-example">
Bicycle + Human Pedalling &rarr; speed: 20 km/h, cost: $0.01/km
</div>
</div>
</div>
<div class="step-connector"></div>
<div class="step-card">
<div class="step-number">3</div>
<div class="step-body">
<h3>Scoring &amp; Ranking</h3>
<p>
Raw estimates are log-normalized against domain-specific bounds,
then combined into a single composite score via weighted geometric mean.
Combinations are ranked within their domain.
</p>
<div class="step-example">
Domain <code>urban_commuting</code> weights: speed 25%, cost 25%,
safety 25%, availability 15%, range 10%
</div>
</div>
</div>
<div class="step-connector"></div>
<div class="step-card">
<div class="step-number">4</div>
<div class="step-body">
<h3>LLM Review</h3>
<p>
Top-scoring combinations are sent to a language model for plausibility
and novelty assessment &mdash; catching physically valid but practically
absurd pairings.
</p>
<div class="step-example">
"Train + Solar Sail: structurally valid constraints, but solar radiation
pressure cannot overcome rail friction at ground level."
</div>
</div>
</div>
<div class="step-connector"></div>
<div class="step-card">
<div class="step-number">5</div>
<div class="step-body">
<h3>Human Review</h3>
<p>
The final pass surfaces results for expert evaluation. Reviewers can
approve, flag, or annotate each combination with domain knowledge that
no model captures.
</p>
</div>
</div>
</div>
<!-- Concepts -->
<h2 class="section-heading">Core Concepts</h2>
<div class="concepts-grid">
<div class="card concept-card">
<h3>Entities</h3>
<p>
The building blocks. Each entity belongs to a <em>dimension</em>
(e.g. platform, power_source) and carries typed dependencies
that define its physical properties and constraints.
</p>
<div class="concept-examples">
<span class="badge badge-provides">Car</span>
<span class="badge badge-requires">Lithium Ion Battery</span>
<span class="badge badge-excludes">Solar Sail</span>
<span class="badge badge-provides">Teleporter</span>
</div>
<a href="{{ url_for('entities.entity_list') }}" class="concept-link">Browse entities &rarr;</a>
</div>
<div class="card concept-card">
<h3>Domains</h3>
<p>
The evaluation lens. A domain defines which metrics matter
and their normalization bounds &mdash; the same combination scores
differently under "urban commuting" vs "interplanetary travel."
</p>
<div class="concept-examples">
<span class="badge badge-scored">urban_commuting</span>
<span class="badge badge-llm_reviewed">interplanetary_travel</span>
</div>
<a href="{{ url_for('domains.domain_list') }}" class="concept-link">Browse domains &rarr;</a>
</div>
<div class="card concept-card">
<h3>Dependencies</h3>
<p>
The physics layer. Typed key-value constraints
(<code>requires</code>, <code>provides</code>, <code>excludes</code>,
<code>range_min</code>, <code>range_max</code>) that gate which
combinations are physically possible.
</p>
<div class="concept-examples">
<span class="badge badge-requires">requires</span>
<span class="badge badge-provides">provides</span>
<span class="badge badge-excludes">excludes</span>
<span class="badge badge-range_min">range</span>
</div>
</div>
<div class="card concept-card">
<h3>Metrics</h3>
<p>
Quantitative axes like speed, cost, safety, and range. Each metric
has a domain-specific weight and normalization range. Some are
inverted &mdash; lower cost is better.
</p>
<div class="concept-examples">
<span class="badge">speed</span>
<span class="badge">cost_efficiency</span>
<span class="badge">safety</span>
<span class="badge">range_fuel</span>
</div>
</div>
</div>
<!-- Quick Stats -->
{% if stats %}
<h2 class="section-heading">Current Data</h2>
<div class="stats-row">
<div class="stat-card">
<div class="stat-value">{{ stats.entities }}</div>
<div class="stat-label">Entities</div>
</div>
<div class="stat-card">
<div class="stat-value">{{ stats.dimensions }}</div>
<div class="stat-label">Dimensions</div>
</div>
<div class="stat-card">
<div class="stat-value">{{ stats.domains }}</div>
<div class="stat-label">Domains</div>
</div>
<div class="stat-card">
<div class="stat-value">{{ stats.combinations }}</div>
<div class="stat-label">Combinations</div>
</div>
</div>
{% endif %}
{% endblock %}