Point the OpenRouter cycle at memo version 3.
Fresh receipts use the new approval IDs. A matching live policy and AppRole skips apply without claiming that approval. A difference fails closed. Assistant: grok Assistant-Session: 01a0e2a1-8058-7553-9999-b7d106c17047
This commit is contained in:
parent
1cd546e77c
commit
53825190ca
5 changed files with 47 additions and 17 deletions
|
|
@ -5,7 +5,7 @@ from datetime import datetime,timezone
|
|||
from urllib.request import Request,build_opener,ProxyHandler,HTTPRedirectHandler
|
||||
ROOT=Path('/home/worsch/railiance-platform')
|
||||
spec=importlib.util.spec_from_file_location('preflight',ROOT/'scripts/approval-client-reader-preflight.py');pre=importlib.util.module_from_spec(spec);spec.loader.exec_module(pre)
|
||||
RECEIPT=ROOT/'docs/evidence/2026-09-15-t03-attended-delivery.json'
|
||||
RECEIPT=ROOT/'docs/evidence/2026-09-27-t03-attended-delivery.json'
|
||||
class NoRedirect(HTTPRedirectHandler):
|
||||
def redirect_request(self,*args,**kwargs):return None
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ if RESUME:RECEIPT=ROOT/'docs/evidence/2026-09-16-t03-resume-attended-delivery.js
|
|||
|
||||
def main(receipt):
|
||||
require(Path.home().parent.name=='.warden-attended-login' and not os.getenv('BAO_TOKEN') and not os.getenv('VAULT_TOKEN'),'attended_reader_required')
|
||||
require(not Path('/home/worsch/secrets-engine/docs/evidence/'+('2026-09-16-t03-resume-exec.json' if RESUME else '2026-09-15-t03-native-execution.json')).exists(),'execution_receipt_requires_reconciliation')
|
||||
require(not Path('/home/worsch/secrets-engine/docs/evidence/'+('2026-09-16-t03-resume-exec.json' if RESUME else '2026-09-27-t03-native-execution.json')).exists(),'execution_receipt_requires_reconciliation')
|
||||
identity=pre.bao('token','lookup','-format=json')['data'];pre.validate_identity(identity)
|
||||
for path,expected in pre.EXPECTED.items():require(sorted(pre.bao('token','capabilities','-format=json',path))==expected,'reader_scope_failed')
|
||||
runtime=Path('/run/user')/str(os.getuid());private(runtime,True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue