agentleFS
MicrosoftKnown publishermicrosoft/SynapseML/AGENTS.md

SynapseML

AGENTS.md5.2k starsChanged 2 months agoMITView on GitHub

Use this file for repository-wide rules. Human contributors should start with CONTRIBUTING.md. 1. Resolve the target branch (the PR base, not merely the checked-out feature branch), then use the branch context skill. 2. Read versions from build.sbt and environment.yml. Do not copy version numbers into this shared guide. 3. Use the narrowest relevant repository skill: Scala changes, local setup, and code review. 4. For requests to make one or more issues or PRs "5/5", "200% ready", or merge-ready, use the…

  • Reads credentials

Trending

Quiet since June.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/SynapseML repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/SynapseML

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub (22 times).

On GitHub · 22

17 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

23 rules. About 1 is common, 12 are distinctive, and 10 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this file for repository-wide rules.

    line 3
  2. Very specific:

    Read versions from build.sbt and environment.yml.

    line 11
  3. Distinctive:

    Use the narrowest relevant repository skill: Scala changes, local setup, and code review.

    line 14
  4. Very specific:

    Never edit target/; generated files are overwritten.

    line 24
  5. Very specific:

    Never commit or print credentials, keys, connection strings, or .env files.

    line 25
  6. Distinctive:

    Do not add RDD-based implementations.

    line 26
  7. Distinctive:

    Do not rebase or force-push shared port branches.

    line 28
  8. Very specific:

    Do not add a hand-written __init__.py merely to re-export generated classes.

    line 29
  9. Distinctive:

    Keep existing public JVM signatures and serialized parameter shapes unless a breaking change is explicitly approved.

    line 31
  10. Very specific:

    Ask before changing pipeline.yaml, workflows under .github/workflows/, release tooling, or dependency pins.

    line 34
  11. Distinctive:

    Use the branch context skill for the active target list.

    line 45
  12. Distinctive:

    keep the branch side only for version-driven differences.

    line 52
  13. Very specific:

    All modules depend on core.

    line 79
  14. Distinctive:

    Use the smallest command that proves the change, then expand when the affected surface requires it.

    line 109
  15. Distinctive:

    Add positive, negative, schema, persistence, and end-to-end coverage where the behavior warrants it.

    line 127
  16. Common:

    Do not turn a skip into a pass by embedding a secret.

    line 132
  17. Very specific:

    Use a conventional title: feat:, fix:, test:, docs:, ci:, or chore:.

    line 137
  18. Very specific:

    Write review artifacts directly to reviews/pr-<pr_number>/ and pass that output directory explicitly to review tools.

    line 142
  19. Very specific:

    Before the PR number exists, keep drafts in the session workspace.

    line 145
  20. Very specific:

    Treat GitHub Actions as fast checks and pipeline.yaml as the full build.

    line 151
  21. Distinctive:

    Do not equate green checks with correctness: compare before/after failures, inspect skipped tests, and verify the requested behavior …

    line 153
  22. Distinctive:

    Add only durable, repository-wide guidance that changes an agent's decision.

    line 160
  23. Distinctive:

    Prefer a link to the source of truth over copied commands, versions, or long examples.

    line 161

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

SynapseML agent guide

Use this file for repository-wide rules. Human contributors should start with CONTRIBUTING.md.

Start here

  1. Resolve the target branch (the PR base, not merely the checked-out feature branch), then use the branch context skill.
  2. Read versions from build.sbt and environment.yml. Do not copy version numbers into this shared guide.
  3. Use the narrowest relevant repository skill: Scala changes, local setup, and code review.
  4. For requests to make one or more issues or PRs "5/5", "200% ready", or merge-ready, use the SynapseML PR loop.

Non-negotiable rules

  • Never edit target/; generated files are overwritten.
  • Never commit or print credentials, keys, connection strings, or .env files.
  • Do not add RDD-based implementations. Use DataFrame/Dataset APIs so code works with Spark Connect and managed Spark modes.
  • Do not rebase or force-push shared port branches.
  • Do not add a hand-written __init__.py merely to re-export generated classes; a stale __all__ can hide public APIs.
  • Keep existing public JVM signatures and serialized parameter shapes unless a breaking change is explicitly approved.

Ask before changing pipeline.yaml, workflows under .github/workflows/, release tooling, or dependency pins. These changes affect every branch and require CI evidence.

