I think it should be possible to update the ArchivesSpace API endpoints logic in the agentarchives library without requiring any modifications to the Archivematica code base.
A quick grep on the v1.17.0 code returns these three Python modules:
$ git grep -l 'ArchivesSpaceClient(' -- src/**/*.py
src/MCPClient/lib/clientScripts/dip_generation_helper.py
src/MCPClient/lib/clientScripts/upload_archivesspace.py
src/dashboard/src/components/ingest/views_as.py
That's where the client (ArchivesSpaceClient class) is instantiated.
Let's take for example the first module in this list.
resource = client.find_by_id("archival_objects", "ref_id", ref_id)
Hope this makes sense.