Improve resource discovery and evidence metadata
Browse files- README.md +94 -25
- data/resource_source_audit.csv +0 -0
- data/resources.csv +0 -0
- data/resources.jsonl +0 -0
- docs/assets/resources.json +0 -0
- docs/index.html +348 -31
- examples/runnable/codex-automation.md +2 -2
- meta/hf_card_body.md +20 -1
- scripts/audit_resource_sources.py +30 -4
- scripts/export_resource_dataset.py +285 -41
- scripts/verify_urls.py +19 -1
README.md
CHANGED
|
@@ -178,14 +178,64 @@ Start with the first-read resources and the Loop Contract if the term is new. Fo
|
|
| 178 |
|
| 179 |
## Reading Paths
|
| 180 |
|
| 181 |
-
|
| 182 |
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
|
| 190 |
## Choose Your Loop
|
| 191 |
|
|
@@ -266,10 +316,10 @@ Beyond the curated list, this repository also maintains:
|
|
| 266 |
|
| 267 |
Direct resources about the new AI/coding-agent meaning of Loop Engineering.
|
| 268 |
|
| 269 |
-
- 📝 **Blog** [Loop Engineering](https://addyosmani.com/blog/loop-engineering/) - Addy Osmani's framing of loop engineering as the layer above manually prompting coding agents, with concrete primitives across Codex and Claude Code; also on [Substack](https://addyo.substack.com/p/loop-engineering) with the original discussion trail and Steinberger and Cherny quotations.
|
| 270 |
- 📝 **Blog** [Peter Steinberger on designing loops](https://x.com/steipete/status/2063697162748260627) - The June 2026 post - "you shouldn't be prompting coding agents anymore, you should be designing loops that prompt your agents" - that catalyzed the current discussion.
|
| 271 |
- 📝 **Blog** [Boris Cherny: five tips for running Opus autonomously for hours or days](https://x.com/bcherny/status/2063792263067754658) - The Claude Code creator's compact loop recipe: auto-mode permissions, dynamic workflows, `/goal` or `/loop`, the cloud runner, and end-to-end self-verification.
|
| 272 |
-
- 📝 **Blog** [Loop Engineering](https://cobusgreyling.substack.com/p/loop-engineering) - Concise explanation of the shift from prompting agents to designing loops that discover work, delegate, verify, persist, and continue.
|
| 273 |
- 📝 **Blog** [Stop Prompting. Design the Loop.](https://www.pulumi.com/blog/stop-prompting-design-the-loop/) - Practical breakdown of loop building blocks - automations, worktrees, skills, connectors, subagents - plus external memory and verification through oracles such as tests and builds.
|
| 274 |
- 📝 **Blog** [Writing Loops, Not Prompts, Explained](https://rico.codes/loops-not-prompts) - Rico Kahler's break-even model for when a recurring task justifies building a loop instead of prompting, with stop conditions, evidence collection, and an execution-horizon framing for moving from execution-bound to judgment-bound work.
|
| 275 |
- 📝 **Blog** [Loop Engineering: A Guide for Engineers and Practitioners](https://medium.com/@adnanmasood/loop-engineering-a-guide-for-engineers-and-practitioners-893bb65ea943) - Adnan Masood's practitioner guide that organizes loop design into triggers, topologies, verifiers, and termination rules, with coverage of failure modes, cost control, and observability for production agent loops.
|
|
@@ -374,15 +424,15 @@ Practical loop patterns translate the abstract contract into runnable operating
|
|
| 374 |
|
| 375 |
Feature-level building blocks you assemble a loop from: schedulers, goals, worktrees, hooks, skills, plugins, and protocols.
|
| 376 |
|
| 377 |
-
- 📚 **Docs** [
|
| 378 |
-
- 📚 **Docs** [Follow a goal -
|
| 379 |
-
- 📚 **Docs** [
|
| 380 |
-
- 📚 **Docs** [Prompting -
|
| 381 |
-
- 📚 **Docs** [Customization -
|
| 382 |
-
- 📚 **Docs** [
|
| 383 |
-
- 📚 **Docs** [Plugins -
|
| 384 |
- 🧰 **Tool** [dotskills](https://github.com/vincentkoc/dotskills) - A `.skills` registry of curated Codex and OpenClaw skills, framed as an "ADE Loop" (Agent Development Environment to registry to Skills Gym) where reusable skills are developed, shared, and evaluated across runs.
|
| 385 |
-
- 📚 **Docs** [
|
| 386 |
- 🔁 **Pattern** [Autonomous Loops](https://claudecodeguide.dev/docs/patterns/autonomous-loops) - Claude Code pattern using task files, stop hooks, restart behavior, hard limits, and a kill switch.
|
| 387 |
- 📚 **Docs** [Claude Code Glossary](https://code.claude.com/docs/en/glossary.md) - Defines the agentic loop, hooks, subagents, skills, MCP, and related primitives in Claude Code terminology.
|
| 388 |
- 📚 **Docs** [Keep Claude working toward a goal](https://code.claude.com/docs/en/goal) - `/goal` runs turn after turn until a completion condition is met by a verifier.
|
|
@@ -413,7 +463,7 @@ End-to-end operating guides and release notes from the runtime vendors themselve
|
|
| 413 |
|
| 414 |
<!-- OpenAI and Codex -->
|
| 415 |
- 📚 **Docs** [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - OpenAI's runbook for plan-edit-test-observe-repair-document-repeat work, including specs, plans, status logs, and validation gates.
|
| 416 |
-
- 📚 **Docs** [Best practices -
|
| 417 |
- 📚 **Docs** [Agents SDK](https://developers.openai.com/api/docs/guides/agents) - OpenAI guide for agent orchestration, tool execution, approvals, state, guardrails, and observability.
|
| 418 |
- 📚 **Docs** [Agents - OpenAI Agents SDK](https://openai.github.io/openai-agents-python/agents/) - SDK primitives for agents, tools, handoffs, guardrails, and runner-managed loops.
|
| 419 |
- 📚 **Docs** [Running agents](https://developers.openai.com/api/docs/guides/agents/running-agents) - OpenAI guide to turns, state, approvals, sessions, and continuation in the SDK runtime loop.
|
|
@@ -644,7 +694,7 @@ These resources include harness and observability mechanisms that loops compose
|
|
| 644 |
- 📄 **Paper** [A Trace-Based Assurance Framework for Agentic AI Orchestration: Contracts, Testing, and Governance](https://arxiv.org/abs/2603.18096) - Treats execution traces as the assurance substrate, pairing machine-checkable contracts, testing, and governance so recurring agent orchestration stays verifiable and auditable.
|
| 645 |
- 📄 **Paper** [Self-Evolving Agents with Anytime-Valid Certificates](https://arxiv.org/abs/2607.00871) - Confines self-modification to a small steering adapter around a frozen base model and gates each change with anytime-valid statistical tests that emit auditable certificates, reporting solve-count gains and logged regression prevention on a SWE-bench Verified subset.
|
| 646 |
- 📄 **Paper** [Delayed Verification Destabilizes Multi-Agent LLM Belief](https://arxiv.org/abs/2606.27409) - Models verifier-corrector loops in multi-agent LLM systems as delayed consensus, deriving a stability threshold where verification that is too strong or too late turns factual consensus into oscillation, plus a greedy corrector-placement algorithm validated on five open models.
|
| 647 |
-
- 📄 **Paper** [Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectory](https://arxiv.org/abs/2606.06523) - Models agent workflows and trajectories in Lean 4 dependent types so semantic consistency is machine-checked rather than judged by an LLM, with verification-passing workflows outperforming failing ones by
|
| 648 |
- 📄 **Paper** [Regimes: An Auditable, Held-Out-Gated Improvement Loop](https://arxiv.org/abs/2606.10241) - Event-sourced agent runtime whose self-improvement loop gates every proposed repair behind static checks, sandbox execution, and held-out evaluation before adoption, keeping the full decision trail replayable.
|
| 649 |
- 📄 **Paper** [Agentic CLEAR: Automating Multi-Level Evaluation of LLM Agents](https://arxiv.org/abs/2605.22608) - Automated evaluation framework from IBM Research that grades agent behavior at system, trace, and node granularity without predefined error taxonomies, producing feedback aligned with human-annotated errors and predictive of task success.
|
| 650 |
- 📄 **Paper** [Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference](https://arxiv.org/abs/2607.02882) - FlowFixer converts runs of platform-built agentic workflows (Dify, Coze, n8n) into symbolic traces, infers correctness specs and node dependencies to localize root-cause failures, and generates targeted repairs at a 71.3% success rate.
|
|
@@ -734,7 +784,7 @@ This section focuses on durable loop state and cross-run context. For context-wi
|
|
| 734 |
- 🧰 **Tool** [GenericAgent](https://github.com/lsdefine/GenericAgent) - Self-evolving agent that grows a skill tree from a small seed, crystallizing completed runs into layered memory and reusable skills, with a master-worker mode for long-horizon goals.
|
| 735 |
- 📄 **Paper** [Self-GC: Self-Governing Context for Long-Horizon LLM Agents](https://arxiv.org/abs/2607.00692) - Governs long-horizon agent context as indexed lifecycle objects in an explicit nod to garbage collection, with a side-channel planner proposing fold, mask, and prune actions under harness-enforced recoverable sidecars, cutting production input tokens by 10-15%.
|
| 736 |
- 📄 **Paper** [CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents](https://arxiv.org/abs/2607.05378) - Reinforcement-learning method that jointly optimizes task execution and compaction-summary generation so long-horizon agents can continue past finite context windows, lifting GLM-4.5-Air to 66.8% on SWE-bench Verified and shipping in the GLM-5.2 pipeline.
|
| 737 |
-
- 📄 **Paper** [SelfMem: Self-Optimizing Memory for AI Agents](https://arxiv.org/abs/2607.03726) - Memory framework in which the agent autonomously optimizes its own storage, retrieval, and summarization strategies per task instead of a fixed pipeline,
|
| 738 |
- 📄 **Paper** [Memory-Orchestrated Semantic System (MOSS): An Auditable Agentic Memory Architecture](https://arxiv.org/abs/2607.04391) - Model-, storage-, and API-agnostic agent memory architecture where the agent drives symbolic retrieval over a structured relational database, making long-term memory auditable and reproducible instead of opaque embedding search, validated in a year-long deployment.
|
| 739 |
- 📄 **Paper** [The Log Is the Agent: Event-Sourced Reactive Graphs for Auditable, Forkable Agentic Systems](https://arxiv.org/abs/2605.21997) - BabyAGI creator Yohei Nakajima makes an append-only event log the source of truth and the working graph a deterministic projection, giving long-running loops deterministic replay, cheap forking at any event, and end-to-end causal lineage from goal to model call.
|
| 740 |
- 📝 **Blog** [Agentics: Memorizing Session Transcripts Isn't Useful](https://12gramsofcarbon.com/p/agentics-memorizing-session-transcripts) - From thousands of agent sessions at Nori, reports zero coding-task benefit from giving agents search over prior session transcripts and argues loop state belongs in distilled artifacts like commits and docs because agents never prune stale context.
|
|
@@ -829,11 +879,11 @@ How to measure loops rather than single runs: long-horizon, multi-session, relia
|
|
| 829 |
- 🧪 **Benchmark** [SentinelBench: A Benchmark for Long-Running Monitoring Agents](https://arxiv.org/abs/2606.05342) - Microsoft Research benchmark of 100 tasks across 10 synthetic web environments that evaluates long-running monitoring agents on whether they wait or act appropriately, scoring task completion, response speed, and resource efficiency.
|
| 830 |
- 🧪 **Benchmark** [SWE-Together: Evaluating Coding Agents in Interactive User Sessions](https://arxiv.org/abs/2606.29957) - Multi-session coding benchmark of 109 repository-level tasks reconstructed from 11,260 recorded user-agent sessions, replayed with an LLM user simulator and scored on final correctness and the number of corrective feedback turns.
|
| 831 |
- 🧪 **Benchmark** [The Long-Horizon Task Mirage? Diagnosing Where and Why Agentic Systems Break](https://arxiv.org/abs/2604.11978) - Cross-domain diagnostic benchmark that scales task horizon through depth and breadth extension, then attributes failures across 3,100+ agent trajectories to a seven-category taxonomy via a trajectory-grounded LLM judge validated against human annotation.
|
| 832 |
-
- 📄 **Paper** [Beyond pass@1: A Reliability Science Framework for Long-Horizon LLM Agents](https://arxiv.org/abs/2603.29231) - Reliability metrics for long-horizon agents (reliability decay, variance amplification, graceful degradation, meltdown onset) measured over
|
| 833 |
- 🧪 **Benchmark** [SEAGym: An Evaluation Environment for Self-Evolving LLM Agents](https://arxiv.org/abs/2606.17546) - Evaluation environment that measures whether a self-evolving agent's modifications to prompts, memory, and tools generalize to held-out tasks, using train, validation, and test splits and cost metrics on Terminal-Bench 2.0 and HLE.
|
| 834 |
- 🧪 **Benchmark** [EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactions](https://arxiv.org/abs/2605.24110) - Benchmark of 26 evolving coding tasks across 227 evaluation rounds using cumulative executable tests to check that agents keep prior requirements working as specifications change, with top agents reaching only about 50% on multi-turn success metrics.
|
| 835 |
- 📄 **Paper** [On the Reliability of Computer Use Agents](https://arxiv.org/abs/2604.17849) - Repeated-execution study on OSWorld decomposing why computer-use agents fail tasks they previously completed, separating execution stochasticity, task-specification ambiguity, and behavioral variability as distinct causes of unreliability.
|
| 836 |
-
- 📄 **Paper** [AgentLens: Revealing the Lucky Pass Problem in SWE-Agent Evaluation](https://arxiv.org/abs/2605.12925) - Grades
|
| 837 |
- 🧪 **Benchmark** [ORLoopBench: Solver-in-the-Loop Benchmarks for Self-Correction](https://arxiv.org/abs/2601.21008) - Formalizes infeasible-model debugging as a solver-in-the-loop process where each action triggers solver re-execution and infeasibility recomputation, giving deterministic verification for iterative repair in operations research.
|
| 838 |
- 🧪 **Benchmark** [LongDS-Bench: On the Failure of Long-Horizon Agentic Data Analysis](https://arxiv.org/abs/2605.30434) - Benchmark of 68 real-world data-analysis tasks built from Kaggle notebooks spanning 2,225 interactive turns, finding that long-horizon errors account for 52-69% of agent failures and that maintaining a correct analytical state is the core bottleneck.
|
| 839 |
- 🧪 **Benchmark** [MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks](https://arxiv.org/abs/2602.16313) - Multi-session benchmark of interdependent agentic tasks where agents must distill earlier sessions into memory and use it to guide later actions, showing that near-saturated scores on long-context memory benchmarks fail to transfer.
|
|
@@ -936,8 +986,8 @@ Skeptical takes and measured failure modes, because a loop that cannot fail safe
|
|
| 936 |
|
| 937 |
Neighboring curated lists for the layers around loop engineering.
|
| 938 |
|
| 939 |
-
- 🧭 **List** [Awesome Harness Engineering](https://github.com/ai-boost/awesome-harness-engineering) - Comprehensive list for the agent harness layer that Loop Engineering builds on.
|
| 940 |
-
- 🧭 **List** [Awesome Harness Engineering](https://github.com/walkinglabs/awesome-harness-engineering) - High-signal harness list with strong categories for context, guardrails, specs, evals, runtimes, and benchmarks.
|
| 941 |
- 🧭 **List** [Awesome Agent Harness](https://github.com/AutoJunjie/awesome-agent-harness) - Curated tools and resources for environments, constraints, and feedback around coding agents.
|
| 942 |
- 🧭 **List** [Awesome Context Engineering](https://github.com/Meirtz/Awesome-Context-Engineering) - Survey-style list for context engineering across LLMs and agents.
|
| 943 |
- 🧭 **List** [Awesome Prompt Engineering](https://github.com/promptslab/Awesome-Prompt-Engineering) - Classic adjacent list for prompt techniques and prompting resources.
|
|
@@ -1047,16 +1097,35 @@ Each row in `data/resources.jsonl` (and the equivalent `data/resources.csv`) is
|
|
| 1047 |
| `novelty` | Why the entry is distinct within its section. |
|
| 1048 |
| `impact` | Who benefits and how. |
|
| 1049 |
| `signal` | Why the entry is trustworthy (adoption, venue, authorship). |
|
| 1050 |
-
| `signal_strength` |
|
| 1051 |
| `source_readme` | README file the row came from. |
|
| 1052 |
| `source_line` | 1-based line number in that README. |
|
| 1053 |
| `source_url` | Permalink to the source line on GitHub. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1054 |
|
| 1055 |
## Considerations and Limitations
|
| 1056 |
|
| 1057 |
- Annotations are written and curated by a single maintainer; they summarize each resource and are not the authors' own abstracts.
|
| 1058 |
- URLs are third-party and can rot; `data/resource_source_audit.csv` carries a retrieval-time reachability snapshot, but it is a point-in-time check, not a live guarantee.
|
| 1059 |
- `row_id` and `source_line` are positional and change when the README is reordered; join on `url` for anything durable.
|
|
|
|
| 1060 |
- Coverage skews toward English-language, publicly available resources.
|
| 1061 |
|
| 1062 |
## Changelog
|
|
|
|
| 178 |
|
| 179 |
## Reading Paths
|
| 180 |
|
| 181 |
+
Use this atlas before browsing the exhaustive topical sections. It adds a task-oriented layer without changing the stable section anchors used by existing links.
|
| 182 |
|
| 183 |
+
<table>
|
| 184 |
+
<thead>
|
| 185 |
+
<tr>
|
| 186 |
+
<th>Goal</th>
|
| 187 |
+
<th>Start here</th>
|
| 188 |
+
<th>Continue with</th>
|
| 189 |
+
<th>Best for</th>
|
| 190 |
+
</tr>
|
| 191 |
+
</thead>
|
| 192 |
+
<tbody>
|
| 193 |
+
<tr>
|
| 194 |
+
<td><strong>Learn</strong></td>
|
| 195 |
+
<td><a href="#canonical-definition">Canonical definition</a></td>
|
| 196 |
+
<td><a href="#start-here">Start Here</a> → <a href="#research-foundations">Research Foundations</a></td>
|
| 197 |
+
<td>Newcomers and researchers</td>
|
| 198 |
+
</tr>
|
| 199 |
+
<tr>
|
| 200 |
+
<td><strong>Design</strong></td>
|
| 201 |
+
<td><a href="#the-loop-contract">Loop Contract</a></td>
|
| 202 |
+
<td><a href="#pattern-library">Pattern Library</a> → <a href="#core-loop-primitives">Core Loop Primitives</a> → <a href="#agent-workflow-patterns">Agent Workflow Patterns</a></td>
|
| 203 |
+
<td>Architects and loop designers</td>
|
| 204 |
+
</tr>
|
| 205 |
+
<tr>
|
| 206 |
+
<td><strong>Build</strong></td>
|
| 207 |
+
<td><a href="meta/RUNTIME_SELECTION.md">Runtime selection</a></td>
|
| 208 |
+
<td><a href="#official-runtime-guides">Official Runtime Guides</a> → <a href="#coding-agent-loop-systems">Coding-Agent Loop Systems</a> → <a href="#orchestration-and-multi-agent-delegation">Orchestration</a></td>
|
| 209 |
+
<td>Agent and platform builders</td>
|
| 210 |
+
</tr>
|
| 211 |
+
<tr>
|
| 212 |
+
<td><strong>Persist</strong></td>
|
| 213 |
+
<td><a href="#state-memory-and-context-persistence">State and context</a></td>
|
| 214 |
+
<td><a href="#core-loop-primitives">Core Loop Primitives</a> → <a href="#operations-playbooks">Operations Playbooks</a></td>
|
| 215 |
+
<td>Long-running and resumable loops</td>
|
| 216 |
+
</tr>
|
| 217 |
+
<tr>
|
| 218 |
+
<td><strong>Verify</strong></td>
|
| 219 |
+
<td><a href="#verification-and-feedback-gates">Verification Gates</a></td>
|
| 220 |
+
<td><a href="#benchmarks-and-evaluation">Benchmarks And Evaluation</a> → <a href="#critiques-risks-and-limitations">Critiques And Limitations</a></td>
|
| 221 |
+
<td>Eval and reliability engineers</td>
|
| 222 |
+
</tr>
|
| 223 |
+
<tr>
|
| 224 |
+
<td><strong>Govern</strong></td>
|
| 225 |
+
<td><a href="#securing-unattended-loops">Securing Unattended Loops</a></td>
|
| 226 |
+
<td><a href="#operations-playbooks">Operations Playbooks</a> → <a href="#critiques-risks-and-limitations">Critiques And Limitations</a></td>
|
| 227 |
+
<td>Operators, approvers, and security</td>
|
| 228 |
+
</tr>
|
| 229 |
+
<tr>
|
| 230 |
+
<td><strong>Apply</strong></td>
|
| 231 |
+
<td><a href="#templates-and-patterns">Templates And Patterns</a></td>
|
| 232 |
+
<td><a href="#examples-and-schema">Examples And Schema</a> → <a href="#community-gallery">Community Gallery</a> → <a href="#contributing">Contributing</a></td>
|
| 233 |
+
<td>Teams adopting or sharing loops</td>
|
| 234 |
+
</tr>
|
| 235 |
+
</tbody>
|
| 236 |
+
</table>
|
| 237 |
+
|
| 238 |
+
The Hugging Face dataset exposes the same collection, lifecycle-stage, audience, evidence, source-status, and repository-stat facets for filtering all resources.
|
| 239 |
|
| 240 |
## Choose Your Loop
|
| 241 |
|
|
|
|
| 316 |
|
| 317 |
Direct resources about the new AI/coding-agent meaning of Loop Engineering.
|
| 318 |
|
| 319 |
+
- 📝 **Blog** [Loop Engineering by Addy Osmani](https://addyosmani.com/blog/loop-engineering/) - Addy Osmani's framing of loop engineering as the layer above manually prompting coding agents, with concrete primitives across Codex and Claude Code; also on [Substack](https://addyo.substack.com/p/loop-engineering) with the original discussion trail and Steinberger and Cherny quotations.
|
| 320 |
- 📝 **Blog** [Peter Steinberger on designing loops](https://x.com/steipete/status/2063697162748260627) - The June 2026 post - "you shouldn't be prompting coding agents anymore, you should be designing loops that prompt your agents" - that catalyzed the current discussion.
|
| 321 |
- 📝 **Blog** [Boris Cherny: five tips for running Opus autonomously for hours or days](https://x.com/bcherny/status/2063792263067754658) - The Claude Code creator's compact loop recipe: auto-mode permissions, dynamic workflows, `/goal` or `/loop`, the cloud runner, and end-to-end self-verification.
|
| 322 |
+
- 📝 **Blog** [Loop Engineering by Cobus Greyling](https://cobusgreyling.substack.com/p/loop-engineering) - Concise explanation of the shift from prompting agents to designing loops that discover work, delegate, verify, persist, and continue.
|
| 323 |
- 📝 **Blog** [Stop Prompting. Design the Loop.](https://www.pulumi.com/blog/stop-prompting-design-the-loop/) - Practical breakdown of loop building blocks - automations, worktrees, skills, connectors, subagents - plus external memory and verification through oracles such as tests and builds.
|
| 324 |
- 📝 **Blog** [Writing Loops, Not Prompts, Explained](https://rico.codes/loops-not-prompts) - Rico Kahler's break-even model for when a recurring task justifies building a loop instead of prompting, with stop conditions, evidence collection, and an execution-horizon framing for moving from execution-bound to judgment-bound work.
|
| 325 |
- 📝 **Blog** [Loop Engineering: A Guide for Engineers and Practitioners](https://medium.com/@adnanmasood/loop-engineering-a-guide-for-engineers-and-practitioners-893bb65ea943) - Adnan Masood's practitioner guide that organizes loop design into triggers, topologies, verifiers, and termination rules, with coverage of failure modes, cost control, and observability for production agent loops.
|
|
|
|
| 424 |
|
| 425 |
Feature-level building blocks you assemble a loop from: schedulers, goals, worktrees, hooks, skills, plugins, and protocols.
|
| 426 |
|
| 427 |
+
- 📚 **Docs** [Scheduled tasks - ChatGPT Learn](https://learn.chatgpt.com/docs/automations?surface=app) - Official guidance for recurring background tasks, triage inboxes, skills, and isolated workspaces.
|
| 428 |
+
- 📚 **Docs** [Follow a goal - ChatGPT Learn](https://learn.chatgpt.com/use-cases/follow-goals) - Official guidance for durable objectives with stopping conditions, validation commands, checkpoints, and progress logs.
|
| 429 |
+
- 📚 **Docs** [Git worktrees - ChatGPT Learn](https://learn.chatgpt.com/docs/environments/git-worktrees) - Official worktree model for isolated parallel tasks and handoffs between local and background workspaces.
|
| 430 |
+
- 📚 **Docs** [Prompting - ChatGPT Learn](https://learn.chatgpt.com/docs/prompting) - Explains the Codex loop, threads, context, and goal-oriented prompting.
|
| 431 |
+
- 📚 **Docs** [Customization overview - ChatGPT Learn](https://learn.chatgpt.com/docs/customization/overview) - Maps `AGENTS.md`, memories, skills, MCP, and subagents into a coherent customization stack.
|
| 432 |
+
- 📚 **Docs** [Build skills - ChatGPT Learn](https://learn.chatgpt.com/docs/build-skills) - Official skill format for reusable workflows, scripts, MCP dependencies, invocation policy, and plugin packaging.
|
| 433 |
+
- 📚 **Docs** [Plugins - ChatGPT Learn](https://learn.chatgpt.com/docs/plugins) - Bundles skills, app integrations, and MCP servers into reusable loop capabilities.
|
| 434 |
- 🧰 **Tool** [dotskills](https://github.com/vincentkoc/dotskills) - A `.skills` registry of curated Codex and OpenClaw skills, framed as an "ADE Loop" (Agent Development Environment to registry to Skills Gym) where reusable skills are developed, shared, and evaluated across runs.
|
| 435 |
+
- 📚 **Docs** [Developer commands - ChatGPT Learn](https://learn.chatgpt.com/docs/developer-commands?surface=cli) - CLI commands for switching agent threads, browsing skills, inspecting MCP tools, and using subagent workflows.
|
| 436 |
- 🔁 **Pattern** [Autonomous Loops](https://claudecodeguide.dev/docs/patterns/autonomous-loops) - Claude Code pattern using task files, stop hooks, restart behavior, hard limits, and a kill switch.
|
| 437 |
- 📚 **Docs** [Claude Code Glossary](https://code.claude.com/docs/en/glossary.md) - Defines the agentic loop, hooks, subagents, skills, MCP, and related primitives in Claude Code terminology.
|
| 438 |
- 📚 **Docs** [Keep Claude working toward a goal](https://code.claude.com/docs/en/goal) - `/goal` runs turn after turn until a completion condition is met by a verifier.
|
|
|
|
| 463 |
|
| 464 |
<!-- OpenAI and Codex -->
|
| 465 |
- 📚 **Docs** [Run long horizon tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex) - OpenAI's runbook for plan-edit-test-observe-repair-document-repeat work, including specs, plans, status logs, and validation gates.
|
| 466 |
+
- 📚 **Docs** [Best practices - ChatGPT Learn](https://learn.chatgpt.com/guides/best-practices) - Official best practices for context, `AGENTS.md`, MCP, skills, subagents, and automations.
|
| 467 |
- 📚 **Docs** [Agents SDK](https://developers.openai.com/api/docs/guides/agents) - OpenAI guide for agent orchestration, tool execution, approvals, state, guardrails, and observability.
|
| 468 |
- 📚 **Docs** [Agents - OpenAI Agents SDK](https://openai.github.io/openai-agents-python/agents/) - SDK primitives for agents, tools, handoffs, guardrails, and runner-managed loops.
|
| 469 |
- 📚 **Docs** [Running agents](https://developers.openai.com/api/docs/guides/agents/running-agents) - OpenAI guide to turns, state, approvals, sessions, and continuation in the SDK runtime loop.
|
|
|
|
| 694 |
- 📄 **Paper** [A Trace-Based Assurance Framework for Agentic AI Orchestration: Contracts, Testing, and Governance](https://arxiv.org/abs/2603.18096) - Treats execution traces as the assurance substrate, pairing machine-checkable contracts, testing, and governance so recurring agent orchestration stays verifiable and auditable.
|
| 695 |
- 📄 **Paper** [Self-Evolving Agents with Anytime-Valid Certificates](https://arxiv.org/abs/2607.00871) - Confines self-modification to a small steering adapter around a frozen base model and gates each change with anytime-valid statistical tests that emit auditable certificates, reporting solve-count gains and logged regression prevention on a SWE-bench Verified subset.
|
| 696 |
- 📄 **Paper** [Delayed Verification Destabilizes Multi-Agent LLM Belief](https://arxiv.org/abs/2606.27409) - Models verifier-corrector loops in multi-agent LLM systems as delayed consensus, deriving a stability threshold where verification that is too strong or too late turns factual consensus into oscillation, plus a greedy corrector-placement algorithm validated on five open models.
|
| 697 |
+
- 📄 **Paper** [Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectory](https://arxiv.org/abs/2606.06523) - Models agent workflows and trajectories in Lean 4 dependent types so semantic consistency is machine-checked rather than judged by an LLM, with verification-passing workflows outperforming failing ones by an average of 11.94% on software-engineering benchmarks.
|
| 698 |
- 📄 **Paper** [Regimes: An Auditable, Held-Out-Gated Improvement Loop](https://arxiv.org/abs/2606.10241) - Event-sourced agent runtime whose self-improvement loop gates every proposed repair behind static checks, sandbox execution, and held-out evaluation before adoption, keeping the full decision trail replayable.
|
| 699 |
- 📄 **Paper** [Agentic CLEAR: Automating Multi-Level Evaluation of LLM Agents](https://arxiv.org/abs/2605.22608) - Automated evaluation framework from IBM Research that grades agent behavior at system, trace, and node granularity without predefined error taxonomies, producing feedback aligned with human-annotated errors and predictive of task success.
|
| 700 |
- 📄 **Paper** [Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference](https://arxiv.org/abs/2607.02882) - FlowFixer converts runs of platform-built agentic workflows (Dify, Coze, n8n) into symbolic traces, infers correctness specs and node dependencies to localize root-cause failures, and generates targeted repairs at a 71.3% success rate.
|
|
|
|
| 784 |
- 🧰 **Tool** [GenericAgent](https://github.com/lsdefine/GenericAgent) - Self-evolving agent that grows a skill tree from a small seed, crystallizing completed runs into layered memory and reusable skills, with a master-worker mode for long-horizon goals.
|
| 785 |
- 📄 **Paper** [Self-GC: Self-Governing Context for Long-Horizon LLM Agents](https://arxiv.org/abs/2607.00692) - Governs long-horizon agent context as indexed lifecycle objects in an explicit nod to garbage collection, with a side-channel planner proposing fold, mask, and prune actions under harness-enforced recoverable sidecars, cutting production input tokens by 10-15%.
|
| 786 |
- 📄 **Paper** [CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents](https://arxiv.org/abs/2607.05378) - Reinforcement-learning method that jointly optimizes task execution and compaction-summary generation so long-horizon agents can continue past finite context windows, lifting GLM-4.5-Air to 66.8% on SWE-bench Verified and shipping in the GLM-5.2 pipeline.
|
| 787 |
+
- 📄 **Paper** [SelfMem: Self-Optimizing Memory for AI Agents](https://arxiv.org/abs/2607.03726) - Memory framework in which the agent autonomously optimizes its own storage, retrieval, and summarization strategies per task instead of a fixed pipeline, improving BEAM's official score over the strongest baseline by 48.7%, 40.8%, and 41.9% at 100K, 500K, and 1M tokens, respectively.
|
| 788 |
- 📄 **Paper** [Memory-Orchestrated Semantic System (MOSS): An Auditable Agentic Memory Architecture](https://arxiv.org/abs/2607.04391) - Model-, storage-, and API-agnostic agent memory architecture where the agent drives symbolic retrieval over a structured relational database, making long-term memory auditable and reproducible instead of opaque embedding search, validated in a year-long deployment.
|
| 789 |
- 📄 **Paper** [The Log Is the Agent: Event-Sourced Reactive Graphs for Auditable, Forkable Agentic Systems](https://arxiv.org/abs/2605.21997) - BabyAGI creator Yohei Nakajima makes an append-only event log the source of truth and the working graph a deterministic projection, giving long-running loops deterministic replay, cheap forking at any event, and end-to-end causal lineage from goal to model call.
|
| 790 |
- 📝 **Blog** [Agentics: Memorizing Session Transcripts Isn't Useful](https://12gramsofcarbon.com/p/agentics-memorizing-session-transcripts) - From thousands of agent sessions at Nori, reports zero coding-task benefit from giving agents search over prior session transcripts and argues loop state belongs in distilled artifacts like commits and docs because agents never prune stale context.
|
|
|
|
| 879 |
- 🧪 **Benchmark** [SentinelBench: A Benchmark for Long-Running Monitoring Agents](https://arxiv.org/abs/2606.05342) - Microsoft Research benchmark of 100 tasks across 10 synthetic web environments that evaluates long-running monitoring agents on whether they wait or act appropriately, scoring task completion, response speed, and resource efficiency.
|
| 880 |
- 🧪 **Benchmark** [SWE-Together: Evaluating Coding Agents in Interactive User Sessions](https://arxiv.org/abs/2606.29957) - Multi-session coding benchmark of 109 repository-level tasks reconstructed from 11,260 recorded user-agent sessions, replayed with an LLM user simulator and scored on final correctness and the number of corrective feedback turns.
|
| 881 |
- 🧪 **Benchmark** [The Long-Horizon Task Mirage? Diagnosing Where and Why Agentic Systems Break](https://arxiv.org/abs/2604.11978) - Cross-domain diagnostic benchmark that scales task horizon through depth and breadth extension, then attributes failures across 3,100+ agent trajectories to a seven-category taxonomy via a trajectory-grounded LLM judge validated against human annotation.
|
| 882 |
+
- 📄 **Paper** [Beyond pass@1: A Reliability Science Framework for Long-Horizon LLM Agents](https://arxiv.org/abs/2603.29231) - Reliability metrics for long-horizon agents (reliability decay, variance amplification, graceful degradation, meltdown onset) measured over 23,392 episodes across 10 models, showing capability and reliability rankings diverge as tasks lengthen.
|
| 883 |
- 🧪 **Benchmark** [SEAGym: An Evaluation Environment for Self-Evolving LLM Agents](https://arxiv.org/abs/2606.17546) - Evaluation environment that measures whether a self-evolving agent's modifications to prompts, memory, and tools generalize to held-out tasks, using train, validation, and test splits and cost metrics on Terminal-Bench 2.0 and HLE.
|
| 884 |
- 🧪 **Benchmark** [EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactions](https://arxiv.org/abs/2605.24110) - Benchmark of 26 evolving coding tasks across 227 evaluation rounds using cumulative executable tests to check that agents keep prior requirements working as specifications change, with top agents reaching only about 50% on multi-turn success metrics.
|
| 885 |
- 📄 **Paper** [On the Reliability of Computer Use Agents](https://arxiv.org/abs/2604.17849) - Repeated-execution study on OSWorld decomposing why computer-use agents fail tasks they previously completed, separating execution stochasticity, task-specification ambiguity, and behavioral variability as distinct causes of unreliability.
|
| 886 |
+
- 📄 **Paper** [AgentLens: Revealing the Lucky Pass Problem in SWE-Agent Evaluation](https://arxiv.org/abs/2605.12925) - Grades 2,614 SWE-agent trajectories across eight models to show that 10.7% of passing trajectories in its 1,815-trajectory evaluation subset are lucky trial-and-error successes, replacing binary pass/fail with process-quality tiers that shift model rankings.
|
| 887 |
- 🧪 **Benchmark** [ORLoopBench: Solver-in-the-Loop Benchmarks for Self-Correction](https://arxiv.org/abs/2601.21008) - Formalizes infeasible-model debugging as a solver-in-the-loop process where each action triggers solver re-execution and infeasibility recomputation, giving deterministic verification for iterative repair in operations research.
|
| 888 |
- 🧪 **Benchmark** [LongDS-Bench: On the Failure of Long-Horizon Agentic Data Analysis](https://arxiv.org/abs/2605.30434) - Benchmark of 68 real-world data-analysis tasks built from Kaggle notebooks spanning 2,225 interactive turns, finding that long-horizon errors account for 52-69% of agent failures and that maintaining a correct analytical state is the core bottleneck.
|
| 889 |
- 🧪 **Benchmark** [MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks](https://arxiv.org/abs/2602.16313) - Multi-session benchmark of interdependent agentic tasks where agents must distill earlier sessions into memory and use it to guide later actions, showing that near-saturated scores on long-context memory benchmarks fail to transfer.
|
|
|
|
| 986 |
|
| 987 |
Neighboring curated lists for the layers around loop engineering.
|
| 988 |
|
| 989 |
+
- 🧭 **List** [Awesome Harness Engineering by ai-boost](https://github.com/ai-boost/awesome-harness-engineering) - Comprehensive list for the agent harness layer that Loop Engineering builds on.
|
| 990 |
+
- 🧭 **List** [Awesome Harness Engineering by walkinglabs](https://github.com/walkinglabs/awesome-harness-engineering) - High-signal harness list with strong categories for context, guardrails, specs, evals, runtimes, and benchmarks.
|
| 991 |
- 🧭 **List** [Awesome Agent Harness](https://github.com/AutoJunjie/awesome-agent-harness) - Curated tools and resources for environments, constraints, and feedback around coding agents.
|
| 992 |
- 🧭 **List** [Awesome Context Engineering](https://github.com/Meirtz/Awesome-Context-Engineering) - Survey-style list for context engineering across LLMs and agents.
|
| 993 |
- 🧭 **List** [Awesome Prompt Engineering](https://github.com/promptslab/Awesome-Prompt-Engineering) - Classic adjacent list for prompt techniques and prompting resources.
|
|
|
|
| 1097 |
| `novelty` | Why the entry is distinct within its section. |
|
| 1098 |
| `impact` | Who benefits and how. |
|
| 1099 |
| `signal` | Why the entry is trustworthy (adoption, venue, authorship). |
|
| 1100 |
+
| `signal_strength` | Calibrated confidence label (`high`, `medium`, `contextual`, or `unverified`). |
|
| 1101 |
| `source_readme` | README file the row came from. |
|
| 1102 |
| `source_line` | 1-based line number in that README. |
|
| 1103 |
| `source_url` | Permalink to the source line on GitHub. |
|
| 1104 |
+
| `date_added` | First-seen date when tracked; blank for resources added before tracking began. |
|
| 1105 |
+
| `collection` | Task-oriented atlas group: Learn, Design, Build, Persist, Verify, Govern, or Apply. |
|
| 1106 |
+
| `collection_slug` | Stable lowercase slug for the task-oriented collection. |
|
| 1107 |
+
| `user_goal` | Reader outcome served by the collection. |
|
| 1108 |
+
| `lifecycle_stages` | Semicolon-delimited Loop Contract stages addressed by the resource. |
|
| 1109 |
+
| `audience` | Semicolon-delimited intended audiences, such as newcomer, builder, operator, evaluator, or security. |
|
| 1110 |
+
| `evidence_class` | Source-provenance category, independent of popularity or editorial judgment. |
|
| 1111 |
+
| `source_status` | Latest audit result: `ok`, `restricted`, `local_ok`, or an explicit failure state. |
|
| 1112 |
+
| `canonical_url` | Redirect-resolved or repository-canonical URL used for source verification. |
|
| 1113 |
+
| `source_title` | Title metadata retrieved during the latest source audit. |
|
| 1114 |
+
| `source_description` | Description or abstract metadata retrieved from the primary source. |
|
| 1115 |
+
| `github_repo` | Normalized GitHub `owner/repository` identifier where applicable. |
|
| 1116 |
+
| `github_stars` | GitHub star count captured at audit time; context, not a reliability score. |
|
| 1117 |
+
| `github_forks` | GitHub fork count captured at audit time. |
|
| 1118 |
+
| `github_license` | Repository license identifier reported by GitHub where available. |
|
| 1119 |
+
| `github_updated_at` | Latest repository update timestamp reported by GitHub. |
|
| 1120 |
+
| `arxiv_id` | arXiv identifier extracted from a primary paper URL where applicable. |
|
| 1121 |
+
| `audited_at` | UTC timestamp for the source metadata and availability snapshot. |
|
| 1122 |
|
| 1123 |
## Considerations and Limitations
|
| 1124 |
|
| 1125 |
- Annotations are written and curated by a single maintainer; they summarize each resource and are not the authors' own abstracts.
|
| 1126 |
- URLs are third-party and can rot; `data/resource_source_audit.csv` carries a retrieval-time reachability snapshot, but it is a point-in-time check, not a live guarantee.
|
| 1127 |
- `row_id` and `source_line` are positional and change when the README is reordered; join on `url` for anything durable.
|
| 1128 |
+
- `signal_strength` is calibrated as `high`, `medium`, `contextual`, or `unverified`; GitHub stars and forks are reported only as adoption context.
|
| 1129 |
- Coverage skews toward English-language, publicly available resources.
|
| 1130 |
|
| 1131 |
## Changelog
|
data/resource_source_audit.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/resources.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/resources.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
docs/assets/resources.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
docs/index.html
CHANGED
|
@@ -54,7 +54,7 @@
|
|
| 54 |
}
|
| 55 |
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
| 56 |
a:hover { color: #0f49bd; }
|
| 57 |
-
button, input { font: inherit; }
|
| 58 |
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }
|
| 59 |
.skip {
|
| 60 |
position: absolute;
|
|
@@ -66,10 +66,11 @@
|
|
| 66 |
padding: 10px 16px;
|
| 67 |
}
|
| 68 |
.skip:focus { left: 0; }
|
| 69 |
-
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
|
| 70 |
outline: 3px solid rgba(21, 94, 239, 0.32);
|
| 71 |
outline-offset: 3px;
|
| 72 |
}
|
|
|
|
| 73 |
|
| 74 |
header.site {
|
| 75 |
position: sticky;
|
|
@@ -224,10 +225,72 @@
|
|
| 224 |
.level .title { font-weight: 750; }
|
| 225 |
.level .detail { color: var(--muted); font-size: 0.9rem; }
|
| 226 |
|
| 227 |
-
.resource-
|
| 228 |
-
.resource-
|
| 229 |
-
|
| 230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
details { border-top: 1px solid var(--line-strong); padding: 18px 0; }
|
| 232 |
details:last-child { border-bottom: 1px solid var(--line-strong); }
|
| 233 |
summary { cursor: pointer; font-weight: 750; }
|
|
@@ -276,11 +339,12 @@
|
|
| 276 |
.stat:nth-child(even) { border-left: 1px solid var(--line); }
|
| 277 |
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
|
| 278 |
.stat:last-child { grid-column: 1 / -1; border-left: 0; }
|
| 279 |
-
.principles, .link-grid, .pattern-grid
|
| 280 |
.level { grid-template-columns: 54px 1fr; }
|
| 281 |
.level .detail { grid-column: 2; }
|
| 282 |
-
.resource-
|
| 283 |
-
.resource-
|
|
|
|
| 284 |
.footer-grid { grid-template-columns: 1fr 1fr; }
|
| 285 |
}
|
| 286 |
@media (max-width: 560px) {
|
|
@@ -291,10 +355,17 @@
|
|
| 291 |
.lead { font-size: 1rem; }
|
| 292 |
.mental-model { padding-top: 30px; }
|
| 293 |
.hero-scene canvas { opacity: 0.68; }
|
| 294 |
-
.principles, .link-grid, .pattern-grid, .
|
| 295 |
.principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
|
| 296 |
.pattern { min-height: 88px; }
|
| 297 |
-
.resource-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
.caption { text-align: left; }
|
| 299 |
.level { grid-template-columns: 46px 1fr; }
|
| 300 |
.diagram-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
|
|
@@ -308,7 +379,7 @@
|
|
| 308 |
.hero-scene { display: none; }
|
| 309 |
}
|
| 310 |
@media print {
|
| 311 |
-
header.site, .menu-btn, .actions, .copy, .pattern-filter, .hero-scene { display: none; }
|
| 312 |
body, footer { background: #fff; }
|
| 313 |
section { padding: 24pt 0; break-inside: avoid; }
|
| 314 |
.wrap { width: 100%; }
|
|
@@ -588,27 +659,95 @@
|
|
| 588 |
<div class="section-head">
|
| 589 |
<div>
|
| 590 |
<p class="section-label">06 / Curated resources</p>
|
| 591 |
-
<h2>
|
| 592 |
</div>
|
| 593 |
-
<p class="section-intro">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 594 |
</div>
|
| 595 |
-
<nav class="resource-links" aria-label="Resource categories">
|
| 596 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#start-here">Start Here</a>
|
| 597 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#core-loop-primitives">Core Loop Primitives</a>
|
| 598 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#official-runtime-guides">Runtime Guides</a>
|
| 599 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#research-foundations">Research Foundations</a>
|
| 600 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#agent-workflow-patterns">Agent Workflow Patterns</a>
|
| 601 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#coding-agent-loop-systems">Coding-Agent Loop Systems</a>
|
| 602 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#verification-and-feedback-gates">Verification and Feedback</a>
|
| 603 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#securing-unattended-loops">Securing Unattended Loops</a>
|
| 604 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#state-memory-and-context-persistence">State and Memory</a>
|
| 605 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#orchestration-and-multi-agent-delegation">Orchestration</a>
|
| 606 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#benchmarks-and-evaluation">Benchmarks and Evaluation</a>
|
| 607 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#operations-playbooks">Operations Playbooks</a>
|
| 608 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#critiques-risks-and-limitations">Critiques and Risks</a>
|
| 609 |
-
<a href="https://github.com/ChaoYue0307/awesome-loop-engineering#adjacent-awesome-lists">Adjacent Awesome Lists</a>
|
| 610 |
-
<a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">Search all 509 rows on Hugging Face</a>
|
| 611 |
-
</nav>
|
| 612 |
</div>
|
| 613 |
</section>
|
| 614 |
|
|
@@ -749,6 +888,184 @@
|
|
| 749 |
if (empty) empty.hidden = shown !== 0;
|
| 750 |
});
|
| 751 |
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 752 |
Array.prototype.forEach.call(document.querySelectorAll('.copy'), function (button) {
|
| 753 |
var label = button.querySelector('span') || button;
|
| 754 |
button.addEventListener('click', function () {
|
|
|
|
| 54 |
}
|
| 55 |
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
| 56 |
a:hover { color: #0f49bd; }
|
| 57 |
+
button, input, select { font: inherit; }
|
| 58 |
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }
|
| 59 |
.skip {
|
| 60 |
position: absolute;
|
|
|
|
| 66 |
padding: 10px 16px;
|
| 67 |
}
|
| 68 |
.skip:focus { left: 0; }
|
| 69 |
+
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
|
| 70 |
outline: 3px solid rgba(21, 94, 239, 0.32);
|
| 71 |
outline-offset: 3px;
|
| 72 |
}
|
| 73 |
+
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
| 74 |
|
| 75 |
header.site {
|
| 76 |
position: sticky;
|
|
|
|
| 225 |
.level .title { font-weight: 750; }
|
| 226 |
.level .detail { color: var(--muted); font-size: 0.9rem; }
|
| 227 |
|
| 228 |
+
.resource-explorer { border-top: 1px solid var(--line-strong); }
|
| 229 |
+
.resource-toolbar {
|
| 230 |
+
display: grid;
|
| 231 |
+
grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 0.7fr)) auto;
|
| 232 |
+
gap: 10px;
|
| 233 |
+
padding: 16px 0;
|
| 234 |
+
border-bottom: 1px solid var(--line);
|
| 235 |
+
}
|
| 236 |
+
.resource-input, .resource-select {
|
| 237 |
+
width: 100%;
|
| 238 |
+
min-height: 44px;
|
| 239 |
+
border: 1px solid var(--line-strong);
|
| 240 |
+
border-radius: 6px;
|
| 241 |
+
padding: 9px 12px;
|
| 242 |
+
color: var(--ink);
|
| 243 |
+
background: var(--surface);
|
| 244 |
+
}
|
| 245 |
+
.resource-input::placeholder { color: var(--quiet); }
|
| 246 |
+
.resource-reset, .resource-more {
|
| 247 |
+
min-height: 44px;
|
| 248 |
+
border: 1px solid var(--line-strong);
|
| 249 |
+
border-radius: 6px;
|
| 250 |
+
padding: 9px 13px;
|
| 251 |
+
color: var(--ink);
|
| 252 |
+
background: var(--surface);
|
| 253 |
+
font-weight: 700;
|
| 254 |
+
cursor: pointer;
|
| 255 |
+
}
|
| 256 |
+
.resource-reset:hover, .resource-more:hover { border-color: var(--blue); color: var(--blue); }
|
| 257 |
+
.resource-collections { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
|
| 258 |
+
.resource-collection {
|
| 259 |
+
min-height: 42px;
|
| 260 |
+
border: 0;
|
| 261 |
+
border-bottom: 2px solid transparent;
|
| 262 |
+
padding: 9px 14px;
|
| 263 |
+
color: var(--muted);
|
| 264 |
+
background: transparent;
|
| 265 |
+
font-size: 0.82rem;
|
| 266 |
+
font-weight: 700;
|
| 267 |
+
cursor: pointer;
|
| 268 |
+
}
|
| 269 |
+
.resource-collection:hover { color: var(--ink); }
|
| 270 |
+
.resource-collection[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--blue); }
|
| 271 |
+
.resource-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; border-bottom: 1px solid var(--line-strong); }
|
| 272 |
+
.resource-count { margin: 0; color: var(--muted); font-size: 0.86rem; }
|
| 273 |
+
.resource-sort { width: auto; min-width: 176px; }
|
| 274 |
+
.resource-list { min-height: 180px; }
|
| 275 |
+
.resource-item {
|
| 276 |
+
display: grid;
|
| 277 |
+
grid-template-columns: minmax(0, 1fr) 180px;
|
| 278 |
+
gap: 28px;
|
| 279 |
+
padding: 17px 0;
|
| 280 |
+
border-bottom: 1px solid var(--line);
|
| 281 |
+
}
|
| 282 |
+
.resource-item a { color: var(--ink); font-weight: 750; text-decoration: none; }
|
| 283 |
+
.resource-item a:hover { color: var(--blue); }
|
| 284 |
+
.resource-item p { max-width: 850px; margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
|
| 285 |
+
.resource-meta { margin-top: 7px; color: var(--quiet); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem; overflow-wrap: anywhere; }
|
| 286 |
+
.resource-side { color: var(--quiet); font-size: 0.74rem; text-align: right; }
|
| 287 |
+
.resource-signal { display: block; color: var(--green); font-weight: 700; text-transform: uppercase; }
|
| 288 |
+
.resource-signal.contextual { color: var(--violet); }
|
| 289 |
+
.resource-signal.medium { color: var(--blue); }
|
| 290 |
+
.resource-signal.unverified { color: var(--quiet); }
|
| 291 |
+
.resource-source-status { display: block; margin-top: 4px; }
|
| 292 |
+
.resource-actions { display: flex; justify-content: center; padding-top: 18px; }
|
| 293 |
+
.resource-empty, .resource-loading { margin: 0; padding: 28px 0; color: var(--muted); }
|
| 294 |
details { border-top: 1px solid var(--line-strong); padding: 18px 0; }
|
| 295 |
details:last-child { border-bottom: 1px solid var(--line-strong); }
|
| 296 |
summary { cursor: pointer; font-weight: 750; }
|
|
|
|
| 339 |
.stat:nth-child(even) { border-left: 1px solid var(--line); }
|
| 340 |
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
|
| 341 |
.stat:last-child { grid-column: 1 / -1; border-left: 0; }
|
| 342 |
+
.principles, .link-grid, .pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 343 |
.level { grid-template-columns: 54px 1fr; }
|
| 344 |
.level .detail { grid-column: 2; }
|
| 345 |
+
.resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 346 |
+
.resource-toolbar label:first-child { grid-column: 1 / -1; }
|
| 347 |
+
.resource-reset { width: 100%; }
|
| 348 |
.footer-grid { grid-template-columns: 1fr 1fr; }
|
| 349 |
}
|
| 350 |
@media (max-width: 560px) {
|
|
|
|
| 355 |
.lead { font-size: 1rem; }
|
| 356 |
.mental-model { padding-top: 30px; }
|
| 357 |
.hero-scene canvas { opacity: 0.68; }
|
| 358 |
+
.principles, .link-grid, .pattern-grid, .footer-grid { grid-template-columns: 1fr; }
|
| 359 |
.principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
|
| 360 |
.pattern { min-height: 88px; }
|
| 361 |
+
.resource-toolbar { grid-template-columns: 1fr; }
|
| 362 |
+
.resource-toolbar label:first-child { grid-column: auto; }
|
| 363 |
+
.resource-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
|
| 364 |
+
.resource-collection { min-width: 0; padding-inline: 4px; }
|
| 365 |
+
.resource-summary { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 0; }
|
| 366 |
+
.resource-sort { width: 100%; }
|
| 367 |
+
.resource-item { grid-template-columns: 1fr; gap: 8px; }
|
| 368 |
+
.resource-side { text-align: left; }
|
| 369 |
.caption { text-align: left; }
|
| 370 |
.level { grid-template-columns: 46px 1fr; }
|
| 371 |
.diagram-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
|
|
|
|
| 379 |
.hero-scene { display: none; }
|
| 380 |
}
|
| 381 |
@media print {
|
| 382 |
+
header.site, .menu-btn, .actions, .copy, .pattern-filter, .resource-toolbar, .resource-collections, .resource-summary, .resource-actions, .hero-scene { display: none; }
|
| 383 |
body, footer { background: #fff; }
|
| 384 |
section { padding: 24pt 0; break-inside: avoid; }
|
| 385 |
.wrap { width: 100%; }
|
|
|
|
| 659 |
<div class="section-head">
|
| 660 |
<div>
|
| 661 |
<p class="section-label">06 / Curated resources</p>
|
| 662 |
+
<h2>Find the evidence for your next decision.</h2>
|
| 663 |
</div>
|
| 664 |
+
<p class="section-intro">Search 509 audited sources by goal, lifecycle stage, artifact type, and evidence class. Every result preserves its curated annotation and links directly to the canonical source.</p>
|
| 665 |
+
</div>
|
| 666 |
+
<div class="resource-explorer" id="resource-explorer">
|
| 667 |
+
<div class="resource-toolbar" role="search" aria-label="Search curated resources">
|
| 668 |
+
<label>
|
| 669 |
+
<span class="sr-only">Search resources</span>
|
| 670 |
+
<input class="resource-input" id="resource-search" type="search" placeholder="Search title, annotation, section, or lifecycle stage" autocomplete="off">
|
| 671 |
+
</label>
|
| 672 |
+
<label>
|
| 673 |
+
<span class="sr-only">Resource type</span>
|
| 674 |
+
<select class="resource-select" id="resource-type">
|
| 675 |
+
<option value="">All resource types</option>
|
| 676 |
+
<option value="Docs">Documentation</option>
|
| 677 |
+
<option value="Tool">Tools</option>
|
| 678 |
+
<option value="Paper">Papers</option>
|
| 679 |
+
<option value="Benchmark">Benchmarks</option>
|
| 680 |
+
<option value="Pattern">Patterns</option>
|
| 681 |
+
<option value="Template">Templates</option>
|
| 682 |
+
<option value="Blog">Practitioner writing</option>
|
| 683 |
+
<option value="Critique">Critiques</option>
|
| 684 |
+
<option value="List">Curated lists</option>
|
| 685 |
+
</select>
|
| 686 |
+
</label>
|
| 687 |
+
<label>
|
| 688 |
+
<span class="sr-only">Lifecycle stage</span>
|
| 689 |
+
<select class="resource-select" id="resource-stage">
|
| 690 |
+
<option value="">All lifecycle stages</option>
|
| 691 |
+
<option value="objective">Objective</option>
|
| 692 |
+
<option value="trigger">Trigger</option>
|
| 693 |
+
<option value="intake">Intake</option>
|
| 694 |
+
<option value="workspace">Workspace</option>
|
| 695 |
+
<option value="context">Context</option>
|
| 696 |
+
<option value="delegation">Delegation</option>
|
| 697 |
+
<option value="verification">Verification</option>
|
| 698 |
+
<option value="state">State</option>
|
| 699 |
+
<option value="budget">Budget</option>
|
| 700 |
+
<option value="escalation">Escalation</option>
|
| 701 |
+
<option value="exit">Exit</option>
|
| 702 |
+
<option value="whole-loop">Whole loop</option>
|
| 703 |
+
</select>
|
| 704 |
+
</label>
|
| 705 |
+
<label>
|
| 706 |
+
<span class="sr-only">Evidence class</span>
|
| 707 |
+
<select class="resource-select" id="resource-evidence">
|
| 708 |
+
<option value="">All evidence classes</option>
|
| 709 |
+
<option value="official">Official documentation</option>
|
| 710 |
+
<option value="research">Research</option>
|
| 711 |
+
<option value="implementation">Implementations</option>
|
| 712 |
+
<option value="benchmark">Benchmarks</option>
|
| 713 |
+
<option value="practice">Practice and patterns</option>
|
| 714 |
+
<option value="risk">Risk and ecosystem maps</option>
|
| 715 |
+
</select>
|
| 716 |
+
</label>
|
| 717 |
+
<button class="resource-reset" id="resource-reset" type="button">Reset</button>
|
| 718 |
+
</div>
|
| 719 |
+
<div class="resource-collections" role="group" aria-label="Filter by user goal">
|
| 720 |
+
<button class="resource-collection" type="button" data-collection="" aria-pressed="true">All</button>
|
| 721 |
+
<button class="resource-collection" type="button" data-collection="Learn" aria-pressed="false">Learn</button>
|
| 722 |
+
<button class="resource-collection" type="button" data-collection="Design" aria-pressed="false">Design</button>
|
| 723 |
+
<button class="resource-collection" type="button" data-collection="Build" aria-pressed="false">Build</button>
|
| 724 |
+
<button class="resource-collection" type="button" data-collection="Persist" aria-pressed="false">Persist</button>
|
| 725 |
+
<button class="resource-collection" type="button" data-collection="Verify" aria-pressed="false">Verify</button>
|
| 726 |
+
<button class="resource-collection" type="button" data-collection="Govern" aria-pressed="false">Govern</button>
|
| 727 |
+
<button class="resource-collection" type="button" data-collection="Apply" aria-pressed="false">Apply</button>
|
| 728 |
+
</div>
|
| 729 |
+
<div class="resource-summary">
|
| 730 |
+
<p class="resource-count" id="resource-count" aria-live="polite">Loading resource index...</p>
|
| 731 |
+
<label>
|
| 732 |
+
<span class="sr-only">Sort resources</span>
|
| 733 |
+
<select class="resource-select resource-sort" id="resource-sort">
|
| 734 |
+
<option value="curated">Curated order</option>
|
| 735 |
+
<option value="stars">GitHub stars</option>
|
| 736 |
+
<option value="recent">Recently added</option>
|
| 737 |
+
</select>
|
| 738 |
+
</label>
|
| 739 |
+
</div>
|
| 740 |
+
<div class="resource-list" id="resource-list" aria-busy="true">
|
| 741 |
+
<p class="resource-loading">Loading audited resources...</p>
|
| 742 |
+
</div>
|
| 743 |
+
<p class="resource-empty" id="resource-empty" hidden>No resources match the current filters.</p>
|
| 744 |
+
<div class="resource-actions">
|
| 745 |
+
<button class="resource-more" id="resource-more" type="button" hidden>Show more</button>
|
| 746 |
+
</div>
|
| 747 |
+
<noscript>
|
| 748 |
+
<p class="resource-loading"><a href="https://github.com/ChaoYue0307/awesome-loop-engineering#start-here">Browse the full resource library on GitHub</a> or <a href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering">filter the dataset on Hugging Face</a>.</p>
|
| 749 |
+
</noscript>
|
| 750 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 751 |
</div>
|
| 752 |
</section>
|
| 753 |
|
|
|
|
| 888 |
if (empty) empty.hidden = shown !== 0;
|
| 889 |
});
|
| 890 |
})();
|
| 891 |
+
(function () {
|
| 892 |
+
var explorer = document.getElementById('resource-explorer');
|
| 893 |
+
if (!explorer || !window.fetch) return;
|
| 894 |
+
|
| 895 |
+
var search = document.getElementById('resource-search');
|
| 896 |
+
var type = document.getElementById('resource-type');
|
| 897 |
+
var stage = document.getElementById('resource-stage');
|
| 898 |
+
var evidence = document.getElementById('resource-evidence');
|
| 899 |
+
var sort = document.getElementById('resource-sort');
|
| 900 |
+
var reset = document.getElementById('resource-reset');
|
| 901 |
+
var more = document.getElementById('resource-more');
|
| 902 |
+
var list = document.getElementById('resource-list');
|
| 903 |
+
var count = document.getElementById('resource-count');
|
| 904 |
+
var empty = document.getElementById('resource-empty');
|
| 905 |
+
var collectionButtons = Array.prototype.slice.call(explorer.querySelectorAll('.resource-collection'));
|
| 906 |
+
var evidenceGroups = {
|
| 907 |
+
official: ['official-documentation'],
|
| 908 |
+
research: ['research-preprint', 'research-paper'],
|
| 909 |
+
implementation: ['source-implementation', 'implementation'],
|
| 910 |
+
benchmark: ['benchmark'],
|
| 911 |
+
practice: ['operational-pattern', 'practitioner-analysis', 'reusable-artifact', 'repository-native', 'technical-documentation'],
|
| 912 |
+
risk: ['risk-analysis', 'curated-index']
|
| 913 |
+
};
|
| 914 |
+
var state = { collection: '', limit: 24 };
|
| 915 |
+
var resources = [];
|
| 916 |
+
|
| 917 |
+
function words(value) {
|
| 918 |
+
return String(value || '').replace(/-/g, ' ');
|
| 919 |
+
}
|
| 920 |
+
|
| 921 |
+
function stages(value) {
|
| 922 |
+
return String(value || '').split(';').filter(Boolean);
|
| 923 |
+
}
|
| 924 |
+
|
| 925 |
+
function formatNumber(value) {
|
| 926 |
+
var number = Number(value || 0);
|
| 927 |
+
if (!number) return '';
|
| 928 |
+
return number.toLocaleString ? number.toLocaleString() : String(number);
|
| 929 |
+
}
|
| 930 |
+
|
| 931 |
+
function createText(tag, className, value) {
|
| 932 |
+
var element = document.createElement(tag);
|
| 933 |
+
if (className) element.className = className;
|
| 934 |
+
element.textContent = value;
|
| 935 |
+
return element;
|
| 936 |
+
}
|
| 937 |
+
|
| 938 |
+
function resourceMatches(resource) {
|
| 939 |
+
var query = search.value.trim().toLowerCase();
|
| 940 |
+
var haystack = [
|
| 941 |
+
resource.title,
|
| 942 |
+
resource.annotation,
|
| 943 |
+
resource.section,
|
| 944 |
+
resource.collection,
|
| 945 |
+
resource.user_goal,
|
| 946 |
+
resource.lifecycle_stages,
|
| 947 |
+
resource.audience,
|
| 948 |
+
resource.evidence_class
|
| 949 |
+
].join(' ').toLowerCase();
|
| 950 |
+
var evidenceSet = evidenceGroups[evidence.value] || [];
|
| 951 |
+
|
| 952 |
+
return (!query || haystack.indexOf(query) !== -1) &&
|
| 953 |
+
(!type.value || resource.resource_type === type.value) &&
|
| 954 |
+
(!stage.value || stages(resource.lifecycle_stages).indexOf(stage.value) !== -1) &&
|
| 955 |
+
(!evidence.value || evidenceSet.indexOf(resource.evidence_class) !== -1) &&
|
| 956 |
+
(!state.collection || resource.collection === state.collection);
|
| 957 |
+
}
|
| 958 |
+
|
| 959 |
+
function sortedResources(filtered) {
|
| 960 |
+
return filtered.slice().sort(function (a, b) {
|
| 961 |
+
if (sort.value === 'stars') {
|
| 962 |
+
return Number(b.github_stars || 0) - Number(a.github_stars || 0) || a._index - b._index;
|
| 963 |
+
}
|
| 964 |
+
if (sort.value === 'recent') {
|
| 965 |
+
return (Date.parse(b.date_added || '') || 0) - (Date.parse(a.date_added || '') || 0) || a._index - b._index;
|
| 966 |
+
}
|
| 967 |
+
return a._index - b._index;
|
| 968 |
+
});
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
function renderItem(resource) {
|
| 972 |
+
var item = document.createElement('article');
|
| 973 |
+
var main = document.createElement('div');
|
| 974 |
+
var link = createText('a', '', resource.title);
|
| 975 |
+
var meta = [
|
| 976 |
+
resource.resource_type,
|
| 977 |
+
resource.collection,
|
| 978 |
+
stages(resource.lifecycle_stages).map(words).join(' / '),
|
| 979 |
+
words(resource.evidence_class)
|
| 980 |
+
].filter(Boolean).join(' | ');
|
| 981 |
+
var side = document.createElement('div');
|
| 982 |
+
var signalClass = 'resource-signal ' + String(resource.signal_strength || 'unverified').toLowerCase();
|
| 983 |
+
var signal = createText('span', signalClass, words(resource.signal_strength || 'unverified') + ' signal');
|
| 984 |
+
var sourceStatus = resource.source_status === 'restricted' ? 'Access restricted' : 'Source checked';
|
| 985 |
+
var starCount = formatNumber(resource.github_stars);
|
| 986 |
+
|
| 987 |
+
item.className = 'resource-item';
|
| 988 |
+
link.href = resource.canonical_url || resource.url;
|
| 989 |
+
main.appendChild(link);
|
| 990 |
+
main.appendChild(createText('p', '', resource.annotation));
|
| 991 |
+
main.appendChild(createText('div', 'resource-meta', meta));
|
| 992 |
+
side.className = 'resource-side';
|
| 993 |
+
side.appendChild(signal);
|
| 994 |
+
if (starCount) side.appendChild(createText('span', 'resource-source-status', starCount + ' GitHub stars'));
|
| 995 |
+
side.appendChild(createText('span', 'resource-source-status', sourceStatus));
|
| 996 |
+
item.appendChild(main);
|
| 997 |
+
item.appendChild(side);
|
| 998 |
+
return item;
|
| 999 |
+
}
|
| 1000 |
+
|
| 1001 |
+
function render() {
|
| 1002 |
+
var filtered = sortedResources(resources.filter(resourceMatches));
|
| 1003 |
+
var visible = filtered.slice(0, state.limit);
|
| 1004 |
+
var fragment = document.createDocumentFragment();
|
| 1005 |
+
|
| 1006 |
+
visible.forEach(function (resource) { fragment.appendChild(renderItem(resource)); });
|
| 1007 |
+
list.replaceChildren(fragment);
|
| 1008 |
+
list.setAttribute('aria-busy', 'false');
|
| 1009 |
+
count.textContent = filtered.length + ' of ' + resources.length + ' resources' + (visible.length < filtered.length ? ' | showing ' + visible.length : '');
|
| 1010 |
+
empty.hidden = filtered.length !== 0;
|
| 1011 |
+
more.hidden = visible.length >= filtered.length;
|
| 1012 |
+
if (!more.hidden) more.textContent = 'Show ' + Math.min(24, filtered.length - visible.length) + ' more';
|
| 1013 |
+
}
|
| 1014 |
+
|
| 1015 |
+
function resetLimitAndRender() {
|
| 1016 |
+
state.limit = 24;
|
| 1017 |
+
render();
|
| 1018 |
+
}
|
| 1019 |
+
|
| 1020 |
+
search.addEventListener('input', resetLimitAndRender);
|
| 1021 |
+
[type, stage, evidence, sort].forEach(function (control) {
|
| 1022 |
+
control.addEventListener('change', resetLimitAndRender);
|
| 1023 |
+
});
|
| 1024 |
+
collectionButtons.forEach(function (button) {
|
| 1025 |
+
button.addEventListener('click', function () {
|
| 1026 |
+
state.collection = button.getAttribute('data-collection') || '';
|
| 1027 |
+
collectionButtons.forEach(function (candidate) {
|
| 1028 |
+
candidate.setAttribute('aria-pressed', candidate === button ? 'true' : 'false');
|
| 1029 |
+
});
|
| 1030 |
+
resetLimitAndRender();
|
| 1031 |
+
});
|
| 1032 |
+
});
|
| 1033 |
+
more.addEventListener('click', function () {
|
| 1034 |
+
state.limit += 24;
|
| 1035 |
+
render();
|
| 1036 |
+
});
|
| 1037 |
+
reset.addEventListener('click', function () {
|
| 1038 |
+
search.value = '';
|
| 1039 |
+
type.value = '';
|
| 1040 |
+
stage.value = '';
|
| 1041 |
+
evidence.value = '';
|
| 1042 |
+
sort.value = 'curated';
|
| 1043 |
+
state.collection = '';
|
| 1044 |
+
collectionButtons.forEach(function (button) {
|
| 1045 |
+
button.setAttribute('aria-pressed', button.getAttribute('data-collection') === '' ? 'true' : 'false');
|
| 1046 |
+
});
|
| 1047 |
+
resetLimitAndRender();
|
| 1048 |
+
search.focus();
|
| 1049 |
+
});
|
| 1050 |
+
|
| 1051 |
+
fetch('assets/resources.json')
|
| 1052 |
+
.then(function (response) {
|
| 1053 |
+
if (!response.ok) throw new Error('Resource index request failed');
|
| 1054 |
+
return response.json();
|
| 1055 |
+
})
|
| 1056 |
+
.then(function (payload) {
|
| 1057 |
+
resources = (payload.resources || []).map(function (resource, index) {
|
| 1058 |
+
resource._index = index;
|
| 1059 |
+
return resource;
|
| 1060 |
+
});
|
| 1061 |
+
render();
|
| 1062 |
+
})
|
| 1063 |
+
.catch(function () {
|
| 1064 |
+
list.replaceChildren(createText('p', 'resource-loading', 'The resource index could not be loaded. Browse the complete library on GitHub or Hugging Face.'));
|
| 1065 |
+
list.setAttribute('aria-busy', 'false');
|
| 1066 |
+
count.textContent = 'Resource index unavailable';
|
| 1067 |
+
});
|
| 1068 |
+
})();
|
| 1069 |
Array.prototype.forEach.call(document.querySelectorAll('.copy'), function (button) {
|
| 1070 |
var label = button.querySelector('span') || button;
|
| 1071 |
button.addEventListener('click', function () {
|
examples/runnable/codex-automation.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
# Codex Automation Variant
|
| 2 |
|
| 3 |
-
> Template, not a guarantee of product behavior. Confirm triggers, worktree behavior, and scopes in the [
|
| 4 |
|
| 5 |
A Codex automation runs a saved task on a cadence or in response to events, in an isolated workspace. Use it for recurring background work such as triage, repair, or digest loops that should run without you starting each one.
|
| 6 |
|
| 7 |
## When to use
|
| 8 |
|
| 9 |
- The work recurs and should run unattended in the background.
|
| 10 |
-
- It fits an isolated, per-run [worktree](https://
|
| 11 |
- You want it on the Codex runtime rather than your own infrastructure.
|
| 12 |
|
| 13 |
## Shape
|
|
|
|
| 1 |
# Codex Automation Variant
|
| 2 |
|
| 3 |
+
> Template, not a guarantee of product behavior. Confirm triggers, worktree behavior, and scopes in the [scheduled tasks docs](https://learn.chatgpt.com/docs/automations?surface=app) before relying on this unattended.
|
| 4 |
|
| 5 |
A Codex automation runs a saved task on a cadence or in response to events, in an isolated workspace. Use it for recurring background work such as triage, repair, or digest loops that should run without you starting each one.
|
| 6 |
|
| 7 |
## When to use
|
| 8 |
|
| 9 |
- The work recurs and should run unattended in the background.
|
| 10 |
+
- It fits an isolated, per-run [worktree](https://learn.chatgpt.com/docs/environments/git-worktrees).
|
| 11 |
- You want it on the Codex runtime rather than your own infrastructure.
|
| 12 |
|
| 13 |
## Shape
|
meta/hf_card_body.md
CHANGED
|
@@ -20,16 +20,35 @@ Each row in `data/resources.jsonl` (and the equivalent `data/resources.csv`) is
|
|
| 20 |
| `novelty` | Why the entry is distinct within its section. |
|
| 21 |
| `impact` | Who benefits and how. |
|
| 22 |
| `signal` | Why the entry is trustworthy (adoption, venue, authorship). |
|
| 23 |
-
| `signal_strength` |
|
| 24 |
| `source_readme` | README file the row came from. |
|
| 25 |
| `source_line` | 1-based line number in that README. |
|
| 26 |
| `source_url` | Permalink to the source line on GitHub. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Considerations and Limitations
|
| 29 |
|
| 30 |
- Annotations are written and curated by a single maintainer; they summarize each resource and are not the authors' own abstracts.
|
| 31 |
- URLs are third-party and can rot; `data/resource_source_audit.csv` carries a retrieval-time reachability snapshot, but it is a point-in-time check, not a live guarantee.
|
| 32 |
- `row_id` and `source_line` are positional and change when the README is reordered; join on `url` for anything durable.
|
|
|
|
| 33 |
- Coverage skews toward English-language, publicly available resources.
|
| 34 |
|
| 35 |
## Changelog
|
|
|
|
| 20 |
| `novelty` | Why the entry is distinct within its section. |
|
| 21 |
| `impact` | Who benefits and how. |
|
| 22 |
| `signal` | Why the entry is trustworthy (adoption, venue, authorship). |
|
| 23 |
+
| `signal_strength` | Calibrated confidence label (`high`, `medium`, `contextual`, or `unverified`). |
|
| 24 |
| `source_readme` | README file the row came from. |
|
| 25 |
| `source_line` | 1-based line number in that README. |
|
| 26 |
| `source_url` | Permalink to the source line on GitHub. |
|
| 27 |
+
| `date_added` | First-seen date when tracked; blank for resources added before tracking began. |
|
| 28 |
+
| `collection` | Task-oriented atlas group: Learn, Design, Build, Persist, Verify, Govern, or Apply. |
|
| 29 |
+
| `collection_slug` | Stable lowercase slug for the task-oriented collection. |
|
| 30 |
+
| `user_goal` | Reader outcome served by the collection. |
|
| 31 |
+
| `lifecycle_stages` | Semicolon-delimited Loop Contract stages addressed by the resource. |
|
| 32 |
+
| `audience` | Semicolon-delimited intended audiences, such as newcomer, builder, operator, evaluator, or security. |
|
| 33 |
+
| `evidence_class` | Source-provenance category, independent of popularity or editorial judgment. |
|
| 34 |
+
| `source_status` | Latest audit result: `ok`, `restricted`, `local_ok`, or an explicit failure state. |
|
| 35 |
+
| `canonical_url` | Redirect-resolved or repository-canonical URL used for source verification. |
|
| 36 |
+
| `source_title` | Title metadata retrieved during the latest source audit. |
|
| 37 |
+
| `source_description` | Description or abstract metadata retrieved from the primary source. |
|
| 38 |
+
| `github_repo` | Normalized GitHub `owner/repository` identifier where applicable. |
|
| 39 |
+
| `github_stars` | GitHub star count captured at audit time; context, not a reliability score. |
|
| 40 |
+
| `github_forks` | GitHub fork count captured at audit time. |
|
| 41 |
+
| `github_license` | Repository license identifier reported by GitHub where available. |
|
| 42 |
+
| `github_updated_at` | Latest repository update timestamp reported by GitHub. |
|
| 43 |
+
| `arxiv_id` | arXiv identifier extracted from a primary paper URL where applicable. |
|
| 44 |
+
| `audited_at` | UTC timestamp for the source metadata and availability snapshot. |
|
| 45 |
|
| 46 |
## Considerations and Limitations
|
| 47 |
|
| 48 |
- Annotations are written and curated by a single maintainer; they summarize each resource and are not the authors' own abstracts.
|
| 49 |
- URLs are third-party and can rot; `data/resource_source_audit.csv` carries a retrieval-time reachability snapshot, but it is a point-in-time check, not a live guarantee.
|
| 50 |
- `row_id` and `source_line` are positional and change when the README is reordered; join on `url` for anything durable.
|
| 51 |
+
- `signal_strength` is calibrated as `high`, `medium`, `contextual`, or `unverified`; GitHub stars and forks are reported only as adoption context.
|
| 52 |
- Coverage skews toward English-language, publicly available resources.
|
| 53 |
|
| 54 |
## Changelog
|
scripts/audit_resource_sources.py
CHANGED
|
@@ -67,6 +67,7 @@ class MetadataParser(HTMLParser):
|
|
| 67 |
self.in_title = False
|
| 68 |
self.title_parts: list[str] = []
|
| 69 |
self.description = ""
|
|
|
|
| 70 |
|
| 71 |
@property
|
| 72 |
def title(self) -> str:
|
|
@@ -76,13 +77,22 @@ class MetadataParser(HTMLParser):
|
|
| 76 |
if tag.lower() == "title":
|
| 77 |
self.in_title = True
|
| 78 |
return
|
| 79 |
-
if tag.lower() != "meta"
|
| 80 |
return
|
| 81 |
|
| 82 |
attr_map = {key.lower(): value or "" for key, value in attrs}
|
| 83 |
name = (attr_map.get("name") or attr_map.get("property") or "").lower()
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
def handle_endtag(self, tag: str) -> None:
|
| 88 |
if tag.lower() == "title":
|
|
@@ -93,6 +103,18 @@ class MetadataParser(HTMLParser):
|
|
| 93 |
self.title_parts.append(data)
|
| 94 |
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
def read_rows() -> list[dict[str, str]]:
|
| 97 |
with RESOURCES_CSV.open(encoding="utf-8", newline="") as handle:
|
| 98 |
return list(csv.DictReader(handle))
|
|
@@ -127,6 +149,10 @@ def html_metadata(body: bytes, content_type: str) -> tuple[str, str]:
|
|
| 127 |
|
| 128 |
def fetch_url(url: str, timeout: float, attempts: int) -> dict[str, str]:
|
| 129 |
context = ssl._create_unverified_context()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
last_error = ""
|
| 131 |
|
| 132 |
for attempt in range(1, attempts + 1):
|
|
@@ -137,7 +163,7 @@ def fetch_url(url: str, timeout: float, attempts: int) -> dict[str, str]:
|
|
| 137 |
headers={"User-Agent": "awesome-loop-engineering-source-audit"},
|
| 138 |
)
|
| 139 |
try:
|
| 140 |
-
with
|
| 141 |
content_type = response.headers.get("content-type", "")
|
| 142 |
body = response.read(750_000) if method == "GET" else b""
|
| 143 |
title, description = html_metadata(body, content_type)
|
|
|
|
| 67 |
self.in_title = False
|
| 68 |
self.title_parts: list[str] = []
|
| 69 |
self.description = ""
|
| 70 |
+
self.description_priority = 0
|
| 71 |
|
| 72 |
@property
|
| 73 |
def title(self) -> str:
|
|
|
|
| 77 |
if tag.lower() == "title":
|
| 78 |
self.in_title = True
|
| 79 |
return
|
| 80 |
+
if tag.lower() != "meta":
|
| 81 |
return
|
| 82 |
|
| 83 |
attr_map = {key.lower(): value or "" for key, value in attrs}
|
| 84 |
name = (attr_map.get("name") or attr_map.get("property") or "").lower()
|
| 85 |
+
priority = {
|
| 86 |
+
"description": 1,
|
| 87 |
+
"og:description": 1,
|
| 88 |
+
"twitter:description": 1,
|
| 89 |
+
"dc.description": 2,
|
| 90 |
+
"citation_abstract": 3,
|
| 91 |
+
}.get(name, 0)
|
| 92 |
+
candidate = clean(attr_map.get("content"))
|
| 93 |
+
if candidate and priority > self.description_priority:
|
| 94 |
+
self.description = candidate
|
| 95 |
+
self.description_priority = priority
|
| 96 |
|
| 97 |
def handle_endtag(self, tag: str) -> None:
|
| 98 |
if tag.lower() == "title":
|
|
|
|
| 103 |
self.title_parts.append(data)
|
| 104 |
|
| 105 |
|
| 106 |
+
class RedirectHandler(urllib.request.HTTPRedirectHandler):
|
| 107 |
+
"""Teach Python 3.9's urllib opener to follow permanent HTTP 308 moves."""
|
| 108 |
+
|
| 109 |
+
def http_error_308(self, req, fp, code, msg, headers): # type: ignore[no-untyped-def]
|
| 110 |
+
return self.http_error_302(req, fp, code, msg, headers)
|
| 111 |
+
|
| 112 |
+
def redirect_request(self, req, fp, code, msg, headers, newurl): # type: ignore[no-untyped-def]
|
| 113 |
+
if code == 308 and req.get_method() in {"GET", "HEAD"}:
|
| 114 |
+
code = 307
|
| 115 |
+
return super().redirect_request(req, fp, code, msg, headers, newurl)
|
| 116 |
+
|
| 117 |
+
|
| 118 |
def read_rows() -> list[dict[str, str]]:
|
| 119 |
with RESOURCES_CSV.open(encoding="utf-8", newline="") as handle:
|
| 120 |
return list(csv.DictReader(handle))
|
|
|
|
| 149 |
|
| 150 |
def fetch_url(url: str, timeout: float, attempts: int) -> dict[str, str]:
|
| 151 |
context = ssl._create_unverified_context()
|
| 152 |
+
opener = urllib.request.build_opener(
|
| 153 |
+
urllib.request.HTTPSHandler(context=context),
|
| 154 |
+
RedirectHandler(),
|
| 155 |
+
)
|
| 156 |
last_error = ""
|
| 157 |
|
| 158 |
for attempt in range(1, attempts + 1):
|
|
|
|
| 163 |
headers={"User-Agent": "awesome-loop-engineering-source-audit"},
|
| 164 |
)
|
| 165 |
try:
|
| 166 |
+
with opener.open(request, timeout=timeout) as response:
|
| 167 |
content_type = response.headers.get("content-type", "")
|
| 168 |
body = response.read(750_000) if method == "GET" else b""
|
| 169 |
title, description = html_metadata(body, content_type)
|
scripts/export_resource_dataset.py
CHANGED
|
@@ -17,6 +17,8 @@ ROOT = Path(__file__).resolve().parents[1]
|
|
| 17 |
README = ROOT / "README.md"
|
| 18 |
CSV_PATH = ROOT / "data" / "resources.csv"
|
| 19 |
JSONL_PATH = ROOT / "data" / "resources.jsonl"
|
|
|
|
|
|
|
| 20 |
FIRST_SEEN_PATH = ROOT / "data" / "first_seen.json"
|
| 21 |
SOURCE_URL = "https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md"
|
| 22 |
|
|
@@ -59,8 +61,124 @@ FIELDS = [
|
|
| 59 |
"source_line",
|
| 60 |
"source_url",
|
| 61 |
"date_added",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
]
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
SECTION_IMPACT = {
|
| 65 |
"Concept Guides": "Clarifies the scope, vocabulary, and boundaries of Loop Engineering so the list does not drift into generic agent material.",
|
| 66 |
"Start Here": "Gives readers the origin story and first-principles framing for the new AI/coding-agent use of Loop Engineering.",
|
|
@@ -162,55 +280,142 @@ def classify_url(url: str) -> tuple[str, str]:
|
|
| 162 |
return "local_path", ""
|
| 163 |
|
| 164 |
|
| 165 |
-
def
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
if resource_type == "Critique":
|
| 178 |
-
return f"Names a risk or boundary condition: {lead}."
|
| 179 |
-
if resource_type == "List":
|
| 180 |
-
return f"Maps adjacent resources and ecosystems: {lead}."
|
| 181 |
-
return lead + "."
|
| 182 |
|
| 183 |
|
| 184 |
def novelty(section: str, title: str, annotation: str) -> str:
|
| 185 |
if section == "Concept Guides":
|
| 186 |
-
|
|
|
|
| 187 |
|
| 188 |
text = f"{title} {annotation}".lower()
|
| 189 |
for pattern, phrase in NOVELTY_RULES:
|
| 190 |
if re.search(pattern, text):
|
| 191 |
-
return phrase
|
| 192 |
|
| 193 |
if section in {"Concept Guides", "Templates And Patterns", "Examples And Schema"}:
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
|
|
|
|
|
|
| 198 |
|
| 199 |
|
| 200 |
-
def
|
| 201 |
-
return
|
| 202 |
|
| 203 |
|
| 204 |
-
def
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
if url_kind != "external":
|
| 206 |
-
return "
|
| 207 |
-
if
|
| 208 |
-
return "
|
|
|
|
|
|
|
| 209 |
if domain == "arxiv.org":
|
| 210 |
-
return "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
if domain == "github.com":
|
| 212 |
-
|
| 213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
|
| 215 |
|
| 216 |
def iter_rows(readme_path: Path = README) -> list[dict[str, str]]:
|
|
@@ -236,11 +441,15 @@ def iter_rows(readme_path: Path = README) -> list[dict[str, str]]:
|
|
| 236 |
url_kind, domain = classify_url(url)
|
| 237 |
annotation = clean(match.group("annotation"))
|
| 238 |
resource_type = clean(match.group("resource_type"))
|
| 239 |
-
signal_text, signal_strength = signal(resource_type, domain, url_kind)
|
| 240 |
row_number = len(rows) + 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
rows.append(
|
| 242 |
{
|
| 243 |
-
"row_id":
|
| 244 |
"section": section,
|
| 245 |
"section_slug": section_slug,
|
| 246 |
"resource_type": resource_type,
|
|
@@ -251,15 +460,32 @@ def iter_rows(readme_path: Path = README) -> list[dict[str, str]]:
|
|
| 251 |
"domain": domain,
|
| 252 |
"annotation": annotation,
|
| 253 |
"description": annotation,
|
| 254 |
-
"key_contribution": key_contribution(
|
| 255 |
"novelty": novelty(section, clean(match.group("title")), annotation),
|
| 256 |
-
"impact": impact(
|
| 257 |
"signal": signal_text,
|
| 258 |
"signal_strength": signal_strength,
|
| 259 |
"source_readme": "README.md",
|
| 260 |
"source_line": str(line_number),
|
| 261 |
"source_url": f"{SOURCE_URL}#L{line_number}",
|
| 262 |
"date_added": FIRST_SEEN.get(url, ""),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
}
|
| 264 |
)
|
| 265 |
|
|
@@ -269,7 +495,7 @@ def iter_rows(readme_path: Path = README) -> list[dict[str, str]]:
|
|
| 269 |
return rows
|
| 270 |
|
| 271 |
|
| 272 |
-
def write_outputs(rows: list[dict[str, str]], csv_path: Path, jsonl_path: Path) -> None:
|
| 273 |
csv_path.parent.mkdir(parents=True, exist_ok=True)
|
| 274 |
with csv_path.open("w", encoding="utf-8", newline="") as handle:
|
| 275 |
writer = csv.DictWriter(handle, fieldnames=FIELDS, lineterminator="\n")
|
|
@@ -281,16 +507,31 @@ def write_outputs(rows: list[dict[str, str]], csv_path: Path, jsonl_path: Path)
|
|
| 281 |
handle.write(json.dumps(row, ensure_ascii=False, sort_keys=False))
|
| 282 |
handle.write("\n")
|
| 283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
|
| 285 |
def check_outputs(rows: list[dict[str, str]]) -> int:
|
| 286 |
with TemporaryDirectory() as temp_dir:
|
| 287 |
temp = Path(temp_dir)
|
| 288 |
expected_csv = temp / "resources.csv"
|
| 289 |
expected_jsonl = temp / "resources.jsonl"
|
| 290 |
-
|
|
|
|
| 291 |
|
| 292 |
failures = []
|
| 293 |
-
for expected, actual in [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
if not actual.exists():
|
| 295 |
failures.append(f"{actual.relative_to(ROOT)} is missing")
|
| 296 |
continue
|
|
@@ -314,8 +555,11 @@ def main() -> int:
|
|
| 314 |
if args.check:
|
| 315 |
return check_outputs(rows)
|
| 316 |
|
| 317 |
-
write_outputs(rows, CSV_PATH, JSONL_PATH)
|
| 318 |
-
print(
|
|
|
|
|
|
|
|
|
|
| 319 |
return 0
|
| 320 |
|
| 321 |
|
|
|
|
| 17 |
README = ROOT / "README.md"
|
| 18 |
CSV_PATH = ROOT / "data" / "resources.csv"
|
| 19 |
JSONL_PATH = ROOT / "data" / "resources.jsonl"
|
| 20 |
+
SITE_JSON_PATH = ROOT / "docs" / "assets" / "resources.json"
|
| 21 |
+
AUDIT_PATH = ROOT / "data" / "resource_source_audit.csv"
|
| 22 |
FIRST_SEEN_PATH = ROOT / "data" / "first_seen.json"
|
| 23 |
SOURCE_URL = "https://github.com/ChaoYue0307/awesome-loop-engineering/blob/main/README.md"
|
| 24 |
|
|
|
|
| 61 |
"source_line",
|
| 62 |
"source_url",
|
| 63 |
"date_added",
|
| 64 |
+
"collection",
|
| 65 |
+
"collection_slug",
|
| 66 |
+
"user_goal",
|
| 67 |
+
"lifecycle_stages",
|
| 68 |
+
"audience",
|
| 69 |
+
"evidence_class",
|
| 70 |
+
"source_status",
|
| 71 |
+
"canonical_url",
|
| 72 |
+
"source_title",
|
| 73 |
+
"source_description",
|
| 74 |
+
"github_repo",
|
| 75 |
+
"github_stars",
|
| 76 |
+
"github_forks",
|
| 77 |
+
"github_license",
|
| 78 |
+
"github_updated_at",
|
| 79 |
+
"arxiv_id",
|
| 80 |
+
"audited_at",
|
| 81 |
]
|
| 82 |
|
| 83 |
+
SITE_FIELDS = [
|
| 84 |
+
"row_id",
|
| 85 |
+
"title",
|
| 86 |
+
"url",
|
| 87 |
+
"canonical_url",
|
| 88 |
+
"annotation",
|
| 89 |
+
"resource_type",
|
| 90 |
+
"collection",
|
| 91 |
+
"user_goal",
|
| 92 |
+
"section",
|
| 93 |
+
"section_slug",
|
| 94 |
+
"lifecycle_stages",
|
| 95 |
+
"audience",
|
| 96 |
+
"evidence_class",
|
| 97 |
+
"signal_strength",
|
| 98 |
+
"source_status",
|
| 99 |
+
"github_stars",
|
| 100 |
+
"date_added",
|
| 101 |
+
]
|
| 102 |
+
|
| 103 |
+
COLLECTIONS = {
|
| 104 |
+
"Concept Guides": ("Learn", "Understand the field and its boundaries."),
|
| 105 |
+
"Start Here": ("Learn", "Understand the field and its boundaries."),
|
| 106 |
+
"Research Foundations": ("Learn", "Understand the field and its boundaries."),
|
| 107 |
+
"Pattern Library": ("Design", "Specify a loop contract and operating pattern."),
|
| 108 |
+
"Core Loop Primitives": ("Design", "Specify a loop contract and operating pattern."),
|
| 109 |
+
"Agent Workflow Patterns": ("Design", "Specify a loop contract and operating pattern."),
|
| 110 |
+
"Official Runtime Guides": ("Build", "Choose runtimes, tools, and delegation surfaces."),
|
| 111 |
+
"Coding-Agent Loop Systems": ("Build", "Choose runtimes, tools, and delegation surfaces."),
|
| 112 |
+
"Orchestration And Multi-Agent Delegation": ("Build", "Choose runtimes, tools, and delegation surfaces."),
|
| 113 |
+
"State, Memory, And Context Persistence": ("Persist", "Carry context, state, and receipts across runs."),
|
| 114 |
+
"Verification And Feedback Gates": ("Verify", "Gate progress with tests, evals, and evidence."),
|
| 115 |
+
"Benchmarks And Evaluation": ("Verify", "Gate progress with tests, evals, and evidence."),
|
| 116 |
+
"Securing Unattended Loops": ("Govern", "Bound permissions, cost, failure, and escalation."),
|
| 117 |
+
"Operations Playbooks": ("Govern", "Bound permissions, cost, failure, and escalation."),
|
| 118 |
+
"Critiques, Risks, And Limitations": ("Govern", "Bound permissions, cost, failure, and escalation."),
|
| 119 |
+
"Templates And Patterns": ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."),
|
| 120 |
+
"Examples And Schema": ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."),
|
| 121 |
+
"Community Gallery": ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."),
|
| 122 |
+
"Adjacent Awesome Lists": ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."),
|
| 123 |
+
"Discovery And Distribution": ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."),
|
| 124 |
+
"Roadmap And Discussion": ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."),
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
COLLECTION_IMPACT = {
|
| 128 |
+
"Learn": "understand the evidence, vocabulary, and lineage behind recurring agent systems",
|
| 129 |
+
"Design": "turn a recurring-agent idea into an explicit loop contract",
|
| 130 |
+
"Build": "choose an implementation surface for repeatable agent work",
|
| 131 |
+
"Persist": "carry context, state, and receipts across runs and failures",
|
| 132 |
+
"Verify": "measure progress and gate completion with repeatable evidence",
|
| 133 |
+
"Govern": "bound risk before recurring or unattended execution",
|
| 134 |
+
"Apply": "reuse a concrete artifact or connect it to the wider ecosystem",
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
SECTION_STAGE_DEFAULTS = {
|
| 138 |
+
"Concept Guides": ["whole-loop"],
|
| 139 |
+
"Start Here": ["whole-loop"],
|
| 140 |
+
"Pattern Library": ["whole-loop"],
|
| 141 |
+
"Research Foundations": ["whole-loop"],
|
| 142 |
+
"Official Runtime Guides": ["workspace", "context", "delegation", "state"],
|
| 143 |
+
"Agent Workflow Patterns": ["delegation", "verification"],
|
| 144 |
+
"Coding-Agent Loop Systems": ["workspace", "delegation", "verification", "state"],
|
| 145 |
+
"Verification And Feedback Gates": ["verification"],
|
| 146 |
+
"Securing Unattended Loops": ["workspace", "budget", "escalation"],
|
| 147 |
+
"State, Memory, And Context Persistence": ["context", "state"],
|
| 148 |
+
"Orchestration And Multi-Agent Delegation": ["delegation", "state"],
|
| 149 |
+
"Benchmarks And Evaluation": ["verification"],
|
| 150 |
+
"Operations Playbooks": ["trigger", "intake", "budget", "escalation", "exit"],
|
| 151 |
+
"Critiques, Risks, And Limitations": ["budget", "escalation", "exit"],
|
| 152 |
+
"Templates And Patterns": ["whole-loop"],
|
| 153 |
+
"Examples And Schema": ["whole-loop"],
|
| 154 |
+
"Community Gallery": ["whole-loop"],
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
STAGE_RULES = [
|
| 158 |
+
("objective", r"\bobjective(?:s)?\b|\bgoal(?:s)?\b|success criteria"),
|
| 159 |
+
("trigger", r"\btrigger(?:s|ed)?\b|\bschedul(?:e|ed|ing)\b|\bcadence\b|\bcron\b|\bevent-driven\b"),
|
| 160 |
+
("intake", r"\bintake\b|\bqueue(?:s)?\b|\bdiscover(?:y|s|ed)?\b|\btriage\b|\bissue(?:s)?\b"),
|
| 161 |
+
("workspace", r"\bworkspace(?:s)?\b|\bworktree(?:s)?\b|\bsandbox(?:es|ed|ing)?\b|\bpermission(?:s)?\b|\btool(?:s)?\b"),
|
| 162 |
+
("context", r"\bcontext\b|\bmemory\b|\bmemories\b|\bretrieval\b|\bdocument(?:s)?\b"),
|
| 163 |
+
("delegation", r"\bdelegat(?:e|es|ed|ion)\b|\bmulti-agent\b|\bsubagent(?:s)?\b|\bhandoff(?:s)?\b|\borchestrat(?:e|es|ed|ion|or|ors)\b"),
|
| 164 |
+
("verification", r"\bverif(?:y|ies|ied|ication)\b|\beval(?:s|uation)?\b|\btest(?:s|ed|ing)?\b|\bbenchmark(?:s)?\b|\bgrader(?:s)?\b|\bcritic(?:s)?\b"),
|
| 165 |
+
("state", r"\bstate(?:ful)?\b|\bpersist(?:s|ed|ence|ent)?\b|\bcheckpoint(?:s|ed|ing)?\b|\breplay\b|\breceipt(?:s)?\b"),
|
| 166 |
+
("budget", r"\bbudget(?:s)?\b|\bcost(?:s)?\b|\btoken(?:s)?\b|\bretr(?:y|ies)\b|\btimeout(?:s)?\b"),
|
| 167 |
+
("escalation", r"\bescalat(?:e|es|ed|ion)\b|\bhuman(?:-in-the-loop)?\b|\bapproval(?:s)?\b|\bhandoff\b"),
|
| 168 |
+
("exit", r"\bexit\b|\bstop(?:s|ped|ping)?\b|\bcompletion\b|\bdone\b|\btermination\b"),
|
| 169 |
+
]
|
| 170 |
+
|
| 171 |
+
OFFICIAL_DOC_DOMAINS = {
|
| 172 |
+
"learn.chatgpt.com",
|
| 173 |
+
"code.claude.com",
|
| 174 |
+
"docs.anthropic.com",
|
| 175 |
+
"docs.github.com",
|
| 176 |
+
"developers.openai.com",
|
| 177 |
+
"modelcontextprotocol.io",
|
| 178 |
+
"opentelemetry.io",
|
| 179 |
+
"openai.github.io",
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
SECTION_IMPACT = {
|
| 183 |
"Concept Guides": "Clarifies the scope, vocabulary, and boundaries of Loop Engineering so the list does not drift into generic agent material.",
|
| 184 |
"Start Here": "Gives readers the origin story and first-principles framing for the new AI/coding-agent use of Loop Engineering.",
|
|
|
|
| 280 |
return "local_path", ""
|
| 281 |
|
| 282 |
|
| 283 |
+
def load_audit() -> dict[str, dict[str, str]]:
|
| 284 |
+
if not AUDIT_PATH.exists():
|
| 285 |
+
return {}
|
| 286 |
+
with AUDIT_PATH.open(encoding="utf-8", newline="") as handle:
|
| 287 |
+
return {row["url"]: row for row in csv.DictReader(handle)}
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
AUDIT_BY_URL = load_audit()
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
def key_contribution(annotation: str) -> str:
|
| 294 |
+
return clean(annotation).rstrip(".") + "."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
|
| 296 |
|
| 297 |
def novelty(section: str, title: str, annotation: str) -> str:
|
| 298 |
if section == "Concept Guides":
|
| 299 |
+
lens = "Repository-native artifact that makes an otherwise informal practice concrete and reusable."
|
| 300 |
+
return f"{lens} Resource-specific angle: {key_contribution(annotation)}"
|
| 301 |
|
| 302 |
text = f"{title} {annotation}".lower()
|
| 303 |
for pattern, phrase in NOVELTY_RULES:
|
| 304 |
if re.search(pattern, text):
|
| 305 |
+
return f"{phrase} Resource-specific angle: {key_contribution(annotation)}"
|
| 306 |
|
| 307 |
if section in {"Concept Guides", "Templates And Patterns", "Examples And Schema"}:
|
| 308 |
+
lens = "Repository-native artifact that makes an otherwise informal practice concrete and reusable."
|
| 309 |
+
elif section == "Research Foundations":
|
| 310 |
+
lens = "Connects Loop Engineering to prior agent-loop and feedback-loop research."
|
| 311 |
+
else:
|
| 312 |
+
lens = SECTION_NOVELTY.get(section, "Contributes a distinct loop-engineering angle beyond a generic agent resource.")
|
| 313 |
+
return f"{lens} Resource-specific angle: {key_contribution(annotation)}"
|
| 314 |
|
| 315 |
|
| 316 |
+
def collection_for(section: str) -> tuple[str, str]:
|
| 317 |
+
return COLLECTIONS.get(section, ("Apply", "Reuse, adapt, and contribute concrete loop artifacts."))
|
| 318 |
|
| 319 |
|
| 320 |
+
def lifecycle_stages(section: str, title: str, annotation: str) -> str:
|
| 321 |
+
text = f"{title} {annotation}".lower()
|
| 322 |
+
stages = [stage for stage, pattern in STAGE_RULES if re.search(pattern, text)]
|
| 323 |
+
if not stages:
|
| 324 |
+
stages = SECTION_STAGE_DEFAULTS.get(section, ["whole-loop"])
|
| 325 |
+
return ";".join(dict.fromkeys(stages))
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
def audience_for(section: str, resource_type: str) -> str:
|
| 329 |
+
audiences: list[str] = []
|
| 330 |
+
if section in {"Concept Guides", "Start Here"}:
|
| 331 |
+
audiences.append("newcomer")
|
| 332 |
+
if resource_type in {"Docs", "Tool", "Pattern", "Template"}:
|
| 333 |
+
audiences.append("builder")
|
| 334 |
+
if resource_type in {"Paper", "Benchmark"}:
|
| 335 |
+
audiences.extend(["researcher", "evaluator"])
|
| 336 |
+
if section in {"Securing Unattended Loops", "Operations Playbooks", "Critiques, Risks, And Limitations"}:
|
| 337 |
+
audiences.extend(["operator", "security"])
|
| 338 |
+
if section in {"Verification And Feedback Gates", "Benchmarks And Evaluation"}:
|
| 339 |
+
audiences.append("evaluator")
|
| 340 |
+
if section in {"Templates And Patterns", "Examples And Schema", "Community Gallery"}:
|
| 341 |
+
audiences.extend(["builder", "operator"])
|
| 342 |
+
return ";".join(dict.fromkeys(audiences or ["builder"]))
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
def evidence_class(section: str, resource_type: str, domain: str, url_kind: str) -> str:
|
| 346 |
if url_kind != "external":
|
| 347 |
+
return "repository-native"
|
| 348 |
+
if resource_type == "Benchmark":
|
| 349 |
+
return "benchmark"
|
| 350 |
+
if resource_type == "Docs" and (section == "Official Runtime Guides" or domain in OFFICIAL_DOC_DOMAINS):
|
| 351 |
+
return "official-documentation"
|
| 352 |
if domain == "arxiv.org":
|
| 353 |
+
return "research-preprint"
|
| 354 |
+
if domain == "github.com" and resource_type == "Tool":
|
| 355 |
+
return "source-implementation"
|
| 356 |
+
return {
|
| 357 |
+
"Paper": "research-paper",
|
| 358 |
+
"Docs": "technical-documentation",
|
| 359 |
+
"Tool": "implementation",
|
| 360 |
+
"Pattern": "operational-pattern",
|
| 361 |
+
"Template": "reusable-artifact",
|
| 362 |
+
"Blog": "practitioner-analysis",
|
| 363 |
+
"Critique": "risk-analysis",
|
| 364 |
+
"List": "curated-index",
|
| 365 |
+
}.get(resource_type, "curated-source")
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
def impact(collection: str, title: str) -> str:
|
| 369 |
+
goal = COLLECTION_IMPACT.get(collection, "apply the source to a recurring agent system")
|
| 370 |
+
return f"Gives readers a concrete source in {title} when they need to {goal}."
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
def format_count(value: str) -> str:
|
| 374 |
+
try:
|
| 375 |
+
return f"{int(value):,}"
|
| 376 |
+
except (TypeError, ValueError):
|
| 377 |
+
return ""
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def signal(
|
| 381 |
+
resource_type: str,
|
| 382 |
+
domain: str,
|
| 383 |
+
url_kind: str,
|
| 384 |
+
evidence: str,
|
| 385 |
+
audit: dict[str, str],
|
| 386 |
+
) -> tuple[str, str]:
|
| 387 |
+
status = audit.get("audit_status", "")
|
| 388 |
+
if status in {"broken", "unreachable", "local_missing"}:
|
| 389 |
+
return "The latest source audit could not verify this resource; treat its claims and availability as unverified.", "unverified"
|
| 390 |
+
if url_kind != "external":
|
| 391 |
+
return "Repository-native artifact maintained and validated by this project's checks.", "medium"
|
| 392 |
+
if evidence == "official-documentation":
|
| 393 |
+
return f"Primary official documentation from {domain}; use it for current product or standard behavior.", "high"
|
| 394 |
+
if evidence in {"research-preprint", "research-paper"}:
|
| 395 |
+
arxiv_id = audit.get("arxiv_id", "")
|
| 396 |
+
identifier = f" arXiv:{arxiv_id}" if arxiv_id else ""
|
| 397 |
+
return f"Research source{identifier}; inspect its method and evaluation before treating results as production evidence.", "medium"
|
| 398 |
+
if evidence == "benchmark":
|
| 399 |
+
return "Benchmark or leaderboard source with repeatable tasks or scores; compare systems only after checking setup and scope.", "high"
|
| 400 |
if domain == "github.com":
|
| 401 |
+
stars = format_count(audit.get("github_stars", ""))
|
| 402 |
+
forks = format_count(audit.get("github_forks", ""))
|
| 403 |
+
license_id = audit.get("github_license", "")
|
| 404 |
+
updated = audit.get("github_updated_at", "")[:10]
|
| 405 |
+
facts = []
|
| 406 |
+
if stars:
|
| 407 |
+
facts.append(f"{stars} stars")
|
| 408 |
+
if forks:
|
| 409 |
+
facts.append(f"{forks} forks")
|
| 410 |
+
if license_id:
|
| 411 |
+
facts.append(f"{license_id} license")
|
| 412 |
+
if updated:
|
| 413 |
+
facts.append(f"updated {updated}")
|
| 414 |
+
detail = f" ({'; '.join(facts)})" if facts else ""
|
| 415 |
+
return f"Inspectable GitHub source{detail}; popularity is context, not proof of reliability.", "medium"
|
| 416 |
+
if evidence in {"practitioner-analysis", "risk-analysis", "curated-index"}:
|
| 417 |
+
return f"Contextual source from {domain}; useful for practice signals or boundary conditions, not independent validation.", "contextual"
|
| 418 |
+
return TYPE_SIGNAL.get(resource_type, (f"Curated source from {domain}; verify fit against the linked artifact.", "contextual"))
|
| 419 |
|
| 420 |
|
| 421 |
def iter_rows(readme_path: Path = README) -> list[dict[str, str]]:
|
|
|
|
| 441 |
url_kind, domain = classify_url(url)
|
| 442 |
annotation = clean(match.group("annotation"))
|
| 443 |
resource_type = clean(match.group("resource_type"))
|
|
|
|
| 444 |
row_number = len(rows) + 1
|
| 445 |
+
row_id = f"ale-{row_number:04d}"
|
| 446 |
+
collection, user_goal = collection_for(section)
|
| 447 |
+
audit = AUDIT_BY_URL.get(url, {})
|
| 448 |
+
evidence = evidence_class(section, resource_type, domain, url_kind)
|
| 449 |
+
signal_text, signal_strength = signal(resource_type, domain, url_kind, evidence, audit)
|
| 450 |
rows.append(
|
| 451 |
{
|
| 452 |
+
"row_id": row_id,
|
| 453 |
"section": section,
|
| 454 |
"section_slug": section_slug,
|
| 455 |
"resource_type": resource_type,
|
|
|
|
| 460 |
"domain": domain,
|
| 461 |
"annotation": annotation,
|
| 462 |
"description": annotation,
|
| 463 |
+
"key_contribution": key_contribution(annotation),
|
| 464 |
"novelty": novelty(section, clean(match.group("title")), annotation),
|
| 465 |
+
"impact": impact(collection, clean(match.group("title"))),
|
| 466 |
"signal": signal_text,
|
| 467 |
"signal_strength": signal_strength,
|
| 468 |
"source_readme": "README.md",
|
| 469 |
"source_line": str(line_number),
|
| 470 |
"source_url": f"{SOURCE_URL}#L{line_number}",
|
| 471 |
"date_added": FIRST_SEEN.get(url, ""),
|
| 472 |
+
"collection": collection,
|
| 473 |
+
"collection_slug": slugify(collection),
|
| 474 |
+
"user_goal": user_goal,
|
| 475 |
+
"lifecycle_stages": lifecycle_stages(section, clean(match.group("title")), annotation),
|
| 476 |
+
"audience": audience_for(section, resource_type),
|
| 477 |
+
"evidence_class": evidence,
|
| 478 |
+
"source_status": audit.get("audit_status", "not-audited"),
|
| 479 |
+
"canonical_url": audit.get("final_url", "") or url,
|
| 480 |
+
"source_title": audit.get("source_title", ""),
|
| 481 |
+
"source_description": audit.get("source_description", ""),
|
| 482 |
+
"github_repo": audit.get("github_repo", ""),
|
| 483 |
+
"github_stars": audit.get("github_stars", ""),
|
| 484 |
+
"github_forks": audit.get("github_forks", ""),
|
| 485 |
+
"github_license": audit.get("github_license", ""),
|
| 486 |
+
"github_updated_at": audit.get("github_updated_at", ""),
|
| 487 |
+
"arxiv_id": audit.get("arxiv_id", ""),
|
| 488 |
+
"audited_at": audit.get("retrieved_at", ""),
|
| 489 |
}
|
| 490 |
)
|
| 491 |
|
|
|
|
| 495 |
return rows
|
| 496 |
|
| 497 |
|
| 498 |
+
def write_outputs(rows: list[dict[str, str]], csv_path: Path, jsonl_path: Path, site_json_path: Path) -> None:
|
| 499 |
csv_path.parent.mkdir(parents=True, exist_ok=True)
|
| 500 |
with csv_path.open("w", encoding="utf-8", newline="") as handle:
|
| 501 |
writer = csv.DictWriter(handle, fieldnames=FIELDS, lineterminator="\n")
|
|
|
|
| 507 |
handle.write(json.dumps(row, ensure_ascii=False, sort_keys=False))
|
| 508 |
handle.write("\n")
|
| 509 |
|
| 510 |
+
site_json_path.parent.mkdir(parents=True, exist_ok=True)
|
| 511 |
+
payload = {
|
| 512 |
+
"count": len(rows),
|
| 513 |
+
"resources": [{field: row[field] for field in SITE_FIELDS} for row in rows],
|
| 514 |
+
}
|
| 515 |
+
site_json_path.write_text(
|
| 516 |
+
json.dumps(payload, ensure_ascii=False, separators=(",", ":")) + "\n",
|
| 517 |
+
encoding="utf-8",
|
| 518 |
+
)
|
| 519 |
+
|
| 520 |
|
| 521 |
def check_outputs(rows: list[dict[str, str]]) -> int:
|
| 522 |
with TemporaryDirectory() as temp_dir:
|
| 523 |
temp = Path(temp_dir)
|
| 524 |
expected_csv = temp / "resources.csv"
|
| 525 |
expected_jsonl = temp / "resources.jsonl"
|
| 526 |
+
expected_site_json = temp / "resources.json"
|
| 527 |
+
write_outputs(rows, expected_csv, expected_jsonl, expected_site_json)
|
| 528 |
|
| 529 |
failures = []
|
| 530 |
+
for expected, actual in [
|
| 531 |
+
(expected_csv, CSV_PATH),
|
| 532 |
+
(expected_jsonl, JSONL_PATH),
|
| 533 |
+
(expected_site_json, SITE_JSON_PATH),
|
| 534 |
+
]:
|
| 535 |
if not actual.exists():
|
| 536 |
failures.append(f"{actual.relative_to(ROOT)} is missing")
|
| 537 |
continue
|
|
|
|
| 555 |
if args.check:
|
| 556 |
return check_outputs(rows)
|
| 557 |
|
| 558 |
+
write_outputs(rows, CSV_PATH, JSONL_PATH, SITE_JSON_PATH)
|
| 559 |
+
print(
|
| 560 |
+
f"Wrote {len(rows)} rows to {CSV_PATH.relative_to(ROOT)}, "
|
| 561 |
+
f"{JSONL_PATH.relative_to(ROOT)}, and {SITE_JSON_PATH.relative_to(ROOT)}"
|
| 562 |
+
)
|
| 563 |
return 0
|
| 564 |
|
| 565 |
|
scripts/verify_urls.py
CHANGED
|
@@ -10,6 +10,7 @@ from __future__ import annotations
|
|
| 10 |
import argparse
|
| 11 |
import concurrent.futures as futures
|
| 12 |
import re
|
|
|
|
| 13 |
import sys
|
| 14 |
import time
|
| 15 |
import urllib.error
|
|
@@ -20,6 +21,18 @@ from pathlib import Path
|
|
| 20 |
URL_RE = re.compile(r'https?://[^\s)\]}>"]+')
|
| 21 |
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
def iter_urls(paths: list[Path]) -> list[str]:
|
| 24 |
urls: set[str] = set()
|
| 25 |
for path in paths:
|
|
@@ -37,6 +50,11 @@ def iter_urls(paths: list[Path]) -> list[str]:
|
|
| 37 |
|
| 38 |
|
| 39 |
def check_url(url: str, timeout: float, attempts: int) -> tuple[bool, str]:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
last_error = "unknown"
|
| 41 |
|
| 42 |
for attempt in range(1, attempts + 1):
|
|
@@ -47,7 +65,7 @@ def check_url(url: str, timeout: float, attempts: int) -> tuple[bool, str]:
|
|
| 47 |
headers={"User-Agent": "awesome-loop-engineering-url-checker"},
|
| 48 |
)
|
| 49 |
try:
|
| 50 |
-
with
|
| 51 |
return response.status < 400, f"{response.status} {method}"
|
| 52 |
except urllib.error.HTTPError as error:
|
| 53 |
if error.code in {401, 403, 405, 406, 418, 429, 999}:
|
|
|
|
| 10 |
import argparse
|
| 11 |
import concurrent.futures as futures
|
| 12 |
import re
|
| 13 |
+
import ssl
|
| 14 |
import sys
|
| 15 |
import time
|
| 16 |
import urllib.error
|
|
|
|
| 21 |
URL_RE = re.compile(r'https?://[^\s)\]}>"]+')
|
| 22 |
|
| 23 |
|
| 24 |
+
class RedirectHandler(urllib.request.HTTPRedirectHandler):
|
| 25 |
+
"""Follow permanent HTTP 308 redirects on Python versions that omit them."""
|
| 26 |
+
|
| 27 |
+
def http_error_308(self, req, fp, code, msg, headers): # type: ignore[no-untyped-def]
|
| 28 |
+
return self.http_error_302(req, fp, code, msg, headers)
|
| 29 |
+
|
| 30 |
+
def redirect_request(self, req, fp, code, msg, headers, newurl): # type: ignore[no-untyped-def]
|
| 31 |
+
if code == 308 and req.get_method() in {"GET", "HEAD"}:
|
| 32 |
+
code = 307
|
| 33 |
+
return super().redirect_request(req, fp, code, msg, headers, newurl)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
def iter_urls(paths: list[Path]) -> list[str]:
|
| 37 |
urls: set[str] = set()
|
| 38 |
for path in paths:
|
|
|
|
| 50 |
|
| 51 |
|
| 52 |
def check_url(url: str, timeout: float, attempts: int) -> tuple[bool, str]:
|
| 53 |
+
context = ssl._create_unverified_context()
|
| 54 |
+
opener = urllib.request.build_opener(
|
| 55 |
+
urllib.request.HTTPSHandler(context=context),
|
| 56 |
+
RedirectHandler(),
|
| 57 |
+
)
|
| 58 |
last_error = "unknown"
|
| 59 |
|
| 60 |
for attempt in range(1, attempts + 1):
|
|
|
|
| 65 |
headers={"User-Agent": "awesome-loop-engineering-url-checker"},
|
| 66 |
)
|
| 67 |
try:
|
| 68 |
+
with opener.open(request, timeout=timeout) as response:
|
| 69 |
return response.status < 400, f"{response.status} {method}"
|
| 70 |
except urllib.error.HTTPError as error:
|
| 71 |
if error.code in {401, 403, 405, 406, 418, 429, 999}:
|