Branch model

BranchUse it for
masterOrdinary features, fixes, and repository-wide changes
spark<version> port branchesDifferences required specifically by that Spark port

Use the branch context skill for the active target list. Historical remote refs are not active merely because git branch -r lists them. Unqualified branch work covers only active targets.

Land cross-version changes on master; port branches receive them by merging master. When resolving a port-branch merge:

  • keep the branch side only for version-driven differences;
  • take the master side for ordinary fixes;
  • combine both when each changed the same file for a different reason.

Reachability is not proof that a sync preserved content. Compare the merge base, master, and the port branch for every conflicted file, and verify that master additions remain present.

AGENTS.md and CONTRIBUTING.md must stay identical across branches, so neither may name a Spark, Scala, Java, or Python version, or a path containing one. Put branch-only facts in the branch context skill. Every other document — README.md, the website, and module docs — is free to be branch- and version-specific, because nothing requires those to match across branches.

Repository map

ModulePathPurpose
Corecore/SparkML foundations, IO, codegen, AutoML, causal and exploratory tools
Cognitivecognitive/Azure AI and OpenAI service stages
LightGBMlightgbm/Distributed classifier, regressor, and ranker
Vowpal Wabbitvw/VW integration
Deep learningdeep-learning/ONNX Runtime inference
OpenCVopencv/Image transformations

All modules depend on core; deep-learning also depends on opencv.

Each module follows src/main/scala, optional hand-written src/main/python, and src/test/{scala,python}. Follow nearby code before introducing a new pattern.

Scala-first API and code generation

Public SparkML behavior belongs in Scala. Classes mixing in Wrappable generate Python wrappers under target/scala-*/generated/src/python/synapse/ml/.

For a new or changed stage, verify:

  • companion object extends DefaultParamsReadable[Stage];
  • class accepts uid: String and has a random-UID no-arg constructor;
  • Wrappable is present when a Python wrapper is required;
  • SynapseMLLogging is mixed in, logClass(...) is called, and fit/transform is logged;
  • copy(extra) preserves parameters, normally through defaultCopy(extra);
  • transformSchema matches runtime output;
  • save/load and generated wrapper behavior are tested.

Hand-written Python may extend a generated _ClassName wrapper when JVM delegation needs a Python convenience method. Do not move core behavior into Python.

Validation

Use the smallest command that proves the change, then expand when the affected surface requires it. Run SBT with the JDK selected by the local setup skill, not the machine default.

sbt <module>/compile
sbt <module>/Test/compile
sbt "<module>/testOnly fully.qualified.Suite"
sbt <module>/scalastyle <module>/Test/scalastyle
sbt codegen
black --check --extend-exclude 'docs/' .

Black is pinned in pyproject.toml; use that version.

Scala tests extend TestBase. Add positive, negative, schema, persistence, and end-to-end coverage where the behavior warrants it. A helper-only test is not proof that the public transformer path works.

Tests that require Azure credentials should skip when credentials are absent. Do not turn a skip into a pass by embedding a secret. Inspect service tests before running them because some create or delete cloud resources.

Pull requests and CI

  • Use a conventional title: feat:, fix:, test:, docs:, ci:, or chore:.
  • Target master unless the change exists only for a port branch.
  • Resolve active and suppressed review findings; document why any finding is invalid.
  • Write review artifacts directly to reviews/pr-<pr_number>/ and pass that output directory explicitly to review tools. Preserve attempt/round/model filenames, the reviewed commit SHA, and resolution evidence for debugging. Before the PR number exists, keep drafts in the session workspace; their first committed location must be the numbered PR directory, not a flat or task-named folder under reviews/.
  • Trigger Azure validation with /azp run where supported. Branch-specific exceptions are documented in the branch context skill.
  • Treat GitHub Actions as fast checks and pipeline.yaml as the full build.
  • Do not equate green checks with correctness: compare before/after failures, inspect skipped tests, and verify the requested behavior directly.
  • Rebase feature PRs onto the latest target before final validation. Merge master into shared port branches instead of rebasing them.

Keep this file useful

Add only durable, repository-wide guidance that changes an agent's decision. Prefer a link to the source of truth over copied commands, versions, or long examples. Put implementation detail beside the code, contributor process in CONTRIBUTING.md, and branch-specific facts in the branch context skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.