WIP: stage all uncommitted work — sprints 46-221, graduation headers, specialist fleet, test steps 909-1988
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
9
example_projects/rust_metrics_agent/PROJECT_META.md
Normal file
9
example_projects/rust_metrics_agent/PROJECT_META.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# rust_metrics_agent
|
||||
|
||||
- stack: rust
|
||||
- validator: cargo test
|
||||
- common_failure_modes: parse failures, error propagation, type mismatch
|
||||
|
||||
## Scope
|
||||
|
||||
Small representative project for training data generation.
|
||||
7
example_projects/rust_metrics_agent/TASKS.md
Normal file
7
example_projects/rust_metrics_agent/TASKS.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Task Seeds: rust_metrics_agent
|
||||
|
||||
src/main.rs
|
||||
|
||||
## Validator
|
||||
|
||||
`cargo test`
|
||||
12
example_projects/rust_metrics_agent/src/main.rs
Normal file
12
example_projects/rust_metrics_agent/src/main.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
fn parse_metric(line: &str) -> Option<(&str, i64)> {
|
||||
let parts: Vec<&str> = line.split('=').collect();
|
||||
if parts.len() != 2 {
|
||||
return None;
|
||||
}
|
||||
let value = parts[1].parse::<i64>().ok()?;
|
||||
Some((parts[0], value))
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _ = parse_metric("requests=10");
|
||||
}
|
||||
Reference in New Issue
Block a user