Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backlot/fidelity/baseline/slack.json
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
"status": "missing",
"kind": "missing_operation",
"severity": "gap",
"note": "Slack's reference marks it \"only available to Slack workspaces on an Enterprise plan\" and says it removes \"multiple users from a conversation\", with a user token carrying `admin.conversations:write` (read 2026-11-05). No corpus record states an Enterprise organization, so this is a gap rather than an answer about an organization the corpus does not have. Measured against slack.com on 2026-11-05 by `POST`: it answers `not_authed` with no token, `invalid_auth` with a bogus one, and `missing_scope` with `needed` `admin.conversations:write` to a user token whose scopes do not include it, where `admin.conversations.nosuchthing`, a name Slack does not have, answers `unknown_method` with each of those three credentials."
"note": "Slack's reference marks it \"only available to Slack workspaces on an Enterprise plan\" and says it removes \"multiple users from a conversation\", with a user token carrying `admin.conversations:write` (read 2026-11-05). No corpus record states an Enterprise organization, so this is a gap rather than an answer about an organization the corpus does not have. Measured against slack.com on 2026-11-05 by `POST`: it answers `not_authed` with no token, `invalid_auth` with a bogus one, and `missing_scope` with `needed` `admin.conversations:write` to a user token whose scopes do not include it, where `admin.conversations.nosuchthing`, a name Slack does not have, answers `unknown_method` with each of those three credentials. Measured against slack.com on 2026-11-19 by `GET`: it answers `not_authed` with no token and `invalid_auth` with a bogus one."
},
{
"operation": "admin.conversations.linkObjects",
Expand Down
14 changes: 7 additions & 7 deletions backlot/routers/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,13 +980,13 @@ def _register(pairs: list[tuple[bytes, bytes | None]]) -> tuple[dict | None, str
#: :func:`drop_the_end` says.
_METHOD_NAME = re.compile(r"[0-9A-Za-z.]+")
#: The Slack baseline's ``missing`` operations (``backlot.published``): the methods Slack's
#: reference index lists that no route here serves, by name. Measured on 2026-10-20 with no token
#: and with a bogus one, by `GET` and by `POST`, each answered the credential's refusal
#: (`not_authed`, `invalid_auth`) but those :data:`_OTHER_ANSWERS` and
#: :data:`_ANSWERED_BY_ARGUMENTS` hold. Ten that Slack's archived OpenAPI document lists and the
#: index does not, `oauth.token`, three `workflows` ones and six `apps.permissions` ones, real
#: answered `unknown_method` for, as for a name it never had, whatever the credential, one that
#: resolves included.
#: reference index lists that no route here serves, by name. Measured with no token and with a
#: bogus one, by `GET` and by `POST`, each answered the credential's refusal (`not_authed`,
#: `invalid_auth`) but those :data:`_OTHER_ANSWERS` and :data:`_ANSWERED_BY_ARGUMENTS` hold: on
#: 2026-10-20 for an entry with no note, and on the date its note gives for an entry with one.
#: Ten that Slack's archived OpenAPI document lists and the index does not, `oauth.token`, three
#: `workflows` ones and six `apps.permissions` ones, real answered `unknown_method` for, as for a
#: name it never had, whatever the credential, one that resolves included.
_PUBLISHED_NOT_SERVED = frozenset(published.missing_operations("slack"))
#: The answer, where it is not the credential's refusal, of a method no route here serves, and
#: whether a credential sent that does not resolve is refused ahead of it, each also answered so to
Expand Down
2 changes: 1 addition & 1 deletion tests/test_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -4185,7 +4185,7 @@ def test_slack_a_method_amid_what_real_reads_past_is_the_method(
def test_slack_answers_each_published_method_no_route_serves(client):
"""Each method the baseline lists as published and not served, answered as real answered it but
those ``slack._ANSWERED_BY_ARGUMENTS`` leaves to the router (``slack._PUBLISHED_NOT_SERVED``
dates the measurement): with no credential and a bogus one, for a `GET` and a `POST`."""
dates the measurements): with no credential and a bogus one, for a `GET` and a `POST`."""
credentials = (("none", {}), ("bogus", {"Authorization": "Bearer xoxb-not-a-real-token"}))
got, expected = {}, {}
assert {
Expand Down