AI-assisted original teaching exercise. Every path and intended policy below is fictional. The packet is a manual match review, not an implemented robots parser or a live crawl test.
A familiar folder name can cover more than the folder
A website owner asks a supplier to restrict a staff section. The proposed path is /staff, and everyone assumes that it means only the directory /staff/. Before accepting the file, list the exact URLs that should and should not match. A rule string that looks plausible is not an acceptance test for the intended scope.
Keep rule applicability separate from the final crawl decision. A real review also needs the fetched file, its host and version, the effective crawler group and any competing rules. This packet supplies only the pattern-to-path comparisons needed to expose a common scope mistake.
Apply the limited matching facts
Google’s documentation describes case-sensitive path matching. A prefix can match beyond a directory boundary; a trailing slash changes the prefix. The supported wildcard * represents zero or more valid characters, while $ marks the end of the URL. Raw UTF-8 rule paths and their corresponding percent-encoded UTF-8 form are canonicalized for comparison. Do not replace those facts with a generic regular-expression or blanket URL-decoding assumption.
Read A through D before approving the directory boundary
A records that /staff matches /staff. B records that the same prefix also matches /staffing. If the owner intended only a directory, B reveals a scope disagreement before any file is uploaded. C uses /staff/ and does not match /staff without its trailing slash. That difference needs an explicit policy decision, not automatic slash repair.
D compares /staff with /Staff. The case differs, so the supplied rule does not match. Do not lowercase saved paths during an audit simply because a spreadsheet makes case-insensitive comparisons convenient.
Retain query, wildcard and encoding cases
E uses /report.pdf$ against /report.pdf?download=1, which does not end at the required boundary. F uses the same rule against /report.pdf and matches. G shows that /a*b can match /ab with zero characters consumed by the wildcard. H keeps /$ limited to the root rather than treating it as a site-wide expression.
I compares the Chinese rule path /帮助 with its corresponding percent-encoded UTF-8 path. J places staff later in a different path; the /staff prefix does not match it. These are original manual examples of the documented semantics, not a complete implementation of percent encoding, reserved-character handling or every crawler’s behaviour.
Write a path-based handover
- Save the exact proposed rule and a table of intended matching and non-matching URLs.
- Preserve case, delimiters, query strings and source encoding in the comparison packet.
- Resolve each mismatch with the policy owner, then review the actual effective group and rule precedence separately.
- Only under exact implementation authority, validate the appropriate real file and observe the permitted release evidence.
A match by itself does not say allow or disallow: that depends on the directive and applicable competing rules. It also does not establish indexing, authentication, private-data protection or a successful crawler request. Never change a frozen rule just to make a teaching example agree with it.
Use the filled matrix honestly
The JSON and field guide contain ten expected applicability judgments. They perform no automated test and retain effectiveCrawlPermission as null. A supplier can use them to state the desired scope before choosing a current parser or authorised test tool. Actual platform behaviour, fetched-file identity and search effects remain separate observations.
Filled evidence and downloads
| Rule | Supplied path | Applies |
|---|---|---|
| /staff | /staff | true |
| /staff | /staffing | true |
| /staff/ | /staff | false |
| /staff | /Staff | false |
| /report.pdf$ | /report.pdf?download=1 | false |
| /report.pdf$ | /report.pdf | true |
| /a*b | /ab | true |
| /$ | /en/ | false |
| /帮助 | /%E5%B8%AE%E5%8A%A9 | true |
| /staff | /elsewhere/staff | false |
Primary evidence
Supporting primary guidance · Supporting passages checked 7 November 2026. Worked inputs and handover steps are original teaching design.