22 lines
651 B
Python
22 lines
651 B
Python
#!/usr/bin/env python3
|
|
"""Timestamp verification script for spark agent."""
|
|
from datetime import datetime
|
|
import os
|
|
|
|
def main():
|
|
timestamp = datetime.utcnow().isoformat() + 'Z'
|
|
artifact_path = os.path.expanduser('~/.hermes/wizard-outputs/spark/timestamp_result.txt')
|
|
|
|
with open(artifact_path, 'w') as f:
|
|
f.write(f"Verified timestamp: {timestamp}\n")
|
|
|
|
# Verify file exists and has correct content
|
|
with open(artifact_path, 'r') as f:
|
|
content = f.read()
|
|
|
|
print(f"Created artifact at: {artifact_path}")
|
|
print(f"Content: {content.strip()}")
|
|
return timestamp
|
|
|
|
if __name__ == "__main__":
|
|
main() |