Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ERC: Instinct-Based Automatic Transactions #596

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8846871
Multi Owners NFT
Jul 13, 2024
f19cb42
correct format
Jul 13, 2024
9b73e1b
correct format
Jul 13, 2024
18c8be9
correct format
Jul 13, 2024
2490372
correct format
Jul 13, 2024
d591c27
update format
Jul 13, 2024
910b33a
change format
Jul 13, 2024
acf7094
update format
Jul 13, 2024
de9d3b0
update Author
Jul 16, 2024
a34f31e
Merge pull request #1 from jamesavechives/MO-NFT
jamesavechives Jul 16, 2024
b945e47
Merge branch 'master' into MO-NFT
jamesavechives Jul 16, 2024
daadfeb
Merge branch 'ethereum:master' into master
jamesavechives Jul 17, 2024
3e9fb18
update epi number to 7743
Jul 17, 2024
9ad648e
Merge branch 'MO-NFT' of github.com:jamesavechives/ERCs into MO-NFT
Jul 17, 2024
aa9b515
Merge pull request #2 from jamesavechives/MO-NFT
jamesavechives Jul 17, 2024
26006c3
Add ERC : Decentralized Employment System
Aug 4, 2024
1f40d4b
change file name
Aug 4, 2024
995c726
update format
Aug 4, 2024
d58050d
update format
Aug 4, 2024
ce35b5d
update format
Aug 4, 2024
f15ed1f
Merge branch 'master' into DES
jamesavechives Aug 4, 2024
0fdf84e
Merge branch 'master' into DES
jamesavechives Aug 6, 2024
4b0bddf
eip number and discussion link
Aug 6, 2024
3761bee
Merge branch 'master' into DES
jamesavechives Aug 9, 2024
69445bc
Merge branch 'master' into DES
jamesavechives Aug 19, 2024
38ddee1
Add ERC : Instinct-Based Automatic Transactions
Aug 19, 2024
79582aa
rm 7750
Aug 19, 2024
1db7d07
update format
Aug 19, 2024
f17027a
update format
Aug 19, 2024
fc66df6
consider auto-exe and mid-way targets
Aug 19, 2024
05d6c26
update file name
Aug 20, 2024
d5b763b
update
Aug 20, 2024
d7e1f57
Update ERCS/erc-7757.md
jamesavechives Aug 22, 2024
bb4f074
Merge branch 'master' into AI
jamesavechives Aug 22, 2024
abe4a76
Merge branch 'master' into AI
jamesavechives Aug 25, 2024
f284321
update link for discussions-to
Aug 25, 2024
6524fa4
Merge branch 'master' into AI
jamesavechives Aug 30, 2024
88df6be
Merge branch 'master' into AI
jamesavechives Sep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions ERCS/erc-7757.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
eip: 7757
title: Instinct-Based Automatic Transactions
description: A blockchain framework for autonomous transaction execution based on predefined AI-driven instincts with temptation values.
author: James Savechives (@jamesavechives) <james.walstonn@gmail.com>
discussions-to: https://ethereum-magicians.org/t/erc-7751-instinct-based-automatic-transactions/20886
status: Draft
type: Standards Track
category: ERC
created: 2024-08-19
---

## Abstract

This ERC proposes a standard for AI-driven automatic transactions on the Ethereum blockchain, triggered by predefined or dynamic "instincts" with associated temptation values. AI agents or users autonomously evaluate and act upon these instincts, optimizing their strategies through a learning process. This standard enables the creation of a self-regulating, adaptive blockchain ecosystem where decisions and transactions are made based on calculated rewards and penalties.

## Motivation

As AI and blockchain technologies evolve, the need for autonomous systems that can make complex decisions and execute transactions without direct human intervention becomes more apparent. This standard aims to provide a framework for integrating AI-driven instincts into the blockchain, allowing for more sophisticated, adaptive, and autonomous transaction mechanisms that mimic natural decision-making processes.

## Specification

### Instinct Definition

1. **Instinct Attributes**:
- `instinctID`: Unique identifier for the instinct.
- `temptationValue`: Numerical value representing the instinct's temptation level (positive for rewards, negative for penalties).
- `triggerConditions`: Conditions under which the instinct is activated.
- `static`: Boolean indicating whether the instinct is static or dynamic.
- `autoExecution`: Boolean indicating whether the transaction should be automatically executed when the conditions are met.

2. **Mid-way Targets**:
- Mid-way targets are generated dynamically as intermediate steps toward achieving the final instinct.
- Each mid-way target has its own `temptationValue` and `triggerConditions`.
- These targets guide the AI agent through a series of decisions and actions leading to the final instinct.

3. **Instinct Management**:
- `createInstinct(instinctID, temptationValue, triggerConditions, static)`: Creates a new instinct.
- `modifyInstinct(instinctID, temptationValue, triggerConditions)`: Modifies an existing instinct.
- `deleteInstinct(instinctID)`: Deletes an instinct.

### AI-Agent Interaction

1. **Evaluation and Action**:
- `evaluateInstincts(agentID, timeFrame)`: Evaluates all available instincts within a given time frame and returns the optimal action.
- `actOnInstinct(instinctID, agentID)`: Executes the action associated with a selected instinct.

2. **Automatic Execution**:
- If `autoExecution` is enabled and the conditions for an instinct or mid-way target are met, the transaction is executed automatically without further input from the agent.

3. **Learning Process**:
- `labelInstinct(instinctID, cost)`: Labels the cost of pursuing a particular instinct to inform future decision-making.
- `updateStrategy(agentID)`: Updates the agent's strategy based on past outcomes and cost analyses.

### Dynamic Instincts

1. **Instinct Updates**:
- `updateInstinct(instinctID, newTemptationValue)`: Updates the temptation value or conditions of a dynamic instinct based on real-time data or external conditions.

## Rationale

The proposed standard introduces a novel approach to blockchain transactions by leveraging AI-driven instincts that enable autonomous decision-making. By incorporating temptation values and learning processes, the system can dynamically adapt to changing environments, offering a more efficient and self-regulating ecosystem.

## Test Cases

1. **Instinct Creation and Modification**: Test the creation, modification, and deletion of instincts.
2. **AI-Agent Decision-Making**: Test the evaluation and action process for AI agents based on available instincts.
3. **Automatic Execution**: Test the automatic execution of transactions when conditions for an instinct or mid-way target are met.
4. **Learning and Strategy Update**: Test the learning process and strategy updates based on labeled costs and past actions.
5. **Dynamic Instinct Adjustment**: Test the updating mechanism for dynamic instincts based on external data or real-time conditions.

## Security Considerations

1. **Instinct Integrity**: Ensure that instincts and their attributes are immutable and protected against tampering.
2. **AI-Agent Security**: Implement safeguards to prevent AI agents from being manipulated into making harmful or suboptimal decisions.
3. **Data Privacy**: Ensure that the data used to trigger instincts and guide decision-making is securely handled and protected.

## Copyright

Copyright and related rights waived via [CC0](../LICENSE.md).

Loading