safishamsi and Claude Opus 4.8
1834b3e703
fix(yaml): handle multi-document streams, gate data YAML, bump cache schema ( #4706 )
...
Three fixes on top of #4706 's YAML extractor:
- Multi-document YAML (`---` separators) returned zero nodes because it used
yaml.safe_load, which accepts only one document; k8s manifests, Helm output,
and CI pipelines (the headline use cases) were silently empty. Use
safe_load_all and give each document a distinct node (labelled by kind+name
for k8s) so two docs in one file do not merge their keys.
- Add a _is_config_yaml gate mirroring extract_json's _is_config_json: a
top-level data array, an OpenAPI/Swagger spec, a JSON-schema-in-YAML, and a
flat all-scalar bundle (i18n) are skipped as data instead of minting up to
500 orphan nodes. A mapping with any nested value, a recognized config name,
or a .github/workflows path is still walked.
- Bump _AST_CACHE_SCHEMA 22 -> 23 (the PR reclassifies .yaml/.yml and adds a
new extractor, so cached YAML must re-extract).
- Tests: multi-doc, data/OpenAPI/array skip, the safe_load ACE guard, and caps.
- Clearer missing-PyYAML hint (pip install pyyaml).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-10-23 15:54:58 +01:00
..
2026-10-13 10:27:02 +01:00
2026-10-20 10:35:23 +01:00
2026-10-16 17:10:31 +01:00
2026-10-16 17:10:31 +01:00
2026-10-12 14:49:28 +01:00
2026-10-16 18:25:28 +01:00
2026-10-12 23:02:50 +01:00
2026-10-13 22:21:43 +01:00
2026-10-12 14:49:28 +01:00
2026-10-16 18:25:28 +01:00
2026-10-22 13:16:25 +01:00
2026-10-16 17:14:07 +01:00
2026-10-13 11:14:16 +01:00
2026-10-22 13:46:54 +01:00
2026-10-20 10:35:24 +01:00
2026-10-13 22:21:48 +01:00
2026-10-13 22:21:48 +01:00
2026-10-13 11:14:16 +01:00
2026-10-13 22:21:48 +01:00
2026-10-13 22:21:48 +01:00
2026-10-13 22:21:48 +01:00
2026-10-13 22:21:43 +01:00
2026-10-12 14:50:32 +01:00
2026-10-13 22:21:48 +01:00
2026-10-12 22:37:55 +01:00
2026-10-16 18:21:28 +01:00
2026-10-13 22:21:43 +01:00
2026-10-20 11:28:07 +01:00
2026-10-12 22:58:40 +01:00
2026-10-20 10:50:37 +01:00
2026-10-14 22:53:26 +01:00
2026-10-22 13:46:54 +01:00
2026-10-23 15:38:48 +01:00
2026-10-16 18:21:28 +01:00
2026-10-14 22:31:57 +01:00
2026-10-13 22:53:44 +01:00
2026-10-12 22:37:54 +01:00
2026-10-13 11:14:22 +01:00
2026-10-16 17:12:53 +01:00
2026-10-22 13:46:54 +01:00
2026-10-13 10:26:57 +01:00
2026-10-13 10:26:57 +01:00
2026-10-16 17:10:31 +01:00
2026-10-16 17:10:31 +01:00
2026-10-12 14:49:28 +01:00
2026-10-13 11:14:16 +01:00
2026-10-14 22:31:57 +01:00
2026-10-22 13:12:56 +01:00
2026-10-12 22:37:54 +01:00
2026-10-12 22:37:54 +01:00
2026-10-22 13:12:56 +01:00
2026-10-12 23:02:44 +01:00
2026-10-12 23:02:50 +01:00
2026-10-16 17:10:31 +01:00
2026-10-21 19:33:01 +01:00
2026-10-16 17:11:41 +01:00
2026-10-21 19:33:10 +01:00
2026-10-13 11:14:16 +01:00
2026-10-20 10:35:23 +01:00
2026-10-20 10:35:22 +01:00
2026-10-23 15:51:09 +01:00
2026-10-20 10:35:22 +01:00
2026-10-20 11:28:04 +01:00
2026-10-16 17:10:31 +01:00
2026-10-20 14:57:06 +01:00
2026-10-12 22:58:40 +01:00
2026-10-23 15:51:09 +01:00
2026-10-22 13:46:52 +01:00
2026-10-13 22:53:44 +01:00
2026-10-22 13:48:14 +01:00
2026-10-13 11:16:15 +01:00
2026-10-22 13:46:53 +01:00
2026-10-22 13:13:03 +01:00
2026-10-13 11:14:16 +01:00
2026-10-14 22:53:26 +01:00
2026-10-14 22:53:26 +01:00
2026-10-20 11:28:03 +01:00
2026-10-23 15:51:09 +01:00
2026-10-22 13:46:54 +01:00
2026-10-20 11:28:05 +01:00
2026-10-12 14:49:34 +01:00
2026-10-22 13:46:54 +01:00
2026-10-13 11:14:30 +01:00
2026-10-13 10:27:02 +01:00
2026-10-20 10:50:36 +01:00
2026-10-12 22:37:54 +01:00
2026-10-12 22:37:55 +01:00
2026-10-20 10:55:51 +01:00
2026-10-12 13:02:22 +01:00
2026-10-16 17:11:42 +01:00
2026-10-12 22:37:54 +01:00
2026-10-16 17:11:41 +01:00
2026-10-13 22:53:44 +01:00
2026-10-12 22:58:40 +01:00
2026-10-20 10:53:04 +01:00
2026-10-16 17:12:53 +01:00
2026-10-20 10:35:37 +01:00
2026-10-13 11:14:16 +01:00
2026-10-21 19:32:46 +01:00
2026-10-22 13:12:57 +01:00
2026-10-22 13:47:04 +01:00
2026-10-20 11:28:03 +01:00
2026-10-16 17:13:49 +01:00
2026-10-20 16:56:09 +01:00
2026-10-16 17:13:54 +01:00
2026-10-12 14:49:29 +01:00
2026-10-20 16:56:09 +01:00
2026-10-20 15:40:39 +01:00
2026-10-16 17:12:42 +01:00
2026-10-22 13:49:38 +01:00
2026-10-22 13:48:29 +01:00
2026-10-22 13:47:26 +01:00
2026-10-13 11:14:16 +01:00
2026-10-20 10:35:25 +01:00
2026-10-13 11:14:16 +01:00
2026-10-12 22:37:54 +01:00
2026-10-22 13:46:54 +01:00
2026-10-12 23:02:50 +01:00
2026-10-14 22:53:26 +01:00
2026-10-12 22:58:40 +01:00
2026-10-23 15:54:58 +01:00