Add the M1 milestone tree under poc/ (m1_hardware + poc_a apps, shared common components, evidence schema). Merges the plan's 'm1 baseline+fixes' and 'wifi provisioning' batches: the poc/ tree is entirely untracked and both concerns share files. M1 hardware baseline: - landscape ST7305 RIP display via LVGL I1 driver - TF-card status log: JSONL telemetry with CRC32C per line; append buffer widened to line[640] after the 512-byte truncation defect (payload ~550B with real values) was root-caused on-device - PCF85063 RTC read, SHTC3 temperature/humidity with plausibility checks, KEY input with short/long/portal press thresholds - boot-time partition identity check and M1-002 boot record fields (device_id, image_sha256, reset_reason, services status) WiFi web provisioning: - softAP portal Frame-Setup-xxxx with HTTP endpoints /scan, /connect, /clear; httpd handlers never call httpd_stop (deadlock hazard) — a 1s monitor task executes stop/start/connect actions - credentials persist to system_fs wifi.json (littlefs) per the SEC-010 development exception (plaintext, documented in _doc) - fallback: 5 disconnects without IP or 60s no-IP -> stop retry, portal returns; GOT_IP tears the AP down - KEY >=3s hold requests the portal; prov start/stop/status console commands; ap_active/ap_mode_requested surfaces in status JSON/text Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
88 lines
2.8 KiB
JSON
88 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://frame.local/schemas/poc-evidence-v1.json",
|
|
"title": "Frame architecture gate evidence manifest",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"schema_version",
|
|
"gate",
|
|
"run_id",
|
|
"verdict",
|
|
"started_at",
|
|
"finished_at",
|
|
"source",
|
|
"platform",
|
|
"artifacts"
|
|
],
|
|
"properties": {
|
|
"schema_version": { "const": 1 },
|
|
"gate": { "enum": ["A", "B", "C", "D", "E", "M1"] },
|
|
"run_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
"verdict": { "enum": ["PASS", "FAIL", "BLOCKED"] },
|
|
"started_at": { "type": "string", "format": "date-time" },
|
|
"finished_at": { "type": "string", "format": "date-time" },
|
|
"source": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["repository_commit", "dirty", "project_document_sha256"],
|
|
"properties": {
|
|
"repository_commit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
"dirty": { "type": "boolean" },
|
|
"project_document_sha256": { "$ref": "#/$defs/sha256" }
|
|
}
|
|
},
|
|
"platform": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["idf_tag", "compiler", "target", "sdkconfig_sha256"],
|
|
"properties": {
|
|
"idf_tag": { "const": "v6.0.2" },
|
|
"idf_commit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
"compiler": { "type": "string", "minLength": 1 },
|
|
"target": { "const": "esp32s3" },
|
|
"sdkconfig_sha256": { "$ref": "#/$defs/sha256" },
|
|
"loader_commit": { "type": ["string", "null"], "pattern": "^[0-9a-f]{40}$" }
|
|
}
|
|
},
|
|
"hardware": {
|
|
"type": ["object", "null"],
|
|
"additionalProperties": false,
|
|
"required": ["board_id", "board_revision"],
|
|
"properties": {
|
|
"board_id": { "type": "string", "minLength": 1 },
|
|
"board_revision": { "type": "string", "minLength": 1 },
|
|
"display_id": { "type": ["string", "null"] },
|
|
"sd_card_id": { "type": ["string", "null"] },
|
|
"power_fixture_id": { "type": ["string", "null"] }
|
|
}
|
|
},
|
|
"metrics": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": ["number", "integer", "string", "boolean", "null"]
|
|
}
|
|
},
|
|
"artifacts": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["name", "uri", "sha256"],
|
|
"properties": {
|
|
"name": { "type": "string", "minLength": 1 },
|
|
"uri": { "type": "string", "minLength": 1 },
|
|
"sha256": { "$ref": "#/$defs/sha256" }
|
|
}
|
|
}
|
|
},
|
|
"notes": { "type": "string" }
|
|
},
|
|
"$defs": {
|
|
"sha256": {
|
|
"type": "string",
|
|
"pattern": "^[0-9a-f]{64}$"
|
|
}
|
|
}
|
|
} |