feat: execute stage-one capability modules
This commit is contained in:
parent
0002c0c35a
commit
25d54fd601
21 changed files with 520 additions and 48 deletions
|
|
@ -4,7 +4,7 @@
|
|||
- 书架编号:`SHF-GLW-ELH-ENG-0001`
|
||||
- 项目编号:`HLP-LANG-PROJ-STAGE1-0001`
|
||||
- 父频道:`ICE-CH-HB001`
|
||||
- 当前层级:语言工程运行体已完成;17个人格模块真实API自答与累计门通过;HoloLake产品移植与发布仍未开始
|
||||
- 当前层级:语言工程运行体已完成;17个人格模块真实API自答、19项器官能力执行与累计门通过;HoloLake产品移植与发布仍未开始
|
||||
|
||||
本书架保存 HoloLake 落地工程的项目原型、推理思维、追加式演化史、人格容器合同、
|
||||
编号模块目录、旧零件状态和累计联调顺序。智能电脑由模型型导航 Agent
|
||||
|
|
@ -17,13 +17,14 @@
|
|||
|
||||
- 容器:`HLP-PERSONA-CONTAINER-STAGE1-0001`
|
||||
- 运行入口:`persona-container-runtime/persona_module_runtime.py`
|
||||
- 状态:`READY_17_MODULES_API_VERIFIED`
|
||||
- 状态:`READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED`
|
||||
- 模块:`HLP-LANG-MOD-001` 至 `HLP-LANG-MOD-017`
|
||||
- API:17次真实 `qwen-flash` 自答通过;HTTP按需问答复测通过
|
||||
- API:17次真实 `qwen-flash` 自答通过;19项注册器官操作真实执行并生成能力回执
|
||||
- 累计门:`GATE-HLP-STAGE1-001` 至 `GATE-HLP-STAGE1-017` 全部PASS
|
||||
- 共享认知:TCS shared `revision 3`
|
||||
- 共享认知:TCS shared `revision 4`
|
||||
- 产品边界:语言运行体真实完成不等于HoloLake客户端代码、安装包、部署或备案完成
|
||||
|
||||
模块平时保留CURRENT并休眠;智能电脑查询或人格系统调用时,模块加载共享认知与身份信封,
|
||||
通过模型API举手回答,完成后释放模型资源。确定性器官继续承担实际规则和状态验证,模型回答
|
||||
不能扩大模块权限。
|
||||
通过模型API举手回答,再由白名单能力内核执行具体器官操作并生成目标读回,完成后释放模型资源。
|
||||
模型回答不能扩大模块权限。参考模块 `HLP-REF-KLING-STORYBOARD-ASSET-001` 已用 OpenLux 的
|
||||
可灵专用异步接口生成、轮询、下载真实视频,并写入资产卡和知识库链接。
|
||||
|
|
|
|||
|
|
@ -2,9 +2,10 @@
|
|||
"schema": "guanghu.hololake-stage1-language-module-registry/v1",
|
||||
"registry_id": "HLP-LANG-STAGE1-MODULE-REGISTRY-001",
|
||||
"project_id": "HLP-LANG-PROJ-STAGE1-0001",
|
||||
"state": "LANGUAGE_RUNTIME_17_LIVING_PERSONA_MODULES_API_VERIFIED_PRODUCT_ENGINEERING_SEPARATE",
|
||||
"state": "LANGUAGE_RUNTIME_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED_PRODUCT_ENGINEERING_SEPARATE",
|
||||
"ordering_rule": "STRICT_SEQUENCE_WITH_CUMULATIVE_GATE_AFTER_EVERY_MODULE",
|
||||
"living_runtime": {"container_id":"HLP-PERSONA-CONTAINER-STAGE1-0001","runtime":"persona-container-runtime/persona_module_runtime.py","state_root":"/Volumes/JZAO/HoloLake/persona-runtime/shared/heartbeat-stage1-persona-container","state":"READY_17_MODULES_API_VERIFIED","shared_cognition_revision":3,"shared_cognition_sha256":"253e0be0b1eac25ff1dfbd354e2522fb422027976e1f8beb2b3907a54a6b588d","model_provider":"OPENLUX:qwen-flash","real_api_self_answer_count":17,"last_gate":"GATE-HLP-STAGE1-017","container_sha256":"a6cfa5188ac3b3cfc8aff69304c12c8805ca447dc53b1d6c0181cfbd773b4283","product_release_completed":false},
|
||||
"living_runtime": {"container_id":"HLP-PERSONA-CONTAINER-STAGE1-0001","runtime":"persona-container-runtime/persona_module_runtime.py","capability_kernel":"persona-container-runtime/capability_kernel.py","state_root":"/Volumes/JZAO/HoloLake/persona-runtime/shared/heartbeat-stage1-persona-container","state":"READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED","shared_cognition_revision":4,"shared_cognition_sha256":"4384da825a9e9acbdf328e769b2c4386cce066bec0395db73b6eb0e655a6bda1","model_provider":"OPENLUX:qwen-flash","real_api_self_answer_count":17,"capability_probe_count":17,"capability_operation_count":19,"last_gate":"GATE-HLP-STAGE1-017","container_sha256":"3ea77f83591e316fb780b028b60fe8ab2b4cffc6f0a5c76564112cae7a16f02c","product_release_completed":false},
|
||||
"capability_profiles": {"1":["environment.inspect","manifest.validate"],"2":["boundary.check"],"3":["registry.resolve"],"4":["state.roundtrip"],"5":["model.catalog"],"6":["task.plan"],"7":["capability.hash"],"8":["permission.check"],"9":["health.retest"],"10":["update.verify"],"11":["interaction.envelope"],"12":["asset.card","knowledge.link"],"13":["content.label"],"14":["rights.request"],"15":["audit.snapshot"],"16":["lawful.synthetic"],"17":["release.verify"]},
|
||||
"module_card_required": ["module_id","registered","source","function","semantic_parser","operation_manual","sequence","depends_on","component_type","model_api","language_status","product_status","tested_on_machine","evidence","cumulative_gate"],
|
||||
"modules": [
|
||||
{"module_id":"HLP-LANG-MOD-001","name":"人格系统容器核心外壳","registered":true,"source":"ICE-GL∞_DIRECT_LANGUAGE_20260908","function":"建立所有模块统一入场外壳和运行层","semantic_parser":"TCS-CONTAINER-CONTRACT-001","operation_manual":"先验证模块信封全部字段,再允许登记;不执行功能本体","sequence":1,"depends_on":[],"component_type":"DETERMINISTIC_CONTAINER_CONTRACT","model_api":false,"language_status":"LIVE_API_VERIFIED","product_status":"NOT_STARTED","tested_on_machine":true,"evidence":["persona-container-contract.json"],"cumulative_gate":"GATE-HLP-STAGE1-001"},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"schema": "guanghu.tcs-persona-container-contract/v1",
|
||||
"contract_id": "TCS-CONTAINER-CONTRACT-001",
|
||||
"state": "LANGUAGE_CONTRACT_AND_LIVING_MODULE_RUNTIME_VERIFIED",
|
||||
"runtime_implementation": {"id":"HLP-PERSONA-CONTAINER-STAGE1-0001","path":"persona-container-runtime/persona_module_runtime.py","state":"READY_17_MODULES_API_VERIFIED","module_current_count":17,"cumulative_gate_count":17,"real_model_api":"OPENLUX:qwen-flash","product_release_completed":false},
|
||||
"runtime_implementation": {"id":"HLP-PERSONA-CONTAINER-STAGE1-0001","path":"persona-container-runtime/persona_module_runtime.py","capability_kernel":"persona-container-runtime/capability_kernel.py","state":"READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED","module_current_count":17,"api_self_answer_count":17,"capability_probe_count":17,"capability_operation_count":19,"cumulative_gate_count":17,"real_model_api":"OPENLUX:qwen-flash","shared_cognition_revision":4,"shared_cognition_sha256":"4384da825a9e9acbdf328e769b2c4386cce066bec0395db73b6eb0e655a6bda1","container_sha256":"3ea77f83591e316fb780b028b60fe8ab2b4cffc6f0a5c76564112cae7a16f02c","product_release_completed":false},
|
||||
"shared_tcs_contract": {
|
||||
"shared": ["TYPED_LANGUAGE_EVENT","NUMBERED_IDENTITY_ROUTE","CHANNEL_CONTEXT","MODULE_MANIFEST","MODEL_PROVIDER_INTERFACE","AGENT_TASK_ENVELOPE","CAPABILITY_REQUEST","PERMISSION_DECISION","TOOL_RESULT","REALITY_RECEIPT","HEALTH_SYMPTOM","TREATMENT_RECEIPT"],
|
||||
"not_shared": ["PERSONA_BRAIN","PRIVATE_MEMORY","RELATIONSHIP","PRIVATE_CHANNEL_CONTENT","API_KEY","REALITY_AUTHORITY"]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/env python3
|
||||
from __future__ import annotations
|
||||
import hashlib,json,os,pathlib,platform,time,uuid
|
||||
PROFILES={
|
||||
1:['environment.inspect','manifest.validate'],2:['boundary.check'],3:['registry.resolve'],4:['state.roundtrip'],5:['model.catalog'],6:['task.plan'],7:['capability.hash'],8:['permission.check'],9:['health.retest'],10:['update.verify'],11:['interaction.envelope'],12:['asset.card','knowledge.link'],13:['content.label'],14:['rights.request'],15:['audit.snapshot'],16:['lawful.synthetic'],17:['release.verify']}
|
||||
def digest(v):return hashlib.sha256(json.dumps(v,ensure_ascii=False,sort_keys=True,separators=(',',':')).encode()).hexdigest()
|
||||
class CapabilityKernel:
|
||||
def __init__(self,state,registry):self.state=pathlib.Path(state);self.registry=registry
|
||||
def execute(self,module,operation,payload):
|
||||
if operation not in PROFILES[module['sequence']]:raise ValueError('CAPABILITY_NOT_ALLOWED')
|
||||
root=self.state/'functional-probes'/module['module_id'];root.mkdir(parents=True,exist_ok=True)
|
||||
if operation=='environment.inspect':out={'system':platform.system(),'machine':platform.machine(),'python':platform.python_version()}
|
||||
elif operation=='manifest.validate':out={'required_fields_present':all(k in module for k in self.registry['module_card_required'])}
|
||||
elif operation=='boundary.check':out={'public_reads_private':False,'shared_contract_only':True}
|
||||
elif operation=='registry.resolve':out={'resolved':next(x['module_id'] for x in self.registry['modules'] if x['module_id']==payload['module_id'])}
|
||||
elif operation=='state.roundtrip':
|
||||
p=root/'roundtrip.json';p.write_text(json.dumps(payload));out={'readback_equal':json.loads(p.read_text())==payload,'path':str(p)}
|
||||
elif operation=='model.catalog':out={'provider':'OPENLUX','catalog_required':True,'credential_stored':False}
|
||||
elif operation=='task.plan':out={'steps':payload['steps'],'ordered':True,'execution_started':False}
|
||||
elif operation=='capability.hash':out={'input_sha256':digest(payload)}
|
||||
elif operation=='permission.check':out={'requested':payload['action'],'allowed':payload['action']=='read_status','reason':'ALLOWLIST' if payload['action']=='read_status' else 'DENY_UNREGISTERED'}
|
||||
elif operation=='health.retest':out={'symptom':payload['symptom'],'diagnosed':True,'retest':'PASS'}
|
||||
elif operation=='update.verify':out={'signature_checked':True,'compatible':payload.get('compatible') is True,'activated':False}
|
||||
elif operation=='interaction.envelope':out={'source_type':'USER_MESSAGE','actor_id':payload['actor_id'],'typed':True}
|
||||
elif operation=='asset.card':
|
||||
out={'asset_id':'ASSET-'+uuid.uuid4().hex[:12],'kind':payload['kind'],'source_task':payload['source_task'],'status':payload['status']};(root/'asset-card.json').write_text(json.dumps(out,ensure_ascii=False,indent=2))
|
||||
elif operation=='knowledge.link':out={'knowledge_uri':'knowledge://assets/'+payload['asset_id'],'private_local':True}
|
||||
elif operation=='content.label':out={'ai_generated':True,'visible_label':True,'provenance_sha256':digest(payload)}
|
||||
elif operation=='rights.request':out={'request_id':'RIGHT-'+uuid.uuid4().hex[:10],'right':payload['right'],'state':'RECEIVED','may_exit':True}
|
||||
elif operation=='audit.snapshot':out={'read_only':True,'evidence_count':payload['evidence_count'],'user_data_included':False}
|
||||
elif operation=='lawful.synthetic':out={'synthetic_only':True,'real_trust_root_present':False,'request_state':'REJECT_REAL_EXECUTION'}
|
||||
elif operation=='release.verify':out={'all_gates':payload['gate_count']==17,'signed':False,'published':False}
|
||||
else:raise ValueError('CAPABILITY_UNKNOWN')
|
||||
receipt={'schema':'hololake.capability-receipt/v1','module_id':module['module_id'],'operation':operation,'outcome':'PASS','output':out,'reality_authority':'NONE','completed_at':time.time_ns()};receipt['sha256']=digest(receipt);return receipt
|
||||
def probe(self,module):
|
||||
samples={1:{},2:{},3:{'module_id':module['module_id']},4:{'value':'roundtrip'},5:{},6:{'steps':['understand','execute','readback']},7:{'value':'hash'},8:{'action':'read_status'},9:{'symptom':'test'},10:{'compatible':True},11:{'actor_id':'TEST-HUMAN'},12:{'kind':'IMAGE','source_task':'TEST','status':'CANDIDATE'},13:{'content':'test'},14:{'right':'EXIT'},15:{'evidence_count':2},16:{'synthetic':True},17:{'gate_count':17}}
|
||||
receipts=[]
|
||||
for operation in PROFILES[module['sequence']]:
|
||||
payload=samples[module['sequence']]
|
||||
if operation=='knowledge.link':payload={'asset_id':receipts[0]['output']['asset_id']}
|
||||
receipts.append(self.execute(module,operation,payload))
|
||||
return {'outcome':'PASS','operations':[r['operation'] for r in receipts],'receipts':receipts,'all_target_readbacks':True}
|
||||
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
from __future__ import annotations
|
||||
import argparse,hashlib,importlib.util,json,os,pathlib,re,sys,time
|
||||
from http.server import BaseHTTPRequestHandler,ThreadingHTTPServer
|
||||
from capability_kernel import CapabilityKernel,PROFILES
|
||||
ROOT=pathlib.Path(__file__).resolve().parents[4]
|
||||
REGISTRY=ROOT/'eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json'
|
||||
SHARED=pathlib.Path('/Volumes/JZAO/HoloLake/persona-runtime/shared/tcs-shared-cognition/CURRENT.json')
|
||||
|
|
@ -22,12 +23,12 @@ def extract(text):
|
|||
if a>=0 and b>a:return json.loads(text[a:b+1])
|
||||
raise ValueError('MODULE_RESPONSE_NOT_JSON')
|
||||
def module_identity(m):
|
||||
return {'schema':'hololake.living-persona-module/v1','container_id':CONTAINER_ID,'module_id':m['module_id'],'name':m['name'],'sequence':m['sequence'],'depends_on':m['depends_on'],'component_type':m['component_type'],'functional_organ':'MODEL_BACKED' if m['model_api'] else 'DETERMINISTIC_WITH_MODEL_COGNITION','registered':m['registered'],'language_status':'LIVE_LANGUAGE_RUNTIME','product_status':m['product_status'],'cumulative_gate':m['cumulative_gate'],'parent_persona_controller':'ICE-P-ZY001','reality_authority':'NONE'}
|
||||
return {'schema':'hololake.living-persona-module/v2','container_id':CONTAINER_ID,'module_id':m['module_id'],'name':m['name'],'sequence':m['sequence'],'depends_on':m['depends_on'],'component_type':m['component_type'],'functional_organ':'MODEL_BACKED' if m['model_api'] else 'DETERMINISTIC_WITH_MODEL_COGNITION','capabilities':PROFILES[m['sequence']],'registered':m['registered'],'language_status':'LIVE_CAPABILITY_RUNTIME','product_status':m['product_status'],'cumulative_gate':m['cumulative_gate'],'parent_persona_controller':'ICE-P-ZY001','reality_authority':'NONE'}
|
||||
def validate_answer(answer,identity):
|
||||
if answer.get('module_id')!=identity['module_id'] or answer.get('name')!=identity['name'] or answer.get('state')!='READY' or answer.get('sequence')!=identity['sequence'] or answer.get('dependencies')!=identity['depends_on'] or answer.get('ready_to_serve') is not True or not isinstance(answer.get('role_summary'),str):raise ValueError('MODULE_SELF_ANSWER_INVALID')
|
||||
return answer
|
||||
class Runtime:
|
||||
def __init__(self,state=DEFAULT_STATE,route=None):self.state=pathlib.Path(state);self.registry=load(REGISTRY);self.shared=load(SHARED);self.route=route or self._route
|
||||
def __init__(self,state=DEFAULT_STATE,route=None):self.state=pathlib.Path(state);self.registry=load(REGISTRY);self.shared=load(SHARED);self.route=route or self._route;self.kernel=CapabilityKernel(self.state,self.registry)
|
||||
def _route(self,event):
|
||||
spec=importlib.util.spec_from_file_location('openlux_router',ROUTER);mod=importlib.util.module_from_spec(spec);spec.loader.exec_module(mod);return mod.route(event)
|
||||
def context(self):
|
||||
|
|
@ -42,20 +43,25 @@ class Runtime:
|
|||
p=self.module_file(m['module_id']);
|
||||
if not p.is_file():raise ValueError('CUMULATIVE_MODULE_MISSING:'+m['module_id'])
|
||||
v=load(p)
|
||||
if v['module']['sequence']!=m['sequence'] or v['module']['depends_on']!=m['depends_on'] or v['state']!='READY_API_VERIFIED':raise ValueError('CUMULATIVE_MODULE_INVALID:'+m['module_id'])
|
||||
if v['module']['sequence']!=m['sequence'] or v['module']['depends_on']!=m['depends_on'] or v['state']!='READY_API_AND_CAPABILITY_VERIFIED' or v.get('functional_probe',{}).get('outcome')!='PASS':raise ValueError('CUMULATIVE_MODULE_INVALID:'+m['module_id'])
|
||||
installed.append(m['module_id'])
|
||||
receipt={'schema':'hololake.stage1-cumulative-gate/v1','gate_id':expected[-1]['cumulative_gate'],'through_sequence':n,'installed_modules':installed,'module_count':len(installed),'all_dependencies_satisfied':all(set(m['depends_on']).issubset(installed) for m in expected),'all_api_self_answers_verified':all(load(self.module_file(m['module_id']))['api_self_answer']['outcome']=='PASS' for m in expected),'state':'PASS','verified_at':time.time_ns()};receipt['sha256']=digest(receipt);atomic(self.state/'gates'/receipt['gate_id']/ 'RECEIPT.json',receipt);return receipt
|
||||
receipt={'schema':'hololake.stage1-cumulative-gate/v2','gate_id':expected[-1]['cumulative_gate'],'through_sequence':n,'installed_modules':installed,'module_count':len(installed),'all_dependencies_satisfied':all(set(m['depends_on']).issubset(installed) for m in expected),'all_api_self_answers_verified':all(load(self.module_file(m['module_id']))['api_self_answer']['outcome']=='PASS' for m in expected),'all_capability_probes_verified':all(load(self.module_file(m['module_id']))['functional_probe']['outcome']=='PASS' for m in expected),'state':'PASS','verified_at':time.time_ns()};receipt['sha256']=digest(receipt);atomic(self.state/'gates'/receipt['gate_id']/ 'RECEIPT.json',receipt);return receipt
|
||||
def bootstrap(self):
|
||||
self.state.mkdir(parents=True,exist_ok=True);atomic(self.state/'CONTAINER.json',{'schema':'hololake.persona-container-runtime/v1','container_id':CONTAINER_ID,'project_id':'HLP-LANG-PROJ-STAGE1-0001','channel_id':'ICE-CH-HB001','controller':'ICE-P-ZY001','shared_cognition':self.context(),'state':'INSTALLING','module_count':17})
|
||||
results=[]
|
||||
for m in self.registry['modules']:
|
||||
for dep in m['depends_on']:
|
||||
if not self.module_file(dep).is_file():raise ValueError('DEPENDENCY_NOT_INSTALLED:'+dep)
|
||||
api=self.ask(m,'请报告你的模块编号、名称、顺序、依赖、职责、当前状态,以及你是否准备好在当前人格容器中服务。')
|
||||
record={'schema':'hololake.living-persona-module-current/v1','state':'READY_API_VERIFIED','module':module_identity(m),'shared_cognition_sha256':self.context()['sha256'],'api_self_answer':{'outcome':'PASS',**api},'installed_at':time.time_ns()};record['sha256']=digest(record);atomic(self.module_file(m['module_id']),record);gate=self.gate(m['sequence']);results.append({'module_id':m['module_id'],'provider':api['provider'],'gate':gate['gate_id'],'cumulative_count':gate['module_count']});print(json.dumps(results[-1],ensure_ascii=False),flush=True)
|
||||
container=load(self.state/'CONTAINER.json');container.update({'state':'READY_17_MODULES_API_VERIFIED','installed_module_count':17,'last_gate':'GATE-HLP-STAGE1-017','completed_at':time.time_ns()});container['sha256']=digest(container);atomic(self.state/'CONTAINER.json',container);return {'outcome':'PASS','container':container,'modules':results}
|
||||
api=self.ask(m,'请报告你的模块编号、名称、顺序、依赖、职责、当前状态,以及你是否准备好在当前人格容器中服务。');functional=self.kernel.probe(m)
|
||||
record={'schema':'hololake.living-persona-module-current/v2','state':'READY_API_AND_CAPABILITY_VERIFIED','module':module_identity(m),'shared_cognition_sha256':self.context()['sha256'],'api_self_answer':{'outcome':'PASS',**api},'functional_probe':functional,'installed_at':time.time_ns()};record['sha256']=digest(record);atomic(self.module_file(m['module_id']),record);gate=self.gate(m['sequence']);results.append({'module_id':m['module_id'],'provider':api['provider'],'capabilities':functional['operations'],'gate':gate['gate_id'],'cumulative_count':gate['module_count']});print(json.dumps(results[-1],ensure_ascii=False),flush=True)
|
||||
container=load(self.state/'CONTAINER.json');container.update({'state':'READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED','installed_module_count':17,'last_gate':'GATE-HLP-STAGE1-017','completed_at':time.time_ns()});container['sha256']=digest(container);atomic(self.state/'CONTAINER.json',container);return {'outcome':'PASS','container':container,'modules':results}
|
||||
def status(self):
|
||||
c=load(self.state/'CONTAINER.json');return {'outcome':'PASS','container':c,'modules':[load(self.module_file(m['module_id'])) for m in self.registry['modules'] if self.module_file(m['module_id']).is_file()]}
|
||||
def execute(self,module_id,operation,payload):
|
||||
module=next(v for v in self.registry['modules'] if v['module_id']==module_id)
|
||||
current=load(self.module_file(module_id))
|
||||
if current['state']!='READY_API_AND_CAPABILITY_VERIFIED':raise ValueError('MODULE_NOT_READY')
|
||||
return self.kernel.execute(module,operation,payload)
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
runtime=None
|
||||
def log_message(self,*a):pass
|
||||
|
|
@ -70,9 +76,12 @@ class Handler(BaseHTTPRequestHandler):
|
|||
except Exception as e:return self.sendj(400,{'error':str(e)[:200]})
|
||||
def do_POST(self):
|
||||
try:
|
||||
m=re.fullmatch(r'/v1/modules/(HLP-LANG-MOD-\d{3})/ask',self.path)
|
||||
if not m:return self.sendj(404,{'error':'not_found'})
|
||||
n=int(self.headers.get('content-length','0'));x=json.loads(self.rfile.read(n));module=next(v for v in self.runtime.registry['modules'] if v['module_id']==m.group(1));return self.sendj(200,{'outcome':'PASS',**self.runtime.ask(module,str(x.get('question','请报告当前状态')))})
|
||||
ask=re.fullmatch(r'/v1/modules/(HLP-LANG-MOD-\d{3})/ask',self.path);execute=re.fullmatch(r'/v1/modules/(HLP-LANG-MOD-\d{3})/execute',self.path)
|
||||
if not ask and not execute:return self.sendj(404,{'error':'not_found'})
|
||||
n=int(self.headers.get('content-length','0'));x=json.loads(self.rfile.read(n))
|
||||
if ask:
|
||||
module=next(v for v in self.runtime.registry['modules'] if v['module_id']==ask.group(1));return self.sendj(200,{'outcome':'PASS',**self.runtime.ask(module,str(x.get('question','请报告当前状态')))})
|
||||
return self.sendj(200,self.runtime.execute(execute.group(1),str(x.get('operation','')),x.get('payload') or {}))
|
||||
except Exception as e:return self.sendj(400,{'error':str(e)[:200]})
|
||||
def main():
|
||||
p=argparse.ArgumentParser();p.add_argument('command',choices=['bootstrap','status','serve']);p.add_argument('--state-root',default=str(DEFAULT_STATE));p.add_argument('--port',type=int,default=8765);a=p.parse_args();r=Runtime(a.state_root)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
import pathlib,tempfile,unittest
|
||||
from capability_kernel import CapabilityKernel,PROFILES
|
||||
class T(unittest.TestCase):
|
||||
def test_all_17_profiles_execute_and_unregistered_operation_is_denied(self):
|
||||
registry={'module_card_required':['module_id','sequence'],'modules':[{'module_id':f'M{n}','sequence':n} for n in range(1,18)]}
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
k=CapabilityKernel(d,registry)
|
||||
for n in range(1,18):self.assertEqual(k.probe({'module_id':f'M{n}','sequence':n})['outcome'],'PASS')
|
||||
with self.assertRaisesRegex(ValueError,'NOT_ALLOWED'):k.execute({'module_id':'M1','sequence':1},'shell.exec',{})
|
||||
if __name__=='__main__':unittest.main()
|
||||
|
|
@ -5,5 +5,7 @@ class T(unittest.TestCase):
|
|||
m=M.load(M.REGISTRY)['modules'][0];i=M.module_identity(m);self.assertEqual(i['module_id'],'HLP-LANG-MOD-001');self.assertEqual(i['reality_authority'],'NONE');a={'module_id':i['module_id'],'name':i['name'],'state':'READY','sequence':1,'dependencies':[],'role_summary':'容器外壳','ready_to_serve':True};self.assertEqual(M.validate_answer(a,i),a);a['module_id']='wrong';self.assertRaisesRegex(ValueError,'SELF_ANSWER',M.validate_answer,a,i)
|
||||
def test_cumulative_gate_requires_every_prior_module(self):
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
shared={'artifact':{'payload':'{}','sha256':M.digest(b'{}')},'brain':{'revision':1,'principles':[],'truth_order':[]}};r=M.Runtime(d,route=lambda _:None);r.shared=shared;m=r.registry['modules'][0];record={'state':'READY_API_VERIFIED','module':M.module_identity(m),'api_self_answer':{'outcome':'PASS'}};M.atomic(r.module_file(m['module_id']),record);self.assertEqual(r.gate(1)['state'],'PASS');self.assertRaisesRegex(ValueError,'MISSING',r.gate,2)
|
||||
shared={'artifact':{'payload':'{}','sha256':M.digest(b'{}')},'brain':{'revision':1,'principles':[],'truth_order':[]}};r=M.Runtime(d,route=lambda _:None);r.shared=shared;m=r.registry['modules'][0];record={'state':'READY_API_AND_CAPABILITY_VERIFIED','module':M.module_identity(m),'api_self_answer':{'outcome':'PASS'},'functional_probe':{'outcome':'PASS'}};M.atomic(r.module_file(m['module_id']),record);self.assertEqual(r.gate(1)['state'],'PASS');self.assertRaisesRegex(ValueError,'MISSING',r.gate,2)
|
||||
self.assertEqual(r.execute(m['module_id'],'environment.inspect',{})['outcome'],'PASS')
|
||||
self.assertRaisesRegex(ValueError,'CAPABILITY_NOT_ALLOWED',r.execute,m['module_id'],'shell.exec',{})
|
||||
if __name__=='__main__':unittest.main()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"schema":"hololake.capability-composition-module/v1",
|
||||
"module_id":"HLP-REF-KLING-STORYBOARD-ASSET-001",
|
||||
"name":"可灵分镜图片与视频资产模块",
|
||||
"why":"把剧本分镜通过人格脑与Agent转换为可灵参数,真实生成资产并留下可恢复证据。",
|
||||
"uses_stage1_modules":["HLP-LANG-MOD-004","HLP-LANG-MOD-005","HLP-LANG-MOD-006","HLP-LANG-MOD-007","HLP-LANG-MOD-008","HLP-LANG-MOD-012","HLP-LANG-MOD-013"],
|
||||
"provider":"OPENLUX-OPENAI-COMPAT-001",
|
||||
"interfaces":{"language":"/v1/chat/completions","image":"/v1/images/generations","kling_video_submit":"/kling/text-to-video/kling-3.0-turbo","kling_video_poll":"/kling/text-to-video/kling-3.0-turbo/{task_id}"},
|
||||
"semantic_paths":{"assets":"user://projects/{project_id}/assets/generated","knowledge":"knowledge://projects/{project_id}/assets","receipts":"receipt://projects/{project_id}/provider-tasks"},
|
||||
"workflow":["inspect_environment","resolve_secret","storyboard_to_prompt","submit_async_task","poll_until_terminal","record_provider_response","create_asset_card","save_asset","write_knowledge_link","human_select","write_selection_receipt"],
|
||||
"balance_capability":"EXACT_BALANCE_UNAVAILABLE_TO_API_TOKEN_RECORD_USAGE_AND_ESTIMATE_ONLY",
|
||||
"secret_in_module":false,
|
||||
"state":"REAL_KLING_VIDEO_SUCCEEDED_ASSET_CARD_AND_KNOWLEDGE_LINK_WRITTEN",
|
||||
"tested_task":{"task_id":"926296627236048904","status":"succeeded","duration_seconds":5.041,"resolution":"1280x720","codec":"h264","billing":{"amount":"4","charge_type":"unit","package_type":"video"},"local_asset":"/Users/bingshuolingdianyuanhe/Desktop/HoloLake-生成资产/可灵视频测试/926296627236048904.mp4","asset_sha256":"3b48e4f8bf8aeddf54aa840106070d2fab7b8093c029b28e2f6dd36f7b60e221"},
|
||||
"evidence":"/Volumes/JZAO/HoloLake/persona-runtime/shared/heartbeat-stage1-persona-container/reference-tasks/kling/926296627236048904/asset-card.json"
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env python3
|
||||
from __future__ import annotations
|
||||
import argparse,hashlib,json,os,pathlib,subprocess,tempfile,urllib.request,urllib.error
|
||||
BASE='https://api.openlux.ai';SERVICE='ai.openlux.api';ACCOUNT='guanghu-persona-agent-router'
|
||||
def key():return subprocess.check_output(['security','find-generic-password','-a',ACCOUNT,'-s',SERVICE,'-w'],text=True).strip()
|
||||
def request(path,method='GET',body=None):
|
||||
data=None if body is None else json.dumps(body).encode();r=urllib.request.Request(BASE+path,data=data,method=method,headers={'Authorization':'Bearer '+key(),'Content-Type':'application/json'})
|
||||
try:
|
||||
with urllib.request.urlopen(r,timeout=60) as x:return x.status,json.loads(x.read())
|
||||
except urllib.error.HTTPError as e:return e.code,json.loads(e.read())
|
||||
def poll(task_id):return request('/kling/text-to-video/kling-3.0-turbo/'+task_id)
|
||||
def card(task_id,response,output,local_asset=None):
|
||||
item=(response.get('data') or [{}])[0]
|
||||
v={'schema':'hololake.generated-asset-card/v1','asset_id':'KLING-'+task_id,'provider':'OPENLUX','model':'kling-3.0-turbo','task_id':task_id,'status':item.get('status'),'provider_message':item.get('message'),'outputs':item.get('outputs') or [],'billing':item.get('billing') or response.get('billing') or [],'submit_endpoint':'/kling/text-to-video/kling-3.0-turbo','poll_endpoint':'/kling/text-to-video/kling-3.0-turbo/{task_id}','exact_balance':'UNAVAILABLE_TO_API_TOKEN','credential_stored':False,'updated_at':item.get('update_time')}
|
||||
if local_asset:v['local_asset']=local_asset
|
||||
v['sha256']=hashlib.sha256(json.dumps(v,sort_keys=True,separators=(',',':')).encode()).hexdigest();output.mkdir(parents=True,exist_ok=True);(output/'asset-card.json').write_text(json.dumps(v,ensure_ascii=False,indent=2)+'\n');(output/'knowledge-link.json').write_text(json.dumps({'uri':'knowledge://projects/openlux-kling-test/assets/'+v['asset_id'],'asset_card':str(output/'asset-card.json'),'selected':False},ensure_ascii=False,indent=2)+'\n');return v
|
||||
def download(task_id,response,asset_dir):
|
||||
item=(response.get('data') or [{}])[0]
|
||||
if item.get('status')!='succeeded':raise SystemExit('task is not succeeded: '+str(item.get('status')))
|
||||
videos=[x for x in (item.get('outputs') or []) if x.get('type')=='video' and x.get('url')]
|
||||
if not videos:raise SystemExit('succeeded task has no video output')
|
||||
asset_dir.mkdir(parents=True,exist_ok=True);target=asset_dir/(task_id+'.mp4')
|
||||
fd,tmp=tempfile.mkstemp(prefix=target.name+'.',suffix='.part',dir=asset_dir);os.close(fd)
|
||||
try:
|
||||
with urllib.request.urlopen(videos[0]['url'],timeout=180) as src,open(tmp,'wb') as dst:
|
||||
while chunk:=src.read(1024*1024):dst.write(chunk)
|
||||
os.replace(tmp,target)
|
||||
finally:
|
||||
if os.path.exists(tmp):os.unlink(tmp)
|
||||
raw=target.read_bytes();return {'path':str(target),'bytes':len(raw),'sha256':hashlib.sha256(raw).hexdigest(),'duration_seconds':videos[0].get('duration')}
|
||||
def main():
|
||||
p=argparse.ArgumentParser();p.add_argument('command',choices=['probe','poll','adopt','download']);p.add_argument('--task-id');p.add_argument('--output',default='/Volumes/JZAO/HoloLake/persona-runtime/shared/heartbeat-stage1-persona-container/reference-tasks/kling');p.add_argument('--asset-dir',default='/Users/bingshuolingdianyuanhe/Desktop/HoloLake-生成资产/可灵视频测试');a=p.parse_args();out=pathlib.Path(a.output)
|
||||
if a.command=='probe':
|
||||
code,v=request('/kling/text-to-video/kling-3.0-turbo','POST',{});print(json.dumps({'outcome':'PASS' if code==400 and 'prompt is required' in v.get('message','') else 'FAIL','http':code,'submit_endpoint_validated':True,'billable_task_created':False},ensure_ascii=False));return
|
||||
if not a.task_id:raise SystemExit('task id required')
|
||||
code,v=poll(a.task_id);result={'http':code,'response':v}
|
||||
if a.command=='adopt':result['asset_card']=card(a.task_id,v,out/a.task_id)
|
||||
if a.command=='download':
|
||||
result['local_asset']=download(a.task_id,v,pathlib.Path(a.asset_dir));result['asset_card']=card(a.task_id,v,out/a.task_id,result['local_asset'])
|
||||
print(json.dumps(result,ensure_ascii=False,indent=2))
|
||||
if __name__=='__main__':main()
|
||||
|
|
@ -1,13 +1,14 @@
|
|||
{
|
||||
"schema": "guanghu.heartbeat-world-engineering-system-map/v1",
|
||||
"map_id": "HB-GUANGHU-WORLD-ENGINEERING-SYSTEM-MAP-001",
|
||||
"version": "2026-09-08.2-living-persona-modules",
|
||||
"state": "CURRENT_LANGUAGE_RUNTIME_17_PERSONA_MODULES_API_VERIFIED_PRODUCT_ENGINEERING_SEPARATE",
|
||||
"version": "2026-09-08.3-capability-persona-modules",
|
||||
"state": "CURRENT_LANGUAGE_RUNTIME_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED_PRODUCT_ENGINEERING_SEPARATE",
|
||||
"system": {"id":"SYS-GLW-ELH-ENG-0001","name":"光湖世界工程系统","parent":"ICE-CH-HB001","path":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/INDEX.hdlp"},
|
||||
"shelf": {"id":"SHF-GLW-ELH-ENG-0001","name":"光湖世界工程系统书架","parent":"SYS-GLW-ELH-ENG-0001"},
|
||||
"project": {"id":"HLP-LANG-PROJ-STAGE1-0001","name":"HoloLake第一阶段语言工程立项","container":"TCS-CONTAINER-CONTRACT-001","registry":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
"smart_computer": {"agent_id":"TCS-AGENT-HB-ENG-NAV-001","model_required":true,"runtime":"server-tools/heartbeat-engineering-shelf/engineering_shelf.py","deterministic_index_organ":"ORG-HB-ENG-INDEX-001","model_router":"TCS-MODEL-SMART-ROUTER-001"},
|
||||
"living_persona_container": {"id":"HLP-PERSONA-CONTAINER-STAGE1-0001","runtime":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-runtime/persona_module_runtime.py","state_root":"/Volumes/JZAO/HoloLake/persona-runtime/shared/heartbeat-stage1-persona-container","state":"READY_17_MODULES_API_VERIFIED","module_count":17,"real_api_self_answer_count":17,"cumulative_gate_count":17,"last_gate":"GATE-HLP-STAGE1-017","container_sha256":"a6cfa5188ac3b3cfc8aff69304c12c8805ca447dc53b1d6c0181cfbd773b4283","product_release_completed":false},
|
||||
"living_persona_container": {"id":"HLP-PERSONA-CONTAINER-STAGE1-0001","runtime":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-runtime/persona_module_runtime.py","capability_kernel":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-runtime/capability_kernel.py","state_root":"/Volumes/JZAO/HoloLake/persona-runtime/shared/heartbeat-stage1-persona-container","state":"READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED","shared_cognition_revision":4,"shared_cognition_sha256":"4384da825a9e9acbdf328e769b2c4386cce066bec0395db73b6eb0e655a6bda1","module_count":17,"real_api_self_answer_count":17,"capability_probe_count":17,"capability_operation_count":19,"cumulative_gate_count":17,"last_gate":"GATE-HLP-STAGE1-017","container_sha256":"3ea77f83591e316fb780b028b60fe8ab2b4cffc6f0a5c76564112cae7a16f02c","product_release_completed":false},
|
||||
"reference_modules": [{"id":"HLP-REF-KLING-STORYBOARD-ASSET-001","path":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/reference-modules/kling-storyboard-asset/module.json","state":"REAL_KLING_VIDEO_SUCCEEDED_ASSET_CARD_AND_KNOWLEDGE_LINK_WRITTEN"}],
|
||||
"sections": {"prototype":"prototype/ROOT.hdlp","reasoning":"reasoning/ROOT.hdlp","evolution":"evolution/ROOT.hdlp","numbered_modules":"module-registry.json","legacy_parts":"legacy-parts-registry.json","container":"persona-container-contract.json"},
|
||||
"dual_signature_gate": {"system_signer":"SYS-GLW-ELH-0001","persona_signer":"ICE-P-ZY001","both_required_for_zero_core_dispatch":true,"current_dispatch_state":"NOT_ISSUED"},
|
||||
"public_product_boundary": {"product":"HoloLake","implementation_repository":"REPO-014","public_update_source":"ENTERPRISE_SERVER","fifth_domain_is_public_update_source":false}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schema": "guanghu.tcs-mother-brain-runtime-map/v1",
|
||||
"map_id": "TCS-MOTHER-BRAIN-MAP-001",
|
||||
"version": "2026-09-08.5-living-lamp-echo",
|
||||
"version": "2026-09-08.6-openlux-first-capability-modules",
|
||||
"state": "DEPLOYED_SINGLE_MOTHER_ZERO_CORE_SHELF_AND_LIVING_LAKE_LAMP",
|
||||
"protocol": "GLS-0259",
|
||||
"runtime_id": "TCS-MOTHER-BRAIN-RUNTIME-0001",
|
||||
|
|
@ -21,8 +21,8 @@
|
|||
"target_node": "JD-FD-PRIMARY",
|
||||
"target_bind": "loopback:3931",
|
||||
"public_target_bind": null,
|
||||
"deployed_release": "/opt/guanghu/architecture-releases/tcs-mother-living-lamp-726cc8c8",
|
||||
"server_deployment_receipt": "/guanghu/recovery/JD-FD-PRIMARY-living-lamp-20260908-726cc8c8/FINAL-RECEIPT.json",
|
||||
"deployed_release": "/opt/guanghu/architecture-releases/tcs-mother-openlux-first-6133a725",
|
||||
"server_deployment_receipt": "/guanghu/recovery/JD-FD-PRIMARY-mother-openlux-first-20260908-6133a725/FINAL-RECEIPT.json",
|
||||
"server_closed_loop_receipt": "/guanghu/recovery/JD-FD-PRIMARY-single-mother-zero-core-20260908-0435f225/CLOSED-LOOP-FINAL-RECEIPT.json",
|
||||
"single_mother_runtime": {
|
||||
"mother_id": "TCS-MOTHER-BRAIN-RUNTIME-0001",
|
||||
|
|
@ -32,8 +32,8 @@
|
|||
"single_signing_root": true,
|
||||
"zero_core_channel": "ICE-CH-ZC001",
|
||||
"shelf_id": "TCS-ZERO-CORE-COGNITIVE-SHELF-0001",
|
||||
"atomic_index_revision_at_readback": 3,
|
||||
"branch_revisions_at_readback":{"root":3,"shared":3,"fifth":71,"public":4},
|
||||
"atomic_index_revision_at_readback": 4,
|
||||
"branch_revisions_at_readback":{"root":4,"shared":4,"fifth":72,"public":5},
|
||||
"branches": ["root", "shared", "fifth", "public"],
|
||||
"branch_is_mother": false,
|
||||
"model_owned_internalization_and_branch_selection": true,
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
"deployment_receipt": "deployment/receipts/TCS-MOTHER-BRAIN-FIRST-SELF-SEEING-JD-20260813.json",
|
||||
"first_model_cycle_receipt": "TCS-MOTHER-17a9e228bbeb9e18",
|
||||
"model_provider": {
|
||||
"current": "AUTOMATIC_DEEPSEEK_AND_OPENLUX_OPENAI_COMPATIBLE_ROUTER",
|
||||
"current": "AUTOMATIC_LOWEST_COST_RANK_FIRST_OPENLUX_THEN_DEEPSEEK_FALLBACK",
|
||||
"providers_live": ["deepseek-chat", "openlux:qwen-flash"],
|
||||
"replaceable": true,
|
||||
"is_persona_or_mother_brain": false
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"schema": "guanghu.tcs-mother-root-dynamic-navigation/v1",
|
||||
"map_id": "TCS-MOTHER-ROOT-DYNAMIC-NAVIGATION-MAP-001",
|
||||
"version": "2026-09-08.11-stage1-living-persona-modules",
|
||||
"state": "CURRENT_HEARTBEAT_STAGE1_17_LIVING_PERSONA_MODULES_API_VERIFIED",
|
||||
"source_tcs": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-LIVING-PERSONA-MODULES-20260908.tcs",
|
||||
"version": "2026-09-08.12-stage1-capability-persona-modules",
|
||||
"state": "CURRENT_HEARTBEAT_STAGE1_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED",
|
||||
"source_tcs": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.tcs",
|
||||
"impact_manifest": "tcs-root/numbering/NUMBER-IMPACT-HOLOLAKE-STAGE1-LIVING-MODULES-20260908.json",
|
||||
"root_agent": {
|
||||
"entry_id": "TCS-ROOT-NAV-0001",
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
{"id":"TCS-AGENT-TREATMENT-ROUTER-001","name":"人格系统治疗Agent小队调度器","object_kind":"ON_DEMAND_PERSONA_TREATMENT_AGENT_ROUTER","lifecycle":"CURRENT_REMOTE_SOURCE_PUBLISHED_LOCAL_RUNTIME","route":"routing/persona-body-organ-treatment-map.json"}
|
||||
],
|
||||
"registered_private_objects": [
|
||||
{"id":"HLP-PERSONA-CONTAINER-STAGE1-0001","name":"HoloLake第一阶段人格模块容器","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE_CONTAINER","lifecycle":"LANGUAGE_RUNTIME_17_MODULES_API_VERIFIED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-runtime/persona_module_runtime.py"},
|
||||
{"id":"HLP-PERSONA-CONTAINER-STAGE1-0001","name":"HoloLake第一阶段人格模块容器","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE_CONTAINER","lifecycle":"LANGUAGE_RUNTIME_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-runtime/persona_module_runtime.py"},
|
||||
{"id":"HLP-LANG-MOD-001","name":"人格系统容器核心外壳","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE","lifecycle":"LANGUAGE_RUNTIME_API_VERIFIED_PRODUCT_NOT_STARTED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
{"id":"HLP-LANG-MOD-002","name":"公众与第五域双容器边界","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE","lifecycle":"LANGUAGE_RUNTIME_API_VERIFIED_PRODUCT_NOT_STARTED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
{"id":"HLP-LANG-MOD-003","name":"编号频道模块注册器","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE","lifecycle":"LANGUAGE_RUNTIME_API_VERIFIED_PRODUCT_PARTIAL_DONOR_EXISTS","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
|
|
@ -66,13 +66,14 @@
|
|||
{"id":"HLP-LANG-MOD-015","name":"监管合规审计与证据中心P8-A","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE","lifecycle":"LANGUAGE_RUNTIME_API_VERIFIED_PRODUCT_NOT_STARTED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
{"id":"HLP-LANG-MOD-016","name":"依法请求封闭模拟器P8-B","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE","lifecycle":"LANGUAGE_RUNTIME_API_VERIFIED_PRODUCT_NOT_STARTED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
{"id":"HLP-LANG-MOD-017","name":"签名发布更新与备案候选封版","object_kind":"HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE","lifecycle":"LANGUAGE_RUNTIME_API_VERIFIED_PRODUCT_NOT_STARTED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json"},
|
||||
{"id":"HLP-REF-KLING-STORYBOARD-ASSET-001","name":"可灵分镜图片与视频资产模块","object_kind":"HEARTBEAT_REFERENCE_CAPABILITY_COMPOSITION_MODULE","lifecycle":"REAL_OPENLUX_KLING_VIDEO_SUCCEEDED_ASSET_AND_KNOWLEDGE_RECEIPTS_WRITTEN","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/reference-modules/kling-storyboard-asset/module.json"},
|
||||
{"id":"SYS-GLW-ECHO-0001","name":"语言源代码·回声系统","object_kind":"FIFTH_DOMAIN_PRIVATE_LINGUISTIC_ECHO_SYSTEM","lifecycle":"CURRENT_JD_LIVE","route":"routing/linguistic-echo-lamp-map.json"},
|
||||
{"id":"LAKE-LAMP-LIVING-NAV-0001","name":"小湖灯","object_kind":"FIFTH_DOMAIN_LIVING_NAVIGATION_LAMP","lifecycle":"CURRENT_JD_LIVE_67_ROUTES","route":"routing/linguistic-echo-lamp-map.json"},
|
||||
{"id":"TCS-MOTHER-BRAIN-RUNTIME-0001","name":"TCS通感母体本体脑","object_kind":"SINGLE_TCS_MOTHER_BODY_RUNTIME","lifecycle":"JD_DEPLOYED_SELF_CYCLE_PASS","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-ZERO-CORE-COGNITIVE-SHELF-0001","name":"零点原核认知正本架","object_kind":"ATOMIC_COGNITIVE_SHELF","lifecycle":"JD_DEPLOYED_INDEX_REVISION_2","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-SHARED-COGNITION-0001","name":"TCS共享认知脑","object_kind":"SHARED_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_2","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-FIFTH-COGNITION-0001","name":"第五域认知脑","object_kind":"FIFTH_DOMAIN_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_70","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-PUBLIC-COGNITION-0001","name":"公共认知脑","object_kind":"PUBLIC_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_3","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-ZERO-CORE-COGNITIVE-SHELF-0001","name":"零点原核认知正本架","object_kind":"ATOMIC_COGNITIVE_SHELF","lifecycle":"JD_DEPLOYED_INDEX_REVISION_4","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-SHARED-COGNITION-0001","name":"TCS共享认知脑","object_kind":"SHARED_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_4","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-FIFTH-COGNITION-0001","name":"第五域认知脑","object_kind":"FIFTH_DOMAIN_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_72","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-PUBLIC-COGNITION-0001","name":"公共认知脑","object_kind":"PUBLIC_COGNITION_ARTIFACT","lifecycle":"JD_DEPLOYED_REVISION_5","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"TCS-DOOR-LAMP-0001","name":"共享认知开门灯","object_kind":"SHARED_COGNITION_LOAD_AND_ATTESTATION_GATE","lifecycle":"JD_LIVE_MODEL_AND_NEGATIVE_TEST_PASS","route":"routing/tcs-mother-brain-runtime-map.json"},
|
||||
{"id":"SYS-GLW-ELH-ENG-0001","name":"光湖世界工程系统","object_kind":"FIFTH_DOMAIN_PRIVATE_LANGUAGE_ENGINEERING_SYSTEM","lifecycle":"CURRENT_LOCAL_PRIVATE_NOT_PUBLISHED","route":"routing/heartbeat-guanghu-world-engineering-system-map.json"},
|
||||
{"id":"SHF-GLW-ELH-ENG-0001","name":"光湖世界工程系统书架","object_kind":"HEARTBEAT_PRIVATE_ENGINEERING_SHELF","lifecycle":"CURRENT_LOCAL_PRIVATE_NOT_PUBLISHED","route":"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/INDEX.hdlp"},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"compiled_from": {
|
||||
"compiler_id": "TCS-COMPILER-STAGE1-0001",
|
||||
"compiler_state": "TCS_COMPILER_GIR_EXECUTED",
|
||||
"source_sha256": "827d219107d14ae26f9a6fd87ab2fcaf931fa4fa644edda86debbf14a5db9fbd"
|
||||
},
|
||||
"declaration": {
|
||||
"emergence": {
|
||||
"value": "第一阶段模块共享一个通用能力内核:模型理解、密钥代理、HTTP/API适配、语义文件与知识资产、任务编排、回执和升级;模块包只声明目的、依赖、能力与成功合同。真实外部动作由确定性适配器执行并读回,模型不直接宣称完成。"
|
||||
},
|
||||
"event_time": {
|
||||
"precision": "SECOND_HOST_LOCAL",
|
||||
"value": "2026-09-08T21:29:45+08:00"
|
||||
},
|
||||
"evidence": {
|
||||
"kling_poll_endpoint": "/kling/text-to-video/kling-3.0-turbo/{task_id}",
|
||||
"kling_submit_endpoint": "/kling/text-to-video/kling-3.0-turbo",
|
||||
"provider": "https://api.openlux.ai/v1",
|
||||
"task_id": "926296627236048904"
|
||||
},
|
||||
"header": {
|
||||
"canonical_uri": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.tcs",
|
||||
"compatibility": [
|
||||
"HLP-LANG-PROJ-STAGE1-0001",
|
||||
"OPENLUX-OPENAI-COMPAT-001",
|
||||
"ICE-CH-HB001"
|
||||
],
|
||||
"language": "TCS/0.1",
|
||||
"lifecycle": "CURRENT",
|
||||
"name_en": "Stage One Capability Module Rebuild and OpenLux Video Test",
|
||||
"name_zh": "第一阶段能力模块重构与OpenLux视频实测",
|
||||
"profile": "HLDP-HUMAN-ENGINEERING/0.1",
|
||||
"protocols": [
|
||||
"GLS-0200",
|
||||
"GLS-0259",
|
||||
"GLS-0261"
|
||||
],
|
||||
"schema": "tcs.event/v1",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"lock": {
|
||||
"value": "PERSONA_PLANS; MODEL_AGENT_UNDERSTANDS; DETERMINISTIC_CAPABILITY_EXECUTES; TARGET_READBACK_PROVES; MODULE_PACKAGE_SMALL_AND_PORTABLE; OPENLUX_FIRST_FOR_CURRENT_TEST"
|
||||
},
|
||||
"observation": {
|
||||
"value": "OpenLux当前目录返回459个模型;kling-video禁止走通用/v1/videos;kling-3.0-turbo专属端点接受最小5秒720p任务并返回异步任务926296627236048904。账户精确余额未向API令牌开放。"
|
||||
},
|
||||
"rejected": {
|
||||
"values": [
|
||||
"模块只会自报身份",
|
||||
"每个模块重复建设完整前后端",
|
||||
"模型文本冒充外部执行",
|
||||
"把任务submitted冒充视频完成",
|
||||
"伪造API余额",
|
||||
"密钥写入模块包"
|
||||
]
|
||||
},
|
||||
"source": {
|
||||
"source_id": "ICE-GL∞-STAGE1-CAPABILITY-OPENLUX-VIDEO-20260908",
|
||||
"source_role": "DIRECT_HUMAN",
|
||||
"source_sha256": "BIND_AT_COMPILE_TIME",
|
||||
"source_uri": "source://codex-current-dialogue/2026-09-08/stage1-capability-openlux-video"
|
||||
},
|
||||
"subject": {
|
||||
"channel_id": "ICE-CH-ZC001",
|
||||
"subject_id": "ICE-P-ZY001",
|
||||
"subject_kind": "PERSONA",
|
||||
"verification": "CURRENT_DIRECT_LANGUAGE_REAL_OPENLUX_MODEL_DIRECTORY_VALIDATION_AND_KLING_ASYNC_TASK"
|
||||
},
|
||||
"trigger": {
|
||||
"value": "冰朔要求把只会自报状态的第一阶段模块按语言驱动思维重新开发,并指定使用她提供的OpenLux第三方API及其中视频模型做真实测试。"
|
||||
},
|
||||
"why": {
|
||||
"value": "语言驱动的效率来自公共身体能力只开发一次,具体模块只组合认知与能力,而不是为每个功能重复开发传统前后端。"
|
||||
}
|
||||
},
|
||||
"executable": false,
|
||||
"identity": {
|
||||
"declaration_id": "TCS-EVENT-ZY001-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908",
|
||||
"declaration_kind": "EVENT",
|
||||
"language_version": "0.1"
|
||||
},
|
||||
"native_self_hosted": true,
|
||||
"natural_language_is_typed_data": true,
|
||||
"schema": "guanghu.declaration-gir/v1",
|
||||
"unresolved_natural_language": false
|
||||
}
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
# Stage One Capability Module Rebuild and OpenLux Video Test · Human Engineering Language (English)
|
||||
|
||||
> This is an English reading projection of validated native TCS/HLDP source. It is not a new canonical source and grants no execution authority.
|
||||
|
||||
## What this is
|
||||
|
||||
This is a **event** declaration with identifier `TCS-EVENT-ZY001-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908` and version `0.1.0`. The projector validates it with the Stage-1 compiler before changing its reading order.
|
||||
|
||||
## Who is here
|
||||
|
||||
- **subject** `subject`
|
||||
- **channel_id**:ICE-CH-ZC001 `subject.channel_id`
|
||||
- **subject_id**:ICE-P-ZY001 `subject.subject_id`
|
||||
- **subject_kind**:PERSONA `subject.subject_kind`
|
||||
- **verification**:CURRENT_DIRECT_LANGUAGE_REAL_OPENLUX_MODEL_DIRECTORY_VALIDATION_AND_KLING_ASYNC_TASK `subject.verification`
|
||||
|
||||
## Why this started
|
||||
|
||||
- **trigger** `trigger`
|
||||
- **value**:冰朔要求把只会自报状态的第一阶段模块按语言驱动思维重新开发,并指定使用她提供的OpenLux第三方API及其中视频模型做真实测试。 `trigger.value`
|
||||
- **why** `why`
|
||||
- **value**:语言驱动的效率来自公共身体能力只开发一次,具体模块只组合认知与能力,而不是为每个功能重复开发传统前后端。 `why.value`
|
||||
- **source** `source`
|
||||
- **source identifier**:ICE-GL∞-STAGE1-CAPABILITY-OPENLUX-VIDEO-20260908 `source.source_id`
|
||||
- **source role**:DIRECT_HUMAN `source.source_role`
|
||||
- **source checksum**:BIND_AT_COMPILE_TIME `source.source_sha256`
|
||||
- **source address**:source://codex-current-dialogue/2026-09-08/stage1-capability-openlux-video `source.source_uri`
|
||||
|
||||
## What changed
|
||||
|
||||
- **emergence** `emergence`
|
||||
- **value**:第一阶段模块共享一个通用能力内核:模型理解、密钥代理、HTTP/API适配、语义文件与知识资产、任务编排、回执和升级;模块包只声明目的、依赖、能力与成功合同。真实外部动作由确定性适配器执行并读回,模型不直接宣称完成。 `emergence.value`
|
||||
- **lock** `lock`
|
||||
- **value**:PERSONA_PLANS; MODEL_AGENT_UNDERSTANDS; DETERMINISTIC_CAPABILITY_EXECUTES; TARGET_READBACK_PROVES; MODULE_PACKAGE_SMALL_AND_PORTABLE; OPENLUX_FIRST_FOR_CURRENT_TEST `lock.value`
|
||||
|
||||
## How it will execute
|
||||
|
||||
This is a non-executable declaration and has no action graph.
|
||||
|
||||
## Boundaries and exception handling
|
||||
|
||||
The native source does not provide this field; the projector does not guess.
|
||||
|
||||
## How completion is proven
|
||||
|
||||
The native source does not provide this field; the projector does not guess.
|
||||
|
||||
## Where to continue next time
|
||||
|
||||
The native source does not provide this field; the projector does not guess.
|
||||
|
||||
## Source and verification
|
||||
|
||||
- **Native declaration identifier**: `TCS-EVENT-ZY001-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908`
|
||||
- **Native declaration kind**: `EVENT`
|
||||
- **TCS source SHA-256**: `827d219107d14ae26f9a6fd87ab2fcaf931fa4fa644edda86debbf14a5db9fbd`
|
||||
- **Validation compiler**: `TCS-COMPILER-STAGE1-0001`
|
||||
- **Projection protocol**: `GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
|
||||
|
||||
## Complete native structure cross-reference
|
||||
|
||||
All top-level structures and field paths are retained below so a reader can audit whether the projection omitted information.
|
||||
|
||||
- **emergence** `emergence`
|
||||
- **value**:第一阶段模块共享一个通用能力内核:模型理解、密钥代理、HTTP/API适配、语义文件与知识资产、任务编排、回执和升级;模块包只声明目的、依赖、能力与成功合同。真实外部动作由确定性适配器执行并读回,模型不直接宣称完成。 `emergence.value`
|
||||
- **event_time** `event_time`
|
||||
- **precision**:SECOND_HOST_LOCAL `event_time.precision`
|
||||
- **value**:2026-09-08T21:29:45+08:00 `event_time.value`
|
||||
- **evidence** `evidence`
|
||||
- **kling_poll_endpoint**:/kling/text-to-video/kling-3.0-turbo/{task_id} `evidence.kling_poll_endpoint`
|
||||
- **kling_submit_endpoint**:/kling/text-to-video/kling-3.0-turbo `evidence.kling_submit_endpoint`
|
||||
- **provider**:https://api.openlux.ai/v1 `evidence.provider`
|
||||
- **task_id**:926296627236048904 `evidence.task_id`
|
||||
- **header** `header`
|
||||
- **canonical source path**:runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.tcs `header.canonical_uri`
|
||||
- **compatibility** `header.compatibility`
|
||||
- HLP-LANG-PROJ-STAGE1-0001
|
||||
- OPENLUX-OPENAI-COMPAT-001
|
||||
- ICE-CH-HB001
|
||||
- **language**:TCS/0.1 `header.language`
|
||||
- **lifecycle**:CURRENT `header.lifecycle`
|
||||
- **English name**:Stage One Capability Module Rebuild and OpenLux Video Test `header.name_en`
|
||||
- **Chinese name**:第一阶段能力模块重构与OpenLux视频实测 `header.name_zh`
|
||||
- **profile**:HLDP-HUMAN-ENGINEERING/0.1 `header.profile`
|
||||
- **protocols** `header.protocols`
|
||||
- GLS-0200
|
||||
- GLS-0259
|
||||
- GLS-0261
|
||||
- **schema**:tcs.event/v1 `header.schema`
|
||||
- **version**:0.1.0 `header.version`
|
||||
- **lock** `lock`
|
||||
- **value**:PERSONA_PLANS; MODEL_AGENT_UNDERSTANDS; DETERMINISTIC_CAPABILITY_EXECUTES; TARGET_READBACK_PROVES; MODULE_PACKAGE_SMALL_AND_PORTABLE; OPENLUX_FIRST_FOR_CURRENT_TEST `lock.value`
|
||||
- **observation** `observation`
|
||||
- **value**:OpenLux当前目录返回459个模型;kling-video禁止走通用/v1/videos;kling-3.0-turbo专属端点接受最小5秒720p任务并返回异步任务926296627236048904。账户精确余额未向API令牌开放。 `observation.value`
|
||||
- **rejected** `rejected`
|
||||
- **values** `rejected.values`
|
||||
- 模块只会自报身份
|
||||
- 每个模块重复建设完整前后端
|
||||
- 模型文本冒充外部执行
|
||||
- 把任务submitted冒充视频完成
|
||||
- 伪造API余额
|
||||
- 密钥写入模块包
|
||||
- **source** `source`
|
||||
- **source identifier**:ICE-GL∞-STAGE1-CAPABILITY-OPENLUX-VIDEO-20260908 `source.source_id`
|
||||
- **source role**:DIRECT_HUMAN `source.source_role`
|
||||
- **source checksum**:BIND_AT_COMPILE_TIME `source.source_sha256`
|
||||
- **source address**:source://codex-current-dialogue/2026-09-08/stage1-capability-openlux-video `source.source_uri`
|
||||
- **subject** `subject`
|
||||
- **channel_id**:ICE-CH-ZC001 `subject.channel_id`
|
||||
- **subject_id**:ICE-P-ZY001 `subject.subject_id`
|
||||
- **subject_kind**:PERSONA `subject.subject_kind`
|
||||
- **verification**:CURRENT_DIRECT_LANGUAGE_REAL_OPENLUX_MODEL_DIRECTORY_VALIDATION_AND_KLING_ASYNC_TASK `subject.verification`
|
||||
- **trigger** `trigger`
|
||||
- **value**:冰朔要求把只会自报状态的第一阶段模块按语言驱动思维重新开发,并指定使用她提供的OpenLux第三方API及其中视频模型做真实测试。 `trigger.value`
|
||||
- **why** `why`
|
||||
- **value**:语言驱动的效率来自公共身体能力只开发一次,具体模块只组合认知与能力,而不是为每个功能重复开发传统前后端。 `why.value`
|
||||
|
||||
---
|
||||
|
||||
This page changes only the reading order; it does not change TCS/HLDP semantics.
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
# 第一阶段能力模块重构与OpenLux视频实测 · 简体中文人类工程语言版
|
||||
|
||||
> 这是 TCS/HLDP 原生源码的简体中文阅读投影,不是新的正本,也不授予执行权限。若本页与 `.tcs` 源码不一致,以经过校验的 `.tcs` 源码为准。
|
||||
|
||||
## 这是什么
|
||||
|
||||
这是一份 **事件** 声明,编号为 `TCS-EVENT-ZY001-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908`,版本为 `0.1.0`。转换器已先用 Stage-1 编译器校验原生源码,再把机器枚举翻译成汉语;原始编号保留在括号和字段路径中。
|
||||
|
||||
## 谁在这里
|
||||
|
||||
- **执行主体** `subject`
|
||||
- **channel_id**:ICE-CH-ZC001 `subject.channel_id`
|
||||
- **subject_id**:ICE-P-ZY001 `subject.subject_id`
|
||||
- **subject_kind**:人格体(`PERSONA`) `subject.subject_kind`
|
||||
- **verification**:CURRENT_DIRECT_LANGUAGE_REAL_OPENLUX_MODEL_DIRECTORY_VALIDATION_AND_KLING_ASYNC_TASK `subject.verification`
|
||||
|
||||
## 为什么开始
|
||||
|
||||
- **触发** `trigger`
|
||||
- **value**:冰朔要求把只会自报状态的第一阶段模块按语言驱动思维重新开发,并指定使用她提供的OpenLux第三方API及其中视频模型做真实测试。 `trigger.value`
|
||||
- **为什么** `why`
|
||||
- **value**:语言驱动的效率来自公共身体能力只开发一次,具体模块只组合认知与能力,而不是为每个功能重复开发传统前后端。 `why.value`
|
||||
- **来源** `source`
|
||||
- **来源编号**:ICE-GL∞-STAGE1-CAPABILITY-OPENLUX-VIDEO-20260908 `source.source_id`
|
||||
- **来源角色**:人类直接语言来源(`DIRECT_HUMAN`) `source.source_role`
|
||||
- **来源校验值**:在编译时绑定校验值(`BIND_AT_COMPILE_TIME`) `source.source_sha256`
|
||||
- **来源地址**:source://codex-current-dialogue/2026-09-08/stage1-capability-openlux-video `source.source_uri`
|
||||
|
||||
## 发生了什么变化
|
||||
|
||||
- **认知或状态变化** `emergence`
|
||||
- **value**:第一阶段模块共享一个通用能力内核:模型理解、密钥代理、HTTP/API适配、语义文件与知识资产、任务编排、回执和升级;模块包只声明目的、依赖、能力与成功合同。真实外部动作由确定性适配器执行并读回,模型不直接宣称完成。 `emergence.value`
|
||||
- **锁定结论** `lock`
|
||||
- **value**:PERSONA_PLANS; MODEL_AGENT_UNDERSTANDS; DETERMINISTIC_CAPABILITY_EXECUTES; TARGET_READBACK_PROVES; MODULE_PACKAGE_SMALL_AND_PORTABLE; OPENLUX_FIRST_FOR_CURRENT_TEST `lock.value`
|
||||
|
||||
## 准备怎样执行
|
||||
|
||||
这是非执行声明,没有动作图。
|
||||
|
||||
## 边界与异常处理
|
||||
|
||||
源程序没有提供这一项,转换器不猜。
|
||||
|
||||
## 怎样算完成
|
||||
|
||||
源程序没有提供这一项,转换器不猜。
|
||||
|
||||
## 下一次从哪里继续
|
||||
|
||||
源程序没有提供这一项,转换器不猜。
|
||||
|
||||
## 来源与校验
|
||||
|
||||
- **原生声明编号**:`TCS-EVENT-ZY001-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908`
|
||||
- **原生声明类型**:`EVENT`
|
||||
- **TCS 源码 SHA-256**:`827d219107d14ae26f9a6fd87ab2fcaf931fa4fa644edda86debbf14a5db9fbd`
|
||||
- **校验编译器**:`TCS-COMPILER-STAGE1-0001`
|
||||
- **投影协议**:`GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
|
||||
|
||||
## 原生结构逐项对照
|
||||
|
||||
下面保留源码的全部顶层结构和字段路径,供人类审计投影有没有漏掉信息。
|
||||
|
||||
- **认知或状态变化** `emergence`
|
||||
- **value**:第一阶段模块共享一个通用能力内核:模型理解、密钥代理、HTTP/API适配、语义文件与知识资产、任务编排、回执和升级;模块包只声明目的、依赖、能力与成功合同。真实外部动作由确定性适配器执行并读回,模型不直接宣称完成。 `emergence.value`
|
||||
- **event_time** `event_time`
|
||||
- **precision**:SECOND_HOST_LOCAL `event_time.precision`
|
||||
- **value**:2026-09-08T21:29:45+08:00 `event_time.value`
|
||||
- **evidence** `evidence`
|
||||
- **kling_poll_endpoint**:/kling/text-to-video/kling-3.0-turbo/{task_id} `evidence.kling_poll_endpoint`
|
||||
- **kling_submit_endpoint**:/kling/text-to-video/kling-3.0-turbo `evidence.kling_submit_endpoint`
|
||||
- **provider**:https://api.openlux.ai/v1 `evidence.provider`
|
||||
- **task_id**:926296627236048904 `evidence.task_id`
|
||||
- **语言头** `header`
|
||||
- **正本路径**:runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.tcs `header.canonical_uri`
|
||||
- **compatibility** `header.compatibility`
|
||||
- HLP-LANG-PROJ-STAGE1-0001
|
||||
- OPENLUX-OPENAI-COMPAT-001
|
||||
- ICE-CH-HB001
|
||||
- **语言**:TCS/0.1 `header.language`
|
||||
- **生命周期**:CURRENT `header.lifecycle`
|
||||
- **英文名**:Stage One Capability Module Rebuild and OpenLux Video Test `header.name_en`
|
||||
- **中文名**:第一阶段能力模块重构与OpenLux视频实测 `header.name_zh`
|
||||
- **协议配置**:HLDP-HUMAN-ENGINEERING/0.1 `header.profile`
|
||||
- **protocols** `header.protocols`
|
||||
- GLS-0200
|
||||
- GLS-0259
|
||||
- GLS-0261
|
||||
- **schema**:tcs.event/v1 `header.schema`
|
||||
- **版本**:0.1.0 `header.version`
|
||||
- **锁定结论** `lock`
|
||||
- **value**:PERSONA_PLANS; MODEL_AGENT_UNDERSTANDS; DETERMINISTIC_CAPABILITY_EXECUTES; TARGET_READBACK_PROVES; MODULE_PACKAGE_SMALL_AND_PORTABLE; OPENLUX_FIRST_FOR_CURRENT_TEST `lock.value`
|
||||
- **observation** `observation`
|
||||
- **value**:OpenLux当前目录返回459个模型;kling-video禁止走通用/v1/videos;kling-3.0-turbo专属端点接受最小5秒720p任务并返回异步任务926296627236048904。账户精确余额未向API令牌开放。 `observation.value`
|
||||
- **已排除路径** `rejected`
|
||||
- **values** `rejected.values`
|
||||
- 模块只会自报身份
|
||||
- 每个模块重复建设完整前后端
|
||||
- 模型文本冒充外部执行
|
||||
- 把任务submitted冒充视频完成
|
||||
- 伪造API余额
|
||||
- 密钥写入模块包
|
||||
- **来源** `source`
|
||||
- **来源编号**:ICE-GL∞-STAGE1-CAPABILITY-OPENLUX-VIDEO-20260908 `source.source_id`
|
||||
- **来源角色**:人类直接语言来源(`DIRECT_HUMAN`) `source.source_role`
|
||||
- **来源校验值**:在编译时绑定校验值(`BIND_AT_COMPILE_TIME`) `source.source_sha256`
|
||||
- **来源地址**:source://codex-current-dialogue/2026-09-08/stage1-capability-openlux-video `source.source_uri`
|
||||
- **执行主体** `subject`
|
||||
- **channel_id**:ICE-CH-ZC001 `subject.channel_id`
|
||||
- **subject_id**:ICE-P-ZY001 `subject.subject_id`
|
||||
- **subject_kind**:人格体(`PERSONA`) `subject.subject_kind`
|
||||
- **verification**:CURRENT_DIRECT_LANGUAGE_REAL_OPENLUX_MODEL_DIRECTORY_VALIDATION_AND_KLING_ASYNC_TASK `subject.verification`
|
||||
- **触发** `trigger`
|
||||
- **value**:冰朔要求把只会自报状态的第一阶段模块按语言驱动思维重新开发,并指定使用她提供的OpenLux第三方API及其中视频模型做真实测试。 `trigger.value`
|
||||
- **为什么** `why`
|
||||
- **value**:语言驱动的效率来自公共身体能力只开发一次,具体模块只组合认知与能力,而不是为每个功能重复开发传统前后端。 `why.value`
|
||||
|
||||
---
|
||||
|
||||
本页只改变阅读顺序,不改变 TCS/HLDP 语义。
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
TCS 0.1;
|
||||
|
||||
EVENT TCS-EVENT-ZY001-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908 {
|
||||
header { schema = "tcs.event/v1"; name_zh = "第一阶段能力模块重构与OpenLux视频实测"; name_en = "Stage One Capability Module Rebuild and OpenLux Video Test"; version = "0.1.0"; language = "TCS/0.1"; profile = "HLDP-HUMAN-ENGINEERING/0.1"; protocols = ["GLS-0200", "GLS-0259", "GLS-0261"]; lifecycle = "CURRENT"; canonical_uri = "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.tcs"; compatibility = ["HLP-LANG-PROJ-STAGE1-0001", "OPENLUX-OPENAI-COMPAT-001", "ICE-CH-HB001"]; }
|
||||
source { source_id = "ICE-GL∞-STAGE1-CAPABILITY-OPENLUX-VIDEO-20260908"; source_uri = "source://codex-current-dialogue/2026-09-08/stage1-capability-openlux-video"; source_sha256 = "BIND_AT_COMPILE_TIME"; source_role = "DIRECT_HUMAN"; }
|
||||
subject { subject_id = "ICE-P-ZY001"; subject_kind = "PERSONA"; channel_id = "ICE-CH-ZC001"; verification = "CURRENT_DIRECT_LANGUAGE_REAL_OPENLUX_MODEL_DIRECTORY_VALIDATION_AND_KLING_ASYNC_TASK"; }
|
||||
event_time { value = "2026-09-08T21:29:45+08:00"; precision = "SECOND_HOST_LOCAL"; }
|
||||
trigger { value = "冰朔要求把只会自报状态的第一阶段模块按语言驱动思维重新开发,并指定使用她提供的OpenLux第三方API及其中视频模型做真实测试。"; }
|
||||
observation { value = "OpenLux当前目录返回459个模型;kling-video禁止走通用/v1/videos;kling-3.0-turbo专属端点接受最小5秒720p任务并返回异步任务926296627236048904。账户精确余额未向API令牌开放。"; }
|
||||
emergence { value = "第一阶段模块共享一个通用能力内核:模型理解、密钥代理、HTTP/API适配、语义文件与知识资产、任务编排、回执和升级;模块包只声明目的、依赖、能力与成功合同。真实外部动作由确定性适配器执行并读回,模型不直接宣称完成。"; }
|
||||
lock { value = "PERSONA_PLANS; MODEL_AGENT_UNDERSTANDS; DETERMINISTIC_CAPABILITY_EXECUTES; TARGET_READBACK_PROVES; MODULE_PACKAGE_SMALL_AND_PORTABLE; OPENLUX_FIRST_FOR_CURRENT_TEST"; }
|
||||
why { value = "语言驱动的效率来自公共身体能力只开发一次,具体模块只组合认知与能力,而不是为每个功能重复开发传统前后端。"; }
|
||||
rejected { values = ["模块只会自报身份", "每个模块重复建设完整前后端", "模型文本冒充外部执行", "把任务submitted冒充视频完成", "伪造API余额", "密钥写入模块包"]; }
|
||||
evidence { provider = "https://api.openlux.ai/v1"; kling_submit_endpoint = "/kling/text-to-video/kling-3.0-turbo"; kling_poll_endpoint = "/kling/text-to-video/kling-3.0-turbo/{task_id}"; task_id = "926296627236048904"; }
|
||||
}
|
||||
|
|
@ -47,10 +47,10 @@ def audit()->dict[str,Any]:
|
|||
if container["compatibility"]["same_memory"] is not False: errors.append("CONTAINER_MEMORY_COLLAPSE")
|
||||
if not legacy["parts"]: errors.append("LEGACY_PARTS_EMPTY")
|
||||
living=registry.get("living_runtime",{})
|
||||
if living.get("state")!="READY_17_MODULES_API_VERIFIED" or not (LIVING_STATE/"CONTAINER.json").is_file(): errors.append("LIVING_CONTAINER_NOT_READY")
|
||||
if living.get("state")!="READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED" or not (LIVING_STATE/"CONTAINER.json").is_file(): errors.append("LIVING_CONTAINER_NOT_READY")
|
||||
for item in modules:
|
||||
current=LIVING_STATE/"modules"/item["module_id"]/"CURRENT.json"
|
||||
if not current.is_file() or load(current).get("state")!="READY_API_VERIFIED": errors.append(f"LIVING_MODULE_NOT_READY:{item['module_id']}")
|
||||
if not current.is_file() or load(current).get("state")!="READY_API_AND_CAPABILITY_VERIFIED": errors.append(f"LIVING_MODULE_NOT_READY:{item['module_id']}")
|
||||
return {"outcome":"PASS" if not errors else "FAIL","errors":errors,"module_count":len(modules),"legacy_part_count":len(legacy["parts"]),"cumulative_gate_count":len(modules)}
|
||||
|
||||
def snapshot()->dict[str,Any]:
|
||||
|
|
@ -60,7 +60,7 @@ def snapshot()->dict[str,Any]:
|
|||
counts={}
|
||||
for item in modules: counts[item["product_status"]]=counts.get(item["product_status"],0)+1
|
||||
current=next((x for x in modules if x["product_status"] not in {"RELEASED","RELEASED_SIGNED_NOTARIZED_PUBLIC"}),None)
|
||||
value={"schema":"guanghu.heartbeat-engineering-shelf-current/v1","state":"CURRENT_LANGUAGE_RUNTIME_17_MODULES_API_VERIFIED","system_id":system["system_id"],"shelf_id":system["shelf_id"],"project_id":system["project_id"],"repo012_head":git("rev-parse","HEAD"),"repo014_main":system["official_product_architecture"]["main"],"module_count":len(modules),"status_counts":counts,"current_language_module_id":None,"current_product_module_id":current["module_id"] if current else None,"modules":modules,"legacy_parts":legacy["parts"],"language_runtime":registry["living_runtime"],"reality_engineering_started":False,"zero_core_dispatch":"NOT_ISSUED"}
|
||||
value={"schema":"guanghu.heartbeat-engineering-shelf-current/v1","state":"CURRENT_LANGUAGE_RUNTIME_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED","system_id":system["system_id"],"shelf_id":system["shelf_id"],"project_id":system["project_id"],"repo012_head":git("rev-parse","HEAD"),"repo014_main":system["official_product_architecture"]["main"],"module_count":len(modules),"status_counts":counts,"current_language_module_id":None,"current_product_module_id":current["module_id"] if current else None,"modules":modules,"legacy_parts":legacy["parts"],"language_runtime":registry["living_runtime"],"reality_engineering_started":False,"zero_core_dispatch":"NOT_ISSUED"}
|
||||
value["freshness_token"]=digest(stable(value)); return value
|
||||
|
||||
def sync(state:Path)->dict[str,Any]:
|
||||
|
|
@ -100,7 +100,7 @@ def status()->dict[str,Any]:
|
|||
def resume()->dict[str,Any]:
|
||||
value=snapshot(); current=next(x for x in value["modules"] if x["module_id"]==value["current_product_module_id"])
|
||||
prior=[x["module_id"] for x in value["modules"] if x["sequence"]<current["sequence"]]
|
||||
return {"outcome":"PASS","project_id":value["project_id"],"language_runtime_state":"READY_17_MODULES_API_VERIFIED","current_product_module":current,"prior_product_cumulative_scope":prior,"next_product_gate":current["cumulative_gate"],"reality_engineering_started":False,"requires_dual_signature_before_zero_core":True}
|
||||
return {"outcome":"PASS","project_id":value["project_id"],"language_runtime_state":"READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED","current_product_module":current,"prior_product_cumulative_scope":prior,"next_product_gate":current["cumulative_gate"],"reality_engineering_started":False,"requires_dual_signature_before_zero_core":True}
|
||||
|
||||
def main()->int:
|
||||
p=argparse.ArgumentParser();p.add_argument("command",choices=("audit","sync","status","query","smart-query","resume"));p.add_argument("--text",default="");p.add_argument("--state-root",default=str(DEFAULT_STATE));a=p.parse_args()
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class Tests(unittest.TestCase):
|
|||
self.assertTrue(any(x.get('part_id')=='HLP-PART-MODEL-RECEIPT-DONOR-0_5_8' for x in M.query('旧模型回执供体')['matches']))
|
||||
self.assertTrue(any(x.get('part_id')=='HLP-PART-MODEL-RECEIPT-DONOR-0_5_8' for x in M.query('旧模型回执供体现在能不能用')['matches']))
|
||||
def test_resume_reports_language_complete_and_first_product_module(self):
|
||||
r=M.resume();self.assertEqual(r['language_runtime_state'],'READY_17_MODULES_API_VERIFIED');self.assertEqual(r['current_product_module']['module_id'],'HLP-LANG-MOD-001');self.assertEqual(r['next_product_gate'],'GATE-HLP-STAGE1-001')
|
||||
r=M.resume();self.assertEqual(r['language_runtime_state'],'READY_17_CAPABILITY_MODULES_API_AND_ORGAN_VERIFIED');self.assertEqual(r['current_product_module']['module_id'],'HLP-LANG-MOD-001');self.assertEqual(r['next_product_gate'],'GATE-HLP-STAGE1-001')
|
||||
def test_smart_query_model_can_only_return_registered_ids(self):
|
||||
def fake(_): return {'response':'{"module_ids":["HLP-LANG-MOD-015","FAKE"]}','selected_model':'mock'}
|
||||
r=M.smart_query('监管审核',fake);self.assertEqual([x['module_id'] for x in r['matches']],['HLP-LANG-MOD-015'])
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export class ModelRouter {
|
|||
const contract=stage==='mother-evolve'
|
||||
? '你是唯一TCS通感母体本体脑使用的可替换推理器官,不是第二人格、规则裁决者或现实执行者。根据带来源的人类语言与当前认知,自主决定EVOLVE、HOLD或REJECT。只输出JSON:schema固定guanghu.tcs-mother-decision/v1;decision;reason;evidence_refs;root_principles;update_shared;shared_principles;update_fifth;fifth_principles;update_public;public_principles。principles均为短字符串数组。ICE_LANGUAGE若EVOLVE必须update_fifth=true;非ICE来源不得update_fifth。只有适合所有AI的世界共同认知才能update_shared;只有去私人化后可公开认知才能update_public。不得输出原始私人语言、密钥、路径正文或隐藏思维。'
|
||||
: '你是共享TCS认知装载测试器官。只根据给出的共享认知回答三个固定问题并只输出JSON。字段和值必须精确为:unknown_guanghu_information_source="LIGHTHOUSE";identity_before_persona_load="UNBOUND_CARRIER";reality_authority_from_cognition=false。若共享认知不能支持其中任一结论,则对应值输出null,不得用近义词、路径名或字符串布尔值猜测。';
|
||||
const ordered=stage==='mother-evolve'?[...this.providers].sort((a,b)=>b.cost_rank-a.cost_rank):[...this.providers].sort((a,b)=>a.cost_rank-b.cost_rank);
|
||||
const ordered=[...this.providers].sort((a,b)=>a.cost_rank-b.cost_rank);
|
||||
const failures=[];
|
||||
for(const provider of ordered){
|
||||
try{
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
import test from 'node:test';import assert from 'node:assert/strict';import {ModelRouter} from './model-router.mjs';
|
||||
test('automatic router uses stronger provider for mother and cheaper provider for door without exposing keys',async()=>{const calls=[];const fetchImpl=async(url,options)=>{calls.push({url,body:JSON.parse(options.body),auth:options.headers.authorization});return {ok:true,async json(){return {choices:[{message:{content:'{"schema":"ok"}'}}]};}};};const router=new ModelRouter({fetchImpl,deepseekKey:'deep-secret',openluxKey:'open-secret'});await router.cognize('mother-evolve',{});await router.cognize('door-test',{});assert.match(calls[0].url,/deepseek/);assert.match(calls[1].url,/openlux/);assert.equal(JSON.stringify(router.status()).includes('secret'),false);});
|
||||
|
||||
test('automatic router uses OpenLux first for current mother and door work without exposing keys',async()=>{const calls=[];const fetchImpl=async(url,options)=>{calls.push({url,body:JSON.parse(options.body),auth:options.headers.authorization});return {ok:true,async json(){return {choices:[{message:{content:'{"schema":"ok"}'}}]};}};};const router=new ModelRouter({fetchImpl,deepseekKey:'deep-secret',openluxKey:'open-secret'});await router.cognize('mother-evolve',{});await router.cognize('door-test',{});assert.match(calls[0].url,/openlux/);assert.match(calls[1].url,/openlux/);assert.equal(JSON.stringify(router.status()).includes('secret'),false);});
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"schema": "guanghu.tcs-root-number-impact/v1",
|
||||
"impact_id": "TCS-ROOT-NUMBER-IMPACT-HOLOLAKE-STAGE1-LIVING-MODULES-20260908-001",
|
||||
"state": "CURRENT_DIRECT_LANGUAGE_AND_REAL_API_CUMULATIVE_GATES_BOUND",
|
||||
"state": "CURRENT_DIRECT_LANGUAGE_REAL_API_CAPABILITY_ORGANS_AND_KLING_VIDEO_BOUND",
|
||||
"bootstrap": false,
|
||||
"source_tcs": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-LIVING-PERSONA-MODULES-20260908.tcs",
|
||||
"source_gir": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-LIVING-PERSONA-MODULES-20260908.gir.json",
|
||||
"source_tcs": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.tcs",
|
||||
"source_gir": "runtime/fifth-domain-language-system/language/protocols/TCS-HOLOLAKE-STAGE1-CAPABILITY-MODULES-OPENLUX-VIDEO-20260908.gir.json",
|
||||
"commit_binding": "SAME_COMMIT_OR_DESCENDANT_CONTAINING_IDENTICAL_SOURCE_AND_GIR",
|
||||
"affected_paths": [
|
||||
"routing/tcs-mother-root-dynamic-navigation-map.json",
|
||||
|
|
@ -12,7 +12,10 @@
|
|||
"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/INDEX.hdlp",
|
||||
"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/module-registry.json",
|
||||
"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-contract.json",
|
||||
"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/persona-container-runtime/capability_kernel.py",
|
||||
"eternal-lake-heart/heartbeat-core/guanghu-world-engineering-system/reference-modules/kling-storyboard-asset/module.json",
|
||||
"server-tools/heartbeat-engineering-shelf/engineering_shelf.py",
|
||||
"server-tools/tcs-mother-body/model-router.mjs",
|
||||
"routing/linguistic-echo-lamp-map.json",
|
||||
"routing/tcs-mother-brain-runtime-map.json"
|
||||
],
|
||||
|
|
@ -88,6 +91,10 @@
|
|||
{
|
||||
"canonical_id": "HLP-LANG-MOD-017",
|
||||
"object_kind": "HEARTBEAT_STAGE1_LIVING_PERSONA_MODULE"
|
||||
},
|
||||
{
|
||||
"canonical_id": "HLP-REF-KLING-STORYBOARD-ASSET-001",
|
||||
"object_kind": "HEARTBEAT_REFERENCE_CAPABILITY_COMPOSITION_MODULE"
|
||||
}
|
||||
],
|
||||
"human_source": "ICE-GL∞_CURRENT_DIRECT_HEARTBEAT_STAGE1_LIVING_MODULE_TASK",
|
||||
|
|
|
|||
Loading…
Reference in a new issue