fix(kit): content gates work on a fresh clone; scrubbed ids no longer crash at import #32
CLI skips author-text length
Medium Severity
<!-- DESCRIPTION START -->main() measures the outgoing body with body_chars and passes that single number into check(), and never calls tier_chars() or the tier_chars= argument. P6/P7 then count disclosure and the trailing link block as author text, so the CLI still emits the false over-tier WARNs this file’s own comments say taught people to ignore the gauge.
<!-- DESCRIPTION END -->
<!-- BUGBOT_BUG_ID: 4317fab8-c3c8-435d-9fde-beb55fd7c7ef -->
<!-- LOCATIONS START
skills/taste-check/scripts/platform_gate.py#L549-L561
skills/taste-check/scripts/platform_gate.py#L165-L186
skills/taste-check/scripts/platform_gate.py#L341-L345
LOCATIONS END -->
<details>
<summary>Additional Locations (2)</summary>
skills/taste-check/scripts/platform_gate.py#L165-L186skills/taste-check/scripts/platform_gate.py#L341-L345</details>
<div><a href="https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OjdiZTk5ZWYwLTg0YzMtNGZjYi05MjgwLTEyZDM2MzUwMGNjMyIsImVuY3J5cHRpb25LZXkiOiI2MksyODdFRGRvSDU0RFdwc21WR2xaMG82Y2d5Qm5NV3haLXVpQTNFUnhFIiwiYnJhbmNoIjoic2xpY2UtY29udGVudCIsInJlcG9Pd25lciI6InRvbnlkemkiLCJyZXBvTmFtZSI6InNlY29uZC1icmFpbi1zdGFydGVyLWtpdCIsInByb3ZpZGVyIjoiZ2l0aHViIn19" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/fix-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/fix-in-cursor-light.png"><img alt="Fix in Cursor" width="115" height="28" src="https://cursor.com/assets/images/fix-in-cursor-dark.png"></picture></a> <a href="https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OjdiZTk5ZWYwLTg0YzMtNGZjYi05MjgwLTEyZDM2MzUwMGNjMyIsImVuY3J5cHRpb25LZXkiOiI2MksyODdFRGRvSDU0RFdwc21WR2xaMG82Y2d5Qm5NV3haLXVpQTNFUnhFIiwiYnJhbmNoIjoic2xpY2UtY29udGVudCIsInJlcG9Pd25lciI6InRvbnlkemkiLCJyZXBvTmFtZSI6InNlY29uZC1icmFpbi1zdGFydGVyLWtpdCIsInByTnVtYmVyIjozMiwiY29tbWl0U2hhIjoiZGNhYzUyZDYwNDNjN2ZjMjBkYWY0ZDc3NjBkZWU2NGVkMTVmZjA3YyIsInByb3ZpZGVyIjoiZ2l0aHViIn19" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/fix-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/fix-in-web-light.png"><img alt="Fix in Web" width="99" height="28" src="https://cursor.com/assets/images/fix-in-web-dark.png"></picture></a></div>
<sup>Reviewed by Cursor Bugbot for commit dcac52d6043c7fc20daf4d7760dee64ed15ff07c. Configure here.</sup>
<!-- BUGBOT_REVIEW -->
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
<!-- BUGBOT_FIX_ALL -->
<a href="https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTo1Y2MwMmFiMC1kMjU4LTQyNzAtOWE1MS1lNTMxMGI4ZTdkZmQiLCJlbmNyeXB0aW9uS2V5IjoiejFHck1NVFE0TjdHYXlxXzlUZXdkNXJQcGpLVFFBNmx4Y3hDYzBwU1o5byIsImJyYW5jaCI6InNsaWNlLWNvbnRlbnQiLCJyZXBvT3duZXIiOiJ0b255ZHppIiwicmVwb05hbWUiOiJzZWNvbmQtYnJhaW4tc3RhcnRlci1raXQiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/fix-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/fix-in-cursor-light.png"><img alt="Fix All in Cursor" width="115" height="28" src="https://cursor.com/assets/images/fix-in-cursor-dark.png"></picture></a>
<!-- /BUGBOT_FIX_ALL -->
<!-- BUGBOT_AUTOFIX_REVIEW_FOOTNOTE_BEGIN -->
<sup>❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.</sup>
<!-- BUGBOT_AUTOFIX_REVIEW_FOOTNOTE_END -->
<sup>Reviewed by Cursor Bugbot for commit dcac52d6043c7fc20daf4d7760dee64ed15ff07c. Configure here.</sup>
Real. This arrived while the PR was being merged, so it is closed in a follow-up: the CLI now passes tier_chars= to check(), and test_cli_does_not_count_the_link_block_as_author_text was red without that.
tonydzi
Slice 1 of 4 from #8, which is too large to review as one PR. First because these two gates failed on every fresh install.
Before:
slop_gate.pyreturnedE0-no-sourceand exit 2 for any input. Its adapter died at import onCLAWRUS_TG_ID = -[id], the same placeholder that sits in 13 places in tracked code onmaster.After:
skills/ai-slop/scripts/content_tiers.pyholds the shared limits.platform_gate.pyreads it from the sibling skill by relative path. The 700-line adapter copy is not shipped.-[id]lines became0. A new AST test goes red on that shape in any tracked.py.--degradedlooks for the canonical link in the raw draft, because the footer is stripped from the body first.vanilla_scan.pyandplatform_gate.py.SKILL.mdpoints at the paths these scripts really ship to.master's own CI was red since f5442cb (234 vs 235 skills, stale board). Counts andCONFORMANCE.mdfollow the shelf here.Proof, run on an empty
HOME:Red before the fix:
test_no_python_file_dies_on_a_scrubbed_id(13 lines), and the import crash above.🤖 Generated with Claude Code
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->