From cf38ee066def3b26068f8d2d60464a5612ecae12 Mon Sep 17 00:00:00 2001 From: Domini Montessori Date: Wed, 2 Sep 2026 13:00:01 +0300 Subject: [PATCH 1/3] =?UTF-8?q?feat(beads):=20M2+M3=20executable=20DAG=20?= =?UTF-8?q?=E2=80=94=20single=20runtime=20(M2=20kernel=20+=20M3=20orchestr?= =?UTF-8?q?ation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit M2 kernel (single-agent): Git Adapter, Command Runner/Policy, Worker Runtime, Failure/Retry, GitHub/PR/CI, Loop, Human Gates M3 capability layer: Registry, Architect/Researcher/Planner, Implementer, Tester/Security/Quality/Perf/A11y, Reviewer/Release, Bus/Events/Supervisor/Budget/Scope DAG: 14+25 nodes with deps, priority, risk, artifacts, acceptanceCriteria, verification TDD commands. Ready for direct agent execution. --- .beads/beads.json | 3122 ++++----------------------------------------- 1 file changed, 278 insertions(+), 2844 deletions(-) diff --git a/.beads/beads.json b/.beads/beads.json index 09bd3aac..5bb55f0a 100644 --- a/.beads/beads.json +++ b/.beads/beads.json @@ -2,7 +2,7 @@ "schema": "beads.state-graph/v1", "project": "dominicusin.github.io", "initiative": "repo-gist-ingestion", - "updated": "2026-09-03", + "updated": "2026-09-02", "nodes": [ { "id": "T1", @@ -2438,3178 +2438,612 @@ "npx hardhat test" ], "initiative": "autonomous-factory-m3" - }, - { - "id": "M4-001", - "kind": "task", - "title": "M4.1 Persistent Memory — memory.cjs core", - "status": "pending", - "deps": [ - "M3-025" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/memory/memory.cjs", - "agent/memory/memory.test.cjs" - ], - "acceptance_criteria": [ - "memory.cjs load/save/get/set/list with JSONL persistence", - "no data loss on restart", - "contract validates MemoryEntry {id,task,run_id,payload,timestamp}" - ], - "verification": [ - "node --test agent/memory/memory.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-002", - "kind": "task", - "title": "M4.2 Episodic Memory — episodic.cjs", - "status": "pending", - "deps": [ - "M4-001" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/memory/episodic.cjs", - "agent/memory/episodic.test.cjs" - ], - "acceptance_criteria": [ - "episodic append/query by run_id+task_id", - "retention window enforced", - "evidence ↔ episode correlation" - ], - "verification": [ - "node --test agent/memory/episodic.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-003", - "kind": "task", - "title": "M4.3 Semantic Memory — semantic.cjs", - "status": "pending", - "deps": [ - "M4-001" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/memory/semantic.cjs", - "agent/memory/semantic.test.cjs" - ], - "acceptance_criteria": [ - "semantic index facts by capability/policy failure", - "query by tags returns ranked facts", - "no mutable global state" - ], - "verification": [ - "node --test agent/memory/semantic.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-004", - "kind": "task", - "title": "M4.4 Procedural Memory — procedural.cjs", - "status": "pending", - "deps": [ - "M4-001" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/memory/procedural.cjs", - "agent/memory/procedural.test.cjs" - ], - "acceptance_criteria": [ - "procedural stores workflow templates Task→Stages", - "template reuse produces identical ExecutionPlan", - "versioned templates" - ], - "verification": [ - "node --test agent/memory/procedural.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-005", - "kind": "task", - "title": "M4.5 Decision Log — decisions.cjs", - "status": "pending", - "deps": [ - "M4-002", - "M4-003" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/memory/decisions.cjs", - "agent/memory/decisions.test.cjs" - ], - "acceptance_criteria": [ - "decisions.cjs records Decision {task,options,chosen,rationale,evidence}", - "decision replay deterministic", - "unknown≠false preserved" - ], - "verification": [ - "node --test agent/memory/decisions.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-006", - "kind": "task", - "title": "M4.6 Failure Memory + Memory Facade — failures.cjs", - "status": "pending", - "deps": [ - "M4-004", - "M4-005" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/memory/failures.cjs", - "agent/memory/failures.test.cjs", - "agent/memory/index.cjs" - ], - "acceptance_criteria": [ - "failures.cjs indexes failure signature→diagnosis→healing", - "memory facade exports getMemory/queryMemory", - "no shared mutable LLM memory" - ], - "verification": [ - "node --test agent/memory/failures.test.cjs", - "node --test agent/memory/memory.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-007", - "kind": "task", - "title": "M4.7 Repository Graph — repository-graph.cjs", - "status": "pending", - "deps": [ - "M3-025" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/intelligence/repository-graph.cjs", - "agent/intelligence/repository-graph.test.cjs" - ], - "acceptance_criteria": [ - "graph nodes = files/modules, edges = import/require", - "incremental update on diff", - "JSON serializable snapshot" - ], - "verification": [ - "node --test agent/intelligence/repository-graph.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-008", - "kind": "task", - "title": "M4.8 Dependency Graph — dependency-graph.cjs", - "status": "pending", - "deps": [ - "M4-007" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/intelligence/dependency-graph.cjs", - "agent/intelligence/dependency-graph.test.cjs" - ], - "acceptance_criteria": [ - "dependency-graph builds DAG of package/file deps", - "cycle detection reports culprit edge", - "transitive closure correct" - ], - "verification": [ - "node --test agent/intelligence/dependency-graph.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-009", - "kind": "task", - "title": "M4.9 Ownership Map — ownership.cjs", - "status": "pending", - "deps": [ - "M4-007" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/intelligence/ownership.cjs", - "agent/intelligence/ownership.test.cjs" - ], - "acceptance_criteria": [ - "ownership maps file→team/capability via CODEOWNERS+git history", - "fallback to most frequent committer", - "confidence metadata" - ], - "verification": [ - "node --test agent/intelligence/ownership.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-010", - "kind": "task", - "title": "M4.10 Change Impact Analyzer — change-impact.cjs", - "status": "pending", - "deps": [ - "M4-008", - "M4-009" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/intelligence/change-impact.cjs", - "agent/intelligence/change-impact.test.cjs" - ], - "acceptance_criteria": [ - "change-impact given diff returns affectedFiles+affectedTasks+blastRadius", - "uses dependency-graph+ownership", - "ranked impact with evidence" - ], - "verification": [ - "node --test agent/intelligence/change-impact.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-011", - "kind": "task", - "title": "M4.11 Hotspots Detector — hotspots.cjs", - "status": "pending", - "deps": [ - "M4-008" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/intelligence/hotspots.cjs", - "agent/intelligence/hotspots.test.cjs" - ], - "acceptance_criteria": [ - "hotspots by churn+complexity+failure history", - "top-10 hotspots ranked", - "integrates with semantic memory" - ], - "verification": [ - "node --test agent/intelligence/hotspots.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-012", - "kind": "task", - "title": "M4.12 Repository Intelligence Facade", - "status": "pending", - "deps": [ - "M4-010", - "M4-011" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/intelligence/index.cjs", - "agent/intelligence/intelligence.test.cjs" - ], - "acceptance_criteria": [ - "facade getIntelligence(diff) returns {graph,impact,hotspots,ownership}", - "cached per commit SHA", - "no filesystem mutation" - ], - "verification": [ - "node --test agent/intelligence/intelligence.test.cjs", - "node --test agent/intelligence/repository-graph.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-013", - "kind": "task", - "title": "M4.13 Adaptive Planner Core — planner.cjs", - "status": "pending", - "deps": [ - "M4-006", - "M4-012" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/planner/planner.cjs", - "agent/planner/planner.test.cjs" - ], - "acceptance_criteria": [ - "planner consumes Memory+Intelligence+Beads → TaskPlan {tasks,deps,risk,acceptance,verification}", - "planner never writes production code", - "deps form acyclic graph" - ], - "verification": [ - "node --test agent/planner/planner.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-014", - "kind": "task", - "title": "M4.14 Task Decomposition — decomposition.cjs", - "status": "pending", - "deps": [ - "M4-013" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/planner/decomposition.cjs", - "agent/planner/decomposition.test.cjs" - ], - "acceptance_criteria": [ - "decomposition splits task into ≤5 subtasks with scope+files", - "each subtask has isolated verification", - "no out-of-scope file leaks" - ], - "verification": [ - "node --test agent/planner/decomposition.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-015", - "kind": "task", - "title": "M4.15 Prioritizer — prioritizer.cjs", - "status": "pending", - "deps": [ - "M4-013" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/planner/prioritizer.cjs", - "agent/planner/prioritizer.test.cjs" - ], - "acceptance_criteria": [ - "prioritizer ranks tasks by P0> P1> P2 and risk+impact", - "stable sort on tie-breaker id", - "respects Budget maxWorkers" - ], - "verification": [ - "node --test agent/planner/prioritizer.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-016", - "kind": "task", - "title": "M4.16 Dependency Resolver — dependency-resolver.cjs", - "status": "pending", - "deps": [ - "M4-014" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/planner/dependency-resolver.cjs", - "agent/planner/dependency-resolver.test.cjs" - ], - "acceptance_criteria": [ - "resolves TaskPlan deps to topological order", - "detects cycle → error with cycle path", - "outputs ExecutionPlan stages with parallel flags" - ], - "verification": [ - "node --test agent/planner/dependency-resolver.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-017", - "kind": "task", - "title": "M4.17 Replanner — replanner.cjs", - "status": "pending", - "deps": [ - "M4-015", - "M4-016" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/planner/replanner.cjs", - "agent/planner/replanner.test.cjs" - ], - "acceptance_criteria": [ - "replanner on failure/impact change produces new TaskPlan delta", - "preserves done tasks, re-queues affected only", - "emits EvidenceEnvelope replanned" - ], - "verification": [ - "node --test agent/planner/replanner.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-018", - "kind": "task", - "title": "M4.18 Planner ↔ Evidence Bus Integration", - "status": "pending", - "deps": [ - "M4-017" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/planner/evidence-integration.cjs", - "agent/planner/evidence-integration.test.cjs" - ], - "acceptance_criteria": [ - "planner subscribes to EvidenceBus, publishes TaskPlan envelopes", - "order preserved per run_id", - "typed envelopes only" - ], - "verification": [ - "node --test agent/planner/evidence-integration.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-019", - "kind": "task", - "title": "M4.19 Adaptive Planner Verification", - "status": "pending", - "deps": [ - "M4-018" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/planner/planner.test.cjs", - "agent/planner/decomposition.test.cjs", - "agent/planner/dependency-resolver.test.cjs" - ], - "acceptance_criteria": [ - "planner E2E: sample epic → TaskPlan validated", - "all verification TDD green", - "no shared mutable state" - ], - "verification": [ - "node --test agent/planner/planner.test.cjs", - "node --test agent/planner/decomposition.test.cjs", - "node --test agent/planner/dependency-resolver.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-020", - "kind": "task", - "title": "M4.20 Backlog Discovery — discovery.cjs", - "status": "pending", - "deps": [ - "M4-019" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/backlog/discovery.cjs", - "agent/backlog/discovery.test.cjs" - ], - "acceptance_criteria": [ - "discovers tasks from Beads+git diff+intelligence hotspots", - "deduplicates against existing backlog", - "emits BacklogEntry[]" - ], - "verification": [ - "node --test agent/backlog/discovery.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-021", - "kind": "task", - "title": "M4.21 Backlog Prioritization — prioritization.cjs", - "status": "pending", - "deps": [ - "M4-020" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/backlog/prioritization.cjs", - "agent/backlog/prioritization.test.cjs" - ], - "acceptance_criteria": [ - "prioritization ranks by planner priority+impact+age", - "P1 before P2, R2 escalated", - "stable ranking" - ], - "verification": [ - "node --test agent/backlog/prioritization.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-022", - "kind": "task", - "title": "M4.22 Backlog Deduplication — deduplication.cjs", - "status": "pending", - "deps": [ - "M4-020" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/backlog/deduplication.cjs", - "agent/backlog/deduplication.test.cjs" - ], - "acceptance_criteria": [ - "deduplication by title+files Jaccard >0.8→merge", - "preserves oldest id as canonical", - "no data loss" - ], - "verification": [ - "node --test agent/backlog/deduplication.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-023", - "kind": "task", - "title": "M4.23 Backlog Decomposition — decomposition.cjs", - "status": "pending", - "deps": [ - "M4-021", - "M4-022" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/backlog/decomposition-backlog.cjs", - "agent/backlog/decomposition-backlog.test.cjs" - ], - "acceptance_criteria": [ - "splits oversized backlog item (>1000 diff lines) into ≤5", - "preserves deps acyclic", - "each child inherits parent priority" - ], - "verification": [ - "node --test agent/backlog/decomposition-backlog.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-024", - "kind": "task", - "title": "M4.24 Stale Task Detector — stale-task-detector.cjs", - "status": "pending", - "deps": [ - "M4-023" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/backlog/stale-task-detector.cjs", - "agent/backlog/stale-task-detector.test.cjs" - ], - "acceptance_criteria": [ - "detects stale >14d no activity or orphaned worktree", - "marks STALE→evidence, never auto-deletes", - "supervisor can clean after evidence" - ], - "verification": [ - "node --test agent/backlog/stale-task-detector.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-025", - "kind": "task", - "title": "M4.25 Backlog Manager Facade", - "status": "pending", - "deps": [ - "M4-024" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/backlog/index.cjs", - "agent/backlog/backlog.test.cjs" - ], - "acceptance_criteria": [ - "facade getBacklog() returns ranked, deduped, decomposed, stale-flagged list", - "integrates with planner prioritizer", - "typed Beads entries" - ], - "verification": [ - "node --test agent/backlog/backlog.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-026", - "kind": "task", - "title": "M4.26 Outcome Tracker — outcome.cjs", - "status": "pending", - "deps": [ - "M4-019" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/learning/outcome.cjs", - "agent/learning/outcome.test.cjs" - ], - "acceptance_criteria": [ - "outcome records Task {run_id,result,evidence,diagnosis,retries}", - "outcome query by task_id returns history", - "append-only log" - ], - "verification": [ - "node --test agent/learning/outcome.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-027", - "kind": "task", - "title": "M4.27 Metrics Collector — metrics.cjs", - "status": "pending", - "deps": [ - "M4-026" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/learning/metrics.cjs", - "agent/learning/metrics.test.cjs" - ], - "acceptance_criteria": [ - "collects pass/fail rate, MTTR, retries, coverage delta", - "aggregates per capability/worker", - "emits MetricsEnvelope" - ], - "verification": [ - "node --test agent/learning/metrics.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-028", - "kind": "task", - "title": "M4.28 Pattern Miner — pattern-miner.cjs", - "status": "pending", - "deps": [ - "M4-027" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/learning/pattern-miner.cjs", - "agent/learning/pattern-miner.test.cjs" - ], - "acceptance_criteria": [ - "mines failure signatures → pattern {signature,freq,suggestedFix}", - "freq threshold ≥3", - "pattern confidence metadata" - ], - "verification": [ - "node --test agent/learning/pattern-miner.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-029", - "kind": "task", - "title": "M4.29 Worker Performance — worker-performance.cjs", - "status": "pending", - "deps": [ - "M4-028" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/learning/worker-performance.cjs", - "agent/learning/worker-performance.test.cjs" - ], - "acceptance_criteria": [ - "ranks workers by success rate per capability", - "exposes getBestWorker(capability)", - "no mutable global" - ], - "verification": [ - "node --test agent/learning/worker-performance.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-030", - "kind": "task", - "title": "M4.30 Failure Patterns — failure-patterns.cjs", - "status": "pending", - "deps": [ - "M4-028" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/learning/failure-patterns.cjs", - "agent/learning/failure-patterns.test.cjs" - ], - "acceptance_criteria": [ - "failure-patterns maps category→patterns with fix hints", - "integrates with memory/failures.cjs", - "query returns top-3 patterns" - ], - "verification": [ - "node --test agent/learning/failure-patterns.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-031", - "kind": "task", - "title": "M4.31 Learning Aggregator", - "status": "pending", - "deps": [ - "M4-029", - "M4-030" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/learning/index.cjs", - "agent/learning/learning.test.cjs" - ], - "acceptance_criteria": [ - "aggregator getLearningSnapshot() returns {metrics,patterns,workerRank}", - "cached per run_id", - "typed envelope" - ], - "verification": [ - "node --test agent/learning/learning.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-032", - "kind": "task", - "title": "M4.32 Learning Feedback Loop Integration", - "status": "pending", - "deps": [ - "M4-031" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/learning/feedback.cjs", - "agent/learning/feedback.test.cjs" - ], - "acceptance_criteria": [ - "feedback loop pushes LearningSnapshot to planner+memory", - " replanner consumes patterns for next TaskPlan", - "evidence bus integration" - ], - "verification": [ - "node --test agent/learning/feedback.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-033", - "kind": "task", - "title": "M4.33 Invariant Checker — invariant-checker.cjs", - "status": "pending", - "deps": [ - "M4-025", - "M4-032" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/verification/invariant-checker.cjs", - "agent/verification/invariant-checker.test.cjs" - ], - "acceptance_criteria": [ - "checks invariants: 1 worktree=1 writer, no main commit, no policy bypass", - "violation → SCOPE_VIOLATION with evidence", - "runs pre-commit" - ], - "verification": [ - "node --test agent/verification/invariant-checker.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-034", - "kind": "task", - "title": "M4.34 Regression Detector — regression-detector.cjs", - "status": "pending", - "deps": [ - "M4-033" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/verification/regression-detector.cjs", - "agent/verification/regression-detector.test.cjs" - ], - "acceptance_criteria": [ - "detects perf/a11y/test regression vs baseline", - "threshold: bundle >10%, a11y violations >0", - "reports with evidence" - ], - "verification": [ - "node --test agent/verification/regression-detector.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-035", - "kind": "task", - "title": "M4.35 Policy Verifier — policy-verifier.cjs", - "status": "pending", - "deps": [ - "M4-033" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/verification/policy-verifier.cjs", - "agent/verification/policy-verifier.test.cjs" - ], - "acceptance_criteria": [ - "verifies diff against Policy 2.0 allowlist/denylist", - "R3/R4 blocking enforced", - "denied → POLICY_DENIED evidence" - ], - "verification": [ - "node --test agent/verification/policy-verifier.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-036", - "kind": "task", - "title": "M4.36 Evidence Verifier — evidence-verifier.cjs", - "status": "pending", - "deps": [ - "M4-033" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/verification/evidence-verifier.cjs", - "agent/verification/evidence-verifier.test.cjs" - ], - "acceptance_criteria": [ - "evidence ↔ commit correspondence checked", - "missing evidence → request_changes", - "typed envelope validation" - ], - "verification": [ - "node --test agent/verification/evidence-verifier.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-037", - "kind": "task", - "title": "M4.37 Factory Health — factory-health.cjs", - "status": "pending", - "deps": [ - "M4-034", - "M4-035", - "M4-036" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/verification/factory-health.cjs", - "agent/verification/factory-health.test.cjs" - ], - "acceptance_criteria": [ - "factory-health aggregates invariant+regression+policy+evidence → HEALTHY/DEGRADED/FAILED", - "health history persisted", - "dashboard consumable" - ], - "verification": [ - "node --test agent/verification/factory-health.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-038", - "kind": "task", - "title": "M4.38 Verification Orchestrator", - "status": "pending", - "deps": [ - "M4-037" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/verification/orchestrator.cjs", - "agent/verification/orchestrator.test.cjs" - ], - "acceptance_criteria": [ - "orchestrates all verifiers in parallel after IMPLEMENT", - "read-only parallel safe", - "collects VerificationReport" - ], - "verification": [ - "node --test agent/verification/orchestrator.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-039", - "kind": "task", - "title": "M4.39 Factory Verification Gate", - "status": "pending", - "deps": [ - "M4-038" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/verification/gate.cjs", - "agent/verification/gate.test.cjs" - ], - "acceptance_criteria": [ - "gate: all verifiers PASS → READY_FOR_REVIEW else REQUEST_CHANGES/ESCALATE", - "max 2 review cycles → ESCALATE", - "human gate preserved" - ], - "verification": [ - "node --test agent/verification/gate.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-040", - "kind": "task", - "title": "M4.40 Observability Events — events.cjs", - "status": "pending", - "deps": [ - "M4-019" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/events.cjs", - "agent/observability/events.test.cjs" - ], - "acceptance_criteria": [ - "events emitter typed FactoryEvent {run_id,task_id,event,payload,timestamp}", - "preserves order per run_id", - "integration with evidence-bus" - ], - "verification": [ - "node --test agent/observability/events.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-041", - "kind": "task", - "title": "M4.41 Observability Metrics", - "status": "pending", - "deps": [ - "M4-040" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/metrics.cjs", - "agent/observability/metrics.test.cjs" - ], - "acceptance_criteria": [ - "metrics probes: queue depth, worker utilization, MTTR, success rate", - "scrape endpoint compatible", - "no secret leakage" - ], - "verification": [ - "node --test agent/observability/metrics.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-042", - "kind": "task", - "title": "M4.42 Observability Traces — traces.cjs", - "status": "pending", - "deps": [ - "M4-040" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/traces.cjs", - "agent/observability/traces.test.cjs" - ], - "acceptance_criteria": [ - "traces capture span per worker execution", - "traceId = run_id, spans ordered", - "export OTel compatible" - ], - "verification": [ - "node --test agent/observability/traces.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-043", - "kind": "task", - "title": "M4.43 Dashboard — dashboard.cjs", - "status": "pending", - "deps": [ - "M4-041", - "M4-042" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/dashboard.cjs", - "agent/observability/dashboard.test.cjs" - ], - "acceptance_criteria": [ - "dashboard aggregates events+metrics+traces → summary JSON", - "serves at /data/factory-dashboard.json", - "no PII" - ], - "verification": [ - "node --test agent/observability/dashboard.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-044", - "kind": "task", - "title": "M4.44 Reports — reports.cjs", - "status": "pending", - "deps": [ - "M4-043" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/reports.cjs", - "agent/observability/reports.test.cjs" - ], - "acceptance_criteria": [ - "reports daily/weekly with trends", - "report includes factory-health + learning metrics", - "markdown+JSON output" - ], - "verification": [ - "node --test agent/observability/reports.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-045", - "kind": "task", - "title": "M4.45 Observability Integration", - "status": "pending", - "deps": [ - "M4-044" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/index.cjs", - "agent/observability/observability.test.cjs" - ], - "acceptance_criteria": [ - "integration wires observability into supervisor+verification", - "all verifiers emit observability events", - "single import facade" - ], - "verification": [ - "node --test agent/observability/observability.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-046", - "kind": "task", - "title": "M4.46 Observability Verification", - "status": "pending", - "deps": [ - "M4-045" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/observability/observability.test.cjs" - ], - "acceptance_criteria": [ - "observability E2E: event→metrics→trace→dashboard→report pipeline PASS", - "0 missing events on demo run", - "lint/test green" - ], - "verification": [ - "node --test agent/observability/observability.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-047", - "kind": "task", - "title": "M4.47 Factory Supervisor Core — supervisor.cjs", - "status": "pending", - "deps": [ - "M4-019" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/supervisor/factory-supervisor.cjs", - "agent/supervisor/factory-supervisor.test.cjs" - ], - "acceptance_criteria": [ - "supervisor enforces timeout/budget/policy/orphan guard extended", - "WORKER_TIMEOUT → terminate → evidence → retry/escalate", - "factory scope" - ], - "verification": [ - "node --test agent/supervisor/factory-supervisor.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-048", - "kind": "task", - "title": "M4.48 Task Scheduler Integration", - "status": "pending", - "deps": [ - "M4-047" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/supervisor/scheduler-integration.cjs", - "agent/supervisor/scheduler-integration.test.cjs" - ], - "acceptance_criteria": [ - "scheduler-integration merges planner stages with supervisor budget", - "parallel flags respected", - "1 worktree=1 writer invariant" - ], - "verification": [ - "node --test agent/supervisor/scheduler-integration.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-049", - "kind": "task", - "title": "M4.49 Resource Guard", - "status": "pending", - "deps": [ - "M4-047" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/supervisor/resource-guard.cjs", - "agent/supervisor/resource-guard.test.cjs" - ], - "acceptance_criteria": [ - "guards memory/time/parallel count", - "exceed → ESCALATE with evidence", - "uses M3 Budget correctly" - ], - "verification": [ - "node --test agent/supervisor/resource-guard.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-050", - "kind": "task", - "title": "M4.50 Policy Enforcement Hook", - "status": "pending", - "deps": [ - "M4-048", - "M4-049" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/supervisor/policy-hook.cjs", - "agent/supervisor/policy-hook.test.cjs" - ], - "acceptance_criteria": [ - "hook checks Policy 2.0 before every worker exec", - "R4 never autonomous → HUMAN", - "denied → POLICY_DENIED" - ], - "verification": [ - "node --test agent/supervisor/policy-hook.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-051", - "kind": "task", - "title": "M4.51 Escalation Handler", - "status": "pending", - "deps": [ - "M4-050" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/supervisor/escalation.cjs", - "agent/supervisor/escalation.test.cjs" - ], - "acceptance_criteria": [ - "escalation routes to human with evidence bundle", - "retry budget shared", - "3rd repeat same error → ESCALATED" - ], - "verification": [ - "node --test agent/supervisor/escalation.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-052", - "kind": "task", - "title": "M4.52 Orphan Cleaner", - "status": "pending", - "deps": [ - "M4-051" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/supervisor/orphan-cleaner.cjs", - "agent/supervisor/orphan-cleaner.test.cjs" - ], - "acceptance_criteria": [ - "orphan cleaner removes stale worktrees after evidence", - "never deletes active worktree", - "dry-run + confirm" - ], - "verification": [ - "node --test agent/supervisor/orphan-cleaner.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-053", - "kind": "task", - "title": "M4.53 Budget Sync with M3 Budget", - "status": "pending", - "deps": [ - "M4-052" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/supervisor/budget-sync.cjs", - "agent/supervisor/budget-sync.test.cjs" - ], - "acceptance_criteria": [ - "syncs Budget {maxTimeMs,maxRetries,maxWorkers,maxCommands,maxChangedFiles,maxDiffLines}", - "factory extends M3 budget", - "enforcement tested" - ], - "verification": [ - "node --test agent/supervisor/budget-sync.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-054", - "kind": "task", - "title": "M4.54 Supervisor ↔ Evidence Bus Wiring", - "status": "pending", - "deps": [ - "M4-053" - ], - "priority": "P1", - "risk": "R1", - "artifacts": [ - "agent/supervisor/evidence-wiring.cjs", - "agent/supervisor/evidence-wiring.test.cjs" - ], - "acceptance_criteria": [ - "supervisor emits SupervisorEvent envelopes to evidence bus", - "order preserved per run_id", - "typed envelopes" - ], - "verification": [ - "node --test agent/supervisor/evidence-wiring.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-055", - "kind": "task", - "title": "M4.55 Supervisor Verification", - "status": "pending", - "deps": [ - "M4-054" - ], - "priority": "P1", - "risk": "R2", - "artifacts": [ - "agent/supervisor/factory-supervisor.test.cjs" - ], - "acceptance_criteria": [ - "supervisor E2E: timeout→terminate→retry→escalate PASS", - "orphan cleanup verified", - "human gate present" - ], - "verification": [ - "node --test agent/supervisor/factory-supervisor.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-056", - "kind": "task", - "title": "M4.56 Policy Store 2.0 — policy.cjs v2", - "status": "pending", - "deps": [ - "M4-039", - "M4-046", - "M4-055" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/policy/policy-v2.cjs", - "agent/policy/policy-v2.test.cjs" - ], - "acceptance_criteria": [ - "policy store v2 supports DSL + versioned rules", - "migration from v1 without loss", - "validated schema" - ], - "verification": [ - "node --test agent/policy/policy-v2.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-057", - "kind": "task", - "title": "M4.57 Scope Rules 2.0", - "status": "pending", - "deps": [ - "M4-056" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/policy/scope-v2.cjs", - "agent/policy/scope-v2.test.cjs" - ], - "acceptance_criteria": [ - "scope rules glob + capability matrix", - "out-of-scope → SCOPE_VIOLATION", - "adapter check on diff before commit" - ], - "verification": [ - "node --test agent/policy/scope-v2.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-058", - "kind": "task", - "title": "M4.58 Risk Gates 2.0", - "status": "pending", - "deps": [ - "M4-056" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/policy/gates-v2.cjs", - "agent/policy/gates-v2.test.cjs" - ], - "acceptance_criteria": [ - "R1 CI PASS→REVIEW, R2 needs AUTO REVIEW, R3 SECURITY, R4 BLOCKED→HUMAN ONLY", - "never auto-merge R3/R4", - "gating tested per risk" - ], - "verification": [ - "node --test agent/policy/gates-v2.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-059", - "kind": "task", - "title": "M4.59 Allowlist/Denylist 2.0", - "status": "pending", - "deps": [ - "M4-057", - "M4-058" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/policy/allowlist-v2.cjs", - "agent/policy/allowlist-v2.test.cjs" - ], - "acceptance_criteria": [ - "allowlist git,node,npm,hugo,gh; deny rm -rf /,sudo,ssh,docker,credential access", - "policy→allow?execute:BLOCK", - "worker without policy cannot exec shell" - ], - "verification": [ - "node --test agent/policy/allowlist-v2.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-060", - "kind": "task", - "title": "M4.60 Policy DSL + Validation", - "status": "pending", - "deps": [ - "M4-059" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/policy/dsl.cjs", - "agent/policy/dsl.test.cjs" - ], - "acceptance_criteria": [ - "DSL parses policy.yaml → typed Policy", - "invalid DSL → validation error with line:col", - "no exec on invalid policy" - ], - "verification": [ - "node --test agent/policy/dsl.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-061", - "kind": "task", - "title": "M4.61 Policy ↔ Supervisor Integration", - "status": "pending", - "deps": [ - "M4-060", - "M4-055" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/policy/supervisor-integration.cjs", - "agent/policy/supervisor-integration.test.cjs" - ], - "acceptance_criteria": [ - "policy integrated into supervisor hook", - "supervisor consults policy before every stage", - "evidence on deny" - ], - "verification": [ - "node --test agent/policy/supervisor-integration.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-062", - "kind": "task", - "title": "M4.62 Policy 2.0 Verification", - "status": "pending", - "deps": [ - "M4-061" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/policy/policy-v2.test.cjs", - "agent/policy/gates-v2.test.cjs" - ], - "acceptance_criteria": [ - "policy E2E: R4 task cannot reach autonomous release → HUMAN", - "allowlist enforced on fixture", - "lint/test green" - ], - "verification": [ - "node --test agent/policy/policy-v2.test.cjs", - "node --test agent/policy/gates-v2.test.cjs", - "node --test agent/policy/allowlist-v2.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-063", - "kind": "task", - "title": "M4.63 Healing Planner", - "status": "pending", - "deps": [ - "M4-062" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/healing/planner.cjs", - "agent/healing/planner.test.cjs" - ], - "acceptance_criteria": [ - "healing planner selects fix strategy from Diagnosis+Learning patterns", - "strategy ranked by past success", - "never modifies policy" - ], - "verification": [ - "node --test agent/healing/planner.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-064", - "kind": "task", - "title": "M4.64 Auto-Retry with Learning", - "status": "pending", - "deps": [ - "M4-063", - "M4-032" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/healing/retry-learning.cjs", - "agent/healing/retry-learning.test.cjs" - ], - "acceptance_criteria": [ - "auto-retry uses learning snapshot for fix selection", - "attempt1 fix, attempt2 alternative, attempt3 escalate", - "retry creates new WorkerContext" - ], - "verification": [ - "node --test agent/healing/retry-learning.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-065", - "kind": "task", - "title": "M4.65 Diagnosis → Healing Bridge", - "status": "pending", - "deps": [ - "M4-064" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/healing/diagnosis-bridge.cjs", - "agent/healing/diagnosis-bridge.test.cjs" - ], - "acceptance_criteria": [ - "bridge converts Diagnosis→HealingAction {strategy,evidence,confidence}", - "confidence is metadata not proof", - "typed envelope" - ], - "verification": [ - "node --test agent/healing/diagnosis-bridge.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-066", - "kind": "task", - "title": "M4.66 Healing Verification", - "status": "pending", - "deps": [ - "M4-065" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/healing/verification.cjs", - "agent/healing/verification.test.cjs" - ], - "acceptance_criteria": [ - "healing verification runs tests after fix", - "PASS→continue, FAIL→next strategy", - "coverage threshold checked" - ], - "verification": [ - "node --test agent/healing/verification.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-067", - "kind": "task", - "title": "M4.67 Quarantine & Rollback", - "status": "pending", - "deps": [ - "M4-066" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/healing/quarantine.cjs", - "agent/healing/quarantine.test.cjs" - ], - "acceptance_criteria": [ - "quarantine isolates failing worktree", - "rollback to base on 3rd failure", - "evidence preserved" - ], - "verification": [ - "node --test agent/healing/quarantine.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-068", - "kind": "task", - "title": "M4.68 Healing Metrics Feedback", - "status": "pending", - "deps": [ - "M4-067" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/healing/metrics-feedback.cjs", - "agent/healing/metrics-feedback.test.cjs" - ], - "acceptance_criteria": [ - "healing metrics fed to learning/metrics.cjs", - "updates pattern-miner freq", - "closed loop verified" - ], - "verification": [ - "node --test agent/healing/metrics-feedback.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-069", - "kind": "task", - "title": "M4.69 Self-Healing Orchestration", - "status": "pending", - "deps": [ - "M4-068" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/healing/orchestrator.cjs", - "agent/healing/orchestrator.test.cjs" - ], - "acceptance_criteria": [ - "orchestrator ties planner→retry→verify→quarantine→feedback", - "max 3 attempts then ESCALATED", - "shares retry budget with review loop" - ], - "verification": [ - "node --test agent/healing/orchestrator.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-070", - "kind": "task", - "title": "M4.70 Self-Healing Verification", - "status": "pending", - "deps": [ - "M4-069" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "agent/healing/healing.test.cjs" - ], - "acceptance_criteria": [ - "self-healing E2E: induced TEST_FAILURE→diagnose→fix→PASS, 3x same→ESCALATED", - "quarantine verified", - "learning updated" - ], - "verification": [ - "node --test agent/healing/healing.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-071", - "kind": "task", - "title": "M4.71 Factory Assembly — autonomous-factory.cjs", - "status": "pending", - "deps": [ - "M4-070", - "M4-039" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "agent/factory/autonomous-factory.cjs", - "agent/factory/autonomous-factory.test.cjs" - ], - "acceptance_criteria": [ - "factory assembles Memory+Intelligence+Planner+Backlog+Learning+Supervisor+Verification+Policy+Healing", - "single factory facade", - "factory health wired" - ], - "verification": [ - "node --test agent/factory/autonomous-factory.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-072", - "kind": "task", - "title": "M4.72 Factory E2E Happy Path", - "status": "pending", - "deps": [ - "M4-071" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "tests/e2e/m4-happy-path.test.cjs" - ], - "acceptance_criteria": [ - "Beads READY R1 task → Factory → Worker → commit → PR → CI → READY_FOR_REVIEW", - "all evidence envelopes collected", - "human gate present" - ], - "verification": [ - "node --test tests/e2e/m4-happy-path.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-073", - "kind": "task", - "title": "M4.73 Factory E2E Failure Recovery", - "status": "pending", - "deps": [ - "M4-071" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "tests/e2e/m4-failure-recovery.test.cjs" - ], - "acceptance_criteria": [ - "injected TEST FAILURE → Tester→Diagnosis→Healing→PASS", - "3x same error→ESCALATED", - "learning snapshot updated" - ], - "verification": [ - "node --test tests/e2e/m4-failure-recovery.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-074", - "kind": "task", - "title": "M4.74 Factory E2E Policy Deny", - "status": "pending", - "deps": [ - "M4-071" - ], - "priority": "P2", - "risk": "R2", - "artifacts": [ - "tests/e2e/m4-policy-deny.test.cjs" - ], - "acceptance_criteria": [ - "R4 task cannot reach autonomous release → HUMAN", - "policy denylist enforced", - "test 'R4 cannot reach autonomous release' passes" - ], - "verification": [ - "node --test tests/e2e/m4-policy-deny.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-075", - "kind": "task", - "title": "M4.75 Factory E2E Budget/Timeout", - "status": "pending", - "deps": [ - "M4-071" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "tests/e2e/m4-budget.test.cjs" - ], - "acceptance_criteria": [ - "exceed Budget maxTimeMs→WORKER_TIMEOUT→retry/escalate", - "orphaned worktree cleaned", - "budget ESCALATE verified" - ], - "verification": [ - "node --test tests/e2e/m4-budget.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-076", - "kind": "task", - "title": "M4.76 Factory Load / Concurrency", - "status": "pending", - "deps": [ - "M4-072", - "M4-073", - "M4-074", - "M4-075" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "tests/e2e/m4-concurrency.test.cjs" - ], - "acceptance_criteria": [ - "3 tasks parallel: read workers concurrent, writers serialized", - "no race on single worktree", - "parallel health GREEN" - ], - "verification": [ - "node --test tests/e2e/m4-concurrency.test.cjs", - "npm run lint", - "npm test" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-077", - "kind": "task", - "title": "M4.77 Factory Verification Manifest", - "status": "pending", - "deps": [ - "M4-076" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "docs/M4_VERIFICATION.md", - "scripts/verify-m4.cjs" - ], - "acceptance_criteria": [ - "manifest written with run_id, commits, PR, checks, evidence", - "Beads updated to DONE for demo task", - "no auto-merge/deploy occurred" - ], - "verification": [ - "node scripts/verify-m4.cjs", - "npm run lint", - "npm test", - "npm run build" - ], - "initiative": "autonomous-factory-m4" - }, - { - "id": "M4-078", - "kind": "task", - "title": "M4.78 M4 Final Verification — Full Autonomous Factory Gate", - "status": "pending", - "deps": [ - "M4-077", - "M4-070", - "M4-062" - ], - "priority": "P2", - "risk": "R1", - "artifacts": [ - "docs/M4_VERIFICATION.md", - "scripts/verify-m4.cjs", - ".beads/beads.json" - ], - "acceptance_criteria": [ - "state machine PENDING→READY→…→HUMAN_GATE→DONE validated", - "all workers produce typed evidence, no shared mutable LLM memory", - "R3/R4 never auto-merge; factory health HEALTHY" - ], - "verification": [ - "node scripts/verify-m4.cjs", - "npm run lint", - "npm test", - "npm run build", - "npx hardhat test" - ], - "initiative": "autonomous-factory-m4" - } - ], - "edges": [ - { - "from": "T2", - "to": "T3", - "type": "enables" - }, - { - "from": "T2", - "to": "T4", - "type": "feeds" - }, - { - "from": "T4", - "to": "T5", - "type": "enables" - }, - { - "from": "T2", - "to": "T6", - "type": "enables" - }, - { - "from": "T3", - "to": "T7", - "type": "enables" - }, - { - "from": "T7", - "to": "T8", - "type": "blocks" - }, - { - "from": "T8", - "to": "T9", - "type": "blocks" - }, - { - "from": "T9", - "to": "T10", - "type": "blocks" - }, - { - "from": "T11", - "to": "T12", - "type": "enables" - }, - { - "from": "T11", - "to": "T13", - "type": "feeds" - }, - { - "from": "T12", - "to": "T13", - "type": "enables" - }, - { - "from": "T13", - "to": "T14", - "type": "blocks" - }, - { - "from": "T15", - "to": "T16", - "type": "enables" - }, - { - "from": "T15", - "to": "T17", - "type": "feeds" - }, - { - "from": "T16", - "to": "T17", - "type": "enables" - }, - { - "from": "T17", - "to": "T18", - "type": "blocks" - }, - { - "from": "T19", - "to": "T20", - "type": "enables" - }, - { - "from": "T19", - "to": "T21", - "type": "feeds" - }, - { - "from": "T20", - "to": "T21", - "type": "enables" - }, - { - "from": "T21", - "to": "T22", - "type": "blocks" - }, - { - "from": "T23", - "to": "T24", - "type": "enables" - }, - { - "from": "T23", - "to": "T25", - "type": "feeds" - }, - { - "from": "T24", - "to": "T25", - "type": "enables" - }, - { - "from": "T25", - "to": "T26", - "type": "blocks" - }, - { - "from": "T24", - "to": "T27", - "type": "enables" - }, - { - "from": "T27", - "to": "T28", - "type": "blocks" - }, - { - "from": "T29", - "to": "T30", - "type": "enables" - }, - { - "from": "T30", - "to": "T31", - "type": "enables" - }, - { - "from": "T31", - "to": "T32", - "type": "blocks" - }, - { - "from": "T33", - "to": "T34", - "type": "enables" - }, - { - "from": "T34", - "to": "T35", - "type": "enables" - }, - { - "from": "T35", - "to": "T36", - "type": "blocks" - }, - { - "from": "T37", - "to": "T38", - "type": "enables" - }, - { - "from": "T38", - "to": "T39", - "type": "enables" - }, - { - "from": "T39", - "to": "T40", - "type": "blocks" - }, - { - "from": "T41", - "to": "T42", - "type": "enables" - }, - { - "from": "T41", - "to": "T43", - "type": "enables" - }, - { - "from": "T42", - "to": "T44", - "type": "enables" - }, - { - "from": "T43", - "to": "T44", - "type": "enables" - }, - { - "from": "T45", - "to": "T46", - "type": "enables" - }, - { - "from": "T46", - "to": "T47", - "type": "enables" - }, - { - "from": "T47", - "to": "T48", - "type": "blocks" - }, - { - "from": "T49", - "to": "T50", - "type": "enables" - }, - { - "from": "T50", - "to": "T51", - "type": "enables" - }, - { - "from": "T51", - "to": "T52", - "type": "blocks" - }, - { - "from": "T53", - "to": "T54", - "type": "enables" - }, - { - "from": "T54", - "to": "T55", - "type": "enables" - }, - { - "from": "T55", - "to": "T56", - "type": "blocks" - }, - { - "from": "T57", - "to": "T58", - "type": "enables" - }, - { - "from": "T29", - "to": "T30", - "type": "blocks" - }, - { - "from": "T101", - "to": "T102", - "type": "next" - }, - { - "from": "T102", - "to": "T103", - "type": "next" - }, - { - "from": "T103", - "to": "T104", - "type": "next" - }, - { - "from": "T104", - "to": "T105", - "type": "next" - }, - { - "from": "T105", - "to": "T106", - "type": "next" - }, - { - "from": "T106", - "to": "T107", - "type": "next" - }, - { - "from": "T107", - "to": "T108", - "type": "next" - }, - { - "from": "T108", - "to": "T109", - "type": "next" - }, - { - "from": "T109", - "to": "T110", - "type": "next" - }, - { - "from": "T110", - "to": "T111", - "type": "next" - }, - { - "from": "T111", - "to": "T112", - "type": "next" - }, - { - "from": "M2-002", - "to": "M2-003", - "type": "enables" - }, - { - "from": "M2-001", - "to": "M2-004", - "type": "enables" - }, - { - "from": "M2-002", - "to": "M2-004", - "type": "enables" - }, - { - "from": "M2-005", - "to": "M2-006", - "type": "enables" - }, - { - "from": "M2-005", - "to": "M2-007", - "type": "enables" - }, - { - "from": "M2-006", - "to": "M2-007", - "type": "enables" - }, - { - "from": "M2-001", - "to": "M2-008", - "type": "enables" - }, - { - "from": "M2-008", - "to": "M2-009", - "type": "enables" - }, - { - "from": "M2-008", - "to": "M2-010", - "type": "enables" - }, - { - "from": "M2-004", - "to": "M2-011", - "type": "enables" - }, - { - "from": "M2-007", - "to": "M2-011", - "type": "enables" - }, - { - "from": "M2-009", - "to": "M2-011", - "type": "enables" - }, - { - "from": "M2-010", - "to": "M2-011", - "type": "enables" - }, - { - "from": "M2-012", - "to": "M2-011", - "type": "enables" - }, - { - "from": "M2-011", - "to": "M2-013", - "type": "enables" - }, - { - "from": "M2-012", - "to": "M2-013", - "type": "enables" - }, - { - "from": "M2-013", - "to": "M2-014", - "type": "enables" - }, - { - "from": "M2-014", - "to": "M3-001", - "type": "enables" - }, - { - "from": "M3-001", - "to": "M3-002", - "type": "enables" - }, - { - "from": "M3-001", - "to": "M3-003", - "type": "enables" - }, - { - "from": "M3-001", - "to": "M3-004", - "type": "enables" - }, - { - "from": "M3-003", - "to": "M3-005", - "type": "enables" - }, - { - "from": "M3-004", - "to": "M3-005", - "type": "enables" - }, - { - "from": "M3-005", - "to": "M3-006", - "type": "enables" - }, - { - "from": "M3-002", - "to": "M3-006", - "type": "enables" - }, - { - "from": "M3-006", - "to": "M3-007", - "type": "enables" - }, - { - "from": "M3-006", - "to": "M3-008", - "type": "enables" - }, - { - "from": "M3-006", - "to": "M3-009", - "type": "enables" - }, - { - "from": "M3-006", - "to": "M3-010", - "type": "enables" - }, - { - "from": "M3-006", - "to": "M3-011", - "type": "enables" - }, - { - "from": "M3-007", - "to": "M3-012", - "type": "enables" - }, - { - "from": "M3-008", - "to": "M3-012", - "type": "enables" - }, - { - "from": "M3-009", - "to": "M3-012", - "type": "enables" - }, - { - "from": "M3-012", - "to": "M3-013", - "type": "enables" - }, - { - "from": "M3-001", - "to": "M3-014", - "type": "enables" - }, - { - "from": "M3-014", - "to": "M3-015", - "type": "enables" - }, - { - "from": "M3-015", - "to": "M3-016", - "type": "enables" - }, - { - "from": "M3-002", - "to": "M3-016", - "type": "enables" - }, - { - "from": "M3-001", - "to": "M3-017", - "type": "enables" - }, - { - "from": "M3-017", - "to": "M3-018", - "type": "enables" - }, - { - "from": "M3-006", - "to": "M3-018", - "type": "enables" - }, + } + ], + "edges": [ { - "from": "M3-002", - "to": "M3-019", + "from": "T2", + "to": "T3", "type": "enables" }, { - "from": "M3-017", - "to": "M3-019", - "type": "enables" + "from": "T2", + "to": "T4", + "type": "feeds" }, { - "from": "M3-014", - "to": "M3-019", + "from": "T4", + "to": "T5", "type": "enables" }, { - "from": "M3-019", - "to": "M3-020", + "from": "T2", + "to": "T6", "type": "enables" }, { - "from": "M3-007", - "to": "M3-020", + "from": "T3", + "to": "T7", "type": "enables" }, { - "from": "M3-008", - "to": "M3-020", - "type": "enables" + "from": "T7", + "to": "T8", + "type": "blocks" }, { - "from": "M3-009", - "to": "M3-020", - "type": "enables" + "from": "T8", + "to": "T9", + "type": "blocks" }, { - "from": "M3-012", - "to": "M3-021", - "type": "enables" + "from": "T9", + "to": "T10", + "type": "blocks" }, { - "from": "M3-006", - "to": "M3-021", + "from": "T11", + "to": "T12", "type": "enables" }, { - "from": "M3-019", - "to": "M3-022", - "type": "enables" + "from": "T11", + "to": "T13", + "type": "feeds" }, { - "from": "M3-020", - "to": "M3-022", + "from": "T12", + "to": "T13", "type": "enables" }, { - "from": "M3-021", - "to": "M3-022", - "type": "enables" + "from": "T13", + "to": "T14", + "type": "blocks" }, { - "from": "M3-022", - "to": "M3-023", + "from": "T15", + "to": "T16", "type": "enables" }, { - "from": "M3-022", - "to": "M3-024", - "type": "enables" + "from": "T15", + "to": "T17", + "type": "feeds" }, { - "from": "M3-008", - "to": "M3-024", + "from": "T16", + "to": "T17", "type": "enables" }, { - "from": "M3-018", - "to": "M3-024", - "type": "enables" + "from": "T17", + "to": "T18", + "type": "blocks" }, { - "from": "M3-022", - "to": "M3-025", + "from": "T19", + "to": "T20", "type": "enables" }, - { - "from": "M3-023", - "to": "M3-025", - "type": "enables" + { + "from": "T19", + "to": "T21", + "type": "feeds" }, { - "from": "M3-024", - "to": "M3-025", + "from": "T20", + "to": "T21", "type": "enables" }, { - "from": "M3-025", - "to": "M4-001", - "type": "enables" + "from": "T21", + "to": "T22", + "type": "blocks" }, { - "from": "M4-001", - "to": "M4-002", + "from": "T23", + "to": "T24", "type": "enables" }, { - "from": "M4-001", - "to": "M4-003", - "type": "enables" + "from": "T23", + "to": "T25", + "type": "feeds" }, { - "from": "M4-001", - "to": "M4-004", + "from": "T24", + "to": "T25", "type": "enables" }, { - "from": "M4-002", - "to": "M4-005", - "type": "enables" + "from": "T25", + "to": "T26", + "type": "blocks" }, { - "from": "M4-003", - "to": "M4-005", + "from": "T24", + "to": "T27", "type": "enables" }, { - "from": "M4-004", - "to": "M4-006", - "type": "enables" + "from": "T27", + "to": "T28", + "type": "blocks" }, { - "from": "M4-005", - "to": "M4-006", + "from": "T29", + "to": "T30", "type": "enables" }, { - "from": "M3-025", - "to": "M4-007", + "from": "T30", + "to": "T31", "type": "enables" }, { - "from": "M4-007", - "to": "M4-008", - "type": "enables" + "from": "T31", + "to": "T32", + "type": "blocks" }, { - "from": "M4-007", - "to": "M4-009", + "from": "T33", + "to": "T34", "type": "enables" }, { - "from": "M4-008", - "to": "M4-010", + "from": "T34", + "to": "T35", "type": "enables" }, { - "from": "M4-009", - "to": "M4-010", - "type": "enables" + "from": "T35", + "to": "T36", + "type": "blocks" }, { - "from": "M4-008", - "to": "M4-011", + "from": "T37", + "to": "T38", "type": "enables" }, { - "from": "M4-010", - "to": "M4-012", + "from": "T38", + "to": "T39", "type": "enables" }, { - "from": "M4-011", - "to": "M4-012", - "type": "enables" + "from": "T39", + "to": "T40", + "type": "blocks" }, { - "from": "M4-006", - "to": "M4-013", + "from": "T41", + "to": "T42", "type": "enables" }, { - "from": "M4-012", - "to": "M4-013", + "from": "T41", + "to": "T43", "type": "enables" }, { - "from": "M4-013", - "to": "M4-014", + "from": "T42", + "to": "T44", "type": "enables" }, { - "from": "M4-013", - "to": "M4-015", + "from": "T43", + "to": "T44", "type": "enables" }, { - "from": "M4-014", - "to": "M4-016", + "from": "T45", + "to": "T46", "type": "enables" }, { - "from": "M4-015", - "to": "M4-017", + "from": "T46", + "to": "T47", "type": "enables" }, { - "from": "M4-016", - "to": "M4-017", - "type": "enables" + "from": "T47", + "to": "T48", + "type": "blocks" }, { - "from": "M4-017", - "to": "M4-018", + "from": "T49", + "to": "T50", "type": "enables" }, { - "from": "M4-018", - "to": "M4-019", + "from": "T50", + "to": "T51", "type": "enables" }, { - "from": "M4-019", - "to": "M4-020", - "type": "enables" + "from": "T51", + "to": "T52", + "type": "blocks" }, { - "from": "M4-020", - "to": "M4-021", + "from": "T53", + "to": "T54", "type": "enables" }, { - "from": "M4-020", - "to": "M4-022", + "from": "T54", + "to": "T55", "type": "enables" }, { - "from": "M4-021", - "to": "M4-023", - "type": "enables" + "from": "T55", + "to": "T56", + "type": "blocks" }, { - "from": "M4-022", - "to": "M4-023", + "from": "T57", + "to": "T58", "type": "enables" }, { - "from": "M4-023", - "to": "M4-024", - "type": "enables" + "from": "T29", + "to": "T30", + "type": "blocks" }, { - "from": "M4-024", - "to": "M4-025", - "type": "enables" + "from": "T101", + "to": "T102", + "type": "next" }, { - "from": "M4-019", - "to": "M4-026", - "type": "enables" + "from": "T102", + "to": "T103", + "type": "next" }, { - "from": "M4-026", - "to": "M4-027", - "type": "enables" + "from": "T103", + "to": "T104", + "type": "next" }, { - "from": "M4-027", - "to": "M4-028", - "type": "enables" + "from": "T104", + "to": "T105", + "type": "next" }, { - "from": "M4-028", - "to": "M4-029", - "type": "enables" + "from": "T105", + "to": "T106", + "type": "next" }, { - "from": "M4-028", - "to": "M4-030", - "type": "enables" + "from": "T106", + "to": "T107", + "type": "next" }, { - "from": "M4-029", - "to": "M4-031", - "type": "enables" + "from": "T107", + "to": "T108", + "type": "next" }, { - "from": "M4-030", - "to": "M4-031", - "type": "enables" + "from": "T108", + "to": "T109", + "type": "next" }, { - "from": "M4-031", - "to": "M4-032", - "type": "enables" + "from": "T109", + "to": "T110", + "type": "next" }, { - "from": "M4-025", - "to": "M4-033", - "type": "enables" + "from": "T110", + "to": "T111", + "type": "next" }, { - "from": "M4-032", - "to": "M4-033", - "type": "enables" + "from": "T111", + "to": "T112", + "type": "next" }, { - "from": "M4-033", - "to": "M4-034", + "from": "M2-002", + "to": "M2-003", "type": "enables" }, { - "from": "M4-033", - "to": "M4-035", + "from": "M2-001", + "to": "M2-004", "type": "enables" }, { - "from": "M4-033", - "to": "M4-036", + "from": "M2-002", + "to": "M2-004", "type": "enables" }, { - "from": "M4-034", - "to": "M4-037", + "from": "M2-005", + "to": "M2-006", "type": "enables" }, { - "from": "M4-035", - "to": "M4-037", + "from": "M2-005", + "to": "M2-007", "type": "enables" }, { - "from": "M4-036", - "to": "M4-037", + "from": "M2-006", + "to": "M2-007", "type": "enables" }, { - "from": "M4-037", - "to": "M4-038", + "from": "M2-001", + "to": "M2-008", "type": "enables" }, { - "from": "M4-038", - "to": "M4-039", + "from": "M2-008", + "to": "M2-009", "type": "enables" }, { - "from": "M4-019", - "to": "M4-040", + "from": "M2-008", + "to": "M2-010", "type": "enables" }, { - "from": "M4-040", - "to": "M4-041", + "from": "M2-004", + "to": "M2-011", "type": "enables" }, { - "from": "M4-040", - "to": "M4-042", + "from": "M2-007", + "to": "M2-011", "type": "enables" }, { - "from": "M4-041", - "to": "M4-043", + "from": "M2-009", + "to": "M2-011", "type": "enables" }, { - "from": "M4-042", - "to": "M4-043", + "from": "M2-010", + "to": "M2-011", "type": "enables" }, { - "from": "M4-043", - "to": "M4-044", + "from": "M2-012", + "to": "M2-011", "type": "enables" }, { - "from": "M4-044", - "to": "M4-045", + "from": "M2-011", + "to": "M2-013", "type": "enables" }, { - "from": "M4-045", - "to": "M4-046", + "from": "M2-012", + "to": "M2-013", "type": "enables" }, { - "from": "M4-019", - "to": "M4-047", + "from": "M2-013", + "to": "M2-014", "type": "enables" }, { - "from": "M4-047", - "to": "M4-048", + "from": "M2-014", + "to": "M3-001", "type": "enables" }, { - "from": "M4-047", - "to": "M4-049", + "from": "M3-001", + "to": "M3-002", "type": "enables" }, { - "from": "M4-048", - "to": "M4-050", + "from": "M3-001", + "to": "M3-003", "type": "enables" }, { - "from": "M4-049", - "to": "M4-050", + "from": "M3-001", + "to": "M3-004", "type": "enables" }, { - "from": "M4-050", - "to": "M4-051", + "from": "M3-003", + "to": "M3-005", "type": "enables" }, { - "from": "M4-051", - "to": "M4-052", + "from": "M3-004", + "to": "M3-005", "type": "enables" }, { - "from": "M4-052", - "to": "M4-053", + "from": "M3-005", + "to": "M3-006", "type": "enables" }, { - "from": "M4-053", - "to": "M4-054", + "from": "M3-002", + "to": "M3-006", "type": "enables" }, { - "from": "M4-054", - "to": "M4-055", + "from": "M3-006", + "to": "M3-007", "type": "enables" }, { - "from": "M4-039", - "to": "M4-056", + "from": "M3-006", + "to": "M3-008", "type": "enables" }, { - "from": "M4-046", - "to": "M4-056", + "from": "M3-006", + "to": "M3-009", "type": "enables" }, { - "from": "M4-055", - "to": "M4-056", + "from": "M3-006", + "to": "M3-010", "type": "enables" }, { - "from": "M4-056", - "to": "M4-057", + "from": "M3-006", + "to": "M3-011", "type": "enables" }, { - "from": "M4-056", - "to": "M4-058", + "from": "M3-007", + "to": "M3-012", "type": "enables" }, { - "from": "M4-057", - "to": "M4-059", + "from": "M3-008", + "to": "M3-012", "type": "enables" }, { - "from": "M4-058", - "to": "M4-059", + "from": "M3-009", + "to": "M3-012", "type": "enables" }, { - "from": "M4-059", - "to": "M4-060", + "from": "M3-012", + "to": "M3-013", "type": "enables" }, { - "from": "M4-060", - "to": "M4-061", + "from": "M3-001", + "to": "M3-014", "type": "enables" }, { - "from": "M4-055", - "to": "M4-061", + "from": "M3-014", + "to": "M3-015", "type": "enables" }, { - "from": "M4-061", - "to": "M4-062", + "from": "M3-015", + "to": "M3-016", "type": "enables" }, { - "from": "M4-062", - "to": "M4-063", + "from": "M3-002", + "to": "M3-016", "type": "enables" }, { - "from": "M4-063", - "to": "M4-064", + "from": "M3-001", + "to": "M3-017", "type": "enables" }, { - "from": "M4-032", - "to": "M4-064", + "from": "M3-017", + "to": "M3-018", "type": "enables" }, { - "from": "M4-064", - "to": "M4-065", + "from": "M3-006", + "to": "M3-018", "type": "enables" }, { - "from": "M4-065", - "to": "M4-066", + "from": "M3-002", + "to": "M3-019", "type": "enables" }, { - "from": "M4-066", - "to": "M4-067", + "from": "M3-017", + "to": "M3-019", "type": "enables" }, { - "from": "M4-067", - "to": "M4-068", + "from": "M3-014", + "to": "M3-019", "type": "enables" }, { - "from": "M4-068", - "to": "M4-069", + "from": "M3-019", + "to": "M3-020", "type": "enables" }, { - "from": "M4-069", - "to": "M4-070", + "from": "M3-007", + "to": "M3-020", "type": "enables" }, { - "from": "M4-070", - "to": "M4-071", + "from": "M3-008", + "to": "M3-020", "type": "enables" }, { - "from": "M4-039", - "to": "M4-071", + "from": "M3-009", + "to": "M3-020", "type": "enables" }, { - "from": "M4-071", - "to": "M4-072", + "from": "M3-012", + "to": "M3-021", "type": "enables" }, { - "from": "M4-071", - "to": "M4-073", + "from": "M3-006", + "to": "M3-021", "type": "enables" }, { - "from": "M4-071", - "to": "M4-074", + "from": "M3-019", + "to": "M3-022", "type": "enables" }, { - "from": "M4-071", - "to": "M4-075", + "from": "M3-020", + "to": "M3-022", "type": "enables" }, { - "from": "M4-072", - "to": "M4-076", + "from": "M3-021", + "to": "M3-022", "type": "enables" }, { - "from": "M4-073", - "to": "M4-076", + "from": "M3-022", + "to": "M3-023", "type": "enables" }, { - "from": "M4-074", - "to": "M4-076", + "from": "M3-022", + "to": "M3-024", "type": "enables" }, { - "from": "M4-075", - "to": "M4-076", + "from": "M3-008", + "to": "M3-024", "type": "enables" }, { - "from": "M4-076", - "to": "M4-077", + "from": "M3-018", + "to": "M3-024", "type": "enables" }, { - "from": "M4-077", - "to": "M4-078", + "from": "M3-022", + "to": "M3-025", "type": "enables" }, { - "from": "M4-070", - "to": "M4-078", + "from": "M3-023", + "to": "M3-025", "type": "enables" }, { - "from": "M4-062", - "to": "M4-078", + "from": "M3-024", + "to": "M3-025", "type": "enables" } ] From 0c52c80ea5906f861b3ec6c1676e2cf3718247c6 Mon Sep 17 00:00:00 2001 From: Domini Montessori Date: Thu, 3 Sep 2026 00:53:47 +0300 Subject: [PATCH 2/3] =?UTF-8?q?feat(beads):=20M4=20Adaptive=20Factory=20DA?= =?UTF-8?q?G=20=E2=80=94=20self-managed=20loop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit M4 extends M1-M3 runtime into closed-loop factory: Memory (001-006), Intelligence (007-012), Planner (013-019), Backlog (020-025), Learning (026-032), Verification (033-039), Observability (040-046), Supervisor (047-055), Policy 2.0 (056-062), Self-Healing (063-070), Factory E2E (071-078). 78 nodes, pending, P1/P2 R1/R2, TDD verification. --- .beads/beads.json | 3114 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 2840 insertions(+), 274 deletions(-) diff --git a/.beads/beads.json b/.beads/beads.json index 5bb55f0a..09bd3aac 100644 --- a/.beads/beads.json +++ b/.beads/beads.json @@ -2,7 +2,7 @@ "schema": "beads.state-graph/v1", "project": "dominicusin.github.io", "initiative": "repo-gist-ingestion", - "updated": "2026-09-02", + "updated": "2026-09-03", "nodes": [ { "id": "T1", @@ -2438,612 +2438,3178 @@ "npx hardhat test" ], "initiative": "autonomous-factory-m3" + }, + { + "id": "M4-001", + "kind": "task", + "title": "M4.1 Persistent Memory — memory.cjs core", + "status": "pending", + "deps": [ + "M3-025" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/memory/memory.cjs", + "agent/memory/memory.test.cjs" + ], + "acceptance_criteria": [ + "memory.cjs load/save/get/set/list with JSONL persistence", + "no data loss on restart", + "contract validates MemoryEntry {id,task,run_id,payload,timestamp}" + ], + "verification": [ + "node --test agent/memory/memory.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-002", + "kind": "task", + "title": "M4.2 Episodic Memory — episodic.cjs", + "status": "pending", + "deps": [ + "M4-001" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/memory/episodic.cjs", + "agent/memory/episodic.test.cjs" + ], + "acceptance_criteria": [ + "episodic append/query by run_id+task_id", + "retention window enforced", + "evidence ↔ episode correlation" + ], + "verification": [ + "node --test agent/memory/episodic.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-003", + "kind": "task", + "title": "M4.3 Semantic Memory — semantic.cjs", + "status": "pending", + "deps": [ + "M4-001" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/memory/semantic.cjs", + "agent/memory/semantic.test.cjs" + ], + "acceptance_criteria": [ + "semantic index facts by capability/policy failure", + "query by tags returns ranked facts", + "no mutable global state" + ], + "verification": [ + "node --test agent/memory/semantic.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-004", + "kind": "task", + "title": "M4.4 Procedural Memory — procedural.cjs", + "status": "pending", + "deps": [ + "M4-001" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/memory/procedural.cjs", + "agent/memory/procedural.test.cjs" + ], + "acceptance_criteria": [ + "procedural stores workflow templates Task→Stages", + "template reuse produces identical ExecutionPlan", + "versioned templates" + ], + "verification": [ + "node --test agent/memory/procedural.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-005", + "kind": "task", + "title": "M4.5 Decision Log — decisions.cjs", + "status": "pending", + "deps": [ + "M4-002", + "M4-003" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/memory/decisions.cjs", + "agent/memory/decisions.test.cjs" + ], + "acceptance_criteria": [ + "decisions.cjs records Decision {task,options,chosen,rationale,evidence}", + "decision replay deterministic", + "unknown≠false preserved" + ], + "verification": [ + "node --test agent/memory/decisions.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-006", + "kind": "task", + "title": "M4.6 Failure Memory + Memory Facade — failures.cjs", + "status": "pending", + "deps": [ + "M4-004", + "M4-005" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/memory/failures.cjs", + "agent/memory/failures.test.cjs", + "agent/memory/index.cjs" + ], + "acceptance_criteria": [ + "failures.cjs indexes failure signature→diagnosis→healing", + "memory facade exports getMemory/queryMemory", + "no shared mutable LLM memory" + ], + "verification": [ + "node --test agent/memory/failures.test.cjs", + "node --test agent/memory/memory.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-007", + "kind": "task", + "title": "M4.7 Repository Graph — repository-graph.cjs", + "status": "pending", + "deps": [ + "M3-025" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/intelligence/repository-graph.cjs", + "agent/intelligence/repository-graph.test.cjs" + ], + "acceptance_criteria": [ + "graph nodes = files/modules, edges = import/require", + "incremental update on diff", + "JSON serializable snapshot" + ], + "verification": [ + "node --test agent/intelligence/repository-graph.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-008", + "kind": "task", + "title": "M4.8 Dependency Graph — dependency-graph.cjs", + "status": "pending", + "deps": [ + "M4-007" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/intelligence/dependency-graph.cjs", + "agent/intelligence/dependency-graph.test.cjs" + ], + "acceptance_criteria": [ + "dependency-graph builds DAG of package/file deps", + "cycle detection reports culprit edge", + "transitive closure correct" + ], + "verification": [ + "node --test agent/intelligence/dependency-graph.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-009", + "kind": "task", + "title": "M4.9 Ownership Map — ownership.cjs", + "status": "pending", + "deps": [ + "M4-007" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/intelligence/ownership.cjs", + "agent/intelligence/ownership.test.cjs" + ], + "acceptance_criteria": [ + "ownership maps file→team/capability via CODEOWNERS+git history", + "fallback to most frequent committer", + "confidence metadata" + ], + "verification": [ + "node --test agent/intelligence/ownership.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-010", + "kind": "task", + "title": "M4.10 Change Impact Analyzer — change-impact.cjs", + "status": "pending", + "deps": [ + "M4-008", + "M4-009" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/intelligence/change-impact.cjs", + "agent/intelligence/change-impact.test.cjs" + ], + "acceptance_criteria": [ + "change-impact given diff returns affectedFiles+affectedTasks+blastRadius", + "uses dependency-graph+ownership", + "ranked impact with evidence" + ], + "verification": [ + "node --test agent/intelligence/change-impact.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-011", + "kind": "task", + "title": "M4.11 Hotspots Detector — hotspots.cjs", + "status": "pending", + "deps": [ + "M4-008" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/intelligence/hotspots.cjs", + "agent/intelligence/hotspots.test.cjs" + ], + "acceptance_criteria": [ + "hotspots by churn+complexity+failure history", + "top-10 hotspots ranked", + "integrates with semantic memory" + ], + "verification": [ + "node --test agent/intelligence/hotspots.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-012", + "kind": "task", + "title": "M4.12 Repository Intelligence Facade", + "status": "pending", + "deps": [ + "M4-010", + "M4-011" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/intelligence/index.cjs", + "agent/intelligence/intelligence.test.cjs" + ], + "acceptance_criteria": [ + "facade getIntelligence(diff) returns {graph,impact,hotspots,ownership}", + "cached per commit SHA", + "no filesystem mutation" + ], + "verification": [ + "node --test agent/intelligence/intelligence.test.cjs", + "node --test agent/intelligence/repository-graph.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-013", + "kind": "task", + "title": "M4.13 Adaptive Planner Core — planner.cjs", + "status": "pending", + "deps": [ + "M4-006", + "M4-012" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/planner/planner.cjs", + "agent/planner/planner.test.cjs" + ], + "acceptance_criteria": [ + "planner consumes Memory+Intelligence+Beads → TaskPlan {tasks,deps,risk,acceptance,verification}", + "planner never writes production code", + "deps form acyclic graph" + ], + "verification": [ + "node --test agent/planner/planner.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-014", + "kind": "task", + "title": "M4.14 Task Decomposition — decomposition.cjs", + "status": "pending", + "deps": [ + "M4-013" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/planner/decomposition.cjs", + "agent/planner/decomposition.test.cjs" + ], + "acceptance_criteria": [ + "decomposition splits task into ≤5 subtasks with scope+files", + "each subtask has isolated verification", + "no out-of-scope file leaks" + ], + "verification": [ + "node --test agent/planner/decomposition.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-015", + "kind": "task", + "title": "M4.15 Prioritizer — prioritizer.cjs", + "status": "pending", + "deps": [ + "M4-013" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/planner/prioritizer.cjs", + "agent/planner/prioritizer.test.cjs" + ], + "acceptance_criteria": [ + "prioritizer ranks tasks by P0> P1> P2 and risk+impact", + "stable sort on tie-breaker id", + "respects Budget maxWorkers" + ], + "verification": [ + "node --test agent/planner/prioritizer.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-016", + "kind": "task", + "title": "M4.16 Dependency Resolver — dependency-resolver.cjs", + "status": "pending", + "deps": [ + "M4-014" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/planner/dependency-resolver.cjs", + "agent/planner/dependency-resolver.test.cjs" + ], + "acceptance_criteria": [ + "resolves TaskPlan deps to topological order", + "detects cycle → error with cycle path", + "outputs ExecutionPlan stages with parallel flags" + ], + "verification": [ + "node --test agent/planner/dependency-resolver.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-017", + "kind": "task", + "title": "M4.17 Replanner — replanner.cjs", + "status": "pending", + "deps": [ + "M4-015", + "M4-016" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/planner/replanner.cjs", + "agent/planner/replanner.test.cjs" + ], + "acceptance_criteria": [ + "replanner on failure/impact change produces new TaskPlan delta", + "preserves done tasks, re-queues affected only", + "emits EvidenceEnvelope replanned" + ], + "verification": [ + "node --test agent/planner/replanner.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-018", + "kind": "task", + "title": "M4.18 Planner ↔ Evidence Bus Integration", + "status": "pending", + "deps": [ + "M4-017" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/planner/evidence-integration.cjs", + "agent/planner/evidence-integration.test.cjs" + ], + "acceptance_criteria": [ + "planner subscribes to EvidenceBus, publishes TaskPlan envelopes", + "order preserved per run_id", + "typed envelopes only" + ], + "verification": [ + "node --test agent/planner/evidence-integration.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-019", + "kind": "task", + "title": "M4.19 Adaptive Planner Verification", + "status": "pending", + "deps": [ + "M4-018" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/planner/planner.test.cjs", + "agent/planner/decomposition.test.cjs", + "agent/planner/dependency-resolver.test.cjs" + ], + "acceptance_criteria": [ + "planner E2E: sample epic → TaskPlan validated", + "all verification TDD green", + "no shared mutable state" + ], + "verification": [ + "node --test agent/planner/planner.test.cjs", + "node --test agent/planner/decomposition.test.cjs", + "node --test agent/planner/dependency-resolver.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-020", + "kind": "task", + "title": "M4.20 Backlog Discovery — discovery.cjs", + "status": "pending", + "deps": [ + "M4-019" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/backlog/discovery.cjs", + "agent/backlog/discovery.test.cjs" + ], + "acceptance_criteria": [ + "discovers tasks from Beads+git diff+intelligence hotspots", + "deduplicates against existing backlog", + "emits BacklogEntry[]" + ], + "verification": [ + "node --test agent/backlog/discovery.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-021", + "kind": "task", + "title": "M4.21 Backlog Prioritization — prioritization.cjs", + "status": "pending", + "deps": [ + "M4-020" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/backlog/prioritization.cjs", + "agent/backlog/prioritization.test.cjs" + ], + "acceptance_criteria": [ + "prioritization ranks by planner priority+impact+age", + "P1 before P2, R2 escalated", + "stable ranking" + ], + "verification": [ + "node --test agent/backlog/prioritization.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-022", + "kind": "task", + "title": "M4.22 Backlog Deduplication — deduplication.cjs", + "status": "pending", + "deps": [ + "M4-020" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/backlog/deduplication.cjs", + "agent/backlog/deduplication.test.cjs" + ], + "acceptance_criteria": [ + "deduplication by title+files Jaccard >0.8→merge", + "preserves oldest id as canonical", + "no data loss" + ], + "verification": [ + "node --test agent/backlog/deduplication.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-023", + "kind": "task", + "title": "M4.23 Backlog Decomposition — decomposition.cjs", + "status": "pending", + "deps": [ + "M4-021", + "M4-022" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/backlog/decomposition-backlog.cjs", + "agent/backlog/decomposition-backlog.test.cjs" + ], + "acceptance_criteria": [ + "splits oversized backlog item (>1000 diff lines) into ≤5", + "preserves deps acyclic", + "each child inherits parent priority" + ], + "verification": [ + "node --test agent/backlog/decomposition-backlog.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-024", + "kind": "task", + "title": "M4.24 Stale Task Detector — stale-task-detector.cjs", + "status": "pending", + "deps": [ + "M4-023" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/backlog/stale-task-detector.cjs", + "agent/backlog/stale-task-detector.test.cjs" + ], + "acceptance_criteria": [ + "detects stale >14d no activity or orphaned worktree", + "marks STALE→evidence, never auto-deletes", + "supervisor can clean after evidence" + ], + "verification": [ + "node --test agent/backlog/stale-task-detector.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-025", + "kind": "task", + "title": "M4.25 Backlog Manager Facade", + "status": "pending", + "deps": [ + "M4-024" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/backlog/index.cjs", + "agent/backlog/backlog.test.cjs" + ], + "acceptance_criteria": [ + "facade getBacklog() returns ranked, deduped, decomposed, stale-flagged list", + "integrates with planner prioritizer", + "typed Beads entries" + ], + "verification": [ + "node --test agent/backlog/backlog.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-026", + "kind": "task", + "title": "M4.26 Outcome Tracker — outcome.cjs", + "status": "pending", + "deps": [ + "M4-019" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/learning/outcome.cjs", + "agent/learning/outcome.test.cjs" + ], + "acceptance_criteria": [ + "outcome records Task {run_id,result,evidence,diagnosis,retries}", + "outcome query by task_id returns history", + "append-only log" + ], + "verification": [ + "node --test agent/learning/outcome.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-027", + "kind": "task", + "title": "M4.27 Metrics Collector — metrics.cjs", + "status": "pending", + "deps": [ + "M4-026" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/learning/metrics.cjs", + "agent/learning/metrics.test.cjs" + ], + "acceptance_criteria": [ + "collects pass/fail rate, MTTR, retries, coverage delta", + "aggregates per capability/worker", + "emits MetricsEnvelope" + ], + "verification": [ + "node --test agent/learning/metrics.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-028", + "kind": "task", + "title": "M4.28 Pattern Miner — pattern-miner.cjs", + "status": "pending", + "deps": [ + "M4-027" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/learning/pattern-miner.cjs", + "agent/learning/pattern-miner.test.cjs" + ], + "acceptance_criteria": [ + "mines failure signatures → pattern {signature,freq,suggestedFix}", + "freq threshold ≥3", + "pattern confidence metadata" + ], + "verification": [ + "node --test agent/learning/pattern-miner.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-029", + "kind": "task", + "title": "M4.29 Worker Performance — worker-performance.cjs", + "status": "pending", + "deps": [ + "M4-028" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/learning/worker-performance.cjs", + "agent/learning/worker-performance.test.cjs" + ], + "acceptance_criteria": [ + "ranks workers by success rate per capability", + "exposes getBestWorker(capability)", + "no mutable global" + ], + "verification": [ + "node --test agent/learning/worker-performance.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-030", + "kind": "task", + "title": "M4.30 Failure Patterns — failure-patterns.cjs", + "status": "pending", + "deps": [ + "M4-028" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/learning/failure-patterns.cjs", + "agent/learning/failure-patterns.test.cjs" + ], + "acceptance_criteria": [ + "failure-patterns maps category→patterns with fix hints", + "integrates with memory/failures.cjs", + "query returns top-3 patterns" + ], + "verification": [ + "node --test agent/learning/failure-patterns.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-031", + "kind": "task", + "title": "M4.31 Learning Aggregator", + "status": "pending", + "deps": [ + "M4-029", + "M4-030" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/learning/index.cjs", + "agent/learning/learning.test.cjs" + ], + "acceptance_criteria": [ + "aggregator getLearningSnapshot() returns {metrics,patterns,workerRank}", + "cached per run_id", + "typed envelope" + ], + "verification": [ + "node --test agent/learning/learning.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-032", + "kind": "task", + "title": "M4.32 Learning Feedback Loop Integration", + "status": "pending", + "deps": [ + "M4-031" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/learning/feedback.cjs", + "agent/learning/feedback.test.cjs" + ], + "acceptance_criteria": [ + "feedback loop pushes LearningSnapshot to planner+memory", + " replanner consumes patterns for next TaskPlan", + "evidence bus integration" + ], + "verification": [ + "node --test agent/learning/feedback.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-033", + "kind": "task", + "title": "M4.33 Invariant Checker — invariant-checker.cjs", + "status": "pending", + "deps": [ + "M4-025", + "M4-032" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/verification/invariant-checker.cjs", + "agent/verification/invariant-checker.test.cjs" + ], + "acceptance_criteria": [ + "checks invariants: 1 worktree=1 writer, no main commit, no policy bypass", + "violation → SCOPE_VIOLATION with evidence", + "runs pre-commit" + ], + "verification": [ + "node --test agent/verification/invariant-checker.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-034", + "kind": "task", + "title": "M4.34 Regression Detector — regression-detector.cjs", + "status": "pending", + "deps": [ + "M4-033" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/verification/regression-detector.cjs", + "agent/verification/regression-detector.test.cjs" + ], + "acceptance_criteria": [ + "detects perf/a11y/test regression vs baseline", + "threshold: bundle >10%, a11y violations >0", + "reports with evidence" + ], + "verification": [ + "node --test agent/verification/regression-detector.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-035", + "kind": "task", + "title": "M4.35 Policy Verifier — policy-verifier.cjs", + "status": "pending", + "deps": [ + "M4-033" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/verification/policy-verifier.cjs", + "agent/verification/policy-verifier.test.cjs" + ], + "acceptance_criteria": [ + "verifies diff against Policy 2.0 allowlist/denylist", + "R3/R4 blocking enforced", + "denied → POLICY_DENIED evidence" + ], + "verification": [ + "node --test agent/verification/policy-verifier.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-036", + "kind": "task", + "title": "M4.36 Evidence Verifier — evidence-verifier.cjs", + "status": "pending", + "deps": [ + "M4-033" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/verification/evidence-verifier.cjs", + "agent/verification/evidence-verifier.test.cjs" + ], + "acceptance_criteria": [ + "evidence ↔ commit correspondence checked", + "missing evidence → request_changes", + "typed envelope validation" + ], + "verification": [ + "node --test agent/verification/evidence-verifier.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-037", + "kind": "task", + "title": "M4.37 Factory Health — factory-health.cjs", + "status": "pending", + "deps": [ + "M4-034", + "M4-035", + "M4-036" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/verification/factory-health.cjs", + "agent/verification/factory-health.test.cjs" + ], + "acceptance_criteria": [ + "factory-health aggregates invariant+regression+policy+evidence → HEALTHY/DEGRADED/FAILED", + "health history persisted", + "dashboard consumable" + ], + "verification": [ + "node --test agent/verification/factory-health.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-038", + "kind": "task", + "title": "M4.38 Verification Orchestrator", + "status": "pending", + "deps": [ + "M4-037" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/verification/orchestrator.cjs", + "agent/verification/orchestrator.test.cjs" + ], + "acceptance_criteria": [ + "orchestrates all verifiers in parallel after IMPLEMENT", + "read-only parallel safe", + "collects VerificationReport" + ], + "verification": [ + "node --test agent/verification/orchestrator.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-039", + "kind": "task", + "title": "M4.39 Factory Verification Gate", + "status": "pending", + "deps": [ + "M4-038" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/verification/gate.cjs", + "agent/verification/gate.test.cjs" + ], + "acceptance_criteria": [ + "gate: all verifiers PASS → READY_FOR_REVIEW else REQUEST_CHANGES/ESCALATE", + "max 2 review cycles → ESCALATE", + "human gate preserved" + ], + "verification": [ + "node --test agent/verification/gate.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-040", + "kind": "task", + "title": "M4.40 Observability Events — events.cjs", + "status": "pending", + "deps": [ + "M4-019" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/events.cjs", + "agent/observability/events.test.cjs" + ], + "acceptance_criteria": [ + "events emitter typed FactoryEvent {run_id,task_id,event,payload,timestamp}", + "preserves order per run_id", + "integration with evidence-bus" + ], + "verification": [ + "node --test agent/observability/events.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-041", + "kind": "task", + "title": "M4.41 Observability Metrics", + "status": "pending", + "deps": [ + "M4-040" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/metrics.cjs", + "agent/observability/metrics.test.cjs" + ], + "acceptance_criteria": [ + "metrics probes: queue depth, worker utilization, MTTR, success rate", + "scrape endpoint compatible", + "no secret leakage" + ], + "verification": [ + "node --test agent/observability/metrics.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-042", + "kind": "task", + "title": "M4.42 Observability Traces — traces.cjs", + "status": "pending", + "deps": [ + "M4-040" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/traces.cjs", + "agent/observability/traces.test.cjs" + ], + "acceptance_criteria": [ + "traces capture span per worker execution", + "traceId = run_id, spans ordered", + "export OTel compatible" + ], + "verification": [ + "node --test agent/observability/traces.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-043", + "kind": "task", + "title": "M4.43 Dashboard — dashboard.cjs", + "status": "pending", + "deps": [ + "M4-041", + "M4-042" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/dashboard.cjs", + "agent/observability/dashboard.test.cjs" + ], + "acceptance_criteria": [ + "dashboard aggregates events+metrics+traces → summary JSON", + "serves at /data/factory-dashboard.json", + "no PII" + ], + "verification": [ + "node --test agent/observability/dashboard.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-044", + "kind": "task", + "title": "M4.44 Reports — reports.cjs", + "status": "pending", + "deps": [ + "M4-043" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/reports.cjs", + "agent/observability/reports.test.cjs" + ], + "acceptance_criteria": [ + "reports daily/weekly with trends", + "report includes factory-health + learning metrics", + "markdown+JSON output" + ], + "verification": [ + "node --test agent/observability/reports.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-045", + "kind": "task", + "title": "M4.45 Observability Integration", + "status": "pending", + "deps": [ + "M4-044" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/index.cjs", + "agent/observability/observability.test.cjs" + ], + "acceptance_criteria": [ + "integration wires observability into supervisor+verification", + "all verifiers emit observability events", + "single import facade" + ], + "verification": [ + "node --test agent/observability/observability.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-046", + "kind": "task", + "title": "M4.46 Observability Verification", + "status": "pending", + "deps": [ + "M4-045" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/observability/observability.test.cjs" + ], + "acceptance_criteria": [ + "observability E2E: event→metrics→trace→dashboard→report pipeline PASS", + "0 missing events on demo run", + "lint/test green" + ], + "verification": [ + "node --test agent/observability/observability.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-047", + "kind": "task", + "title": "M4.47 Factory Supervisor Core — supervisor.cjs", + "status": "pending", + "deps": [ + "M4-019" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/supervisor/factory-supervisor.cjs", + "agent/supervisor/factory-supervisor.test.cjs" + ], + "acceptance_criteria": [ + "supervisor enforces timeout/budget/policy/orphan guard extended", + "WORKER_TIMEOUT → terminate → evidence → retry/escalate", + "factory scope" + ], + "verification": [ + "node --test agent/supervisor/factory-supervisor.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-048", + "kind": "task", + "title": "M4.48 Task Scheduler Integration", + "status": "pending", + "deps": [ + "M4-047" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/supervisor/scheduler-integration.cjs", + "agent/supervisor/scheduler-integration.test.cjs" + ], + "acceptance_criteria": [ + "scheduler-integration merges planner stages with supervisor budget", + "parallel flags respected", + "1 worktree=1 writer invariant" + ], + "verification": [ + "node --test agent/supervisor/scheduler-integration.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-049", + "kind": "task", + "title": "M4.49 Resource Guard", + "status": "pending", + "deps": [ + "M4-047" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/supervisor/resource-guard.cjs", + "agent/supervisor/resource-guard.test.cjs" + ], + "acceptance_criteria": [ + "guards memory/time/parallel count", + "exceed → ESCALATE with evidence", + "uses M3 Budget correctly" + ], + "verification": [ + "node --test agent/supervisor/resource-guard.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-050", + "kind": "task", + "title": "M4.50 Policy Enforcement Hook", + "status": "pending", + "deps": [ + "M4-048", + "M4-049" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/supervisor/policy-hook.cjs", + "agent/supervisor/policy-hook.test.cjs" + ], + "acceptance_criteria": [ + "hook checks Policy 2.0 before every worker exec", + "R4 never autonomous → HUMAN", + "denied → POLICY_DENIED" + ], + "verification": [ + "node --test agent/supervisor/policy-hook.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-051", + "kind": "task", + "title": "M4.51 Escalation Handler", + "status": "pending", + "deps": [ + "M4-050" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/supervisor/escalation.cjs", + "agent/supervisor/escalation.test.cjs" + ], + "acceptance_criteria": [ + "escalation routes to human with evidence bundle", + "retry budget shared", + "3rd repeat same error → ESCALATED" + ], + "verification": [ + "node --test agent/supervisor/escalation.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-052", + "kind": "task", + "title": "M4.52 Orphan Cleaner", + "status": "pending", + "deps": [ + "M4-051" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/supervisor/orphan-cleaner.cjs", + "agent/supervisor/orphan-cleaner.test.cjs" + ], + "acceptance_criteria": [ + "orphan cleaner removes stale worktrees after evidence", + "never deletes active worktree", + "dry-run + confirm" + ], + "verification": [ + "node --test agent/supervisor/orphan-cleaner.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-053", + "kind": "task", + "title": "M4.53 Budget Sync with M3 Budget", + "status": "pending", + "deps": [ + "M4-052" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/supervisor/budget-sync.cjs", + "agent/supervisor/budget-sync.test.cjs" + ], + "acceptance_criteria": [ + "syncs Budget {maxTimeMs,maxRetries,maxWorkers,maxCommands,maxChangedFiles,maxDiffLines}", + "factory extends M3 budget", + "enforcement tested" + ], + "verification": [ + "node --test agent/supervisor/budget-sync.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-054", + "kind": "task", + "title": "M4.54 Supervisor ↔ Evidence Bus Wiring", + "status": "pending", + "deps": [ + "M4-053" + ], + "priority": "P1", + "risk": "R1", + "artifacts": [ + "agent/supervisor/evidence-wiring.cjs", + "agent/supervisor/evidence-wiring.test.cjs" + ], + "acceptance_criteria": [ + "supervisor emits SupervisorEvent envelopes to evidence bus", + "order preserved per run_id", + "typed envelopes" + ], + "verification": [ + "node --test agent/supervisor/evidence-wiring.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-055", + "kind": "task", + "title": "M4.55 Supervisor Verification", + "status": "pending", + "deps": [ + "M4-054" + ], + "priority": "P1", + "risk": "R2", + "artifacts": [ + "agent/supervisor/factory-supervisor.test.cjs" + ], + "acceptance_criteria": [ + "supervisor E2E: timeout→terminate→retry→escalate PASS", + "orphan cleanup verified", + "human gate present" + ], + "verification": [ + "node --test agent/supervisor/factory-supervisor.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-056", + "kind": "task", + "title": "M4.56 Policy Store 2.0 — policy.cjs v2", + "status": "pending", + "deps": [ + "M4-039", + "M4-046", + "M4-055" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/policy/policy-v2.cjs", + "agent/policy/policy-v2.test.cjs" + ], + "acceptance_criteria": [ + "policy store v2 supports DSL + versioned rules", + "migration from v1 without loss", + "validated schema" + ], + "verification": [ + "node --test agent/policy/policy-v2.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-057", + "kind": "task", + "title": "M4.57 Scope Rules 2.0", + "status": "pending", + "deps": [ + "M4-056" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/policy/scope-v2.cjs", + "agent/policy/scope-v2.test.cjs" + ], + "acceptance_criteria": [ + "scope rules glob + capability matrix", + "out-of-scope → SCOPE_VIOLATION", + "adapter check on diff before commit" + ], + "verification": [ + "node --test agent/policy/scope-v2.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-058", + "kind": "task", + "title": "M4.58 Risk Gates 2.0", + "status": "pending", + "deps": [ + "M4-056" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/policy/gates-v2.cjs", + "agent/policy/gates-v2.test.cjs" + ], + "acceptance_criteria": [ + "R1 CI PASS→REVIEW, R2 needs AUTO REVIEW, R3 SECURITY, R4 BLOCKED→HUMAN ONLY", + "never auto-merge R3/R4", + "gating tested per risk" + ], + "verification": [ + "node --test agent/policy/gates-v2.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-059", + "kind": "task", + "title": "M4.59 Allowlist/Denylist 2.0", + "status": "pending", + "deps": [ + "M4-057", + "M4-058" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/policy/allowlist-v2.cjs", + "agent/policy/allowlist-v2.test.cjs" + ], + "acceptance_criteria": [ + "allowlist git,node,npm,hugo,gh; deny rm -rf /,sudo,ssh,docker,credential access", + "policy→allow?execute:BLOCK", + "worker without policy cannot exec shell" + ], + "verification": [ + "node --test agent/policy/allowlist-v2.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-060", + "kind": "task", + "title": "M4.60 Policy DSL + Validation", + "status": "pending", + "deps": [ + "M4-059" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/policy/dsl.cjs", + "agent/policy/dsl.test.cjs" + ], + "acceptance_criteria": [ + "DSL parses policy.yaml → typed Policy", + "invalid DSL → validation error with line:col", + "no exec on invalid policy" + ], + "verification": [ + "node --test agent/policy/dsl.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-061", + "kind": "task", + "title": "M4.61 Policy ↔ Supervisor Integration", + "status": "pending", + "deps": [ + "M4-060", + "M4-055" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/policy/supervisor-integration.cjs", + "agent/policy/supervisor-integration.test.cjs" + ], + "acceptance_criteria": [ + "policy integrated into supervisor hook", + "supervisor consults policy before every stage", + "evidence on deny" + ], + "verification": [ + "node --test agent/policy/supervisor-integration.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-062", + "kind": "task", + "title": "M4.62 Policy 2.0 Verification", + "status": "pending", + "deps": [ + "M4-061" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/policy/policy-v2.test.cjs", + "agent/policy/gates-v2.test.cjs" + ], + "acceptance_criteria": [ + "policy E2E: R4 task cannot reach autonomous release → HUMAN", + "allowlist enforced on fixture", + "lint/test green" + ], + "verification": [ + "node --test agent/policy/policy-v2.test.cjs", + "node --test agent/policy/gates-v2.test.cjs", + "node --test agent/policy/allowlist-v2.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-063", + "kind": "task", + "title": "M4.63 Healing Planner", + "status": "pending", + "deps": [ + "M4-062" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/healing/planner.cjs", + "agent/healing/planner.test.cjs" + ], + "acceptance_criteria": [ + "healing planner selects fix strategy from Diagnosis+Learning patterns", + "strategy ranked by past success", + "never modifies policy" + ], + "verification": [ + "node --test agent/healing/planner.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-064", + "kind": "task", + "title": "M4.64 Auto-Retry with Learning", + "status": "pending", + "deps": [ + "M4-063", + "M4-032" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/healing/retry-learning.cjs", + "agent/healing/retry-learning.test.cjs" + ], + "acceptance_criteria": [ + "auto-retry uses learning snapshot for fix selection", + "attempt1 fix, attempt2 alternative, attempt3 escalate", + "retry creates new WorkerContext" + ], + "verification": [ + "node --test agent/healing/retry-learning.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-065", + "kind": "task", + "title": "M4.65 Diagnosis → Healing Bridge", + "status": "pending", + "deps": [ + "M4-064" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/healing/diagnosis-bridge.cjs", + "agent/healing/diagnosis-bridge.test.cjs" + ], + "acceptance_criteria": [ + "bridge converts Diagnosis→HealingAction {strategy,evidence,confidence}", + "confidence is metadata not proof", + "typed envelope" + ], + "verification": [ + "node --test agent/healing/diagnosis-bridge.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-066", + "kind": "task", + "title": "M4.66 Healing Verification", + "status": "pending", + "deps": [ + "M4-065" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/healing/verification.cjs", + "agent/healing/verification.test.cjs" + ], + "acceptance_criteria": [ + "healing verification runs tests after fix", + "PASS→continue, FAIL→next strategy", + "coverage threshold checked" + ], + "verification": [ + "node --test agent/healing/verification.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-067", + "kind": "task", + "title": "M4.67 Quarantine & Rollback", + "status": "pending", + "deps": [ + "M4-066" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/healing/quarantine.cjs", + "agent/healing/quarantine.test.cjs" + ], + "acceptance_criteria": [ + "quarantine isolates failing worktree", + "rollback to base on 3rd failure", + "evidence preserved" + ], + "verification": [ + "node --test agent/healing/quarantine.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-068", + "kind": "task", + "title": "M4.68 Healing Metrics Feedback", + "status": "pending", + "deps": [ + "M4-067" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/healing/metrics-feedback.cjs", + "agent/healing/metrics-feedback.test.cjs" + ], + "acceptance_criteria": [ + "healing metrics fed to learning/metrics.cjs", + "updates pattern-miner freq", + "closed loop verified" + ], + "verification": [ + "node --test agent/healing/metrics-feedback.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-069", + "kind": "task", + "title": "M4.69 Self-Healing Orchestration", + "status": "pending", + "deps": [ + "M4-068" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/healing/orchestrator.cjs", + "agent/healing/orchestrator.test.cjs" + ], + "acceptance_criteria": [ + "orchestrator ties planner→retry→verify→quarantine→feedback", + "max 3 attempts then ESCALATED", + "shares retry budget with review loop" + ], + "verification": [ + "node --test agent/healing/orchestrator.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-070", + "kind": "task", + "title": "M4.70 Self-Healing Verification", + "status": "pending", + "deps": [ + "M4-069" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "agent/healing/healing.test.cjs" + ], + "acceptance_criteria": [ + "self-healing E2E: induced TEST_FAILURE→diagnose→fix→PASS, 3x same→ESCALATED", + "quarantine verified", + "learning updated" + ], + "verification": [ + "node --test agent/healing/healing.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-071", + "kind": "task", + "title": "M4.71 Factory Assembly — autonomous-factory.cjs", + "status": "pending", + "deps": [ + "M4-070", + "M4-039" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "agent/factory/autonomous-factory.cjs", + "agent/factory/autonomous-factory.test.cjs" + ], + "acceptance_criteria": [ + "factory assembles Memory+Intelligence+Planner+Backlog+Learning+Supervisor+Verification+Policy+Healing", + "single factory facade", + "factory health wired" + ], + "verification": [ + "node --test agent/factory/autonomous-factory.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-072", + "kind": "task", + "title": "M4.72 Factory E2E Happy Path", + "status": "pending", + "deps": [ + "M4-071" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "tests/e2e/m4-happy-path.test.cjs" + ], + "acceptance_criteria": [ + "Beads READY R1 task → Factory → Worker → commit → PR → CI → READY_FOR_REVIEW", + "all evidence envelopes collected", + "human gate present" + ], + "verification": [ + "node --test tests/e2e/m4-happy-path.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-073", + "kind": "task", + "title": "M4.73 Factory E2E Failure Recovery", + "status": "pending", + "deps": [ + "M4-071" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "tests/e2e/m4-failure-recovery.test.cjs" + ], + "acceptance_criteria": [ + "injected TEST FAILURE → Tester→Diagnosis→Healing→PASS", + "3x same error→ESCALATED", + "learning snapshot updated" + ], + "verification": [ + "node --test tests/e2e/m4-failure-recovery.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-074", + "kind": "task", + "title": "M4.74 Factory E2E Policy Deny", + "status": "pending", + "deps": [ + "M4-071" + ], + "priority": "P2", + "risk": "R2", + "artifacts": [ + "tests/e2e/m4-policy-deny.test.cjs" + ], + "acceptance_criteria": [ + "R4 task cannot reach autonomous release → HUMAN", + "policy denylist enforced", + "test 'R4 cannot reach autonomous release' passes" + ], + "verification": [ + "node --test tests/e2e/m4-policy-deny.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-075", + "kind": "task", + "title": "M4.75 Factory E2E Budget/Timeout", + "status": "pending", + "deps": [ + "M4-071" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "tests/e2e/m4-budget.test.cjs" + ], + "acceptance_criteria": [ + "exceed Budget maxTimeMs→WORKER_TIMEOUT→retry/escalate", + "orphaned worktree cleaned", + "budget ESCALATE verified" + ], + "verification": [ + "node --test tests/e2e/m4-budget.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-076", + "kind": "task", + "title": "M4.76 Factory Load / Concurrency", + "status": "pending", + "deps": [ + "M4-072", + "M4-073", + "M4-074", + "M4-075" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "tests/e2e/m4-concurrency.test.cjs" + ], + "acceptance_criteria": [ + "3 tasks parallel: read workers concurrent, writers serialized", + "no race on single worktree", + "parallel health GREEN" + ], + "verification": [ + "node --test tests/e2e/m4-concurrency.test.cjs", + "npm run lint", + "npm test" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-077", + "kind": "task", + "title": "M4.77 Factory Verification Manifest", + "status": "pending", + "deps": [ + "M4-076" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "docs/M4_VERIFICATION.md", + "scripts/verify-m4.cjs" + ], + "acceptance_criteria": [ + "manifest written with run_id, commits, PR, checks, evidence", + "Beads updated to DONE for demo task", + "no auto-merge/deploy occurred" + ], + "verification": [ + "node scripts/verify-m4.cjs", + "npm run lint", + "npm test", + "npm run build" + ], + "initiative": "autonomous-factory-m4" + }, + { + "id": "M4-078", + "kind": "task", + "title": "M4.78 M4 Final Verification — Full Autonomous Factory Gate", + "status": "pending", + "deps": [ + "M4-077", + "M4-070", + "M4-062" + ], + "priority": "P2", + "risk": "R1", + "artifacts": [ + "docs/M4_VERIFICATION.md", + "scripts/verify-m4.cjs", + ".beads/beads.json" + ], + "acceptance_criteria": [ + "state machine PENDING→READY→…→HUMAN_GATE→DONE validated", + "all workers produce typed evidence, no shared mutable LLM memory", + "R3/R4 never auto-merge; factory health HEALTHY" + ], + "verification": [ + "node scripts/verify-m4.cjs", + "npm run lint", + "npm test", + "npm run build", + "npx hardhat test" + ], + "initiative": "autonomous-factory-m4" } ], "edges": [ { - "from": "T2", - "to": "T3", + "from": "T2", + "to": "T3", + "type": "enables" + }, + { + "from": "T2", + "to": "T4", + "type": "feeds" + }, + { + "from": "T4", + "to": "T5", + "type": "enables" + }, + { + "from": "T2", + "to": "T6", + "type": "enables" + }, + { + "from": "T3", + "to": "T7", + "type": "enables" + }, + { + "from": "T7", + "to": "T8", + "type": "blocks" + }, + { + "from": "T8", + "to": "T9", + "type": "blocks" + }, + { + "from": "T9", + "to": "T10", + "type": "blocks" + }, + { + "from": "T11", + "to": "T12", + "type": "enables" + }, + { + "from": "T11", + "to": "T13", + "type": "feeds" + }, + { + "from": "T12", + "to": "T13", + "type": "enables" + }, + { + "from": "T13", + "to": "T14", + "type": "blocks" + }, + { + "from": "T15", + "to": "T16", + "type": "enables" + }, + { + "from": "T15", + "to": "T17", + "type": "feeds" + }, + { + "from": "T16", + "to": "T17", + "type": "enables" + }, + { + "from": "T17", + "to": "T18", + "type": "blocks" + }, + { + "from": "T19", + "to": "T20", + "type": "enables" + }, + { + "from": "T19", + "to": "T21", + "type": "feeds" + }, + { + "from": "T20", + "to": "T21", + "type": "enables" + }, + { + "from": "T21", + "to": "T22", + "type": "blocks" + }, + { + "from": "T23", + "to": "T24", + "type": "enables" + }, + { + "from": "T23", + "to": "T25", + "type": "feeds" + }, + { + "from": "T24", + "to": "T25", + "type": "enables" + }, + { + "from": "T25", + "to": "T26", + "type": "blocks" + }, + { + "from": "T24", + "to": "T27", + "type": "enables" + }, + { + "from": "T27", + "to": "T28", + "type": "blocks" + }, + { + "from": "T29", + "to": "T30", + "type": "enables" + }, + { + "from": "T30", + "to": "T31", + "type": "enables" + }, + { + "from": "T31", + "to": "T32", + "type": "blocks" + }, + { + "from": "T33", + "to": "T34", + "type": "enables" + }, + { + "from": "T34", + "to": "T35", + "type": "enables" + }, + { + "from": "T35", + "to": "T36", + "type": "blocks" + }, + { + "from": "T37", + "to": "T38", + "type": "enables" + }, + { + "from": "T38", + "to": "T39", + "type": "enables" + }, + { + "from": "T39", + "to": "T40", + "type": "blocks" + }, + { + "from": "T41", + "to": "T42", + "type": "enables" + }, + { + "from": "T41", + "to": "T43", + "type": "enables" + }, + { + "from": "T42", + "to": "T44", + "type": "enables" + }, + { + "from": "T43", + "to": "T44", + "type": "enables" + }, + { + "from": "T45", + "to": "T46", + "type": "enables" + }, + { + "from": "T46", + "to": "T47", + "type": "enables" + }, + { + "from": "T47", + "to": "T48", + "type": "blocks" + }, + { + "from": "T49", + "to": "T50", + "type": "enables" + }, + { + "from": "T50", + "to": "T51", + "type": "enables" + }, + { + "from": "T51", + "to": "T52", + "type": "blocks" + }, + { + "from": "T53", + "to": "T54", + "type": "enables" + }, + { + "from": "T54", + "to": "T55", + "type": "enables" + }, + { + "from": "T55", + "to": "T56", + "type": "blocks" + }, + { + "from": "T57", + "to": "T58", + "type": "enables" + }, + { + "from": "T29", + "to": "T30", + "type": "blocks" + }, + { + "from": "T101", + "to": "T102", + "type": "next" + }, + { + "from": "T102", + "to": "T103", + "type": "next" + }, + { + "from": "T103", + "to": "T104", + "type": "next" + }, + { + "from": "T104", + "to": "T105", + "type": "next" + }, + { + "from": "T105", + "to": "T106", + "type": "next" + }, + { + "from": "T106", + "to": "T107", + "type": "next" + }, + { + "from": "T107", + "to": "T108", + "type": "next" + }, + { + "from": "T108", + "to": "T109", + "type": "next" + }, + { + "from": "T109", + "to": "T110", + "type": "next" + }, + { + "from": "T110", + "to": "T111", + "type": "next" + }, + { + "from": "T111", + "to": "T112", + "type": "next" + }, + { + "from": "M2-002", + "to": "M2-003", + "type": "enables" + }, + { + "from": "M2-001", + "to": "M2-004", + "type": "enables" + }, + { + "from": "M2-002", + "to": "M2-004", + "type": "enables" + }, + { + "from": "M2-005", + "to": "M2-006", + "type": "enables" + }, + { + "from": "M2-005", + "to": "M2-007", + "type": "enables" + }, + { + "from": "M2-006", + "to": "M2-007", + "type": "enables" + }, + { + "from": "M2-001", + "to": "M2-008", + "type": "enables" + }, + { + "from": "M2-008", + "to": "M2-009", "type": "enables" }, { - "from": "T2", - "to": "T4", - "type": "feeds" + "from": "M2-008", + "to": "M2-010", + "type": "enables" }, { - "from": "T4", - "to": "T5", + "from": "M2-004", + "to": "M2-011", "type": "enables" }, { - "from": "T2", - "to": "T6", + "from": "M2-007", + "to": "M2-011", "type": "enables" }, { - "from": "T3", - "to": "T7", + "from": "M2-009", + "to": "M2-011", "type": "enables" }, { - "from": "T7", - "to": "T8", - "type": "blocks" + "from": "M2-010", + "to": "M2-011", + "type": "enables" }, { - "from": "T8", - "to": "T9", - "type": "blocks" + "from": "M2-012", + "to": "M2-011", + "type": "enables" }, { - "from": "T9", - "to": "T10", - "type": "blocks" + "from": "M2-011", + "to": "M2-013", + "type": "enables" }, { - "from": "T11", - "to": "T12", + "from": "M2-012", + "to": "M2-013", "type": "enables" }, { - "from": "T11", - "to": "T13", - "type": "feeds" + "from": "M2-013", + "to": "M2-014", + "type": "enables" }, { - "from": "T12", - "to": "T13", + "from": "M2-014", + "to": "M3-001", "type": "enables" }, { - "from": "T13", - "to": "T14", - "type": "blocks" + "from": "M3-001", + "to": "M3-002", + "type": "enables" }, { - "from": "T15", - "to": "T16", + "from": "M3-001", + "to": "M3-003", "type": "enables" }, { - "from": "T15", - "to": "T17", - "type": "feeds" + "from": "M3-001", + "to": "M3-004", + "type": "enables" }, { - "from": "T16", - "to": "T17", + "from": "M3-003", + "to": "M3-005", "type": "enables" }, { - "from": "T17", - "to": "T18", - "type": "blocks" + "from": "M3-004", + "to": "M3-005", + "type": "enables" }, { - "from": "T19", - "to": "T20", + "from": "M3-005", + "to": "M3-006", "type": "enables" }, { - "from": "T19", - "to": "T21", - "type": "feeds" + "from": "M3-002", + "to": "M3-006", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-007", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-008", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-009", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-010", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-011", + "type": "enables" + }, + { + "from": "M3-007", + "to": "M3-012", + "type": "enables" + }, + { + "from": "M3-008", + "to": "M3-012", + "type": "enables" + }, + { + "from": "M3-009", + "to": "M3-012", + "type": "enables" + }, + { + "from": "M3-012", + "to": "M3-013", + "type": "enables" + }, + { + "from": "M3-001", + "to": "M3-014", + "type": "enables" + }, + { + "from": "M3-014", + "to": "M3-015", + "type": "enables" + }, + { + "from": "M3-015", + "to": "M3-016", + "type": "enables" + }, + { + "from": "M3-002", + "to": "M3-016", + "type": "enables" + }, + { + "from": "M3-001", + "to": "M3-017", + "type": "enables" + }, + { + "from": "M3-017", + "to": "M3-018", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-018", + "type": "enables" + }, + { + "from": "M3-002", + "to": "M3-019", + "type": "enables" + }, + { + "from": "M3-017", + "to": "M3-019", + "type": "enables" + }, + { + "from": "M3-014", + "to": "M3-019", + "type": "enables" + }, + { + "from": "M3-019", + "to": "M3-020", + "type": "enables" + }, + { + "from": "M3-007", + "to": "M3-020", + "type": "enables" + }, + { + "from": "M3-008", + "to": "M3-020", + "type": "enables" + }, + { + "from": "M3-009", + "to": "M3-020", + "type": "enables" + }, + { + "from": "M3-012", + "to": "M3-021", + "type": "enables" + }, + { + "from": "M3-006", + "to": "M3-021", + "type": "enables" + }, + { + "from": "M3-019", + "to": "M3-022", + "type": "enables" + }, + { + "from": "M3-020", + "to": "M3-022", + "type": "enables" + }, + { + "from": "M3-021", + "to": "M3-022", + "type": "enables" + }, + { + "from": "M3-022", + "to": "M3-023", + "type": "enables" + }, + { + "from": "M3-022", + "to": "M3-024", + "type": "enables" + }, + { + "from": "M3-008", + "to": "M3-024", + "type": "enables" + }, + { + "from": "M3-018", + "to": "M3-024", + "type": "enables" + }, + { + "from": "M3-022", + "to": "M3-025", + "type": "enables" + }, + { + "from": "M3-023", + "to": "M3-025", + "type": "enables" }, { - "from": "T20", - "to": "T21", + "from": "M3-024", + "to": "M3-025", "type": "enables" }, { - "from": "T21", - "to": "T22", - "type": "blocks" + "from": "M3-025", + "to": "M4-001", + "type": "enables" }, { - "from": "T23", - "to": "T24", + "from": "M4-001", + "to": "M4-002", "type": "enables" }, { - "from": "T23", - "to": "T25", - "type": "feeds" + "from": "M4-001", + "to": "M4-003", + "type": "enables" }, { - "from": "T24", - "to": "T25", + "from": "M4-001", + "to": "M4-004", "type": "enables" }, { - "from": "T25", - "to": "T26", - "type": "blocks" + "from": "M4-002", + "to": "M4-005", + "type": "enables" }, { - "from": "T24", - "to": "T27", + "from": "M4-003", + "to": "M4-005", "type": "enables" }, { - "from": "T27", - "to": "T28", - "type": "blocks" + "from": "M4-004", + "to": "M4-006", + "type": "enables" }, { - "from": "T29", - "to": "T30", + "from": "M4-005", + "to": "M4-006", "type": "enables" }, { - "from": "T30", - "to": "T31", + "from": "M3-025", + "to": "M4-007", "type": "enables" }, { - "from": "T31", - "to": "T32", - "type": "blocks" + "from": "M4-007", + "to": "M4-008", + "type": "enables" }, { - "from": "T33", - "to": "T34", + "from": "M4-007", + "to": "M4-009", "type": "enables" }, { - "from": "T34", - "to": "T35", + "from": "M4-008", + "to": "M4-010", "type": "enables" }, { - "from": "T35", - "to": "T36", - "type": "blocks" + "from": "M4-009", + "to": "M4-010", + "type": "enables" }, { - "from": "T37", - "to": "T38", + "from": "M4-008", + "to": "M4-011", "type": "enables" }, { - "from": "T38", - "to": "T39", + "from": "M4-010", + "to": "M4-012", "type": "enables" }, { - "from": "T39", - "to": "T40", - "type": "blocks" + "from": "M4-011", + "to": "M4-012", + "type": "enables" }, { - "from": "T41", - "to": "T42", + "from": "M4-006", + "to": "M4-013", "type": "enables" }, { - "from": "T41", - "to": "T43", + "from": "M4-012", + "to": "M4-013", "type": "enables" }, { - "from": "T42", - "to": "T44", + "from": "M4-013", + "to": "M4-014", "type": "enables" }, { - "from": "T43", - "to": "T44", + "from": "M4-013", + "to": "M4-015", "type": "enables" }, { - "from": "T45", - "to": "T46", + "from": "M4-014", + "to": "M4-016", "type": "enables" }, { - "from": "T46", - "to": "T47", + "from": "M4-015", + "to": "M4-017", "type": "enables" }, { - "from": "T47", - "to": "T48", - "type": "blocks" + "from": "M4-016", + "to": "M4-017", + "type": "enables" }, { - "from": "T49", - "to": "T50", + "from": "M4-017", + "to": "M4-018", "type": "enables" }, { - "from": "T50", - "to": "T51", + "from": "M4-018", + "to": "M4-019", "type": "enables" }, { - "from": "T51", - "to": "T52", - "type": "blocks" + "from": "M4-019", + "to": "M4-020", + "type": "enables" }, { - "from": "T53", - "to": "T54", + "from": "M4-020", + "to": "M4-021", "type": "enables" }, { - "from": "T54", - "to": "T55", + "from": "M4-020", + "to": "M4-022", "type": "enables" }, { - "from": "T55", - "to": "T56", - "type": "blocks" + "from": "M4-021", + "to": "M4-023", + "type": "enables" }, { - "from": "T57", - "to": "T58", + "from": "M4-022", + "to": "M4-023", "type": "enables" }, { - "from": "T29", - "to": "T30", - "type": "blocks" + "from": "M4-023", + "to": "M4-024", + "type": "enables" }, { - "from": "T101", - "to": "T102", - "type": "next" + "from": "M4-024", + "to": "M4-025", + "type": "enables" }, { - "from": "T102", - "to": "T103", - "type": "next" + "from": "M4-019", + "to": "M4-026", + "type": "enables" }, { - "from": "T103", - "to": "T104", - "type": "next" + "from": "M4-026", + "to": "M4-027", + "type": "enables" }, { - "from": "T104", - "to": "T105", - "type": "next" + "from": "M4-027", + "to": "M4-028", + "type": "enables" }, { - "from": "T105", - "to": "T106", - "type": "next" + "from": "M4-028", + "to": "M4-029", + "type": "enables" }, { - "from": "T106", - "to": "T107", - "type": "next" + "from": "M4-028", + "to": "M4-030", + "type": "enables" }, { - "from": "T107", - "to": "T108", - "type": "next" + "from": "M4-029", + "to": "M4-031", + "type": "enables" }, { - "from": "T108", - "to": "T109", - "type": "next" + "from": "M4-030", + "to": "M4-031", + "type": "enables" }, { - "from": "T109", - "to": "T110", - "type": "next" + "from": "M4-031", + "to": "M4-032", + "type": "enables" }, { - "from": "T110", - "to": "T111", - "type": "next" + "from": "M4-025", + "to": "M4-033", + "type": "enables" }, { - "from": "T111", - "to": "T112", - "type": "next" + "from": "M4-032", + "to": "M4-033", + "type": "enables" }, { - "from": "M2-002", - "to": "M2-003", + "from": "M4-033", + "to": "M4-034", "type": "enables" }, { - "from": "M2-001", - "to": "M2-004", + "from": "M4-033", + "to": "M4-035", "type": "enables" }, { - "from": "M2-002", - "to": "M2-004", + "from": "M4-033", + "to": "M4-036", "type": "enables" }, { - "from": "M2-005", - "to": "M2-006", + "from": "M4-034", + "to": "M4-037", "type": "enables" }, { - "from": "M2-005", - "to": "M2-007", + "from": "M4-035", + "to": "M4-037", "type": "enables" }, { - "from": "M2-006", - "to": "M2-007", + "from": "M4-036", + "to": "M4-037", "type": "enables" }, { - "from": "M2-001", - "to": "M2-008", + "from": "M4-037", + "to": "M4-038", "type": "enables" }, { - "from": "M2-008", - "to": "M2-009", + "from": "M4-038", + "to": "M4-039", "type": "enables" }, { - "from": "M2-008", - "to": "M2-010", + "from": "M4-019", + "to": "M4-040", "type": "enables" }, { - "from": "M2-004", - "to": "M2-011", + "from": "M4-040", + "to": "M4-041", "type": "enables" }, { - "from": "M2-007", - "to": "M2-011", + "from": "M4-040", + "to": "M4-042", "type": "enables" }, { - "from": "M2-009", - "to": "M2-011", + "from": "M4-041", + "to": "M4-043", "type": "enables" }, { - "from": "M2-010", - "to": "M2-011", + "from": "M4-042", + "to": "M4-043", "type": "enables" }, { - "from": "M2-012", - "to": "M2-011", + "from": "M4-043", + "to": "M4-044", "type": "enables" }, { - "from": "M2-011", - "to": "M2-013", + "from": "M4-044", + "to": "M4-045", "type": "enables" }, { - "from": "M2-012", - "to": "M2-013", + "from": "M4-045", + "to": "M4-046", "type": "enables" }, { - "from": "M2-013", - "to": "M2-014", + "from": "M4-019", + "to": "M4-047", "type": "enables" }, { - "from": "M2-014", - "to": "M3-001", + "from": "M4-047", + "to": "M4-048", "type": "enables" }, { - "from": "M3-001", - "to": "M3-002", + "from": "M4-047", + "to": "M4-049", "type": "enables" }, { - "from": "M3-001", - "to": "M3-003", + "from": "M4-048", + "to": "M4-050", "type": "enables" }, { - "from": "M3-001", - "to": "M3-004", + "from": "M4-049", + "to": "M4-050", "type": "enables" }, { - "from": "M3-003", - "to": "M3-005", + "from": "M4-050", + "to": "M4-051", "type": "enables" }, { - "from": "M3-004", - "to": "M3-005", + "from": "M4-051", + "to": "M4-052", "type": "enables" }, { - "from": "M3-005", - "to": "M3-006", + "from": "M4-052", + "to": "M4-053", "type": "enables" }, { - "from": "M3-002", - "to": "M3-006", + "from": "M4-053", + "to": "M4-054", "type": "enables" }, { - "from": "M3-006", - "to": "M3-007", + "from": "M4-054", + "to": "M4-055", "type": "enables" }, { - "from": "M3-006", - "to": "M3-008", + "from": "M4-039", + "to": "M4-056", "type": "enables" }, { - "from": "M3-006", - "to": "M3-009", + "from": "M4-046", + "to": "M4-056", "type": "enables" }, { - "from": "M3-006", - "to": "M3-010", + "from": "M4-055", + "to": "M4-056", "type": "enables" }, { - "from": "M3-006", - "to": "M3-011", + "from": "M4-056", + "to": "M4-057", "type": "enables" }, { - "from": "M3-007", - "to": "M3-012", + "from": "M4-056", + "to": "M4-058", "type": "enables" }, { - "from": "M3-008", - "to": "M3-012", + "from": "M4-057", + "to": "M4-059", "type": "enables" }, { - "from": "M3-009", - "to": "M3-012", + "from": "M4-058", + "to": "M4-059", "type": "enables" }, { - "from": "M3-012", - "to": "M3-013", + "from": "M4-059", + "to": "M4-060", "type": "enables" }, { - "from": "M3-001", - "to": "M3-014", + "from": "M4-060", + "to": "M4-061", "type": "enables" }, { - "from": "M3-014", - "to": "M3-015", + "from": "M4-055", + "to": "M4-061", "type": "enables" }, { - "from": "M3-015", - "to": "M3-016", + "from": "M4-061", + "to": "M4-062", "type": "enables" }, { - "from": "M3-002", - "to": "M3-016", + "from": "M4-062", + "to": "M4-063", "type": "enables" }, { - "from": "M3-001", - "to": "M3-017", + "from": "M4-063", + "to": "M4-064", "type": "enables" }, { - "from": "M3-017", - "to": "M3-018", + "from": "M4-032", + "to": "M4-064", "type": "enables" }, { - "from": "M3-006", - "to": "M3-018", + "from": "M4-064", + "to": "M4-065", "type": "enables" }, { - "from": "M3-002", - "to": "M3-019", + "from": "M4-065", + "to": "M4-066", "type": "enables" }, { - "from": "M3-017", - "to": "M3-019", + "from": "M4-066", + "to": "M4-067", "type": "enables" }, { - "from": "M3-014", - "to": "M3-019", + "from": "M4-067", + "to": "M4-068", "type": "enables" }, { - "from": "M3-019", - "to": "M3-020", + "from": "M4-068", + "to": "M4-069", "type": "enables" }, { - "from": "M3-007", - "to": "M3-020", + "from": "M4-069", + "to": "M4-070", "type": "enables" }, { - "from": "M3-008", - "to": "M3-020", + "from": "M4-070", + "to": "M4-071", "type": "enables" }, { - "from": "M3-009", - "to": "M3-020", + "from": "M4-039", + "to": "M4-071", "type": "enables" }, { - "from": "M3-012", - "to": "M3-021", + "from": "M4-071", + "to": "M4-072", "type": "enables" }, { - "from": "M3-006", - "to": "M3-021", + "from": "M4-071", + "to": "M4-073", "type": "enables" }, { - "from": "M3-019", - "to": "M3-022", + "from": "M4-071", + "to": "M4-074", "type": "enables" }, { - "from": "M3-020", - "to": "M3-022", + "from": "M4-071", + "to": "M4-075", "type": "enables" }, { - "from": "M3-021", - "to": "M3-022", + "from": "M4-072", + "to": "M4-076", "type": "enables" }, { - "from": "M3-022", - "to": "M3-023", + "from": "M4-073", + "to": "M4-076", "type": "enables" }, { - "from": "M3-022", - "to": "M3-024", + "from": "M4-074", + "to": "M4-076", "type": "enables" }, { - "from": "M3-008", - "to": "M3-024", + "from": "M4-075", + "to": "M4-076", "type": "enables" }, { - "from": "M3-018", - "to": "M3-024", + "from": "M4-076", + "to": "M4-077", "type": "enables" }, { - "from": "M3-022", - "to": "M3-025", + "from": "M4-077", + "to": "M4-078", "type": "enables" }, { - "from": "M3-023", - "to": "M3-025", + "from": "M4-070", + "to": "M4-078", "type": "enables" }, { - "from": "M3-024", - "to": "M3-025", + "from": "M4-062", + "to": "M4-078", "type": "enables" } ] From 73d239bef21d878d7d443aca25e5a126d3ccf004 Mon Sep 17 00:00:00 2001 From: Domini Montessori Date: Thu, 3 Sep 2026 11:04:30 +0300 Subject: [PATCH 3/3] =?UTF-8?q?refactor:=20=D0=BF=D0=BE=D0=BB=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=BE=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7=D0=B8=D1=80?= =?UTF-8?q?=D1=83=D1=8E=D1=89=D0=B8=D0=B9=20=D1=80=D0=B5=D1=84=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3=20=D1=81=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D1=85=D0=BE=D0=B4=D0=BE=D0=BC=20=D0=BD=D0=B0=20SCS?= =?UTF-8?q?S?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Архитектура SCSS 7-1: - abstracts: токены, миксины, функции - base: reset, typography, base elements - components: кнопки, карточки, теги, формы - layout: header, footer, navigation - pages: homepage, post, sections - themes: dark mode Оптимизации: - 7 CSS-файлов (1724 строки) → 1 SCSS-бандл (compiled.css) - Удалены: design-system.css, neo.css, custom.css, home-emerald.css, docs-layout.css, above-fold.css - Удалён neo-critical.html (inline critical CSS) - Подключены новые шрифты: Newsreader + Jakarta Sans + JetBrains Mono - Добавлены npm scripts: scss, scss:watch - Hugo build 683 pages, npm 277/277, Core Web Vitals green --- assets/css/compiled.css | 1 + assets/css/critical/above-fold.css | 88 ---- assets/css/custom.css | 185 -------- assets/css/design-system.css | 712 ----------------------------- assets/css/docs-layout.css | 41 -- assets/css/home-emerald.css | 437 ------------------ assets/css/neo.css | 208 --------- assets/css/schemes/dominicusin.css | 53 --- assets/scss/abstracts/_index.scss | 127 +++++ assets/scss/base/_index.scss | 102 +++++ assets/scss/components/_index.scss | 168 +++++++ assets/scss/layout/_index.scss | 208 +++++++++ assets/scss/main.scss | 21 + assets/scss/pages/_index.scss | 371 +++++++++++++++ assets/scss/themes/_index.scss | 35 ++ layouts/partials/extend-head.html | 8 +- layouts/partials/head.html | 5 +- layouts/partials/neo-critical.html | 5 - layouts/partials/neo-head.html | 1 - package.json | 7 +- 20 files changed, 1040 insertions(+), 1743 deletions(-) create mode 100644 assets/css/compiled.css delete mode 100644 assets/css/critical/above-fold.css delete mode 100644 assets/css/custom.css delete mode 100644 assets/css/design-system.css delete mode 100644 assets/css/docs-layout.css delete mode 100644 assets/css/home-emerald.css delete mode 100644 assets/css/neo.css delete mode 100644 assets/css/schemes/dominicusin.css create mode 100644 assets/scss/abstracts/_index.scss create mode 100644 assets/scss/base/_index.scss create mode 100644 assets/scss/components/_index.scss create mode 100644 assets/scss/layout/_index.scss create mode 100644 assets/scss/main.scss create mode 100644 assets/scss/pages/_index.scss create mode 100644 assets/scss/themes/_index.scss delete mode 100644 layouts/partials/neo-critical.html diff --git a/assets/css/compiled.css b/assets/css/compiled.css new file mode 100644 index 00000000..98225407 --- /dev/null +++ b/assets/css/compiled.css @@ -0,0 +1 @@ +*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{margin:0;font-family:"Plus Jakarta Sans",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.6;color:#1e293b;background:#fafafa;transition:background 220ms cubic-bezier(0.4, 0, 0.2, 1),color 220ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:inherit;text-decoration:none;transition:color 220ms cubic-bezier(0.4, 0, 0.2, 1)}img{max-width:100%;height:auto;border-radius:10px}code{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:.9em;background:#e2e8f0;padding:.15em .4em;border-radius:6px}pre{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem;overflow-x:auto}pre code{background:none;padding:0}::selection{background:rgba(217,119,6,.25);color:inherit}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#e2e8f0}::-webkit-scrollbar-thumb{background:#64748b;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#475569}:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(217,119,6,.45)}.skip-link{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;position:fixed;top:-100%;left:50%;transform:translateX(-50%);background:#d97706;color:#fff;padding:.5rem 1rem;border-radius:0 0 10px 10px;font-weight:600;z-index:9999;transition:top 220ms cubic-bezier(0.4, 0, 0.2, 1)}.skip-link:focus{top:0;clip:auto;width:auto;height:auto;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1.25rem;border-radius:10px;border:1px solid rgba(0,0,0,0);font-weight:600;font-size:.95rem;cursor:pointer;transition:transform 220ms cubic-bezier(0.4, 0, 0.2, 1),background 220ms cubic-bezier(0.4, 0, 0.2, 1),border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1)}.btn-primary{background:linear-gradient(135deg, #d97706, #f59e0b);color:#fff}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(15,23,42,.1)}.btn-ghost{background:rgba(0,0,0,0);border-color:#d1d5db;color:#334155}.btn-ghost:hover{border-color:#d97706;color:#d97706}.card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:1.5rem;box-shadow:0 1px 2px rgba(15,23,42,.06);transition:transform 220ms cubic-bezier(0.4, 0, 0.2, 1),border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1)}.card:hover{transform:translateY(-2px);border-color:rgba(217,119,6,.35);box-shadow:0 8px 24px rgba(15,23,42,.1)}.tag{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .75rem;border-radius:999px;font-size:.8rem;font-weight:500;color:#334155;background:#e2e8f0;border:1px solid #e5e7eb;transition:background 220ms cubic-bezier(0.4, 0, 0.2, 1),color 220ms cubic-bezier(0.4, 0, 0.2, 1),border-color 220ms cubic-bezier(0.4, 0, 0.2, 1)}.tag:hover{background:rgba(217,119,6,.12);border-color:rgba(217,119,6,.35);color:#d97706}.input{width:100%;padding:.75rem 1rem;border-radius:10px;border:1px solid #d1d5db;background:#fafafa;color:#1e293b;font-size:.95rem;transition:border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1)}.input:focus{outline:none;box-shadow:0 0 0 3px rgba(217,119,6,.45);border-color:#d97706}.icon-btn{display:flex;align-items:center;justify-content:center;height:40px;min-width:40px;padding:0 .75rem;border-radius:10px;border:1px solid rgba(0,0,0,0);background:rgba(0,0,0,0);color:#334155;cursor:pointer;transition:background 220ms cubic-bezier(0.4, 0, 0.2, 1),color 220ms cubic-bezier(0.4, 0, 0.2, 1),border-color 220ms cubic-bezier(0.4, 0, 0.2, 1)}.icon-btn:hover{background:#e2e8f0;color:#d97706;border-color:#e5e7eb}.section-header{display:flex;align-items:baseline;justify-content:space-between;margin:2.5rem 0 1.5rem;padding-bottom:.75rem;border-bottom:1px solid #e5e7eb}.section-header h2{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:1.35rem;font-weight:700}.section-header .more{font-size:.85rem;color:#64748b}.scroll-to-top{position:fixed;bottom:2rem;right:2rem;z-index:100;width:48px;height:48px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;color:#334155;font-size:1.25rem;cursor:pointer;opacity:0;transform:translateY(20px);transition:opacity .25s ease,transform .25s ease,background .25s ease;pointer-events:none}.scroll-to-top.visible{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-to-top:hover{background:#d97706;color:#fff;border-color:#d97706}.site-header{position:sticky;top:0;z-index:50;background:rgba(250,250,250,.88);border-bottom:1px solid #e5e7eb;backdrop-filter:saturate(140%) blur(14px);-webkit-backdrop-filter:saturate(140%) blur(14px);transition:background 220ms cubic-bezier(0.4, 0, 0.2, 1),border-color 220ms cubic-bezier(0.4, 0, 0.2, 1)}[data-theme=dark] .site-header{background:rgba(15,23,42,.82)}.site-header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}.brand{display:inline-flex;align-items:center;gap:.75rem;font-weight:700}.brand-mark{display:inline-grid;width:36px;height:36px;place-items:center;border-radius:10px;background:linear-gradient(135deg, #d97706, #f59e0b);color:#fff;font-weight:800}.brand-text small{display:block;color:#64748b;font-size:.75rem;font-weight:500}.primary-nav{display:none}.primary-nav a{padding:.5rem .75rem;border-radius:10px;color:#334155;font-weight:500}.primary-nav a:hover{color:#d97706;background:rgba(217,119,6,.1)}.header-actions{display:inline-flex;align-items:center;gap:.5rem}.burger{display:inline-flex}.mobile-panel{position:fixed;top:0;left:0;bottom:0;z-index:90;width:min(320px,80vw);background:#fff;border-right:1px solid #e5e7eb;transform:translateX(-100%);transition:transform .25s ease;overflow-y:auto}.mobile-panel[hidden]{display:none}.mobile-panel.open{transform:translateX(0)}.mobile-panel-inner{display:flex;flex-direction:column;height:100%;padding:1.5rem}.mobile-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.mobile-group{margin-bottom:1.5rem}.mobile-group-title{font-size:.8rem;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem}.mobile-panel a{display:block;padding:.75rem 1rem;border-radius:10px}.mobile-panel a:hover{background:#e2e8f0;color:#d97706}.neo-mobile-backdrop{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.45);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .25s ease}.neo-mobile-backdrop.open{opacity:1;pointer-events:auto}.site-footer{margin-top:3rem;padding:2.5rem 0;border-top:1px solid #e5e7eb;background:#fff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;margin-bottom:2rem}.footer-brand .brand{margin-bottom:.75rem}.footer-brand p{color:#64748b;font-size:.9rem}.footer-col h5{font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:.75rem}.footer-col a{display:block;padding:.25rem 0;color:#334155;font-size:.9rem}.footer-col a:hover{color:#d97706}.footer-tags{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}@media(max-width: 768px){.primary-nav{display:none}.footer-grid{grid-template-columns:1fr;gap:1.5rem}}@media(min-width: 1024px){.primary-nav{display:flex;align-items:center;gap:.5rem}.burger{display:none}}.hero{padding:3rem 0;text-align:center}.hero h1{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:clamp(2rem,5vw,3.5rem);font-weight:700;line-height:1.15;margin-bottom:1rem}.hero .lead{font-size:1.15rem;color:#475569;max-width:600px;margin:0 auto 1.5rem}.cta{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.editorial-featured{display:grid;grid-template-columns:1.6fr 1fr;gap:1rem;margin-top:2rem}.card-lead{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:14px}.card-lead h3{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:1.5rem;line-height:1.25}.card-lead p{color:#475569;font-size:1.05rem;line-height:1.6}.editorial-side{display:flex;flex-direction:column;gap:1rem}.card-sub{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:14px}.card-sub h3{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:1rem;line-height:1.3}.card-sub p{color:#475569;font-size:.9rem;line-height:1.5}.editorial-meta{color:#64748b;font-size:.85rem;margin-top:.5rem}.recent-rows{display:flex;flex-direction:column;gap:.5rem}.recent-row{display:grid;grid-template-columns:100px 1fr auto;align-items:center;gap:1rem;padding:.75rem 1rem;border-radius:10px;background:#fff;border:1px solid #e5e7eb;transition:border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),background 220ms cubic-bezier(0.4, 0, 0.2, 1)}.recent-row:hover{border-color:rgba(217,119,6,.35);background:rgba(217,119,6,.04)}.recent-row .date{font-size:.85rem;color:#64748b;white-space:nowrap}.recent-row .title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-row .meta{font-size:.85rem;color:#64748b;display:flex;gap:.5rem;align-items:center}.category-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:1rem;margin-top:1.5rem}.category-card{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:14px;text-align:center;transition:transform 220ms cubic-bezier(0.4, 0, 0.2, 1),border-color 220ms cubic-bezier(0.4, 0, 0.2, 1)}.category-card:hover{transform:translateY(-2px);border-color:rgba(217,119,6,.35)}.category-card .cat-icon{font-size:1.5rem}.category-card .cat-name{font-weight:600}.category-card .cat-count{font-size:.85rem;color:#64748b}.newsletter{text-align:center;padding:3rem 0}.newsletter h3{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:1.5rem;margin-bottom:.75rem}.newsletter p{color:#475569;margin-bottom:1.5rem}.newsletter-form{display:flex;gap:.75rem;max-width:480px;margin:0 auto}.post-layout{display:grid;grid-template-columns:1fr 240px;gap:2rem;padding:2.5rem 0}.post-body{min-width:0}.post-header{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid #e5e7eb}.post-header h1{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:clamp(1.8rem,4vw,2.8rem);font-weight:700;line-height:1.2;margin-bottom:1rem}.post-meta{display:flex;gap:.75rem;align-items:center;color:#64748b;font-size:.9rem;flex-wrap:wrap}.post-content{font-size:1.05rem;line-height:1.75}.post-content h2{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:1.5rem;margin:2.5rem 0 1rem}.post-content h3{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:1.25rem;margin:2rem 0 .75rem}.post-content p{margin:1rem 0}.post-content a{color:#d97706;text-decoration:underline;text-underline-offset:2px}.post-content blockquote{border-left:3px solid #d97706;padding-left:1rem;margin:1.5rem 0;color:#475569;font-style:italic}.post-content img{border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.1)}.toc{position:sticky;top:80px;height:fit-content;max-height:calc(100vh - 100px);overflow-y:auto;padding:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:10px}.toc ul{list-style:none;padding:0;margin:0}.toc li{margin:.25rem 0}.toc a{display:block;padding:.25rem .5rem;font-size:.85rem;color:#475569;border-radius:6px}.toc a:hover{background:#e2e8f0;color:#d97706}.toc-title{font-weight:600;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:.75rem}.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.pn-card{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:10px;transition:border-color 220ms cubic-bezier(0.4, 0, 0.2, 1)}.pn-card:hover{border-color:rgba(217,119,6,.35)}.pn-card .more{font-size:.8rem;color:#64748b}.pn-card .title{font-weight:500}.pn-card .date{font-size:.8rem;color:#64748b}.error-404{text-align:center;padding:3rem 0}.error-404 h1{font-family:"Newsreader","Playfair Display",Georgia,"Times New Roman",serif;font-size:clamp(2rem,6vw,3.5rem);margin-bottom:1rem}.error-404 p{color:#475569;margin-bottom:1.5rem}.error-404-search{max-width:480px;margin:0 auto 2rem}.error-404-links{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}@media(max-width: 768px){.post-layout{grid-template-columns:1fr}.toc{display:none}.editorial-featured{grid-template-columns:1fr}.recent-row{grid-template-columns:1fr;gap:.25rem}.hero{padding:2.5rem 0}.newsletter-form{flex-direction:column}}[data-theme=dark]{--paper: #0f172a;--paper-2: #1e293b;--line: #263148;--line-2: #334155;--ink-900: #f8fafc;--ink-800: #e2e8f0;--ink-700: #cbd5e1;--ink-600: #94a3b8;--ink-500: #64748b;--ink-100: #1e293b;--ink-50: #0f172a;--shadow-sm: 0 1px 2px rgba(0,0,0,.24);--shadow: 0 8px 24px rgba(0,0,0,.35);--shadow-lg: 0 18px 40px rgba(0,0,0,.45)}/*# sourceMappingURL=compiled.css.map */ diff --git a/assets/css/critical/above-fold.css b/assets/css/critical/above-fold.css deleted file mode 100644 index 53a860ad..00000000 --- a/assets/css/critical/above-fold.css +++ /dev/null @@ -1,88 +0,0 @@ -:root, -[data-theme="dark"]{ - --bg:#0b0e14; --bg-2:#10141d; --panel:#151a26; --panel-2:#1b2231; - --line:#232c3d; --line-2:#2c374c; - --text:#e6eaf2; --muted:#93a0b5; --faint:#5d6a80; - --accent:#4fd1c5; --accent-2:#7dd3fc; --amber:#fbbf24; --violet:#a78bfa; - --mono:"JetBrains Mono","SF Mono",ui-monospace,Menlo,Consolas,monospace; - --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; - --radius:14px; --shadow:0 20px 50px -20px rgba(0,0,0,.6); - --grid:rgba(255,255,255,.025); - color-scheme: dark; -} -[data-theme="light"]{ - --bg:#f6f8fb; --bg-2:#eef1f6; --panel:#ffffff; --panel-2:#f1f4f9; - --line:#e2e8f0; --line-2:#cbd5e1; - --text:#0f172a; --muted:#475569; --faint:#94a3b8; - --accent:#0d9488; --accent-2:#0284c7; --violet:#7c3aed; - --shadow:0 20px 50px -20px rgba(15,23,42,.15); - --grid:rgba(15,23,42,.03); - color-scheme: light; -} -*{box-sizing:border-box;margin:0;padding:0} -body{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden} -a{color:inherit;text-decoration:none} -.neo-header{position:sticky;top:0;z-index:50;background:rgba(11,14,20,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)} -.neo-nav{max-width:1180px;margin:0 auto;padding:0 24px;height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px} -.neo-brand{display:flex;align-items:center;gap:12px;font-weight:700;white-space:nowrap} -.neo-brand .mark{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#07121a;font-family:var(--mono);font-weight:700;font-size:15px} -.neo-menu{display:flex;align-items:center;gap:4px;overflow-x:auto;flex:1} -.neo-menu a{padding:7px 12px;border-radius:8px;font-size:14px;color:var(--muted);white-space:nowrap} -.neo-nav-actions{display:flex;align-items:center;gap:8px} -.neo-icon-btn{background:var(--panel);border:1px solid var(--line-2);border-radius:8px;width:36px;height:36px;cursor:pointer;font-size:15px;color:var(--text)} -.neo-settings{position:relative} -.neo-drawer{position:absolute;right:0;top:48px;width:280px;background:var(--panel);border:1px solid var(--line-2);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;display:none;z-index:60;font-size:14px} -.neo-drawer.open{display:block} -.neo-mobile-nav{display:none} -.neo-burger{display:none} -@media(max-width:900px){ - .neo-menu{display:none} - .neo-burger{display:flex} - /* Mobile menu: slide-in side panel that NEVER overlays the header row. - Closed = hidden off-canvas; open = slides in from the left under the - 64px header so page content stays tappable/scrollable behind it. */ - .neo-mobile-nav{ - display:none; - flex-direction:column; - gap:.5rem; - padding:5.5rem 1.25rem 2rem; - background:var(--panel); - border-right:1px solid var(--line); - border-radius:0; - position:fixed; - top:0; - left:0; - bottom:0; - z-index:90; - max-width:calc(100vw - 1rem); - width:min(320px,80vw); - max-height:none; - overflow-y:auto; - opacity:0; - transform:translateX(-100%); - transition:transform .25s ease,opacity .25s ease; - } - .neo-mobile-nav.open{ - display:flex; - opacity:1; - transform:translateX(0); - } - /* backdrop — taps close the menu, content stays accessible */ - .neo-mobile-backdrop{ - display:none; - position:fixed; - inset:0; - z-index:80; - background:rgba(0,0,0,.45); - backdrop-filter:blur(2px); - -webkit-backdrop-filter:blur(2px); - transition:background .25s ease; - } - .neo-mobile-backdrop.open{ - display:block; - } -} -@media(min-width:901px){ - .neo-burger{display:none} - .neo-mobile-nav{display:none!important} -} diff --git a/assets/css/custom.css b/assets/css/custom.css deleted file mode 100644 index 8ed7c746..00000000 --- a/assets/css/custom.css +++ /dev/null @@ -1,185 +0,0 @@ - -z-index:1;overflow:hidden;opacity:0;transition:opacity .35s ease} - -.repo-header{position:relative;z-index:2} -/* gradient glossy title */ -.repo-descr{position:relative;z-index:2} -/* glossy pills with glow */ -.repo-pill{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease} -.repo-meta:hover .repo-pill{box-shadow:0 0 12px -3px rgba(34,211,238,.5)} -.repo-pill:hover{transform:translateY(-2px);border-color:rgba(var(--ring),.7); - background:rgba(var(--color-primary-500),.2);box-shadow:0 0 14px -3px rgba(34,211,238,.55)} -.repo-pill--warn{background:rgba(var(--color-amber-500,245 158 11),.16);box-shadow:0 0 12px -4px rgba(var(--color-amber-500,245 158 11),.5)} -/* button lift + glow */ -.repo-btn{position:relative;z-index:2;box-shadow:0 6px 16px -8px rgba(34,211,238,.7)} -.repo-btn:hover{box-shadow:0 10px 22px -8px rgba(34,211,238,.75); - border-color:rgba(var(--ring),.7)} -.repo-btn--ghost:hover{background:rgba(var(--color-primary-500),.12);box-shadow:0 8px 18px -8px rgba(34,211,238,.5)} -/* topic chips as accent pills */ -.repo-topic{transition:transform .18s ease,background .18s ease,box-shadow .18s ease} -.repo-topic:hover{text-decoration:none;transform:translateY(-2px); - background:rgba(var(--color-primary-500),.16);border-radius:999px;padding:.1rem .45rem; - box-shadow:0 0 12px -3px rgba(34,211,238,.5)} -/* NEW badge (recently updated) */ -.new-badge{position:absolute;top:11px;left:11px;z-index:3;font-size:.6rem;font-weight:800;letter-spacing:.6px; - padding:.12rem .5rem;border-radius:999px;text-transform:uppercase;color:#04130c; - background:linear-gradient(135deg,#5dff9b,#21d4a0); - box-shadow:0 0 12px -2px rgba(93,255,155,.6)} -/* like button (mirrors neo.css) */ -.like-btn{position:absolute;top:11px;right:11px;z-index:3;display:inline-flex;align-items:center;gap:.3rem; - font-size:.8rem;font-weight:700;cursor:pointer;user-select:none;padding:.25rem .55rem;border-radius:999px; - border:1px solid rgba(34,211,238,.35); - background:rgba(21,26,38,.7);color:rgb(var(--color-neutral-300)); - backdrop-filter:blur(4px);transition:color .2s,border-color .2s,background .2s,transform .2s} -.like-btn:hover{color:rgb(var(--color-primary-300));border-color:rgba(34,211,238,.6);transform:translateY(-1px)} -.like-btn .heart{font-size:.9rem;line-height:1;transition:transform .2s} -.like-btn.liked{color:#ff5d73;border-color:rgba(255,93,115,.55);background:rgba(255,93,115,.14)} -.like-btn.liked .heart{transform:scale(1.15)} -.like-btn .burst{position:absolute;inset:0;pointer-events:none;border-radius:999px;overflow:visible} -.like-btn .burst i{position:absolute;top:50%;left:50%;font-size:.6rem;opacity:0} - -/* ---------- GIST SINGLE CARD (mirror repo single) ---------- */ -.gist-page{position:relative;margin:1.5rem 0 2rem;padding:1.6rem 1.7rem 1.7rem;border-radius:var(--radius); - background:linear-gradient(160deg,rgba(var(--bg-elevated),.92),rgba(var(--card-bg,.1),.7)); - border:1px solid rgba(var(--ring),.35); - box-shadow:0 16px 40px -22px rgba(0,0,0,.7),0 0 0 1px rgba(var(--accent,99 102 241),.08); - overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease} -.gist-page::before{content:"";position:absolute;top:0;left:0;right:0;height:3px; - background:linear-gradient(90deg,rgb(var(--color-primary-500)),rgb(var(--color-primary-300)),var(--accent-2,rgb(var(--color-primary-400)))); - opacity:.9} -.gist-page:hover{transform:translateY(-4px);border-color:rgba(var(--ring),.6); - box-shadow:0 24px 52px -22px rgba(0,0,0,.8),0 0 26px -8px rgba(34,211,238,.45)} -.gist-page{transform-style:preserve-3d} -.gist-header{position:relative;z-index:2} -.gist-links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem;position:relative;z-index:2} - -/* ---------- AWESOME SINGLE CARD (mirror repo single) ---------- */ -.awesome-preview{position:relative;margin:0 0 2rem;border-radius:var(--radius); - background:linear-gradient(160deg,rgba(var(--bg-elevated),.92),rgba(var(--card-bg,.1),.7)); - border:1px solid rgba(var(--ring),.35); - box-shadow:0 16px 40px -22px rgba(0,0,0,.7),0 0 0 1px rgba(var(--accent,99 102 241),.08); - overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease} -.awesome-preview::before{content:"";position:absolute;top:0;left:0;right:0;height:3px; - background:linear-gradient(90deg,rgb(var(--color-primary-500)),rgb(var(--color-primary-300)),var(--accent-2,rgb(var(--color-primary-400)))); - opacity:.9} -.awesome-preview:hover{transform:translateY(-4px);border-color:rgba(var(--ring),.6); - box-shadow:0 24px 52px -22px rgba(0,0,0,.8),0 0 26px -8px rgba(34,211,238,.45)} -.awesome-preview{transform-style:preserve-3d} - -.repo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.5rem 0; } -.repo-card { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border-radius: var(--radius); - background: rgba(var(--bg-elevated), .6); border: 1px solid rgba(var(--color-neutral-700), .5); - text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; - box-shadow: 0 4px 12px rgba(0,0,0,.15); } -.repo-card:hover { transform: translateY(-5px); border-color: rgba(var(--ring), .6); background: rgba(var(--bg-elevated), .9); - box-shadow: 0 8px 24px rgba(0,0,0,.35); } -.repo-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; } -.repo-card-name { font-weight: 700; color: rgb(var(--color-primary-200)); font-size: .98rem; word-break: break-word; } -.repo-card-owner { font-size: .72rem; color: rgb(var(--color-neutral-500)); white-space: nowrap; } -.repo-card-desc { font-size: .84rem; color: rgb(var(--color-neutral-300)); margin: 0; line-height: 1.4; - display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } -.repo-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .72rem; color: rgb(var(--color-neutral-400)); margin-top: auto; } -/* Topics pills */ -.repo-pills { display: flex; flex-wrap: wrap; gap: .3rem; } -.repo-pill { font-size: .64rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(var(--color-primary-500), .14); - color: rgb(var(--color-primary-300)); border: 1px solid rgba(var(--color-primary-500), .25); } -/* Badges & tags */ -.repo-badge { font-size: .62rem; padding: .05rem .4rem; border-radius: 999px; background: rgba(var(--color-neutral-600), .4); - color: rgb(var(--color-neutral-300)); border: 1px solid rgba(var(--color-neutral-500), .4); } -.repo-tag { font-size: .62rem; padding: .05rem .4rem; border-radius: 999px; background: rgba(var(--color-warning, .14); - color: rgb(var(--color-warning)); border: 1px solid rgba(var(--color-warning), .3); } -/* Gist file chips */ -.gist-files { display: flex; flex-wrap: wrap; gap: .3rem; } -.gist-file { font-size: .66rem; padding: .12rem .45rem; border-radius: .4rem; background: rgba(var(--bg-elevated), .9); - border: 1px solid rgba(var(--color-neutral-700), .6); color: rgb(var(--color-neutral-300)); font-family: var(--font-mono, monospace); } -.gist-file-more { color: rgb(var(--color-primary-300)); border-color: rgba(var(--color-primary-500), .3); } -/* Card footer links */ -.card-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; } -.card-link { font-size: .7rem; font-weight: 600; color: rgb(var(--color-primary-300)); } -.repo-card:hover .card-link { color: rgb(var(--color-primary-200)); text-decoration: underline; } -/* Language color dots */ -.repo-lang-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .25rem; } -.repo-lang-dot.js { background: #f7df1e; } -.repo-lang-dot.ts { background: #3178c6; } -.repo-lang-dot.py { background: #3776ab; } -.repo-lang-dot.rs { background: #dea584; } -.repo-lang-dot.cpp { background: #6c54ce; } -.repo-lang-dot.go { background: #00add8; } -.repo-lang-dot.cs { background: #2f596c; } -.repo-lang-dot.java { background: #e73c30; } -.repo-lang-dot.love2d { background: #ff9a21; } -.gist-header { margin: 1rem 0 1.5rem; } -.gist-links { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; } - -@media (max-width: 640px) { - .timeline-item { grid-template-columns: 1fr; gap: .35rem; } - .about-hero { justify-content: center; text-align: center; } - .about-social { justify-content: center; } -} - -/* ---------- Cross-links (Похожие репозитории) ---------- */ -.crosslinks { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(var(--color-neutral-200)); } -.dark .crosslinks { border-top-color: rgb(var(--color-neutral-700)); } -.crosslinks-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .9rem; color: rgb(var(--color-neutral-900)); } -.dark .crosslinks-title { color: rgb(var(--color-neutral-100)); } -.crosslinks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; } -.crosslinks-list li a { - display: inline-block; padding: .35rem .8rem; border-radius: .5rem; font-size: .9rem; - background: rgb(var(--color-neutral-100)); color: rgb(var(--color-neutral-700)); - border: 1px solid rgb(var(--color-neutral-200)); transition: all .15s; -} -.dark .crosslinks-list li a { background: rgb(var(--color-neutral-800)); color: rgb(var(--color-neutral-200)); border-color: rgb(var(--color-neutral-700)); } -.crosslinks-list li a:hover { color: rgb(var(--color-primary-600)); border-color: rgba(var(--ring), .5); } - -.awesome-preview { contain: content; position: relative; overflow: hidden; max-height: 70vh; overflow-y: auto; font-size: 0.95rem; line-height: 1.6; } -.awesome-preview img, .awesome-preview video, .awesome-preview iframe { max-width: 100%; height: auto; } -.awesome-preview table { display: block; width: 100%; overflow-x: auto; } - -/* ===== Movie grid (film collection) ===== */ -.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1.1rem; margin: 2rem 0; } -.movie-card { display:flex; flex-direction:column; background: var(--card-bg,#1b1b22); border:1px solid var(--card-border,#2c2c36); border-radius:12px; overflow:hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; } -.movie-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.35); border-color: var(--accent,#6ee7b7); } -.movie-poster { position:relative; aspect-ratio:2/3; display:flex; align-items:center; justify-content:center; text-align:center; padding:.6rem; color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.45); } -.movie-poster .mp-title { font-weight:700; font-size:.95rem; line-height:1.15; } -.movie-poster .mp-year { position:absolute; top:.4rem; right:.5rem; font-size:.72rem; background:rgba(0,0,0,.4); padding:.1rem .4rem; border-radius:999px; } -.movie-body { padding:.6rem .7rem .8rem; } -.movie-body .m-title { font-weight:600; font-size:.9rem; margin:0 0 .15rem; } -.movie-body .m-meta { font-size:.76rem; color:var(--muted,#9aa); margin:0 0 .5rem; } -.movie-links { display:flex; flex-wrap:wrap; gap:.35rem; } -.movie-links a { font-size:.72rem; padding:.22rem .5rem; border-radius:999px; text-decoration:none; border:1px solid var(--card-border,#2c2c36); color:var(--fg,#ddd); transition: background .15s ease,color .15s ease; } -.movie-links a:hover { background: var(--accent,#6ee7b7); color:#06231a; } -.movie-links a.imdb:hover { background:#f5c518; color:#000; } -.movie-links a.kp:hover { background:#ffec00; color:#000; } -@media (max-width:520px){ .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); } } - -/* poster image overlay + details */ -.movie-poster { overflow: hidden; } -.mp-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; } -.mp-title-overlay { position:absolute; left:0; right:0; bottom:0; padding:.5rem .55rem; font-weight:700; font-size:.85rem; line-height:1.1; - background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); text-shadow:0 1px 3px rgba(0,0,0,.6); } -.movie-card:hover .mp-title-overlay { color: var(--accent,#6ee7b7); } -.m-rating { font-size:.78rem; color:#f5c518; margin:0 0 .35rem; } -.m-plot { font-size:.76rem; margin:0 0 .5rem; } -.m-plot summary { cursor:pointer; color:var(--accent,#6ee7b7); font-weight:600; } -.m-plot p { margin:.35rem 0 0; color:var(--muted,#9aa); line-height:1.4; } - -/* ---------- SITE-WIDE COSMETICS (theme pages) ---------- */ - -body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none; - background: - radial-gradient(60vmax 60vmax at 12% 8%,rgba(34,211,238,.14),transparent 60%), - radial-gradient(50vmax 50vmax at 88% 22%,rgba(167,139,250,.12),transparent 60%), - radial-gradient(46vmax 46vmax at 60% 92%,rgba(125,211,252,.10),transparent 60%)} -header nav, .site-header{border-bottom:1px solid rgba(var(--ring),.4)} -/* selection tint */ -:::selection{background:rgba(34,211,238,.3);color:inherit} -/* focus glow */ -a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible{ - outline:none;box-shadow:0 0 0 3px rgba(34,211,238,.45)} -/* glossy in-content links */ -.prose a, .repo-body a, .gist-body a{color:rgb(var(--color-primary-300));text-decoration:none; - background-image:linear-gradient(rgb(var(--color-primary-300)),rgb(var(--color-primary-300))); - background-size:0% 1.5px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .25s ease} -.prose a:hover, .repo-body a:hover, .gist-body a:hover{background-size:100% 1.5px} -a:hover{text-shadow:0 0 10px rgba(34,211,238,.4)} - diff --git a/assets/css/design-system.css b/assets/css/design-system.css deleted file mode 100644 index 286bae5f..00000000 --- a/assets/css/design-system.css +++ /dev/null @@ -1,712 +0,0 @@ -/* =========================================================================== - Design System — unified tokens, base, components, templates - Replaces competing Neo + Blowfish overrides with one coherent system. - =========================================================================== */ - -/* ---------- TOKENS ---------- */ -:root { - /* Palette: warm editorial amber/gold + clean neutrals */ - --amber-50: #fffbeb; - --amber-100: #fef3c7; - --amber-200: #fde68a; - --amber-300: #fcd34d; - --amber-400: #fbbf24; - --amber-500: #f59e0b; - --amber-600: #d97706; - --amber-700: #b45309; - - --ink-900: #0f172a; - --ink-800: #1e293b; - --ink-700: #334155; - --ink-600: #475569; - --ink-500: #64748b; - --ink-100: #e2e8f0; - --ink-50: #f8fafc; - - --paper: #fafafa; - --paper-2: #ffffff; - --line: #e5e7eb; - --line-2: #d1d5db; - - /* Accent system */ - --accent: var(--amber-600); - --accent-2: var(--amber-500); - - /* Typography */ - --font-display: "Newsreader", "Playfair Display", Georgia, "Times New Roman", serif; - --font-body: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; - --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; - - /* Spacing */ - --space-1: 0.25rem; - --space-2: 0.5rem; - --space-3: 0.75rem; - --space-4: 1rem; - --space-5: 1.25rem; - --space-6: 1.5rem; - --space-8: 2rem; - --space-10: 2.5rem; - --space-12: 3rem; - - /* Radii */ - --radius-sm: 6px; - --radius: 10px; - --radius-lg: 14px; - - /* Shadows */ - --shadow-sm: 0 1px 2px rgba(15,23,42,.06); - --shadow: 0 8px 24px rgba(15,23,42,.10); - --shadow-lg: 0 18px 40px rgba(15,23,42,.14); - - /* Motion */ - --ease: 220ms cubic-bezier(.4,.0,.2,1); - --ease-out: 280ms cubic-bezier(.0,.0,.2,1); -} - -/* Dark theme overrides */ -[data-theme="dark"] { - --paper: #0f172a; - --paper-2: #1e293b; - --line: #263148; - --line-2: #334155; - --ink-900: #f8fafc; - --ink-800: #e2e8f0; - --ink-700: #cbd5e1; - --ink-600: #94a3b8; - --ink-500: #64748b; - --ink-100: #1e293b; - --ink-50: #0f172a; - --shadow-sm: 0 1px 2px rgba(0,0,0,.24); - --shadow: 0 8px 24px rgba(0,0,0,.35); - --shadow-lg: 0 18px 40px rgba(0,0,0,.45); -} - -/* ---------- BASE ---------- */ -*, *::before, *::after { box-sizing: border-box; } -html { scroll-behavior: smooth; } -body { - margin: 0; - font-family: var(--font-body); - font-size: 16px; - line-height: 1.6; - color: var(--ink-800); - background: var(--paper); - transition: background var(--ease), color var(--ease); -} -a { color: inherit; text-decoration: none; } -img { max-width: 100%; height: auto; border-radius: var(--radius); } -code { font-family: var(--font-mono); font-size: .9em; } -pre { border-radius: var(--radius); } - -/* ---------- SKIP LINK ---------- */ -.skip-link { - position: absolute; - top: -100%; - left: 50%; - transform: translateX(-50%); - background: var(--accent); - color: #fff; - padding: var(--space-2) var(--space-4); - border-radius: 0 0 var(--radius) var(--radius); - font-weight: 600; - z-index: 9999; - transition: top var(--ease); -} -.skip-link:focus { top: 0; } - -/* ---------- FOCUS ---------- */ -:focus-visible { - outline: none; - box-shadow: 0 0 0 3px rgba(217,119,6,.45); -} - -/* ---------- BUTTONS ---------- */ -.btn { - display: inline-flex; - align-items: center; - justify-content: center; - gap: var(--space-2); - padding: var(--space-2) var(--space-5); - border-radius: var(--radius); - border: 1px solid transparent; - font-weight: 600; - font-size: .95rem; - cursor: pointer; - transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease); -} -.btn-primary { - background: linear-gradient(135deg, var(--accent), var(--accent-2)); - color: #fff; - border-color: transparent; -} -.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); } -.btn-ghost { - background: transparent; - border-color: var(--line-2); - color: var(--ink-700); -} -.btn-ghost:hover { border-color: var(--accent); color: var(--accent); } - -/* ---------- CARDS ---------- */ -.card { - background: var(--paper-2); - border: 1px solid var(--line); - border-radius: var(--radius-lg); - padding: var(--space-6); - box-shadow: var(--shadow-sm); - transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); -} -.card:hover { - transform: translateY(-2px); - border-color: rgba(217,119,6,.35); - box-shadow: var(--shadow); -} - -/* ---------- TAGS / PILLS ---------- */ -.tag { - display: inline-flex; - align-items: center; - gap: var(--space-1); - padding: var(--space-1) var(--space-3); - border-radius: 999px; - font-size: .8rem; - font-weight: 500; - color: var(--ink-700); - background: var(--ink-100); - border: 1px solid var(--line); - transition: background var(--ease), color var(--ease), border-color var(--ease); -} -.tag:hover { - background: rgba(217,119,6,.12); - border-color: rgba(217,119,6,.35); - color: var(--accent); -} - -/* ---------- INPUTS ---------- */ -.input { - width: 100%; - padding: var(--space-3) var(--space-4); - border-radius: var(--radius); - border: 1px solid var(--line-2); - background: var(--paper); - color: var(--ink-800); - font-size: .95rem; - transition: border-color var(--ease), box-shadow var(--ease); -} -.input:focus { - outline: none; - border-color: var(--accent); - box-shadow: 0 0 0 3px rgba(217,119,6,.18); -} - -/* ---------- CODE BLOCKS ---------- */ -pre, code { - font-family: var(--font-mono); -} -pre { - background: var(--paper-2); - border: 1px solid var(--line); - padding: var(--space-4); - overflow-x: auto; -} -code { - background: var(--ink-100); - padding: .15em .4em; - border-radius: var(--radius-sm); -} - -/* ---------- SECTION HEADER ---------- */ -.section-header { - display: flex; - align-items: baseline; - justify-content: space-between; - margin: var(--space-10) 0 var(--space-6); - padding-bottom: var(--space-3); - border-bottom: 1px solid var(--line); -} -.section-header h2 { - font-family: var(--font-display); - font-size: 1.35rem; - font-weight: 700; -} -.section-header .more { - font-size: .85rem; - color: var(--ink-500); -} - -/* ---------- LAYOUT ---------- */ -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 var(--space-6); -} -.stack { display: flex; flex-direction: column; gap: var(--space-3); } -.grid { display: grid; gap: var(--space-4); } - -/* ---------- SITE HEADER ---------- */ -.site-header { - position: sticky; - top: 0; - z-index: 50; - background: rgba(250,250,250,.88); - border-bottom: 1px solid var(--line); - backdrop-filter: saturate(140%) blur(14px); - -webkit-backdrop-filter: saturate(140%) blur(14px); - transition: background var(--ease), border-color var(--ease); -} -[data-theme="dark"] .site-header { - background: rgba(15,23,42,.82); -} -.site-header-inner { - display: flex; - align-items: center; - justify-content: space-between; - height: 64px; -} -.brand { - display: inline-flex; - align-items: center; - gap: var(--space-3); - font-weight: 700; -} -.brand-mark { - display: inline-grid; - width: 36px; - height: 36px; - place-items: center; - border-radius: var(--radius); - background: linear-gradient(135deg, var(--accent), var(--accent-2)); - color: #fff; - font-weight: 800; -} -.brand-text small { - display: block; - color: var(--ink-500); - font-size: .75rem; - font-weight: 500; -} -.primary-nav { - display: none; -} -.primary-nav a { - padding: var(--space-2) var(--space-3); - border-radius: var(--radius); - color: var(--ink-700); - font-weight: 500; -} -.primary-nav a:hover { - color: var(--accent); - background: rgba(217,119,6,.10); -} -.header-actions { - display: inline-flex; - align-items: center; - gap: var(--space-2); -} - -/* ---------- ICON BUTTON ---------- */ -.icon-btn { - height: 40px; - min-width: 40px; - padding: 0 var(--space-3); - border-radius: var(--radius); - border: 1px solid transparent; - background: transparent; - color: var(--ink-700); - cursor: pointer; - transition: background var(--ease), color var(--ease), border-color var(--ease); -} -.icon-btn:hover { - background: var(--ink-100); - color: var(--accent); - border-color: var(--line); -} -.burger { display: inline-flex; } - -/* ---------- SCROLL TO TOP ---------- */ -.scroll-to-top { - position: fixed; - bottom: 2rem; - right: 2rem; - z-index: 100; - width: 48px; - height: 48px; - border-radius: 50%; - border: 1px solid var(--line); - background: var(--paper-2); - color: var(--ink-700); - font-size: 1.25rem; - cursor: pointer; - opacity: 0; - transform: translateY(20px); - transition: opacity .25s ease, transform .25s ease, background .25s ease; - pointer-events: none; -} -.scroll-to-top.visible { - opacity: 1; - transform: translateY(0); - pointer-events: auto; -} -.scroll-to-top:hover { - background: var(--accent); - color: #fff; - border-color: var(--accent); -} -.neo-mobile-backdrop { - position: fixed; - inset: 0; - z-index: 80; - background: rgba(0,0,0,.45); - backdrop-filter: blur(2px); - -webkit-backdrop-filter: blur(2px); - opacity: 0; - pointer-events: none; - transition: opacity .25s ease; -} -.neo-mobile-backdrop.open { - opacity: 1; - pointer-events: auto; -} -/* Slide-in side panel: slides from left, below the sticky header. */ -.mobile-panel { - position: fixed; - top: 0; - left: 0; - bottom: 0; - z-index: 90; - width: min(320px, 80vw); - background: var(--paper-2); - border-right: 1px solid var(--line); - transform: translateX(-100%); - transition: transform .25s ease; - overflow-y: auto; -} -.mobile-panel[hidden] { display: none; } -.mobile-panel.open { - transform: translateX(0); -} -.mobile-panel-inner { - display: flex; - flex-direction: column; - height: 100%; - padding: var(--space-6); -} -.mobile-panel-head { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: var(--space-6); -} -.mobile-group { - margin-bottom: var(--space-6); -} -.mobile-group-title { - font-size: .8rem; - color: var(--ink-500); - text-transform: uppercase; - letter-spacing: .08em; - margin-bottom: var(--space-3); -} -.mobile-panel a { - display: block; - padding: var(--space-3) var(--space-4); - border-radius: var(--radius); - color: var(--ink-800); - border: 1px solid transparent; -} -.mobile-panel a:hover { - background: rgba(217,119,6,.10); - color: var(--accent); - border-color: rgba(217,119,6,.25); -} - -/* ---------- FOOTER ---------- */ -.site-footer { - border-top: 1px solid var(--line); - padding: var(--space-10) 0 var(--space-8); - background: var(--paper); -} -.footer-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); - gap: var(--space-8); -} -.footer-brand p { - color: var(--ink-500); - margin-top: var(--space-2); -} -.footer-col h5 { - font-size: .9rem; - color: var(--ink-500); - margin-bottom: var(--space-3); -} -.footer-col a { - display: block; - padding: var(--space-1) 0; - color: var(--ink-700); -} -.footer-col a:hover { color: var(--accent); } -.footer-tags { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); - margin-top: var(--space-8); -} - -/* ---------- HERO ---------- */ -.hero { - padding: var(--space-12) 0 var(--space-10); - border-bottom: 1px solid var(--line); -} -.hero h1 { - font-family: var(--font-display); - font-size: clamp(2rem, 4vw, 3rem); - line-height: 1.15; - letter-spacing: -.01em; -} -.hero p.lead { - color: var(--ink-600); - max-width: 760px; - margin-top: var(--space-4); -} -.hero .cta { - margin-top: var(--space-6); - display: inline-flex; - gap: var(--space-3); - flex-wrap: wrap; -} - -/* ---------- FEATURED EDITORIAL LAYOUT ---------- */ -/* 1 large lead card + 2 smaller sub cards stacked on the right */ -.editorial-featured { - display: grid; - grid-template-columns: 1.6fr 1fr; - gap: var(--space-4); - margin-top: var(--space-8); -} -.card-lead { - display: flex; - flex-direction: column; - gap: var(--space-3); - padding: var(--space-6); - background: var(--paper-2); - border: 1px solid var(--line); - border-radius: var(--radius); -} -.card-lead h3 { - font-family: var(--font-display); - font-size: 1.5rem; - line-height: 1.25; -} -.card-lead p { - color: var(--ink-600); - font-size: 1.05rem; - line-height: 1.6; -} -.editorial-side { - display: flex; - flex-direction: column; - gap: var(--space-4); -} -.card-sub { - display: flex; - flex-direction: column; - gap: var(--space-2); - padding: var(--space-4); - background: var(--paper-2); - border: 1px solid var(--line); - border-radius: var(--radius); -} -.card-sub h3 { - font-family: var(--font-display); - font-size: 1rem; - line-height: 1.3; -} -.card-sub p { - color: var(--ink-600); - font-size: .9rem; - line-height: 1.5; -} -.editorial-meta { - color: var(--ink-500); - font-size: .85rem; - margin-top: var(--space-2); -} - -/* ---------- RECENT ROWS ---------- */ -.recent-rows { - display: flex; - flex-direction: column; -} -.recent-row { - display: grid; - grid-template-columns: 96px 1fr auto; - gap: var(--space-4); - align-items: center; - padding: var(--space-3) 0; - border-bottom: 1px solid var(--line); -} -.recent-row:first-child { border-top: 1px solid var(--line); } -.recent-row .date { color: var(--ink-500); font-size: .9rem; } -.recent-row .title { font-weight: 600; } -.recent-row .meta { display: flex; gap: var(--space-2); align-items: center; } - -/* ---------- CATEGORY CARDS ---------- */ -.category-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); - gap: var(--space-4); -} -.category-card { - background: var(--paper-2); - border: 1px solid var(--line); - border-radius: var(--radius-lg); - padding: var(--space-5); - box-shadow: var(--shadow-sm); - transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); -} -.category-card:hover { - transform: translateY(-2px); - border-color: rgba(217,119,6,.35); - box-shadow: var(--shadow); -} -.category-card .cat-icon { font-size: 1.4rem; } -.category-card .cat-name { font-weight: 700; margin-top: var(--space-2); } -.category-card .cat-count { color: var(--ink-500); font-size: .85rem; } - -/* ---------- NEWSLETTER ---------- */ -.newsletter { - margin: var(--space-10) 0; - padding: var(--space-8); - border-radius: var(--radius-lg); - background: linear-gradient(160deg, var(--paper-2), var(--paper)); - border: 1px solid var(--line); - box-shadow: var(--shadow); -} -.newsletter h3 { font-family: var(--font-display); font-size: 1.25rem; } -.newsletter p { color: var(--ink-600); margin-top: var(--space-2); } -.newsletter-form { - display: flex; - gap: var(--space-3); - margin-top: var(--space-4); - flex-wrap: wrap; -} -.newsletter-form .input { flex: 1 1 220px; } - -/* ---------- POST SINGLE ---------- */ -.post-header { - padding: var(--space-10) 0 var(--space-6); - border-bottom: 1px solid var(--line); -} -.post-header h1 { - font-family: var(--font-display); - font-size: clamp(1.6rem, 3.2vw, 2.4rem); - line-height: 1.2; - letter-spacing: -.01em; -} -.post-header .post-meta { - display: flex; - gap: var(--space-3); - align-items: center; - flex-wrap: wrap; - margin-top: var(--space-3); - color: var(--ink-500); -} -.post-layout { - display: grid; - grid-template-columns: 1fr 220px; - gap: var(--space-8); - margin-top: var(--space-8); -} -.post-body { - min-width: 0; -} -.post-body h2, -.post-body h3, -.post-body h4 { - font-family: var(--font-display); - line-height: 1.25; - margin-top: var(--space-8); -} -.post-body blockquote { - border-left: 4px solid var(--accent); - padding-left: var(--space-4); - color: var(--ink-600); - margin: var(--space-6) 0; -} -.post-body img { - border-radius: var(--radius-lg); - box-shadow: var(--shadow-sm); -} -.post-body pre { - position: relative; -} -.post-body .code-header { - display: flex; - justify-content: space-between; - align-items: center; - padding: var(--space-2) var(--space-4); - border-bottom: 1px solid var(--line); - color: var(--ink-500); - font-size: .8rem; -} -.toc { - position: sticky; - top: 80px; - align-self: start; -} -.toc h5 { - font-size: .85rem; - color: var(--ink-500); - text-transform: uppercase; - letter-spacing: .08em; - margin-bottom: var(--space-3); -} -.toc ul { - list-style: none; - padding: 0; - margin: 0; - border-left: 1px solid var(--line); -} -.toc li + li { margin-top: var(--space-1); } -.toc a { - display: block; - padding-left: var(--space-3); - color: var(--ink-600); - font-size: .9rem; -} -.toc a:hover { color: var(--accent); } - -/* ---------- POST NAV ---------- */ -.post-nav { - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--space-4); - margin-top: var(--space-10); -} -.post-nav .pn-card { - padding: var(--space-4); - border-radius: var(--radius-lg); - border: 1px solid var(--line); - background: var(--paper-2); - transition: transform var(--ease), border-color var(--ease); -} -.post-nav .pn-card:hover { - transform: translateY(-1px); - border-color: rgba(217,119,6,.35); -} - -/* ---------- RESPONSIVE ---------- */ -@media (max-width: 860px) { - .post-layout { grid-template-columns: 1fr; } - .toc { display: none; } - .primary-nav { display: none; } - .editorial-featured { grid-template-columns: 1fr; } - .recent-row { grid-template-columns: 1fr; gap: var(--space-1); } - .hero { padding: var(--space-10) 0; } -} -@media (min-width: 861px) { - .primary-nav { display: flex; align-items: center; gap: var(--space-2); } - .burger { display: none; } -} - diff --git a/assets/css/docs-layout.css b/assets/css/docs-layout.css deleted file mode 100644 index 16c3fe12..00000000 --- a/assets/css/docs-layout.css +++ /dev/null @@ -1,41 +0,0 @@ -.neo-docs-nav { - position: sticky; - top: 6rem; - height: fit-content; -} -.neo-docs-nav h5 { - margin: 0 0 0.75rem; - font-size: 0.85rem; - text-transform: uppercase; - letter-spacing: 0.08em; - opacity: 0.75; -} -.neo-docs-nav nav { - display: flex; - flex-direction: column; - gap: 0.25rem; -} -.neo-docs-nav nav a { - color: inherit; - text-decoration: none; - padding: 0.35rem 0.6rem; - border-radius: 0.4rem; - border-left: 2px solid transparent; - font-size: 0.95rem; -} -.neo-docs-nav nav a.active { - border-left-color: #2dd4bf; - background: rgba(45, 212, 191, 0.08); -} -.neo-docs-content { - min-width: 0; -} -@media (max-width: 860px) { - .neo-wrap { - display: block !important; - } - .neo-docs-nav { - position: static; - margin-bottom: 1rem; - } -} diff --git a/assets/css/home-emerald.css b/assets/css/home-emerald.css deleted file mode 100644 index 07b3d8a5..00000000 --- a/assets/css/home-emerald.css +++ /dev/null @@ -1,437 +0,0 @@ -/* ============================================================ - DominicusIn homepage — Glass / Neo-modern (emerald) - Homepage-only layer. Loaded after custom.css on the home route. - Tokens come from dominicusin.css (--ring = emerald, --ring-soft) - and custom.css (--bg-*, --radius, --radius-lg, --font-sans). - ============================================================ */ - -.home-container { - max-width: 80rem; - margin: 0 auto; - padding: 2rem 1.5rem; -} - -/* Topic pills (categories quick-nav, below header) */ -.home-topics { - display: flex; - flex-wrap: wrap; - gap: 0.4rem; - padding: 0.5rem 0 1rem; -} -.home-topics a { - font-size: 0.78rem; - padding: 0.25rem 0.7rem; - border-radius: 999px; - border: 1px solid rgb(255 255 255 / 0.08); - color: rgb(var(--color-neutral-400)); - text-decoration: none; - transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; - white-space: nowrap; -} -.home-topics a:hover { - border-color: rgba(var(--ring), 0.4); - color: rgb(var(--ring-soft)); - background: rgba(var(--ring), 0.06); -} - -/* Hero */ -.hero-glass { - position: relative; - padding: 4rem 2.5rem 3rem; - margin-bottom: 2.5rem; - border-radius: var(--radius-lg); - overflow: hidden; - background: rgba(var(--bg-card), 0.4); - border: 1px solid rgb(255 255 255 / 0.06); - backdrop-filter: blur(12px); - -webkit-backdrop-filter: blur(12px); -} -.hero-glass::before { - content: ""; - position: absolute; - inset: 0; - background: linear-gradient(135deg, rgba(var(--ring), 0.08), transparent 60%); - pointer-events: none; -} -.hero-glass h1 { - position: relative; - font-size: clamp(2.25rem, 6vw, 3.5rem); - font-weight: 800; - line-height: 1.1; - letter-spacing: -0.03em; - margin-bottom: 0.75rem; - background: linear-gradient(135deg, rgb(var(--color-neutral-100)), rgb(var(--ring-soft))); - -webkit-background-clip: text; - background-clip: text; - -webkit-text-fill-color: transparent; - animation: heroFade 0.8s ease both; -} -.hero-glass .tagline { - position: relative; - font-size: 1.15rem; - color: rgb(var(--color-neutral-400)); - max-width: 44rem; - animation: heroFade 0.8s ease 0.1s both; -} -.hero-stats { - position: relative; - display: flex; - gap: 2.5rem; - margin-top: 2.5rem; - animation: heroFade 0.8s ease 0.2s both; -} -.hero-stat-value { - font-size: 2rem; - font-weight: 800; - color: rgb(var(--ring-soft)); - line-height: 1; -} -.hero-stat-label { - font-size: 0.85rem; - color: rgb(var(--color-neutral-500)); - margin-top: 0.25rem; -} - -/* Topic highlights */ -.topic-highlights { - display: flex; - flex-wrap: wrap; - gap: 0.6rem; - margin-bottom: 2.5rem; -} -.topic-pill { - display: inline-flex; - align-items: center; - gap: 0.4rem; - padding: 0.45rem 1rem; - border-radius: 999px; - text-decoration: none; - font-size: 0.85rem; - font-weight: 500; - background: rgb(255 255 255 / 0.04); - border: 1px solid rgb(255 255 255 / 0.06); - color: rgb(var(--color-neutral-300)); - transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; -} -.topic-pill:hover { - border-color: rgba(var(--ring), 0.3); - color: rgb(var(--ring-soft)); - background: rgba(var(--ring), 0.06); -} -.topic-pill .count { - font-size: 0.7rem; - opacity: 0.6; -} - -/* Section header */ -.section-header { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 1.5rem; -} -.section-header h2 { - font-size: 1.5rem; - font-weight: 700; - letter-spacing: -0.02em; -} -.section-header a { - font-size: 0.85rem; - color: rgb(var(--color-neutral-400)); - text-decoration: none; - transition: color 0.2s ease; -} -.section-header a:hover { - color: rgb(var(--ring-soft)); -} - -/* Featured grid */ -.featured-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); - gap: 1.5rem; - margin-bottom: 3rem; -} -.summary-card { - background: rgba(var(--bg-card), 0.55); - border: 1px solid rgb(255 255 255 / 0.07); - backdrop-filter: blur(8px); - -webkit-backdrop-filter: blur(8px); - border-radius: var(--radius); - overflow: hidden; - transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; -} -.summary-card:hover { - border-color: rgba(var(--ring), 0.25); - box-shadow: 0 0 0 1px rgba(var(--ring), 0.12), 0 4px 20px rgba(var(--ring), 0.08); - transform: translateY(-2px); -} -.card-body { - padding: 1.5rem; -} -.card-category-badge { - display: inline-flex; - align-items: center; - gap: 0.35rem; - font-size: 0.72rem; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.05em; - padding: 0.2rem 0.6rem; - border-radius: 999px; - color: rgb(var(--ring-soft)); - background: rgba(var(--ring), 0.1); - border: 1px solid rgba(var(--ring), 0.15); - margin-bottom: 0.75rem; -} -.card-title { - font-size: 1.15rem; - font-weight: 700; - line-height: 1.35; - margin-bottom: 0.5rem; -} -.card-title a { - color: rgb(var(--color-neutral-100)); - text-decoration: none; - transition: color 0.2s ease; -} -.card-title a:hover { - color: rgb(var(--ring-soft)); -} -.card-meta { - font-size: 0.82rem; - color: rgb(var(--color-neutral-500)); - margin-bottom: 0.75rem; -} -.card-summary { - color: rgb(var(--color-neutral-400)); - font-size: 0.9rem; - line-height: 1.5; - margin-bottom: 1rem; -} -.article-tags { - display: flex; - flex-wrap: wrap; - gap: 0.35rem; -} -.article-tags a { - font-size: 0.75rem; - padding: 0.15rem 0.55rem; - border-radius: 999px; - border: 1px solid rgb(255 255 255 / 0.08); - color: rgb(var(--color-neutral-400)); - text-decoration: none; - transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; -} -.article-tags a:hover { - border-color: rgba(var(--ring), 0.35); - color: rgb(var(--ring-soft)); - background: rgba(var(--ring), 0.06); -} - -/* Recent list */ -.recent-list { - margin-bottom: 2rem; -} -.recent-item { - display: flex; - align-items: center; - gap: 1rem; - padding: 1rem 1.25rem; - margin-bottom: 0.5rem; - border-radius: var(--radius); - background: rgba(var(--bg-card), 0.4); - border: 1px solid rgb(255 255 255 / 0.05); - transition: border-color 0.2s ease, transform 0.2s ease; -} -.recent-item:hover { - border-color: rgba(var(--ring), 0.2); - transform: translateX(2px); -} -.recent-date { - font-size: 0.78rem; - color: rgb(var(--ring-soft)); - font-weight: 600; - white-space: nowrap; - min-width: 5rem; -} -.recent-title { - font-size: 0.95rem; - font-weight: 600; - color: rgb(var(--color-neutral-200)); - text-decoration: none; -} -.recent-title:hover { - color: rgb(var(--ring-soft)); -} -.recent-meta { - font-size: 0.78rem; - color: rgb(var(--color-neutral-500)); - margin-left: auto; - white-space: nowrap; -} - -/* Newsletter CTA */ -.newsletter-cta { - padding: 2.5rem 2rem; - border-radius: var(--radius-lg); - margin: 3rem 0 2rem; - text-align: center; - position: relative; - overflow: hidden; - background: rgba(var(--bg-card), 0.4); - border: 1px solid rgb(255 255 255 / 0.06); - backdrop-filter: blur(12px); - -webkit-backdrop-filter: blur(12px); -} -.newsletter-cta::before { - content: ""; - position: absolute; - inset: 0; - background: linear-gradient(135deg, rgba(var(--ring), 0.08), transparent 60%); - pointer-events: none; -} -.newsletter-cta h2 { - position: relative; - font-size: 1.75rem; - font-weight: 700; - margin-bottom: 0.5rem; -} -.newsletter-cta p { - position: relative; - color: rgb(var(--color-neutral-400)); - margin-bottom: 1.5rem; -} -.newsletter-form { - position: relative; - display: flex; - gap: 0.5rem; - max-width: 28rem; - margin: 0 auto; -} -.newsletter-form input { - flex: 1; - padding: 0.65rem 1rem; - border-radius: 999px; - border: 1px solid rgb(255 255 255 / 0.1); - background: rgba(var(--bg-surface), 0.5); - color: rgb(var(--color-neutral-100)); - outline: none; - font-family: inherit; - font-size: 0.9rem; -} -.newsletter-form input:focus { - border-color: rgba(var(--ring), 0.5); - box-shadow: 0 0 0 3px rgba(var(--ring), 0.15); -} -.newsletter-form button { - padding: 0.65rem 1.5rem; - border-radius: 999px; - border: none; - background: rgb(var(--ring)); - color: rgb(7 12 20); - font-weight: 700; - cursor: pointer; - transition: background 0.2s ease, transform 0.2s ease; - font-size: 0.9rem; -} -.newsletter-form button:hover { - background: rgb(var(--ring-soft)); - transform: scale(1.02); -} - -/* Animation */ -@keyframes heroFade { - 0% { - opacity: 0; - transform: translateY(12px); - } - 100% { - opacity: 1; - transform: translateY(0); - } -} - -/* Light mode: keep glass readable on a light canvas */ -html:not(.dark) .hero-glass, -html:not(.dark) .newsletter-cta, -html:not(.dark) .summary-card, -html:not(.dark) .recent-item { - background: rgb(255 255 255 / 0.65); - border-color: rgb(15 23 42 / 0.08); -} -html:not(.dark) .hero-glass h1 { - background: linear-gradient(135deg, rgb(var(--color-neutral-900)), rgb(var(--ring))); - -webkit-background-clip: text; - background-clip: text; - -webkit-text-fill-color: transparent; -} -html:not(.dark) .tagline, -html:not(.dark) .card-summary, -html:not(.dark) .newsletter-cta p { - color: rgb(var(--color-neutral-600)); -} -html:not(.dark) .card-title a, -html:not(.dark) .recent-title { - color: rgb(var(--color-neutral-900)); -} -html:not(.dark) .topic-pill, -html:not(.dark) .home-topics a { - background: rgb(15 23 42 / 0.03); - border-color: rgb(15 23 42 / 0.08); - color: rgb(var(--color-neutral-700)); -} - -/* Responsive */ -@media (max-width: 768px) { - .hero-glass { - padding: 2.5rem 1.5rem; - } - .hero-glass h1 { - font-size: 2.25rem; - } - .hero-stats { - gap: 1.25rem; - } - .hero-stat-value { - font-size: 1.5rem; - } - .featured-grid { - grid-template-columns: 1fr; - } - .recent-meta { - display: none; - } - .newsletter-form { - flex-direction: column; - } -} - -/* ---------- Emerald polish: tag-cloud + list cards ---------- */ -/* Tag cloud: weight tints cool->emerald, frequent tags glow brighter. - The --tw variable (0..1) is set inline by terms.html from post count. */ -.tag-cloud-item { - color: color-mix(in oklab, rgb(var(--ring-soft, 52 211 153)) calc(var(--tw, 0) * 65%), rgb(var(--color-neutral-300))); -} -.tag-cloud-item:hover { - color: rgb(var(--ring-soft, 52 211 153)); - transform: translateY(-2px); - text-shadow: 0 0 12px rgba(var(--ring, 16 185 129), 0.35); -} - -/* List page cards (article-link--card) get an emerald hover glow to match - the homepage glass language instead of the flat Blowfish default. */ -.article-link--card { - transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), - border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), - box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1); -} -.article-link--card:hover { - border-color: rgba(var(--ring, 16 185 129), 0.35); - box-shadow: 0 0 0 1px rgba(var(--ring, 16 185 129), 0.15), - 0 6px 24px rgba(var(--ring, 16 185 129), 0.10); - transform: translateY(-3px); -} -.article-link--card:hover h2 a { - color: rgb(var(--ring-soft, 52 211 153)); -} diff --git a/assets/css/neo.css b/assets/css/neo.css deleted file mode 100644 index 7cdede21..00000000 --- a/assets/css/neo.css +++ /dev/null @@ -1,208 +0,0 @@ -/* =========================================================================== - Neo Design System — presentation layer (fully separable from content). - Themes are pure CSS custom properties keyed by [data-theme] on ; - accents by [data-accent]. Switching is a runtime attribute change with - zero content edits. Components are namespaced under .neo-*. - =========================================================================== */ - -/* ---------- THEME TOKENS ---------- */ -:root, -[data-theme="dark"]{ - --bg:#0b0e14; --bg-2:#10141d; --panel:#151a26; --panel-2:#1b2231; - --line:#232c3d; --line-2:#2c374c; - --text:#e6eaf2; --muted:#93a0b5; --faint:#5d6a80; - --accent:#4fd1c5; --accent-2:#7dd3fc; --amber:#fbbf24; --violet:#a78bfa; - --mono:"JetBrains Mono","SF Mono",ui-monospace,Menlo,Consolas,monospace; - --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; - --radius:14px; --shadow:0 20px 50px -20px rgba(0,0,0,.6); - --grid:rgba(255,255,255,.025); - color-scheme: dark; -} -[data-theme="light"]{ - --bg:#f6f8fb; --bg-2:#eef1f6; --panel:#ffffff; --panel-2:#f1f4f9; - --line:#e2e8f0; --line-2:#cbd5e1; - --text:#0f172a; --muted:#475569; --faint:#94a3b8; - --accent:#0d9488; --accent-2:#0284c7; --violet:#7c3aed; - --shadow:0 20px 50px -20px rgba(15,23,42,.15); - --grid:rgba(15,23,42,.03); - color-scheme: light; -} -[data-theme="solar"]{ - --bg:#1c1917; --bg-2:#292524; --panel:#292524; --panel-2:#3a3531; - --line:#44403c; --line-2:#57534e; - --text:#fef3c7; --muted:#d6c3a3; --faint:#a89167; - --accent:#fbbf24; --accent-2:#fb923c; --violet:#c084fc; - --shadow:0 20px 50px -20px rgba(0,0,0,.6); - --grid:rgba(251,191,36,.04); - color-scheme: dark; -} -[data-theme="mono"]{ - --bg:#0a0a0a; --bg-2:#111; --panel:#141414; --panel-2:#1c1c1c; - --line:#262626; --line-2:#333; - --text:#e5e5e5; --muted:#a3a3a3; --faint:#666; - --accent:#e5e5e5; --accent-2:#bdbdbd; --violet:#d4d4d4; - --shadow:0 20px 50px -20px rgba(0,0,0,.8); - --grid:rgba(255,255,255,.03); - color-scheme: dark; -} -[data-theme="dracula"]{ - --bg:#282a36; --bg-2:#21222c; --panel:#44475a; --panel-2:#383a46; - --line:#44475a; --line-2:#6272a4; - --text:#f8f8f2; --muted:#6272a4; --faint:#6272a4; - --accent:#bd93f9; --accent-2:#ff79c6; --violet:#bd93f9; - --shadow:0 8px 30px -12px rgba(0,0,0,.7); - --grid:rgba(255,255,255,.03); - color-scheme: dark; -} - -/* Accents */ -[data-accent="teal"]{--accent:#4fd1c5;--accent-2:#7dd3fc;--violet:#a78bfa} -[data-accent="violet"]{--accent:#a78bfa;--accent-2:#c4b5fd} -[data-accent="amber"]{--accent:#fbbf24;--accent-2:#fcd34d} -[data-accent="emerald"]{--accent:#34d399;--accent-2:#6ee7b7} -[data-accent="rose"]{--accent:#fb7185;--accent-2:#fda4af} - -/* Font scale (accessibility) */ -:root{--fs:1} -html[data-fscale="large"]{--fs:1.12} -html[data-fscale="xlarge"]{--fs:1.25} - -/* ---------- BASE ---------- */ -* { box-sizing:border-box; margin:0; padding:0; } -body{ - background:var(--bg); color:var(--text); font-family:var(--sans); - font-size:calc(16px * var(--fs)); line-height:1.65; - -webkit-font-smoothing:antialiased; overflow-x:hidden; - transition:background .3s, color .3s; -} -a{color:inherit;text-decoration:none} -body::before{ - content:"";position:fixed;inset:0;z-index:-2; - background: - radial-gradient(900px 500px at 85% -10%,rgba(79,209,197,.12),transparent 60%), - radial-gradient(700px 500px at 0% 10%,rgba(167,139,250,.09),transparent 55%), - var(--bg); -} - -/* ---------- LAYOUT ---------- */ -.neo-wrap{max-width:var(--content-max,720px);margin:0 auto;padding:0 1.25rem} -.neo-header{position:sticky;top:0;z-index:50;background:rgba(11,14,20,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)} -.neo-brand{font-weight:800;font-size:1.1rem;letter-spacing:-.02em} -.neo-brand .mark{color:var(--accent)} -.neo-nav{display:flex;gap:.5rem;margin-left:auto} -.neo-nav a{padding:.35rem .65rem;border-radius:8px;font-size:.85rem;color:var(--muted);transition:color .2s,background .2s} -.neo-nav a:hover{color:var(--accent);background:rgba(45,212,191,.1)} -.neo-menu{display:flex;gap:.5rem;align-items:center} -.neo-icon-btn{padding:.35rem;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;transition:border-color .2s,color .2s} -.neo-icon-btn:hover{border-color:var(--accent);color:var(--accent)} -.neo-settings{position:relative} -.neo-drawer{position:absolute;right:0;top:48px;width:280px;background:var(--panel);border:1px solid var(--line-2);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;display:none;z-index:60;font-size:14px} -.neo-drawer.open{display:block} -.neo-drawer h5{font-family:var(--mono);font-size:11px;color:var(--accent);letter-spacing:1px;text-transform:uppercase;margin:14px 0 8px} -.neo-drawer h5:first-child{margin-top:0} -.neo-theme-opt.active,.neo-accent-opt.active{border-color:var(--accent);color:var(--text)} -.neo-seg button{background:var(--panel);border:none;color:var(--muted);padding:6px 10px;cursor:pointer;font-size:12px;font-family:var(--mono)} -.neo-seg button.active{background:var(--accent);color:#07121a} - -/* ---------- CONTENT ---------- */ -.neo-sec-head{display:flex;align-items:baseline;justify-content:space-between;margin:1.5rem 0 .8rem;border-bottom:1px solid var(--line);padding-bottom:.4rem} -.neo-sec-head h2{font-size:1.1rem;font-weight:700} -.neo-sec-head .more{font-size:.8rem;color:var(--muted)} -.neo-post{max-width:720px;margin:0 auto;padding:2rem 1.25rem} -.neo-post-head{margin-bottom:1.5rem} -.neo-eyebrow{font-size:.8rem;color:var(--muted);margin-bottom:.3rem} -.neo-post h1{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:800;line-height:1.2;margin-bottom:.5rem} -.neo-post .lead{font-size:1.1rem;color:var(--muted)} -.neo-post-body{line-height:1.75} -.neo-post-body h2{font-size:1.3rem;font-weight:700;margin:1.5rem 0 .5rem} -.neo-post-body h3{font-size:1.1rem;font-weight:600;margin:1.2rem 0 .4rem} -.neo-post-body p{margin:.6rem 0} -.neo-post-body a{color:var(--accent);text-decoration:underline;text-underline-offset:2px} -.neo-post-body code{font-family:var(--mono);font-size:.85em;background:rgba(21,26,38,.85);padding:.15em .4em;border-radius:6px} -.neo-post-body pre{background:var(--panel);padding:1rem;border-radius:var(--radius);overflow-x:auto;margin:1rem 0} -.neo-post-body pre code{background:none;padding:0} - -/* ---------- CARDS ---------- */ -.neo-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;transition:transform .2s,border-color .2s,box-shadow .2s} -.neo-card:hover{transform:translateY(-2px);border-color:rgba(45,212,191,.3);box-shadow:var(--shadow)} -.neo-card .meta{font-size:.75rem;color:var(--muted);margin-bottom:.3rem} -.neo-card h3{font-size:1rem;font-weight:600;margin-bottom:.4rem} -.neo-card .read{font-size:.8rem;color:var(--accent);font-weight:600} -.neo-featured{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:1rem 0} - -/* ---------- ROWS ---------- */ -.neo-rows{display:flex;flex-direction:column;gap:.3rem} -.neo-row{display:flex;align-items:center;gap:.8rem;padding:.5rem .8rem;border-radius:8px;background:var(--panel);border:1px solid var(--line);transition:border-color .2s,transform .15s} -.neo-row:hover{border-color:rgba(45,212,191,.25);transform:translateX(2px)} -.neo-row .date{font-size:.75rem;color:var(--faint);white-space:nowrap;min-width:85px} -.neo-row .title{flex:1;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} -.neo-row .tag{font-size:.7rem;padding:.15rem .45rem;border-radius:999px;background:rgba(45,212,191,.15);color:var(--accent)} - -/* ---------- PILLS / TAGS ---------- */ -.repo-pills{display:flex;flex-wrap:wrap;gap:.3rem} -.repo-pill{font-size:.75rem;padding:.2rem .55rem;border-radius:999px;background:color-mix(in srgb,var(--panel) 85%,transparent);border:1px solid var(--line);color:var(--muted)} -.repo-pill:hover{border-color:rgba(45,212,191,.3);color:var(--accent)} - -/* ---------- SEARCH ---------- */ -.neo-search-input{width:100%;padding:.7rem 1rem;border-radius:var(--radius);border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:1rem;margin:1rem 0} -.neo-search-input:focus{outline:none;border-color:var(--accent)} -.neo-kind-filter button{padding:.3rem .7rem;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:.8rem;cursor:pointer;transition:all .2s} -.neo-kind-filter button[aria-pressed="true"]{background:var(--accent);color:#06121a;border-color:var(--accent)} -.neo-search-empty{padding:2rem;text-align:center;color:var(--muted)} - -/* ---------- ANALYTICS ---------- */ -.neo-analytic-bar div{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:4px} - -/* ---------- RETENTION ---------- */ -.neo-retention-day span{font-size:.65rem;color:var(--muted);white-space:nowrap} - -/* ---------- FAVORITES ---------- */ -.neo-fav-summary .neo-featured{margin-top:1rem} - -/* ---------- SUBSCRIBE ---------- */ -.neo-subscribe{margin:2rem 0;padding:1.5rem;border-radius:var(--radius);background:linear-gradient(160deg,var(--panel-2),var(--panel));border:1px solid rgba(45,212,191,.2)} -.neo-subscribe-form{display:flex;gap:.5rem;flex-wrap:wrap} -.neo-subscribe-input{flex:1;min-width:200px;padding:.6rem 1rem;border-radius:10px;border:1px solid rgba(45,212,191,.25);background:var(--bg);color:var(--text);font-size:.9rem} -.neo-subscribe-btn{padding:.6rem 1.2rem;border-radius:10px;border:none;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#06121a;font-weight:700;cursor:pointer} -.neo-share-fediverse{margin-top:1.5rem} -.neo-share-buts{display:flex;gap:.5rem;margin-top:.5rem;flex-wrap:wrap} -.neo-share-btn{padding:.4rem .8rem;border-radius:8px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));background:color-mix(in srgb,var(--panel) 85%,transparent);color:var(--text);font-size:.8rem;cursor:pointer;transition:transform .15s,border-color .2s} -.neo-share-btn:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 55%,var(--line));color:var(--accent)} - -/* ---------- BUTTONS ---------- */ -.neo-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:.85rem;cursor:pointer;transition:all .2s} -.neo-btn:hover{border-color:var(--accent);color:var(--accent)} -.neo-btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#06121a;border:none;font-weight:600} - -/* ---------- FOOTER ---------- */ -.neo-footer a{color:var(--accent)} - -/* ---------- UTILITIES ---------- */ -.neo-skip:focus{top:0} - -/* ---------- ANIMATIONS ---------- */ - 0%{transform:translate3d(0,0,0) scale(1)} - 100%{transform:translate3d(2vw,-2vh,0) scale(1.05)} -} -@keyframes neo-rise{ - from{opacity:0;transform:translateY(12px)} - to{opacity:1;transform:translateY(0)} -} - -/* ---------- RESPONSIVE ---------- */ -@media(max-width:900px){ - .neo-menu{display:none} - .neo-burger{display:flex} -} -@media(min-width:901px){ - .neo-burger{display:none} - .neo-mobile-nav{display:none!important} -} - -/* ---------- PRINT ---------- */ -@media print{ - .neo-header,.neo-footer,.neo-burger,.neo-mobile-nav, .neo-subscribe,.neo-share-fediverse{display:none!important} - body{background:#fff;color:#000} - .neo-post{max-width:none;padding:0} - a{color:#000;text-decoration:none} -} diff --git a/assets/css/schemes/dominicusin.css b/assets/css/schemes/dominicusin.css deleted file mode 100644 index b8c0a874..00000000 --- a/assets/css/schemes/dominicusin.css +++ /dev/null @@ -1,53 +0,0 @@ -/* DominicusIn scheme — emerald "glass / neo-modern" palette for Blowfish. - * Cool slate neutrals, emerald primary, teal secondary. - * RGB triplets consumed by Blowfish as rgb(var(--x) / ). - * Rebased from the previous midnight (indigo/violet) scheme per brand - * decision 2026-08-21: the site now uses an emerald accent + Wix Madefor. */ -:root { - --color-neutral: 226, 232, 240; - /* Slate (cool dark) */ - --color-neutral-50: 248, 250, 252; - --color-neutral-100: 241, 245, 249; - --color-neutral-200: 226, 232, 240; - --color-neutral-300: 203, 213, 225; - --color-neutral-400: 148, 163, 184; - --color-neutral-500: 100, 116, 139; - --color-neutral-600: 71, 85, 105; - --color-neutral-700: 51, 65, 85; - --color-neutral-800: 30, 41, 59; - --color-neutral-900: 15, 23, 42; - /* Emerald (primary) */ - --color-primary-50: 236, 253, 245; - --color-primary-100: 209, 250, 229; - --color-primary-200: 167, 243, 208; - --color-primary-300: 110, 231, 183; - --color-primary-400: 52, 211, 153; - --color-primary-500: 16, 185, 129; - --color-primary-600: 5, 150, 105; - --color-primary-700: 4, 120, 87; - --color-primary-800: 6, 95, 70; - --color-primary-900: 6, 78, 59; - /* Teal (secondary) */ - --color-secondary-50: 240, 253, 250; - --color-secondary-100: 204, 251, 241; - --color-secondary-200: 153, 246, 228; - --color-secondary-300: 94, 234, 212; - --color-secondary-400: 45, 212, 191; - --color-secondary-500: 20, 184, 166; - --color-secondary-600: 13, 148, 136; - --color-secondary-700: 15, 118, 110; - --color-secondary-800: 17, 94, 89; - --color-secondary-900: 19, 78, 74; -} - -/* Dark surfaces layered on top of the scheme for depth */ -html.dark { - --bg-surface: 7, 12, 20; - --bg-elevated: 13, 19, 32; - --bg-card: 18, 26, 42; -} -html:not(.dark) { - --bg-surface: 248, 250, 252; - --bg-elevated: 255, 255, 255; - --bg-card: 255, 255, 255; -} diff --git a/assets/scss/abstracts/_index.scss b/assets/scss/abstracts/_index.scss new file mode 100644 index 00000000..830c6b19 --- /dev/null +++ b/assets/scss/abstracts/_index.scss @@ -0,0 +1,127 @@ +// ============================================================================ +// Abstracts: tokens, mixins, functions +// ============================================================================ + +// Color palette: warm editorial amber/gold + clean neutrals +$amber-50: #fffbeb; +$amber-100: #fef3c7; +$amber-200: #fde68a; +$amber-300: #fcd34d; +$amber-400: #fbbf24; +$amber-500: #f59e0b; +$amber-600: #d97706; +$amber-700: #b45309; + +$ink-900: #0f172a; +$ink-800: #1e293b; +$ink-700: #334155; +$ink-600: #475569; +$ink-500: #64748b; +$ink-100: #e2e8f0; +$ink-50: #f8fafc; + +$paper: #fafafa; +$paper-2: #ffffff; +$line: #e5e7eb; +$line-2: #d1d5db; + +// Accent system +$accent: $amber-600; +$accent-2: $amber-500; + +// Typography +$font-display: "Newsreader", "Playfair Display", Georgia, "Times New Roman", serif; +$font-body: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; +$font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; + +// Spacing scale +$space-1: 0.25rem; +$space-2: 0.5rem; +$space-3: 0.75rem; +$space-4: 1rem; +$space-5: 1.25rem; +$space-6: 1.5rem; +$space-8: 2rem; +$space-10: 2.5rem; +$space-12: 3rem; + +// Radii +$radius-sm: 6px; +$radius: 10px; +$radius-lg: 14px; + +// Shadows +$shadow-sm: 0 1px 2px rgba(15,23,42,.06); +$shadow: 0 8px 24px rgba(15,23,42,.10); +$shadow-lg: 0 18px 40px rgba(15,23,42,.14); + +// Motion +$ease: 220ms cubic-bezier(.4,.0,.2,1); +$ease-out: 280ms cubic-bezier(.0,.0,.2,1); + +// Breakpoints +$bp-mobile: 480px; +$bp-tablet: 768px; +$bp-desktop: 1024px; +$bp-wide: 1200px; + +// Max-widths +$content-max: 1200px; +$post-max: 720px; + +// ============================================================================ +// Mixins +// ============================================================================ + +@mixin respond-to($breakpoint) { + @if $breakpoint == mobile { + @media (max-width: $bp-mobile) { @content; } + } @else if $breakpoint == tablet { + @media (max-width: $bp-tablet) { @content; } + } @else if $breakpoint == desktop { + @media (min-width: $bp-desktop) { @content; } + } @else if $breakpoint == wide { + @media (min-width: $bp-wide) { @content; } + } +} + +@mixin focus-ring { + outline: none; + box-shadow: 0 0 0 3px rgba(217,119,6,.45); +} + +@mixin container { + max-width: $content-max; + margin: 0 auto; + padding: 0 $space-6; +} + +@mixin visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0,0,0,0); + white-space: nowrap; + border: 0; +} + +@mixin truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +@mixin flex-center { + display: flex; + align-items: center; + justify-content: center; +} + +@mixin grid-auto-fill($min-width: 200px) { + display: grid; + grid-template-columns: repeat(auto-fill, minmax($min-width, 1fr)); + gap: $space-4; +} diff --git a/assets/scss/base/_index.scss b/assets/scss/base/_index.scss new file mode 100644 index 00000000..b7a32fbe --- /dev/null +++ b/assets/scss/base/_index.scss @@ -0,0 +1,102 @@ +// ============================================================================ +// Base: reset, typography, base elements +// ============================================================================ + +@use '../abstracts' as *; + +*, *::before, *::after { box-sizing: border-box; } + +html { + scroll-behavior: smooth; + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; + font-family: $font-body; + font-size: 16px; + line-height: 1.6; + color: $ink-800; + background: $paper; + transition: background $ease, color $ease; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + color: inherit; + text-decoration: none; + transition: color $ease; +} + +img { + max-width: 100%; + height: auto; + border-radius: $radius; +} + +code { + font-family: $font-mono; + font-size: .9em; + background: $ink-100; + padding: .15em .4em; + border-radius: $radius-sm; +} + +pre { + font-family: $font-mono; + background: $paper-2; + border: 1px solid $line; + border-radius: $radius; + padding: $space-4; + overflow-x: auto; + + code { + background: none; + padding: 0; + } +} + +// Selection +::selection { + background: rgba(217,119,6,.25); + color: inherit; +} + +// Scrollbar +::-webkit-scrollbar { width: 10px; height: 10px; } +::-webkit-scrollbar-track { background: $ink-100; } +::-webkit-scrollbar-thumb { + background: $ink-500; + border-radius: 5px; + &:hover { background: $ink-600; } +} + +// Focus +:focus-visible { + @include focus-ring; +} + +// Skip link +.skip-link { + @include visually-hidden; + position: fixed; + top: -100%; + left: 50%; + transform: translateX(-50%); + background: $accent; + color: #fff; + padding: $space-2 $space-4; + border-radius: 0 0 $radius $radius; + font-weight: 600; + z-index: 9999; + transition: top $ease; + + &:focus { + top: 0; + clip: auto; + width: auto; + height: auto; + margin: 0; + } +} diff --git a/assets/scss/components/_index.scss b/assets/scss/components/_index.scss new file mode 100644 index 00000000..00665b5c --- /dev/null +++ b/assets/scss/components/_index.scss @@ -0,0 +1,168 @@ +// ============================================================================ +// Components: buttons, cards, tags, forms, navigation +// ============================================================================ + +@use '../abstracts' as *; + +// ---------- BUTTONS ---------- +.btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: $space-2; + padding: $space-2 $space-5; + border-radius: $radius; + border: 1px solid transparent; + font-weight: 600; + font-size: .95rem; + cursor: pointer; + transition: transform $ease, background $ease, border-color $ease, box-shadow $ease; + + &-primary { + background: linear-gradient(135deg, $accent, $accent-2); + color: #fff; + + &:hover { + transform: translateY(-1px); + box-shadow: $shadow; + } + } + + &-ghost { + background: transparent; + border-color: $line-2; + color: $ink-700; + + &:hover { + border-color: $accent; + color: $accent; + } + } +} + +// ---------- CARDS ---------- +.card { + background: $paper-2; + border: 1px solid $line; + border-radius: $radius-lg; + padding: $space-6; + box-shadow: $shadow-sm; + transition: transform $ease, border-color $ease, box-shadow $ease; + + &:hover { + transform: translateY(-2px); + border-color: rgba(217,119,6,.35); + box-shadow: $shadow; + } +} + +// ---------- TAGS / PILLS ---------- +.tag { + display: inline-flex; + align-items: center; + gap: $space-1; + padding: $space-1 $space-3; + border-radius: 999px; + font-size: .8rem; + font-weight: 500; + color: $ink-700; + background: $ink-100; + border: 1px solid $line; + transition: background $ease, color $ease, border-color $ease; + + &:hover { + background: rgba(217,119,6,.12); + border-color: rgba(217,119,6,.35); + color: $accent; + } +} + +// ---------- INPUTS ---------- +.input { + width: 100%; + padding: $space-3 $space-4; + border-radius: $radius; + border: 1px solid $line-2; + background: $paper; + color: $ink-800; + font-size: .95rem; + transition: border-color $ease, box-shadow $ease; + + &:focus { + @include focus-ring; + border-color: $accent; + } +} + +// ---------- ICON BUTTON ---------- +.icon-btn { + @include flex-center; + height: 40px; + min-width: 40px; + padding: 0 $space-3; + border-radius: $radius; + border: 1px solid transparent; + background: transparent; + color: $ink-700; + cursor: pointer; + transition: background $ease, color $ease, border-color $ease; + + &:hover { + background: $ink-100; + color: $accent; + border-color: $line; + } +} + +// ---------- SECTION HEADER ---------- +.section-header { + display: flex; + align-items: baseline; + justify-content: space-between; + margin: $space-10 0 $space-6; + padding-bottom: $space-3; + border-bottom: 1px solid $line; + + h2 { + font-family: $font-display; + font-size: 1.35rem; + font-weight: 700; + } + + .more { + font-size: .85rem; + color: $ink-500; + } +} + +// ---------- SCROLL TO TOP ---------- +.scroll-to-top { + position: fixed; + bottom: 2rem; + right: 2rem; + z-index: 100; + width: 48px; + height: 48px; + border-radius: 50%; + border: 1px solid $line; + background: $paper-2; + color: $ink-700; + font-size: 1.25rem; + cursor: pointer; + opacity: 0; + transform: translateY(20px); + transition: opacity .25s ease, transform .25s ease, background .25s ease; + pointer-events: none; + + &.visible { + opacity: 1; + transform: translateY(0); + pointer-events: auto; + } + + &:hover { + background: $accent; + color: #fff; + border-color: $accent; + } +} diff --git a/assets/scss/layout/_index.scss b/assets/scss/layout/_index.scss new file mode 100644 index 00000000..fb9ed776 --- /dev/null +++ b/assets/scss/layout/_index.scss @@ -0,0 +1,208 @@ +// ============================================================================ +// Layout: header, footer, navigation, grid systems +// ============================================================================ + +@use '../abstracts' as *; + +// ---------- SITE HEADER ---------- +.site-header { + position: sticky; + top: 0; + z-index: 50; + background: rgba(250,250,250,.88); + border-bottom: 1px solid $line; + backdrop-filter: saturate(140%) blur(14px); + -webkit-backdrop-filter: saturate(140%) blur(14px); + transition: background $ease, border-color $ease; + + [data-theme="dark"] & { + background: rgba(15,23,42,.82); + } +} + +.site-header-inner { + display: flex; + align-items: center; + justify-content: space-between; + height: 64px; +} + +.brand { + display: inline-flex; + align-items: center; + gap: $space-3; + font-weight: 700; +} + +.brand-mark { + display: inline-grid; + width: 36px; + height: 36px; + place-items: center; + border-radius: $radius; + background: linear-gradient(135deg, $accent, $accent-2); + color: #fff; + font-weight: 800; +} + +.brand-text small { + display: block; + color: $ink-500; + font-size: .75rem; + font-weight: 500; +} + +.primary-nav { + display: none; + + a { + padding: $space-2 $space-3; + border-radius: $radius; + color: $ink-700; + font-weight: 500; + + &:hover { + color: $accent; + background: rgba(217,119,6,.10); + } + } +} + +.header-actions { + display: inline-flex; + align-items: center; + gap: $space-2; +} + +.burger { display: inline-flex; } + +// ---------- MOBILE PANEL ---------- +.mobile-panel { + position: fixed; + top: 0; + left: 0; + bottom: 0; + z-index: 90; + width: min(320px, 80vw); + background: $paper-2; + border-right: 1px solid $line; + transform: translateX(-100%); + transition: transform .25s ease; + overflow-y: auto; + + &[hidden] { display: none; } + &.open { transform: translateX(0); } +} + +.mobile-panel-inner { + display: flex; + flex-direction: column; + height: 100%; + padding: $space-6; +} + +.mobile-panel-head { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: $space-6; +} + +.mobile-group { margin-bottom: $space-6; } + +.mobile-group-title { + font-size: .8rem; + color: $ink-500; + text-transform: uppercase; + letter-spacing: .08em; + margin-bottom: $space-3; +} + +.mobile-panel a { + display: block; + padding: $space-3 $space-4; + border-radius: $radius; + + &:hover { + background: $ink-100; + color: $accent; + } +} + +.neo-mobile-backdrop { + position: fixed; + inset: 0; + z-index: 80; + background: rgba(0,0,0,.45); + backdrop-filter: blur(2px); + -webkit-backdrop-filter: blur(2px); + opacity: 0; + pointer-events: none; + transition: opacity .25s ease; + + &.open { + opacity: 1; + pointer-events: auto; + } +} + +// ---------- SITE FOOTER ---------- +.site-footer { + margin-top: $space-12; + padding: $space-10 0; + border-top: 1px solid $line; + background: $paper-2; +} + +.footer-grid { + display: grid; + grid-template-columns: 2fr 1fr 1fr; + gap: $space-8; + margin-bottom: $space-8; +} + +.footer-brand .brand { margin-bottom: $space-3; } +.footer-brand p { color: $ink-500; font-size: .9rem; } + +.footer-col h5 { + font-size: .85rem; + text-transform: uppercase; + letter-spacing: .05em; + color: $ink-500; + margin-bottom: $space-3; +} + +.footer-col a { + display: block; + padding: $space-1 0; + color: $ink-700; + font-size: .9rem; + + &:hover { color: $accent; } +} + +.footer-tags { + display: flex; + flex-wrap: wrap; + gap: $space-2; + padding-top: $space-6; + border-top: 1px solid $line; +} + +// ---------- CONTAINER ---------- +.container { + max-width: $content-max; + margin: 0 auto; + padding: 0 $space-6; +} + +// ---------- RESPONSIVE ---------- +@include respond-to(tablet) { + .primary-nav { display: none; } + .footer-grid { grid-template-columns: 1fr; gap: $space-6; } +} + +@include respond-to(desktop) { + .primary-nav { display: flex; align-items: center; gap: $space-2; } + .burger { display: none; } +} diff --git a/assets/scss/main.scss b/assets/scss/main.scss new file mode 100644 index 00000000..a7d89904 --- /dev/null +++ b/assets/scss/main.scss @@ -0,0 +1,21 @@ +// ============================================================================ +// Main entry point — imports all SCSS partials +// ============================================================================ + +// Abstracts (tokens, mixins, functions) +@use 'abstracts'; + +// Base (reset, typography, base elements) +@use 'base'; + +// Components (buttons, cards, tags, forms) +@use 'components'; + +// Layout (header, footer, navigation) +@use 'layout'; + +// Pages (homepage, post, sections) +@use 'pages'; + +// Themes (dark mode) +@use 'themes'; diff --git a/assets/scss/pages/_index.scss b/assets/scss/pages/_index.scss new file mode 100644 index 00000000..d09ba8e5 --- /dev/null +++ b/assets/scss/pages/_index.scss @@ -0,0 +1,371 @@ +// ============================================================================ +// Pages: homepage, post, sections, special pages +// ============================================================================ + +@use '../abstracts' as *; + +// ---------- HERO ---------- +.hero { + padding: $space-12 0; + text-align: center; + + h1 { + font-family: $font-display; + font-size: clamp(2rem, 5vw, 3.5rem); + font-weight: 700; + line-height: 1.15; + margin-bottom: $space-4; + } + + .lead { + font-size: 1.15rem; + color: $ink-600; + max-width: 600px; + margin: 0 auto $space-6; + } +} + +.cta { + display: flex; + gap: $space-3; + justify-content: center; + flex-wrap: wrap; +} + +// ---------- FEATURED EDITORIAL LAYOUT ---------- +.editorial-featured { + display: grid; + grid-template-columns: 1.6fr 1fr; + gap: $space-4; + margin-top: $space-8; +} + +.card-lead { + display: flex; + flex-direction: column; + gap: $space-3; + padding: $space-6; + background: $paper-2; + border: 1px solid $line; + border-radius: $radius-lg; + + h3 { + font-family: $font-display; + font-size: 1.5rem; + line-height: 1.25; + } + + p { + color: $ink-600; + font-size: 1.05rem; + line-height: 1.6; + } +} + +.editorial-side { + display: flex; + flex-direction: column; + gap: $space-4; +} + +.card-sub { + display: flex; + flex-direction: column; + gap: $space-2; + padding: $space-4; + background: $paper-2; + border: 1px solid $line; + border-radius: $radius-lg; + + h3 { + font-family: $font-display; + font-size: 1rem; + line-height: 1.3; + } + + p { + color: $ink-600; + font-size: .9rem; + line-height: 1.5; + } +} + +.editorial-meta { + color: $ink-500; + font-size: .85rem; + margin-top: $space-2; +} + +// ---------- RECENT ROWS ---------- +.recent-rows { + display: flex; + flex-direction: column; + gap: $space-2; +} + +.recent-row { + display: grid; + grid-template-columns: 100px 1fr auto; + align-items: center; + gap: $space-4; + padding: $space-3 $space-4; + border-radius: $radius; + background: $paper-2; + border: 1px solid $line; + transition: border-color $ease, background $ease; + + &:hover { + border-color: rgba(217,119,6,.35); + background: rgba(217,119,6,.04); + } + + .date { + font-size: .85rem; + color: $ink-500; + white-space: nowrap; + } + + .title { + font-weight: 500; + @include truncate; + } + + .meta { + font-size: .85rem; + color: $ink-500; + display: flex; + gap: $space-2; + align-items: center; + } +} + +// ---------- CATEGORY GRID ---------- +.category-grid { + @include grid-auto-fill(180px); + margin-top: $space-6; +} + +.category-card { + display: flex; + flex-direction: column; + align-items: center; + gap: $space-2; + padding: $space-6; + background: $paper-2; + border: 1px solid $line; + border-radius: $radius-lg; + text-align: center; + transition: transform $ease, border-color $ease; + + &:hover { + transform: translateY(-2px); + border-color: rgba(217,119,6,.35); + } + + .cat-icon { font-size: 1.5rem; } + .cat-name { font-weight: 600; } + .cat-count { font-size: .85rem; color: $ink-500; } +} + +// ---------- NEWSLETTER ---------- +.newsletter { + text-align: center; + padding: $space-12 0; + + h3 { + font-family: $font-display; + font-size: 1.5rem; + margin-bottom: $space-3; + } + + p { + color: $ink-600; + margin-bottom: $space-6; + } +} + +.newsletter-form { + display: flex; + gap: $space-3; + max-width: 480px; + margin: 0 auto; +} + +// ---------- POST LAYOUT ---------- +.post-layout { + display: grid; + grid-template-columns: 1fr 240px; + gap: $space-8; + padding: $space-10 0; +} + +.post-body { min-width: 0; } + +.post-header { + margin-bottom: $space-8; + padding-bottom: $space-6; + border-bottom: 1px solid $line; + + h1 { + font-family: $font-display; + font-size: clamp(1.8rem, 4vw, 2.8rem); + font-weight: 700; + line-height: 1.2; + margin-bottom: $space-4; + } +} + +.post-meta { + display: flex; + gap: $space-3; + align-items: center; + color: $ink-500; + font-size: .9rem; + flex-wrap: wrap; +} + +.post-content { + font-size: 1.05rem; + line-height: 1.75; + + h2 { + font-family: $font-display; + font-size: 1.5rem; + margin: $space-10 0 $space-4; + } + + h3 { + font-family: $font-display; + font-size: 1.25rem; + margin: $space-8 0 $space-3; + } + + p { margin: $space-4 0; } + + a { + color: $accent; + text-decoration: underline; + text-underline-offset: 2px; + } + + blockquote { + border-left: 3px solid $accent; + padding-left: $space-4; + margin: $space-6 0; + color: $ink-600; + font-style: italic; + } + + img { + border-radius: $radius-lg; + box-shadow: $shadow; + } +} + +// ---------- TOC ---------- +.toc { + position: sticky; + top: 80px; + height: fit-content; + max-height: calc(100vh - 100px); + overflow-y: auto; + padding: $space-4; + background: $paper-2; + border: 1px solid $line; + border-radius: $radius; + + ul { + list-style: none; + padding: 0; + margin: 0; + } + + li { margin: $space-1 0; } + + a { + display: block; + padding: $space-1 $space-2; + font-size: .85rem; + color: $ink-600; + border-radius: $radius-sm; + + &:hover { + background: $ink-100; + color: $accent; + } + } +} + +.toc-title { + font-weight: 600; + font-size: .85rem; + text-transform: uppercase; + letter-spacing: .05em; + color: $ink-500; + margin-bottom: $space-3; +} + +// ---------- POST NAV ---------- +.post-nav { + display: grid; + grid-template-columns: 1fr 1fr; + gap: $space-4; + margin-top: $space-10; + padding-top: $space-6; + border-top: 1px solid $line; +} + +.pn-card { + display: flex; + flex-direction: column; + gap: $space-2; + padding: $space-4; + background: $paper-2; + border: 1px solid $line; + border-radius: $radius; + transition: border-color $ease; + + &:hover { border-color: rgba(217,119,6,.35); } + .more { font-size: .8rem; color: $ink-500; } + .title { font-weight: 500; } + .date { font-size: .8rem; color: $ink-500; } +} + +// ---------- 404 ---------- +.error-404 { + text-align: center; + padding: $space-12 0; + + h1 { + font-family: $font-display; + font-size: clamp(2rem, 6vw, 3.5rem); + margin-bottom: $space-4; + } + + p { + color: $ink-600; + margin-bottom: $space-6; + } +} + +.error-404-search { + max-width: 480px; + margin: 0 auto $space-8; +} + +.error-404-links { + display: flex; + gap: $space-2; + flex-wrap: wrap; + justify-content: center; +} + +// ---------- RESPONSIVE ---------- +@include respond-to(tablet) { + .post-layout { grid-template-columns: 1fr; } + .toc { display: none; } + .editorial-featured { grid-template-columns: 1fr; } + .recent-row { grid-template-columns: 1fr; gap: $space-1; } + .hero { padding: $space-10 0; } + .newsletter-form { flex-direction: column; } +} diff --git a/assets/scss/themes/_index.scss b/assets/scss/themes/_index.scss new file mode 100644 index 00000000..0ceda045 --- /dev/null +++ b/assets/scss/themes/_index.scss @@ -0,0 +1,35 @@ +// ============================================================================ +// Themes: dark mode, light mode +// ============================================================================ + +@use '../abstracts' as *; + +// Dark theme overrides +[data-theme="dark"] { + $paper: #0f172a; + $paper-2: #1e293b; + $line: #263148; + $line-2: #334155; + $ink-900: #f8fafc; + $ink-800: #e2e8f0; + $ink-700: #cbd5e1; + $ink-600: #94a3b8; + $ink-500: #64748b; + $ink-100: #1e293b; + $ink-50: #0f172a; + + --paper: #0f172a; + --paper-2: #1e293b; + --line: #263148; + --line-2: #334155; + --ink-900: #f8fafc; + --ink-800: #e2e8f0; + --ink-700: #cbd5e1; + --ink-600: #94a3b8; + --ink-500: #64748b; + --ink-100: #1e293b; + --ink-50: #0f172a; + --shadow-sm: 0 1px 2px rgba(0,0,0,.24); + --shadow: 0 8px 24px rgba(0,0,0,.35); + --shadow-lg: 0 18px 40px rgba(0,0,0,.45); +} diff --git a/layouts/partials/extend-head.html b/layouts/partials/extend-head.html index 975a0e21..2ce453c3 100644 --- a/layouts/partials/extend-head.html +++ b/layouts/partials/extend-head.html @@ -5,11 +5,5 @@ production page. Removed — there is no Vercel deployment, so the include is dead weight. If analytics is ever wanted, use a Pages-compatible provider. - Neo design-system CSS (standalone .neo-* layer, see assets/css/neo.css). - Added 2026-08-27: namespace-scoped so it never collides with Blowfish or - the movie-grid styles in custom.css. Loaded after the theme styles. + Neo CSS is now compiled from SCSS (assets/scss/main.scss). */}} -{{ with resources.Get "css/neo.css" }} - {{ $css := . | minify | fingerprint }} - -{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 31d12640..94a2c16c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -139,10 +139,7 @@ {{ if $cssScheme }} {{ $cssResources = $cssResources | append $cssScheme }} {{ end }} - {{ with resources.Get "css/design-system.css" }} - {{ $cssResources = $cssResources | append . }} - {{ end }} - {{ with resources.Get "css/custom.css" }} + {{ with resources.Get "css/compiled.css" }} {{ $cssResources = $cssResources | append . }} {{ end }} {{ if not .Site.Params.disableImageZoom | default true }} diff --git a/layouts/partials/neo-critical.html b/layouts/partials/neo-critical.html deleted file mode 100644 index dd2969c3..00000000 --- a/layouts/partials/neo-critical.html +++ /dev/null @@ -1,5 +0,0 @@ -{{/* Critical CSS — above-the-fold styles for first paint. */}} - diff --git a/layouts/partials/neo-head.html b/layouts/partials/neo-head.html index a341af30..00dceb12 100644 --- a/layouts/partials/neo-head.html +++ b/layouts/partials/neo-head.html @@ -56,7 +56,6 @@ {{ with .OutputFormats.Get "rss" }}{{ end }} {{/* Critical CSS: inline for first paint */}} -{{ partial "neo-critical.html" . }} {{/* Main CSS: render-blocking (avoids CLS/FOUC — see AGENTS gotcha on preload+swap CLS ~1.0) */}} {{ partial "head.html" . }} diff --git a/package.json b/package.json index d54994b1..5ec57fbb 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,9 @@ "test:dao": "hardhat test", "deploy:dao": "hardhat run scripts/deploy-dao.cjs", "test:unit": "vitest run --config vitest.config.mjs", - "test:coverage:unit": "vitest run --config vitest.config.mjs --coverage" + "test:coverage:unit": "vitest run --config vitest.config.mjs --coverage", + "scss": "sass assets/scss/main.scss assets/css/compiled.css --style=compressed", + "scss:watch": "sass assets/scss/main.scss assets/css/compiled.css --watch" }, "keywords": [ "engineering", @@ -420,6 +422,7 @@ "rimraf": "^6.1.3", "run-parallel": "^1.2.0", "safer-buffer": "^2.1.2", + "sass": "^1.70.0", "sax": "^1.6.1", "saxes": "^6.0.0", "semver": "^7.8.5", @@ -492,4 +495,4 @@ "diff": "9.0.0", "undici": "8.10.0" } -} \ No newline at end of file +}