266 Commits

Author SHA1 Message Date
nvaldez 86b0dc9948 refactor: simplify violation message format, remove redundant line numbers
- Remove '1:1' prefix from all violation message templates
- Use simple '<code> - <message>' format for frontmatter violations
- Add SPEC clarification: line numbers only included when actually known
- Frontmatter is always at line 1, so '1:1' prefix is redundant

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-24 22:13:37 +02:00
nvaldez 15caca081f fix: use separate violation codes for name and version fields
- Add FML007 for Missing Version Field
- Update FML003 to be specific to Missing Name Field
- Map missing fields to their specific codes (name -> FML003, version -> FML007)
- Add field_to_code mapping in lint_directory for extensibility

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-24 22:02:14 +02:00
nvaldez b12c204c3b feat: add FML violation codes dictionary for frontmatter linter
- Add VIOLATION_CODES dictionary with standardized FML001-FML006 codes
- Add get_violation_message() helper function for template-based messages
- Update validate_skill_name() to return FML codes instead of string codes
- Update lint_directory() to use new FML codes throughout
- Update tests to check for FML codes instead of old string codes
- Update SPEC.md to reference new FML codes
- Fix inline imports in test file (move all imports to top level)
- Remove redundant 'code' field from VIOLATION_CODES entries

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-24 21:59:58 +02:00
nvaldez 5b4899ec68 fmlint tests to increase coverage 2026-09-24 21:46:46 +02:00
nvaldez f6ead1e2e2 skill md linting 2026-09-24 21:38:16 +02:00
nvaldez 10c200b124 bump skill 2026-09-24 15:03:07 +02:00
nvaldez 8730f98b5f fix: resolve ruff violations and failing pytest
- Fixed all 7 Ruff violations (I001, SIM118) across src/ files
- Fixed test_main_applies_packaged_settings by setting max_depth_from_file to 3
- Fixed run_sanity.py to return proper exit codes (0 for pass, 1 for fail)
- Updated table_of_contents.md with new depth setting

Changes:
- src/fiona/__main__.py: sorted imports
- src/run_sanity.py: added sys import, sorted imports, added return values
- src/tests/test_fmlint.py: sorted imports, replaced .keys() with direct iteration
- src/librarian/toc_generator.py: removed trailing whitespace
- src/llm-wiki/fiona-settings.json: max_depth_from_file 2 -> 3
- src/llm-wiki/table_of_contents.md: regenerated with depth 3

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-24 14:59:27 +02:00
nvaldez 67332d16c9 pytest summary not-fixed but mitigated at least 2026-09-24 14:42:35 +02:00
nvaldez fe27904da7 feat: add custom frontmatter linter (fmlint) for md files
- Add src/mdoctor/fmlint.py module with FrontmatterLinter class
- Validate required 'name' and 'version' fields in md file frontmatter
- Support configurable required fields via fiona-settings.json
- AI-friendly violation reporting with file paths and line numbers
- Respect .gitignore and read-only zones (personal/, raw/)
- CLI integration: fiona-assistant fmlint chklint [directory]
- Integrated into run_sanity.py as frontmatter_lint check
- Add comprehensive test suite (24 tests, 87% coverage)
- Update SPEC.md with section 2.1.3
- Update todo.md with completed tasks

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-24 14:20:41 +02:00
nvaldez 7413ac5d9a initial frontmatter linting implem 2026-09-24 14:13:24 +02:00
nvaldez c70433eada TOC Spec 2.7 2026-09-24 11:04:40 +02:00
nvaldez 8e836e91b5 fiona-settings spec 2026-09-24 00:21:38 +02:00
nvaldez 0c2165e590 MD60 fix 2026-09-24 00:16:25 +02:00
nvaldez 0e603ff69e Spec version bumped to 0.11.0 and the log entry appended. 2026-09-24 00:08:26 +02:00
nvaldez 844cce23d7 new SPEC, wiki discovery 2026-09-24 00:03:45 +02:00
nvaldez 6ef6d84cdb SPEC updated 2026-09-24 00:00:06 +02:00
nvaldez 8429f1209d SPEC audit 2026-09-23 23:39:02 +02:00
nvaldez c76fcece33 prevent issue from happening again 2026-09-23 23:30:53 +02:00
nvaldez a2399932af finally ariel happened to me again 2026-09-23 23:27:25 +02:00
nvaldez 49baf73aff finally ariel happened to me 2026-09-23 23:09:38 +02:00
nvaldez cb7c3d8cbd run_sanity tests left failing dues to AI gaslighting 2026-09-23 22:56:48 +02:00
nvaldez e750a3dca9 add todo 2026-09-23 22:41:25 +02:00
nvaldez 057ac8b47b updated sanity 2026-09-23 22:22:23 +02:00
nvaldez 43cb7f34e4 clean up pytests 2026-09-23 22:01:00 +02:00
nvaldez b9e21afa9b Achievement unlocked: Clean Code! 2026-09-23 21:27:11 +02:00
nvaldez f00fa1cc43 Achievement unlocked: Clean Code! 2026-09-23 21:19:33 +02:00
nvaldez 91c363f477 fix ruff violations 2026-09-23 21:03:09 +02:00
nvaldez 83479d81a4 sanity: rprint pretty 2026-09-23 20:59:30 +02:00
nvaldez 51027d9492 sanity: ruff now shows violations in plain text 2026-09-23 20:56:51 +02:00
nvaldez 20663716e9 update docs and md lint fixes 2026-09-23 19:05:39 +02:00
nvaldez 3e9db29af9 update docs and md lint fixes 2026-09-23 19:04:27 +02:00
nvaldez fc0215bbb9 updated documentation 2026-09-23 18:38:44 +02:00
nvaldez 27438f8b97 updated todo list 2026-09-23 18:17:35 +02:00
nvaldez 73dfc01b70 updated spec sheet 2026-09-23 18:12:02 +02:00
nvaldez 067695a79f put toc in agents.md 2026-09-23 17:54:20 +02:00
nvaldez 667a2f49fa sanity fix 2026-09-23 17:02:42 +02:00
nvaldez 2ddc5abee9 llm wiki + sanity fix 2026-09-23 16:38:51 +02:00
nvaldez f013f94984 update todo 2026-09-23 14:24:46 +02:00
nvaldez 691ef60293 update todo 2026-09-23 14:24:27 +02:00
nvaldez 06e120302c update todo 2026-09-23 14:23:31 +02:00
nvaldez 1a6f672bfc update schema 2026-09-23 14:22:03 +02:00
nvaldez e38a05993e update schema 2026-09-23 14:15:19 +02:00
nvaldez 209a3a236f update todo list 2026-09-23 14:03:38 +02:00
nvaldez 760d0023e2 single source of truth for schema 2026-09-23 13:51:33 +02:00
nvaldez bcf995a058 add framework for sanity tests 2026-09-23 13:19:57 +02:00
nvaldez 042a911f93 print help when running fiona as placeholder 2026-09-23 12:38:20 +02:00
nvaldez c59d155d68 toc generator now show file version 2026-09-23 12:24:57 +02:00
nvaldez 8eb52db6e2 toc now has frontmatter 2026-09-23 12:13:38 +02:00
nvaldez 426e123e03 add toc generator 2026-09-23 11:59:53 +02:00
nvaldez 3c45b4a9c8 major refactor 2026-09-23 11:43:02 +02:00