Repository navigation
Conversation
RTsta
marked this pull request as ready for review
September 21, 2026 10:12
This branch has not been deployed
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.
Summary
AGENTS.mdplus nestedAGENTS.mdfiles (Sources/Networking/Core/,Sources/Networking/Modifiers/,NetworkingSampleApp/) and a newCONTRIBUTING.md, so AI coding agents (and human contributors) get accurate, in-repo guidance on this package's architecture constraints, public-API compatibility rules, and build/test/lint commands instead of having to reverse-engineer them from the source.AGENTS.mdfiles from the SwiftPM target's resources (Package.swift) so they don't trigger unhandled-resource warnings.README.mdand the DocC overview (Sources/Networking/Documentation.docc/Documentation.md) in line with the current public API: corrected code samples (DownloadAPIManager/UploadAPIManagerinit,MultipartFormData,stateStream/progressStreamsignatures), documentsNetworkingActorisolation and the lack of shared manager instances, theStatusCodeProcessor.shareddefault, the auth-refresh-manager recursion pitfall, and theinvalidateUrlSession()/setResponseProvider(_:)recovery flow — none of which were previously documented and were only discoverable by reading the implementation.invalidateSession(shouldFinishTasks:)" guidance consistently across the doc comments inDownloadAPIManager.swiftandUploadAPIManager.swift.Why
The docs had drifted from the implementation (stale code samples, undocumented actor isolation and default-processor behavior), which is exactly the kind of gap that causes an agent — or a new contributor — to write plausible-looking code that's actually wrong (e.g. dropping
StatusCodeProcessor.sharedwhen overridingresponseProcessors:, or looping an authorization interceptor into its own refresh call). This PR closes that gap and adds theAGENTS.md/CONTRIBUTING.mdlayer so future agent-assisted changes start from ground truth.Every constraint added to the
AGENTS.md/CONTRIBUTING.mdfiles was verified directly against the source before being written, not just inferred from prior docs.Structure and content were informed by these write-ups on writing effective agent instruction files:
Test plan
swift build— confirm no unhandled-resource warning for the nestedAGENTS.mdfilesswift test/ CI-parity macOS check pass./generate_docs.shif DocC output needs regenerating🤖 Generated with Claude Code