@W-22337832: AI Readiness: 46% → 56% Human | 48% → 61% AI (L1 → L2) - #971
Open
agangisetti-cmyk wants to merge 1 commit into
Open
@W-22337832: AI Readiness: 46% → 56% Human | 48% → 61% AI (L1 → L2)#971agangisetti-cmyk wants to merge 1 commit into
agangisetti-cmyk wants to merge 1 commit into
Conversation
|
Thanks for the contribution! Unfortunately we can't verify the commit author(s): Ajay Gangisetti <a***@A***.i***.s***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated. |
agangisetti-cmyk
force-pushed
the
ai-ready/audit-2026-05-04
branch
from
May 28, 2026 16:54
3a81534 to
a4dfeee
Compare
…data Fixes salesforce#970 - Add .ai/context.md with full monorepo architecture, package dependency chain (axe-core → preset-rules → format → assert → matcher → jest/vitest/wdio), key directories, key files, and 7 non-obvious gotchas - Add .ai/common-tasks.md with task-to-file workflows (add rule presets, debug tests, build browser-lib bundle, bump versions) - Add .ai/patterns.md with coding conventions (async API pattern, SA11Y_ env var flags, TypeScript project references, A11yError pattern) - Add .ai/dependencies.md with runtime requirements and env vars - Add CLAUDE.md thin context file referencing .ai/ files - Add AGENTS.md cross-vendor inline agent orientation - Add innersource.json signalling InnerSource participation - Add .github/ISSUE_TEMPLATE/bug_report.md and feature_request.md - Add .github/pull_request_template.md with acceptance criteria - Add AI_READINESS_REPORT.md (baseline: 46% Human | 48% AI → projected: 56% | 61%) - Add AI Readiness badge to README.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
agangisetti-cmyk
force-pushed
the
ai-ready/audit-2026-05-04
branch
from
May 28, 2026 17:29
a4dfeee to
28e1209
Compare
navateja-alagam
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #970
AI Readiness: salesforce/sa11y
46% Human | 48% AI — L1 Reactive
Executive Summary
Status: Below InnerSource standards — strong security and development process, but missing key discoverability, governance, and AI context infrastructure.
Key Findings:
.ai/context files; Claude Code and all cross-vendor agents start coldTop 3 Actions (~3 hrs of work):
.ai/context.mdwith package architecture, key files, and common tasks (+~8% AI)CLAUDE.md+AGENTS.mdfor tool compatibility (+~5% Human & AI)innersource.json+ issue/PR templates to signal InnerSource readiness (+~4% Human)Scores at a Glance
Repository Type: code-monorepo —
lerna.json+ Yarnworkspaces, 11 packages underpackages/Detected Stack(s): JavaScript/TypeScript
Enterprise context: supply-chain guard is active — fixes avoid
.pre-commit-config.yaml,.husky/, and third-party GitHub Actions.Category Health:
Note: 14 checks marked not applicable for this repository type (platform API checks, LLM checks, no external contract surface).
📋 Category Breakdown (8 categories)
Weights: Documentation (H: 22%, AI: 28%) | Contributor Experience (H: 18%, AI: 22%) | Governance (H: 15%, AI: 8%) | DevProcess (H: 13%, AI: 24%) | Communication (H: 13%, AI: 4%) | Discoverability (H: 8%, AI: 3%) | Community (H: 7%, AI: 7%) | Security (H: 4%, AI: 4%)
Recommendations
Critical Issues
ARCHITECTURE.mddescribing monorepo package layout, data flow (axe-core → preset-rules → assert → jest/vitest/wdio), and entry points — InnerSource patternTRUSTED_COMMITTERS.mdor "Who We Are" README section with names and responsibilities — InnerSource pattern.ai/context.mdwith package overview, common tasks, key file map, and gotchas so AI agents can orient immediatelyImportant
.github/ISSUE_TEMPLATE/bug_report.mdandfeature_request.md.github/pull_request_template.mdwith description, testing, and checklist fieldsinnersource.json* @salesforce/sa11y-reviewers) — add per-package rules for finer-grained ownershipinnersource.json— add withname,description,trusted_committers, andcommunicationfields.nvmrcor.node-version) and no env vars documented —enginesfield inpackage.jsonis present but not surfaced in docsNice to Have (8 items)
.ai/common-tasks.mdpackage.jsonis private (monorepo root) — ensure individual package manifests carry semver versions; lerna does this but pre-check can't confirm from root alonedocs/adr/or link to an external decision logTrusted CommitterandContributorrolesCONTRIBUTORS.mdor.all-contributorsrcPath to L2 Contributive
Current: 48% AI | 46% Human
Need: L2 Contributive = 55%
Gap: 7% AI | 9% Human
To Reach 55% Human (~2 hrs of work)
.ai/context.md+CLAUDE.md(DOC-008, DOC-009)innersource.json(DIS-003)After these actions: ~55% Human → L2 Contributive ✅
To Reach 55% AI (~2.5 hrs of work)
.ai/context.mdwith full architecture (DOC-008, DOC-009)CLAUDE.md+AGENTS.md(DOC-009)innersource.json+ templates (DIS-003, CX-001, CX-002)After these actions: ~55% AI → L2 Contributive ✅
🤖 AI Tool Compatibility
Legend: ✅ Full support |⚠️ Partial support | ❌ No support
🔍 Detailed Check Results (66 core checks)
Documentation (7/13 passing — 62% Human / 52% AI)
💡 Add a quick-start snippet and prerequisites section to README
💡 Add a "Getting Help" section to README linking to GitHub Issues or Discussions
💡 Create ARCHITECTURE.md describing the package dependency chain: axe-core → preset-rules → matcher → assert → jest/vitest/wdio
💡 Add
.ai/context.mdwith package map, common tasks, and gotchas; add CLAUDE.md referencing it💡 Add task-to-file mappings (e.g.,
`packages/jest/src/index.ts` — entry point for Jest integration) to CONTRIBUTING or .ai/common-tasks.mdenginesfield present but not surfaced in docs💡 Add
.nvmrcpinning Node version and a "Prerequisites" section in README💡 Add a section explaining how packages depend on each other (e.g.,
@sa11y/common→@sa11y/assert→@sa11y/jest)💡 Add a brief directory map table to README or ARCHITECTURE.md
Contributor Experience (4/9 passing — 39% Human / 40% AI)
.github/ISSUE_TEMPLATE/directory💡 Add bug_report.md and feature_request.md issue templates
.github/pull_request_template.md💡 Add a PR template with description, test plan, and checklist
💡 Add a "good first issue" label guide to CONTRIBUTING.md
💡 Consider adding a
.devcontainer/for one-command setup💡 Add "We aim to respond within 5 business days" to CONTRIBUTING.md
examples/directory💡 Add an
examples/directory with minimal usage examples for Jest and Vitest integrationsGovernance & Roles (2/8 passing — 19% Human / 18% AI)
💡 Add TRUSTED_COMMITTERS.md listing names and responsibilities
💡 Add a governance statement to README or innersource.json
docs/adr/directory or external ADR link💡 Add
docs/adr/with numbered records or link to a decision log💡 Add Trusted Committer and Contributor role descriptions to CONTRIBUTING.md
* @salesforce/sa11y-reviewers(wildcard-only)💡 Add per-package rules (e.g.,
packages/jest/ @salesforce/sa11y-reviewers)💡 Document which areas welcome contributions, which are off-limits, and the proposal process
#ECCN: Open Sourceand#Open Source Workflowbut no team contact💡 Add
#Team:and#Email:comments to CODEOWNERSDevelopment Process (8/12 passing — 65%)
.github/workflows/(CI + release)💡 Add a brief "Release Process" note to CONTRIBUTING.md
package.jsonhas no version (private monorepo); individual packages have versions via lerna💡 Verify
lerna.jsonversion field is kept up to date (currently8.0.27)💡 Add a test writing guide section to CONTRIBUTING.md
💡 Document branch protection requirements in CONTRIBUTING.md
.devcontainer/or local verify script💡 Consider adding a
yarn verifyscript that runs build + test to confirm setup💡 Add naming conventions (e.g.,
*.spec.ts) and a minimal example test to CONTRIBUTING.mdlint:fixcommand present@tsconfig/node16/tsconfig.json; not strict💡 Consider enabling
"strict": truein tsconfig.json for stronger type safetytest:watchandbuild:watchpresent; no standalone typecheck command💡 Add a
typecheckscript (tsc --noEmit) for fast type checking without build💡 Verify CI workflow explicitly invokes
yarn lint,yarn test, andtsc --noEmitCommunication & Transparency (1/3 passing — 38%)
💡 Add a specific communication channel (GitHub Discussions, Slack
#sa11y, or forum) to README💡 Add a "Support" section to README linking to GitHub Issues for questions
Discoverability (1/2 passing — 50%)
innersource.json💡 Add
innersource.jsonwith name, description, trusted_committers, and communication fieldshomepageset in package.jsonCommunity Health (1/4 passing — 20%)
💡 Add a support commitment (e.g., "best-effort support") to CONTRIBUTING.md
💡 Add CONTRIBUTORS.md or integrate all-contributors bot
💡 Add a welcome workflow in
.github/workflows/welcome.ymlSecurity & Compliance (4/5 passing — 88%)
security@salesforce.comreporting contactyarn.lockcommitted + Snyk automation in CI.gitignoreexists but no sensitive patterns (.env,*.pem,*.key)💡 Add
.env,*.pem,*.key,credentials*patterns to.gitignorenode_modules/or other dependency caches#ECCN: Open SourceLegend: [PASS] ≥80% | [WARN] 40-79% | [FAIL] <40% | [N/A] Not Applicable
Next Steps
Path to L2 Contributive
Quick wins (do these first):
.ai/context.md— describe the package architecture (axe-core → preset-rules → assert → jest/vitest/wdio), key files, and common dev tasks (~60 min, largest single score impact)CLAUDE.md+AGENTS.md— thin wrappers referencing.ai/files (~20 min)salesforce/lwcas a starting point (~20 min)innersource.json— signal InnerSource participation (~10 min)💡 Tip: Run
/ai-ready audit --fixto auto-generate fixes in a PR that closes a tracking issue on merge.Fix Generation Results
Projected Score Impact
Files Modified/Created
Tier 1: Ready to Merge (9 files)
.ai/context.md— Package architecture, dependency chain, key directories, key files, gotchas.ai/common-tasks.md— Task-to-file workflows (add rule preset, debug tests, bump versions).ai/patterns.md— Coding conventions, patterns to follow/avoid.ai/dependencies.md— Runtime requirements, env vars, CI environmentCLAUDE.md— Thin Claude Code context file referencing.ai/filesAGENTS.md— Inline cross-vendor agent orientation (condensed summary + commands)innersource.json— InnerSource metadata (participating: true, trusted committers, issue URL).github/ISSUE_TEMPLATE/bug_report.md— Bug report template with acceptance criteria.github/ISSUE_TEMPLATE/feature_request.md— Feature request template with acceptance criteria.github/pull_request_template.md— PR template with checklist and acceptance criteriaREADME.md— Added AI Readiness badge (L2, 56% Human | 61% AI)Tier 3: Not Generated (needs human authorship)
TRUSTED_COMMITTERS.mdwith names and responsibilitiesdocs/adr/with numbered decision records or link to external ADR registrychannel— Replace TODO placeholder with your team's verified Slack channel name